/* ==========================================================================
   Grünes Herz – Header Dunkelblau (Standard, Konstante header.variant = dunkel)
   Grundfarben des Headers stehen in gh-colors.css; hier der Button „Suche und Menü“.

   Kontraste:
     Dunkelblau auf Wiesengrün 8.6:1
     Hover / Fokus / Gedrückt / Menü offen: Dunkelblau wischt herein,
     Schrift Weiß 13.6:1; der grüne Rahmen hält die Form
     Fokus: 3px Weiß mit 2px Abstand – nicht Grün, sonst verschmölze der
     Rahmen mit dem Button
   ========================================================================== */
.th-nav-main-open .th-nav-item,
.th-header .th-wrapper .th-nav-item {
	background-color: var(--gh-wiesengruen);
	color: var(--gh-dunkelblau);
}
/* Hover / Fokus / Gedrückt / Menü offen: Dunkelblau wischt herein (s. u.) */
.th-header {
	--gh-menubtn-wipe-bg: var(--gh-dunkelblau);
	--gh-menubtn-wipe-fg: #fff;
}
/* Dunkelblau auf dunkelblauem Header: grüner Rahmen hält die Button-Form
   sichtbar (Wiesengrün zu Dunkelblau 8.6:1) */
.th-header .th-wrapper .th-nav-item {
	border: 2px solid var(--gh-wiesengruen);
}
:root .th-header .th-wrapper .th-nav-item:focus-visible {
	outline-color: #fff !important;
	outline-offset: 2px;
}
.th-header .th-nav-item .fa-bars {
	margin-right: .45em;
}
/* Hover-Wisch wie bei den Buttons (gh-colors.css): Fläche wischt von links
   herein, Schrift wechselt die Farbe; ohne Unterstreichung. Gilt für Hover,
   Tastaturfokus und Gedrückt. Reduzierte Bewegung: ohne Animation. */
.th-header .th-wrapper .th-nav-item {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: color .35s var(--gh-ease, ease);
}
.th-header .th-wrapper .th-nav-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--gh-menubtn-wipe-bg);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--gh-ease, ease);
	pointer-events: none;
}
.th-header .th-wrapper .th-nav-item:is(:hover, :focus-visible, :active, [aria-expanded="true"])::before {
	transform: scaleX(1);
}
.th-header .th-wrapper .th-nav-item:is(:hover, :focus-visible, :active, [aria-expanded="true"]) {
	background-color: var(--gh-wiesengruen); /* Grundfläche bleibt, Wisch liegt darüber */
	color: var(--gh-menubtn-wipe-fg);
	text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
	.th-header .th-wrapper .th-nav-item,
	.th-header .th-wrapper .th-nav-item::before {
		transition: none;
	}
}
@media (forced-colors: active) {
	.th-header .th-wrapper .th-nav-item::before {
		content: none;
	}
}

@media (forced-colors: active) {
	.th-header .th-wrapper .th-nav-item {
		border: 2px solid ButtonText;
	}
}
