/*
 * Header nach Design "Header 1 – Desktop ≥1200 px (responsiv)" (2026-10-04)
 * Markup: Resources/Private/T3SB/Partials/Page/Navbar/Navbar.fluid.html
 * Breakpoints: ≥1200 Desktop · 768–1199 Tablet · <768 Mobil
 */

/* Sticky wie auf Live: Desktop/Mobil ganzer Header, Tablet nur die Navigationszeile (siehe Media Queries) */
.site-header {
	background: #fff;
	border-bottom: 3px solid #d6d3cb;
	font-family: "Lato", system-ui, sans-serif;
	position: sticky;
	top: 0;
	z-index: 1030;
}
html {
	scroll-padding-top: 160px;
}
.site-header__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	padding-bottom: 16px;
	padding-top: 20px;
}

/* Altlasten aus customize.css (alter, fixierter Header von Live) neutralisieren: #main-navbar bleibt als Skiplink-Ziel */
#main-navbar.site-header__nav {
	border-bottom: 0;
	margin-top: 0;
	padding-top: 0;
}
#page-wrapper {
	padding-top: 0;
}

/* Logo */
.site-header__logo {
	display: block;
	line-height: 0;
	margin-right: auto;
}
.site-header__logo img {
	/* Altes Logo, Größe wie auf Live: 360 × 100 px */
	height: 100px;
	width: auto;
}

/* Rechte Spalte: oben Suche + Social, darunter Navigation */
.site-header__right {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.site-header__utils {
	align-items: center;
	display: flex;
	gap: 4px;
}
.site-header__icon {
	align-items: center;
	background: transparent;
	border: 0;
	color: #555;
	cursor: pointer;
	display: flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	width: 36px;
}
.site-header__icon:hover,
.site-header__icon:focus-visible {
	color: #b20000;
}

/* Suche */
.site-header__search {
	align-items: center;
	border: 1px solid #d6d3cb;
	border-radius: 16px;
	display: flex;
	height: 32px;
	margin-right: 8px;
	overflow: hidden;
}
.site-header__search input {
	background: transparent;
	border: 0;
	color: #495057;
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	height: 100%;
	outline: none;
	padding: 0 4px 0 14px;
	width: 150px;
}
.site-header__search .site-header__icon {
	color: #111;
	height: 100%;
}
.site-header__search:focus-within {
	border-color: #b20000;
}
.site-header__search-toggle,
.site-header__burger,
.site-header__search-panel,
.site-header__mobile {
	display: none;
}

/* Navigation */
.site-header__nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 15px;
	font-weight: 700;
	justify-content: flex-end;
	letter-spacing: .07em;
	position: relative;
	text-transform: uppercase;
}
.site-header__nav:focus {
	outline: none;
}
.site-header__item {
	position: relative;
}
.site-header__link {
	align-items: center;
	color: #111;
	display: flex;
	gap: 6px;
	padding: 6px 0 6px 32px;
	text-decoration: none;
}
.site-header__link:hover,
.site-header__link:focus-visible,
.site-header__link.is-active,
.site-header__item:hover > .site-header__link {
	color: #b20000;
	text-decoration: none;
}

/* Untermenü: öffnet bei Hover und Tastatur-Fokus */
.site-header__sub {
	background: #fff;
	border-top: 3px solid #b20000;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
	display: none;
	flex-direction: column;
	font-size: 17px;
	font-weight: 300;
	left: 16px;
	letter-spacing: 0;
	min-width: 260px;
	padding: 8px 0;
	position: absolute;
	text-transform: none;
	top: calc(100% + 19px);
	z-index: 10;
}
.site-header__sub::before {
	/* Brücke über den Abstand zum Menüpunkt, damit Hover nicht abreißt */
	content: "";
	height: 22px;
	left: 0;
	position: absolute;
	right: 0;
	top: -22px;
}
.site-header__item:hover > .site-header__sub,
.site-header__item:focus-within > .site-header__sub {
	display: flex;
}
.site-header__item.is-closed > .site-header__sub {
	/* mit Escape geschlossen (header.js) */
	display: none;
}
.site-header__sub-link {
	color: #111;
	padding: 10px 20px;
	text-decoration: none;
}
.site-header__sub-link:hover,
.site-header__sub-link:focus-visible,
.site-header__sub-link.is-active {
	color: #b20000;
	text-decoration: none;
}

