/* ==========================================================================
   Webdesign Kutter – eigener Helix-Header (Topbar + Kopfleiste)
   Datei: templates/shaper_helixultimate/headers/10-WebdesignKutter/wk-header.css
   Wird von header.php nur geladen, wenn dieser Header-Stil aktiv ist.
   Alle Regeln sind auf .wk-topbar bzw. #sp-header.wk-header begrenzt.
   Werte aus dem freigegebenen Screenshot (Fensterbreite 2000 px) übernommen.
   ========================================================================== */

:root {
	--wk-inhalt: 1248px;         /* Inhaltsbreite laut Entwurf – SPPB-Sections bitte gleich breit einstellen */
	--wk-petrol: #379796;        /* Logo-Petrol, Linie oben an der Hero-Box */
	--wk-petrol-knopf: #207b7a;  /* Knopf „Anfrage“ (weiße Schrift, Kontrast 5,2:1) */
	--wk-petrol-dunkel: #185e5d; /* Hover */
	--wk-text: #1b2b2a;          /* Menütext */
	--wk-topbar-bg: #f5faf8;
	--wk-topbar-text: #395452;
	--wk-topbar-icon: #596765;
	--wk-sprache-aktiv-bg: #ddedea;
	--wk-sprache-aktiv-text: #29534c;
	--wk-linie: #e9eded;
	--wk-topbar-hoehe: 43px;
	--wk-header-hoehe: 108px;
	--wk-schrift: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif; /* lokal aus fonts/lexend/, von header.php geladen */
}

/* ---------- Gemeinsame Inhaltsbreite (laut Entwurf 1248 px) ---------- */
.wk-topbar > .container,
#sp-header.wk-header > .container {
	max-width: calc(var(--wk-inhalt) + var(--bs-gutter-x, 1.5rem));
}

/* ---------- Topbar ---------- */
#sp-top-bar.wk-topbar {
	background: var(--wk-topbar-bg);
	color: var(--wk-topbar-text);
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	font-family: var(--wk-schrift);
}

.wk-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--wk-topbar-hoehe);
}

.wk-topbar__links,
.wk-topbar__rechts {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.wk-topbar p { margin: 0; }

#sp-top-bar.wk-topbar a {
	color: var(--wk-topbar-text);
	text-decoration: none;
}

.wk-topbar a:hover,
#sp-top-bar.wk-topbar a:hover { color: var(--wk-petrol-knopf); text-decoration: underline; text-underline-offset: .2em; }

/* Kontaktlinks (Custom-Modul in „wk-topbar-links“) */
.wk-kontakt {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wk-kontakt a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem 0;
}

.wk-kontakt a::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background-color: var(--wk-topbar-icon);
	-webkit-mask: var(--wk-icon) center / contain no-repeat;
	mask: var(--wk-icon) center / contain no-repeat;
}

.wk-kontakt .wk-mail {
	--wk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.wk-kontakt .wk-tel {
	--wk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

/* Sprachumschalter (mod_languages in „wk-topbar-rechts“, Anzeige: volle Namen, ohne Flaggen) */
.wk-topbar .mod-languages {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.wk-topbar .mod-languages::before {
	content: "";
	width: 13px;
	height: 13px;
	flex: none;
	background-color: var(--wk-topbar-icon);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wk-topbar .mod-languages ul {
	display: flex;
	align-items: center;
	gap: .2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wk-topbar .mod-languages li { margin: 0; }

/* Helix-Vorgabe (grauer Hintergrund mit !important) für die aktive Sprache neutralisieren */
#sp-top-bar.wk-topbar div.mod-languages ul li.lang-active {
	background-color: transparent !important;
	padding: 0;
}

#sp-top-bar.wk-topbar .mod-languages a {
	display: block;
	padding: .5rem .45rem;
	border-radius: 3px;
	color: var(--wk-topbar-text);
}

#sp-top-bar.wk-topbar .mod-languages .lang-active a,
#sp-top-bar.wk-topbar .mod-languages a[aria-current="true"] {
	background: var(--wk-sprache-aktiv-bg);
	color: var(--wk-sprache-aktiv-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

/* ---------- Kopfleiste ---------- */
#sp-header.wk-header {
	height: var(--wk-header-hoehe);
	background: #fff;
	box-shadow: none;
	border-bottom: 1px solid var(--wk-linie);
	font-family: var(--wk-schrift);
}

#sp-header.wk-header .container-inner,
#sp-header.wk-header .row { height: 100%; }

#sp-header.wk-header .logo {
	height: var(--wk-header-hoehe);
}

#sp-header.wk-header .logo img {
	max-height: 63px; /* sichtbare Logohöhe laut Entwurf (zugeschnittenes Logo ohne Rand) */
	width: auto;
}

/* Hauptmenü */
#sp-header.wk-header .sp-megamenu-parent > li > a,
#sp-header.wk-header .sp-megamenu-parent > li > span {
	line-height: var(--wk-header-hoehe);
	padding: 0 21px;
	font-family: var(--wk-schrift); /* überschreibt die Helix-Typografie „Menu Font“ */
	font-size: 19.2px;
	font-weight: 700;
	color: var(--wk-text);
}

