/*
 * Site Core - Utility-Klassen (Version 1, Stand 2026-09-22)
 * Ergaenzt Blocksys Typografie (Body/H1-H6, siehe tokens.css Kopfkommentar) um die
 * Rollen, die Blocksy nicht nativ anbietet. Erbt bewusst Schriftfamilie vom Body statt
 * sie neu zu setzen - nur Groesse/Gewicht/Zeilenhoehe werden ergaenzt.
 */

.text-display {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.2;
}

.text-body-large {
	font-size: 19px;
	font-weight: 400;
	line-height: 1.6;
}

.text-small {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.text-caption {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-text-muted);
}

.font-accent {
	font-family: var(--font-accent);
}

/*
 * Header (Blocksy) - helle Indigo-Pille (Variante B), nur Palette-Tokens
 * (Kundenentscheidung 2026-09-26: Primaerfarbe 16 % ueber Creme-Flaeche).
 * 2026-09-27, zweiter Anlauf: echte Transparenz (color-mix mit "transparent") ausprobiert,
 * aber vom Kunden verworfen - ueber dunklen Fotos zog sich der Hintergrund mit ein und
 * schadete der Lesbarkeit. Jetzt wieder blickdicht (color-mix mit --color-surface).
 * 2026-09-27, dritter Anlauf: plastische Wirkung war kaum sichtbar - Glanz oben und
 * Schattenkante unten deutlich verstaerkt (staerkerer Sheen-Gradient, tieferer innerer
 * Schatten unten), Hintergrund bleibt dabei komplett blickdicht.
 * Frueher im Customizer unter "Zusaetzliches CSS" (dunkle Indigo-Glas-Pille mit weisser
 * Schrift); hierher verlagert, damit Farben aus den Tokens kommen und dort nichts mehr steht.
 * Blocksy setzt Titelfarben per INLINE <style> mit ID-Selektor (#header .site-title a) -
 * darum beginnen alle Selektoren hier mit #header (Spezifitaet mindestens gleichziehen).
 */
#header { background: transparent !important; }
#header [data-row="middle"] { background: transparent !important; }
#header [data-row="middle"] > .ct-container {
	max-width: 1320px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 60%), color-mix(in srgb, var(--color-primary) 16%, var(--color-surface));
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid color-mix(in srgb, var(--color-primary) 32%, var(--color-surface));
	border-radius: var(--radius-pill);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--color-primary) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(0, 0, 0, 0.09);
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 32px;
	padding-right: 12px;
	margin-top: 14px;
	margin-bottom: 14px;
	transition: padding 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955), margin 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955), box-shadow 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955), min-height 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955), background-color 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
#header [data-row="middle"] [data-column="end"] [data-items="primary"] {
	justify-content: flex-start !important;
}

/*
 * Suchlupe im Header ausgeblendet (Kundenentscheidung 2026-09-27): kein Mehrwert bei der
 * aktuellen, kleinen und flachen Seitenstruktur, generische WP-Suche liefert ohne gezielte
 * Einrichtung eher unpassende Treffer. Bewusst per CSS ausgeblendet statt aus dem Header-
 * Baukasten entfernt - einfach reversibel, falls ein grosser FAQ-/Ortsfuehrer-Bereich mit
 * eigener, gezielter Filterfunktion das je aendert (siehe CLAUDE.md).
 */
#header [data-id="search"] {
	display: none !important;
}

/* Menue: dunkle Schrift auf heller Pille, Hover/aktiv in Primaerfarbe */
#header [data-row="middle"] .ct-menu-link {
	font-size: 15px !important;
	color: var(--color-heading) !important;
}
#header [data-row="middle"] .ct-menu-link:hover,
#header [data-row="middle"] .current-menu-item > .ct-menu-link {
	color: var(--color-primary) !important;
}

/*
 * Untermenue/"Mehr"-Dropdown (.sub-menu): Blocksy setzt dafuer per Default einen dunklen
 * Hintergrund (eigene dunkle Palettenfarbe) - unsere (dunkle) Menue-Textfarbe wurde darauf
 * fast unlesbar. Statt hellem Hintergrund bewusst dieselbe Indigo-Glas-Optik wie das
 * Offcanvas-Menue (siehe Zusaetzliches CSS #offcanvas), damit beide Dropdown-Arten aus
 * einer Familie wirken: dunkles Indigo-Glas, weisse Schrift.
 */
#header .sub-menu {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 45%), color-mix(in srgb, var(--color-primary) 88%, black 4%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	box-shadow: var(--shadow-floating) !important;
	border-radius: var(--radius-medium) !important;
}
#header .sub-menu .ct-menu-link {
	color: var(--color-surface) !important;
}
#header .sub-menu .ct-menu-link:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