/* Tablet 768–1199px */
@media (max-width: 1199.98px) {
	.site-header {
		/* Logozeile (16px + 100px Logo + 12px Abstand) scrollt weg, die Navigationszeile bleibt stehen */
		top: -128px;
	}
	html {
		scroll-padding-top: 70px;
	}
	.site-header__inner {
		gap: 12px 24px;
		padding-bottom: 0;
		padding-top: 16px;
	}
	.site-header__logo img {
		height: 100px;
	}
	.site-header__right {
		display: contents;
	}
	.site-header__nav {
		border-top: 1px solid #e6e4dc;
		flex-basis: 100%;
		justify-content: space-between;
		order: 3;
		padding: 2px 0;
	}
	.site-header__link {
		padding: 14px 0;
	}
	.site-header__item:first-child .site-header__sub {
		left: 0;
	}
	.site-header__item:last-child .site-header__sub {
		left: auto;
		right: 0;
	}
	.site-header__sub {
		left: 0;
		top: calc(100% + 3px);
	}
	.site-header__sub::before {
		height: 6px;
		top: -6px;
	}
}

/* Mobil <768px */
@media (max-width: 767.98px) {
	.site-header {
		top: 0;
	}
	html {
		scroll-padding-top: 130px;
	}
	.site-header__inner {
		gap: 8px;
		padding-bottom: 10px;
		padding-top: 10px;
	}
	.site-header__logo img {
		/* So groß, wie neben Such-Icon, Social-Icons und Burger Platz ist (Container 30px, Icons/Burger/Abstände
		   ca. 180px), höchstens wie Live 360 × 100 px */
		height: auto;
		max-width: none;
		width: min(360px, calc(100vw - 210px));
	}
	.site-header__nav,
	.site-header__utils > .site-header__search {
		display: none;
	}
	.site-header__utils {
		gap: 0;
	}
	.site-header__search-toggle {
		color: #111;
		display: flex;
		height: 44px;
		width: 34px;
	}
	.site-header__social {
		color: #111;
		height: 44px;
		width: 28px;
	}
	.site-header__search-panel.show,
	.site-header__search-panel.collapsing {
		border-top: 1px solid #e6e4dc;
		display: block;
	}
	.site-header__search--panel {
		margin: 12px 0;
		width: 100%;
	}
	.site-header__search--panel input {
		flex: 1;
		width: auto;
	}
	.site-header__burger {
		align-items: center;
		background: #660000;
		border: 0;
		border-radius: 4px;
		color: #fff;
		cursor: pointer;
		display: flex;
		height: 44px;
		justify-content: center;
		margin-left: 4px;
		width: 44px;
	}
	.site-header__burger .site-header__burger-close,
	.site-header__burger:not(.collapsed) .site-header__burger-open {
		display: none;
	}
	.site-header__burger:not(.collapsed) .site-header__burger-close {
		display: block;
	}
	.site-header__mobile.show,
	.site-header__mobile.collapsing {
		background: #fff;
		border-top: 1px solid #e6e4dc;
		display: block;
		max-height: calc(100vh - 130px);
		overflow-y: auto;
	}
	.site-header__mobile-link {
		align-items: center;
		background: transparent;
		border: 0;
		border-bottom: 1px solid #ecebe4;
		color: #111;
		display: flex;
		font-size: 17px;
		font-weight: 700;
		justify-content: space-between;
		padding: 16px;
		text-align: left;
		text-decoration: none;
		width: 100%;
	}
	.site-header__mobile-link:hover,
	.site-header__mobile-link:focus-visible {
		color: #b20000;
	}
	.site-header__mobile-link:not(.collapsed) .site-header__caret {
		transform: rotate(180deg);
	}
	.site-header__mobile-sub {
		border-bottom: 1px solid #ecebe4;
	}
	.site-header__mobile-sub.show {
		display: flex;
		flex-direction: column;
	}
	.site-header__mobile-sub a {
		color: #111;
		font-size: 17px;
		font-weight: 300;
		padding: 10px 16px 10px 28px;
		text-decoration: none;
	}
	.site-header__mobile-sub a[aria-current] {
		color: #b20000;
	}
}

/* Sehr schmale Geräte: Icons etwas schmaler, damit alles in eine Zeile passt */
@media (max-width: 359.98px) {
	.site-header__search-toggle {
		width: 32px;
	}
	.site-header__social {
		width: 26px;
	}
	.site-header__burger {
		height: 40px;
		width: 40px;
	}
}