#sp-header.wk-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
	font-family: var(--wk-schrift);
	font-size: 16px;
}

#sp-header.wk-header .sp-megamenu-parent > li:hover > a {
	color: var(--wk-petrol-knopf);
}

/* Aktiver Menüpunkt als Knopf: Hintergrund Petrol, Schrift weiß */
#sp-header.wk-header .sp-megamenu-parent > li.active > a,
#sp-header.wk-header .sp-megamenu-parent > li > a.wk-menu-anfrage {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 1;
	height: 53px;
	border-radius: 7px;
	background: var(--wk-petrol-knopf);
	color: #fff;
	font-weight: 700;
	transition: background-color .2s ease, color .2s ease;
}

/* Optional: Link-Klasse wk-menu-anfrage macht einen Menüpunkt dauerhaft zum Knopf */
#sp-header.wk-header .sp-megamenu-parent > li > a.wk-menu-anfrage {
	margin-left: 16px;
	padding: 0 28px;
}

#sp-header.wk-header .sp-megamenu-parent > li.active:hover > a,
#sp-header.wk-header .sp-megamenu-parent > li > a.wk-menu-anfrage:hover,
#sp-header.wk-header .sp-megamenu-parent > li.active > a.wk-menu-anfrage {
	background: var(--wk-petrol-dunkel);
	color: #fff;
}

/* Fokus sichtbar (WCAG 2.4.7) */
.wk-topbar a:focus-visible,
#sp-header.wk-header a:focus-visible {
	outline: 2px solid var(--wk-petrol-knopf);
	outline-offset: 3px;
	border-radius: 3px;
}

#sp-header.wk-header .sp-megamenu-parent > li.active > a:focus-visible,
#sp-header.wk-header .sp-megamenu-parent > li > a.wk-menu-anfrage:focus-visible {
	outline-color: var(--wk-text);
}

/* Klebender Kopf */
#sp-header.wk-header.header-sticky {
	box-shadow: 0 4px 18px -10px rgba(27, 43, 42, .35);
}

/* Burger (Offcanvas) */
#sp-header.wk-header .wk-burger .burger-icon > span {
	background-color: var(--wk-text);
}

/* ---------- Zwischenbreite (kleine Laptops) ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
	#sp-header.wk-header .sp-megamenu-parent > li > a { padding: 0 14px; font-size: 17px; }
	#sp-header.wk-header .sp-megamenu-parent > li > a.wk-menu-anfrage { padding: 0 22px; height: 48px; margin-left: 8px; }
	#sp-header.wk-header .sp-megamenu-parent > li.active > a { height: 48px; }
}

/* ---------- Tablet & Handy ---------- */
@media (max-width: 991.98px) {
	:root { --wk-header-hoehe: 76px; }

	#sp-header.wk-header .logo img { max-height: 50px; }
}

@media (max-width: 575.98px) {
	#sp-top-bar.wk-topbar { font-size: 12px; }

	.wk-topbar__inner { gap: .5rem; }

	.wk-kontakt { gap: .8rem; }

	.wk-topbar .mod-languages a { padding: .45rem .35rem; }
}
