html, body {
	height: 100%;
	overflow: hidden;
	margin: 0;
	background-color: #f8f9fa;
}

.main-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.navbar {
	flex-shrink: 0;
	height: 56px;
}

.navbar-brand {
	margin-left: 16px;
}

.custom-nav {
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	position: relative;
}

.info-page-title {
    font-size: var(--bs-navbar-brand-font-size, 1.25rem);
    font-weight: var(--bs-navbar-brand-font-weight, 500);
    line-height: var(--bs-navbar-brand-line-height, 1.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(25% + 1rem);
    margin: 0;
    color: inherit;
}

.page-shell {
    flex: 1;                 /* war: flex: 0 0 auto */
    min-height: 0;           /* NEU – kritisch für Flex-Kinder */
    display: grid;
    grid-template-columns: 25% minmax(0, 1fr) 25%;
    padding: 1rem;
    padding-top: 0;
    padding-left: 0;
    align-items: start;
    overflow: hidden;        /* NEU */
}

.page-content {
    grid-column: 2;
    background-color: #ffffff;
    border: 1px solid #D2D2D2;
    border-radius: 0.5rem;
    margin: 0 4px;
    padding: 9px 16px 0rem 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
    overflow-y: auto;        /* NEU */
    max-height: 100%;        /* NEU – begrenzt auf Grid-Zellenhöhe */
}

.page-content h2 {
	font-size: 1.15rem;
	margin-top: 0.2rem;
	margin-bottom: 0.75rem;
}

@media (max-width: 1349px) {
	html, body {
		height: auto;
		overflow: visible;
		min-height: 100%;
	}
	
	html {
        font-size: clamp(16px, 4vw, 18px);    /* NEU – analog search.css */
    }

	body {
        overflow-x: hidden;    /* NEU – verhindert Auto-Zoom, ohne vw zu verfälschen */
    }
    
    .main-container {
        height: auto;          /* NEU – hebt height:100vh auf */
        min-height: 100vh;
    }

	.navbar {
		position: sticky;
		top: 0;
		z-index: 1000;
		height: auto;
		padding: 0.75rem 0;
	}

	.navbar-brand {
		margin-left: 0;
		font-size: 1.3rem;
	}

	.info-page-title {
	    left: 50%;
	    transform: translate(-50%, -50%);
	    font-size: 1.1rem;
	   	padding-bottom: 0.4rem;
	}

	.page-shell {
		grid-template-columns: 1fr;
		padding: 1rem;
		flex: 1 1 auto;        /* NEU – kein festes Strecken mehr nötig */
        overflow: visible;     /* NEU */
        min-height: 0;
	}

	.page-content {
		grid-column: 1;
		padding: 1rem;
		padding-top: 12px;
		font-size: 1rem;
		margin: 0;
		overflow-y: visible;   /* NEU – kein internes Scrollen */
        max-height: none;      /* NEU – hebt max-height:100% auf */
	}
	
	.dropdown-toggle {
		margin-top: -6px;
	}
	
	.position-relative {
		padding-bottom: 0px;
	}
}

@media (max-width: 499px) {
	.info-page-title {
        font-size: 1rem;
    }
}