/* Hamburger-Icon (mobil) */
#header .ct-header-trigger .ct-icon rect {
	fill: var(--color-primary) !important;
}

/*
 * Titel: Akzentschrift (Courgette) in Primaerfarbe; Tagline gedaempft. Titel bricht nie um
 * (nowrap) und schrumpft nicht (flex-shrink:0) - wenn der Platz knapp wird, soll das Menue
 * ins "Mehr"-Dropdown ausweichen (Blocksys eigener Mechanismus), nicht der Titel umbrechen.
 */
#header .site-branding {
	flex-shrink: 0;
}
#header .site-branding .site-title,
#header .site-branding .site-title a {
	font-family: var(--font-accent) !important;
	color: var(--color-primary) !important;
	white-space: nowrap !important;
}
#header .site-branding .site-description {
	color: color-mix(in srgb, var(--color-primary) 75%, var(--color-text)) !important;
}

/*
 * Logo im Sticky-Zustand auf Tablet und Handy (frueher im Zusaetzlichen CSS). Muss VOR dem
 * Handy-Block stehen, damit dieser bei gleicher Spezifitaet gewinnt.
 */
@media (max-width: 999.98px) {
	#header [data-sticky^="yes:"] .site-logo-container {
		height: 26px !important;
	}
	#header [data-sticky^="yes:"] img.default-logo {
		height: 26px !important;
		width: auto !important;
	}
}

/*
 * Handy (Blocksy-Mobile bis 689.98px, siehe tokens.css): kleinere Schrift und Logo, weniger
 * Innenabstand links, damit Logo und Titel weiter nach links rutschen. Logo normal 46px
 * (Blocksy-Vorgabe 56px), im Sticky-Zustand 34px.
 */
@media (max-width: 689.98px) {
	#header [data-row="middle"] > .ct-container {
		padding-left: 8px;
		padding-right: 8px;
	}
	#header .site-logo-container {
		--logo-max-height: 46px;
	}
	#header [data-sticky^="yes:"] .site-logo-container {
		height: 34px !important;
	}
	#header [data-sticky^="yes:"] img.default-logo {
		height: 34px !important;
		width: auto !important;
	}
	#header .site-branding .site-title,
	#header .site-branding .site-title a {
		font-size: 16px !important;
		line-height: 1.25 !important;
	}
	#header .site-branding .site-description {
		font-size: 11px !important;
		line-height: 1.3 !important;
	}
}

/*
 * Sticky-Header (geschrumpft, data-sticky="yes:shrink"): Titel bleibt sichtbar, die
 * Tagline verschwindet zuerst. (Frueheres "Titel verschwindet" kam aus einer Altlast im
 * Zusaetzlichen CSS, dort entfernt - siehe CLAUDE.md Abschnitt 11.)
 */
#header [data-sticky^="yes:"] .site-branding .site-description {
	display: none !important;
}

/*
 * Rest der Sticky-Header-Migration (2026-09-30, letzte Reste aus dem Customizer-
 * "Zusaetzlichen CSS" hierher verlagert, siehe CLAUDE.md Abschnitt 11): Mindesthoehe der
 * Kopfzeile beim Schrumpfen, Logo-Hoehe ab Desktop-Breite (Tablet/Handy siehe oben).
 */
#header [data-sticky^="yes:"] [data-row] > div,
#header [data-sticky^="yes:"] .ct-container {
	min-height: 56px !important;
}
@media (min-width: 1000px) {
	#header [data-sticky^="yes:"] .site-logo-container {
		height: 32px !important;
	}
	#header [data-sticky^="yes:"] img.default-logo {
		height: 42px !important;
		width: auto !important;
	}
}

/*
 * Mobiles Menue (Offcanvas): dieselbe dunkle Indigo-Glas-Optik wie das Desktop-Untermenue
 * oben (#header .sub-menu) - aus dem Customizer hierher verlagert, 2026-09-30.
 */
#offcanvas.ct-panel {
	border-top-left-radius: var(--radius-card);
	border-bottom-left-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}
#offcanvas .ct-panel-inner {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 40%), color-mix(in srgb, var(--color-primary) 85%, transparent) !important;
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border-left: 1px solid rgba(255, 255, 255, 0.28);
}
#offcanvas .ct-menu-link {
	display: inline-block;
	padding: 8px 16px !important;
	border-radius: var(--radius-pill);
	color: var(--color-surface) !important;
	transition: background-color 0.2s ease, transform 0.15s ease;
}
#offcanvas .ct-menu-link:hover {
	background-color: rgba(255, 255, 255, 0.16);
	transform: translateX(4px);
}
#offcanvas .ct-toggle-close {
	background: rgba(255, 255, 255, 0.16) !important;
	border-radius: var(--radius-pill) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
