/* ==========================================================================
   WNA Vision 2 — Basis (Sprint 0B)
   Design-Tokens, Reset, Typografie, Header/Navigation, Buttons, Footer,
   generische Seiten, Formular. Story-Sektionen: story.css.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */
:root {
	/* Graphit-Skala (sehr dunkel → hell) */
	--wna2-g-950: #0e0d0c;
	--wna2-g-900: #151412;
	--wna2-g-800: #1f1d1a;
	--wna2-g-700: #2b2825;
	--wna2-g-600: #46423d;
	--wna2-g-500: #6b665f;   /* Sekundärtext auf hell (≥ 5:1 auf --wna2-w-50) */
	--wna2-g-400: #9a938b;   /* Sekundärtext auf dunkel (≥ 6:1 auf --wna2-g-900) */
	--wna2-g-300: #bfb8b0;
	--wna2-g-200: #dcd6ce;
	--wna2-g-100: #ede8e1;
	--wna2-w-50:  #f8f5f0;   /* warmes Weiß */

	/* WNA-Orange: Markenton + helle "Neon"-Variante für die Linie auf Graphit */
	--wna2-o-500: #ff914d;   /* Logo-Orange */
	--wna2-o-400: #ffa35f;   /* Linie/Glow auf dunkel */
	--wna2-o-600: #f07a2b;   /* Hover auf Buttons */
	--wna2-o-glow: rgba(255, 145, 77, 0.35);

	/* Semantik */
	--wna2-bg: var(--wna2-w-50);
	--wna2-fg: var(--wna2-g-900);
	--wna2-fg-2: var(--wna2-g-500);
	--wna2-line: var(--wna2-g-200);

	--wna2-font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wna2-max: 1280px;
	--wna2-max-text: 760px;
	--wna2-gutter: clamp(16px, 4vw, 56px);
	--wna2-header-h: 72px;
	--wna2-radius: 4px;
	--wna2-ease: cubic-bezier(0.65, 0, 0.2, 1);
	--wna2-dur: 0.6s;
}

/* --- Schrift ----------------------------------------------------------- */
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans/PublicSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans/PublicSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans/PublicSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans/PublicSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* --- Reset / Basis ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--wna2-font);
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--wna2-fg);
	background: var(--wna2-bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p, h1, h2, h3, ul, ol { margin: 0; }
/* 0D.1 Responsive: lange Einzelwörter (z. B. „Datenschutzerklärung“) dürfen auf 320 px nicht aus dem Container laufen. */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 479px) { h1, h2, h3 { hyphens: auto; } }
ul, ol { padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--wna2-o-500); outline-offset: 3px; border-radius: 2px; }

.wna2-skip {
	position: absolute; left: 12px; top: -100px; z-index: 200;
	padding: 10px 14px; background: var(--wna2-o-500); color: var(--wna2-g-950); font-weight: 600; text-decoration: none;
}
.wna2-skip:focus { top: 12px; }

.wna2-container { width: min(100% - 2 * var(--wna2-gutter), var(--wna2-max)); margin-inline: auto; }
.wna2-container--text { max-width: var(--wna2-max-text); }
.wna2-sentinel { display: block; height: 1px; }

/* --- Typografie -------------------------------------------------------- */
.wna2-kicker {
	font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wna2-fg-2);
}
.wna2-kicker--orange { color: var(--wna2-o-500); }
.wna2-h2 {
	font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700;
	margin-top: 0.6rem; text-wrap: balance;
}
.wna2-lead { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.5; max-width: 40ch; }

/* --- Buttons ----------------------------------------------------------- */
.wna2-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 48px; padding: 0.7em 1.35em; border: 1.5px solid transparent; border-radius: var(--wna2-radius);
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.wna2-btn--gross { min-height: 54px; padding: 0.85em 1.6em; font-size: 1.0625rem; }
.wna2-btn--primary { background: var(--wna2-o-500); color: var(--wna2-g-950); }
.wna2-btn--primary:hover { background: var(--wna2-o-600); }
.wna2-btn--ghost { border-color: var(--wna2-g-500); color: var(--wna2-w-50); background: transparent; }
.wna2-btn--ghost:hover { border-color: var(--wna2-w-50); }
.wna2-btn--light { background: var(--wna2-w-50); color: var(--wna2-g-950); }
.wna2-btn--light:hover { background: var(--wna2-g-100); }
.wna2-btn--dark { background: var(--wna2-g-900); color: var(--wna2-w-50); }
.wna2-btn--dark:hover { background: var(--wna2-g-700); }
.wna2-btn:active { transform: translateY(1px); }

/* --- Header / Navigation ---------------------------------------------- */
.wna2-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--wna2-header-h);
	color: var(--wna2-w-50);
	background: rgba(21, 20, 18, 0);
	border-bottom: 1px solid transparent;
	transition: background-color 0.35s, border-color 0.35s;
}
.wna2-light-top .wna2-header, .wna2-header.is-scrolled {
	background: rgba(21, 20, 18, 0.94);
	border-bottom-color: var(--wna2-g-700);
}
.wna2-header__inner {
	height: 100%; width: min(100% - 2 * var(--wna2-gutter), var(--wna2-max)); margin-inline: auto;
	display: flex; align-items: center; gap: 24px;
}
.wna2-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; pointer-events: none; }
.wna2-progress__bar { display: block; height: 100%; background: var(--wna2-o-400); transform: scaleX(0); transform-origin: 0 50%; }

.wna2-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.wna2-brand img { width: 40px; height: 40px; }
.wna2-brand__wort { font-size: 1.05rem; letter-spacing: 0.02em; font-weight: 500; }
.wna2-brand__wort strong { font-weight: 700; }

.wna2-nav__list { list-style: none; display: flex; gap: 4px; }
.wna2-nav__item a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
	font-weight: 500; text-decoration: none; color: var(--wna2-g-200); border-radius: var(--wna2-radius);
	position: relative;
}
.wna2-nav__item a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
	background: var(--wna2-o-400); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.25s var(--wna2-ease);
}
.wna2-nav__item a:hover, .wna2-nav__item a[aria-current="page"] { color: var(--wna2-w-50); }
.wna2-nav__item a:hover::after, .wna2-nav__item a[aria-current="page"]::after { transform: scaleX(1); }
.wna2-nav--desktop, .wna2-header__cta { display: none; }

/* Mobile Navigation: <details> als JS-freie Basis */
.wna2-mobile { position: relative; }
.wna2-mobile__toggle {
	list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px;
	padding: 0 6px; cursor: pointer; font-weight: 600; border-radius: var(--wna2-radius); user-select: none;
}
.wna2-mobile__toggle::-webkit-details-marker { display: none; }
.wna2-mobile__icon { display: inline-grid; gap: 5px; width: 22px; }
.wna2-mobile__icon i { display: block; height: 2px; background: currentColor; transition: transform 0.3s var(--wna2-ease), opacity 0.2s; }
.wna2-mobile[open] .wna2-mobile__icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wna2-mobile[open] .wna2-mobile__icon i:nth-child(2) { opacity: 0; }
.wna2-mobile[open] .wna2-mobile__icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.wna2-mobile__panel {
	position: fixed; inset: var(--wna2-header-h) 0 0 0; z-index: 90;
	background: var(--wna2-g-900); color: var(--wna2-w-50);
	padding: 24px var(--wna2-gutter) 32px; overflow-y: auto;
	display: flex; flex-direction: column; gap: 20px;
	border-top: 1px solid var(--wna2-g-700);
}
.wna2-mobile[open] ~ * { visibility: hidden; }
body.wna2-nav-open { overflow: hidden; }
.wna2-mobile__kicker { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wna2-o-400); font-weight: 600; }
.wna2-nav__list--mobile { flex-direction: column; gap: 0; border-top: 1px solid var(--wna2-g-700); }
.wna2-nav__list--mobile .wna2-nav__item a {
	display: flex; min-height: 60px; padding: 0 4px; font-size: 1.5rem; font-weight: 600; color: var(--wna2-w-50);
	border-bottom: 1px solid var(--wna2-g-700); border-radius: 0;
}
.wna2-nav__list--mobile .wna2-nav__item a::after { display: none; }
.wna2-mobile__cta { align-self: flex-start; }
.wna2-mobile__meta { color: var(--wna2-g-400); font-size: 0.9375rem; margin-top: auto; }

@media (min-width: 1024px) {
	.wna2-nav--desktop { display: block; }
	.wna2-header__cta { display: inline-flex; min-height: 44px; }
	.wna2-mobile { display: none; }
}

/* --- Main / generische Seiten ------------------------------------------ */
.wna2-main { padding-top: var(--wna2-header-h); }
.wna2-main:focus { outline: none; } /* 0D.4: programmatischer Fokus (Skip-Link), kein Rahmen um den ganzen Inhalt */
/* Startseite: der dunkle Hero beginnt hinter dem transparenten Header. */
.wna2-dark-top .wna2-main { padding-top: 0; }
.wna2-seite__kopf { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.wna2-seite__titel { font-size: clamp(2rem, 1.2rem + 3.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; margin-top: 0.5rem; }
.wna2-prose { padding-bottom: clamp(48px, 8vw, 112px); }
.wna2-prose > * + * { margin-top: 1.1em; }
.wna2-prose h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.2; margin-top: 2em; letter-spacing: -0.01em; }
.wna2-prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.wna2-prose ul, .wna2-prose ol { padding-left: 1.3em; }
.wna2-prose li + li { margin-top: 0.35em; }
.wna2-prose img { border-radius: var(--wna2-radius); }
.wna2-prose a:not(.wna2-btn) { color: var(--wna2-g-900); } /* 0D.1: Schaltflächen in Prosa behalten ihre Textfarbe (404-Button war dunkel auf dunkel) */
.wna2-prose figure { margin: 1.5em 0; }

/* --- Formular (Kontakt) ------------------------------------------------ */
.wna2-form { padding-bottom: clamp(48px, 8vw, 112px); }
.wna2-form__fehler { padding: 12px 16px; border-left: 3px solid #a23b2e; background: #fff; color: #7a2a20; margin: 0 0 24px; }
.wna2-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wna2-form__gruppe { border: 0; padding: 0; margin: 0 0 24px; }
.wna2-form__gruppe legend { font-weight: 600; margin-bottom: 10px; }
.wna2-form__radios { display: flex; flex-wrap: wrap; gap: 10px; }
.wna2-form__radio { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--wna2-g-300); border-radius: var(--wna2-radius); cursor: pointer; }
.wna2-form__radio:has(:checked) { border-color: var(--wna2-g-900); background: #fff; }
.wna2-form__radio input { accent-color: var(--wna2-o-600); width: 18px; height: 18px; margin: 0; }
.wna2-form__grid { display: grid; gap: 18px; }
.wna2-form__feld label { display: block; font-weight: 600; margin-bottom: 6px; }
.wna2-form__feld input, .wna2-form__feld textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--wna2-g-300); border-radius: var(--wna2-radius);
	background: #fff; font: inherit; color: var(--wna2-fg);
}
.wna2-form__feld input:focus, .wna2-form__feld textarea:focus { border-color: var(--wna2-g-900); outline: 3px solid var(--wna2-o-glow); outline-offset: 0; }
.wna2-form__hinweis { font-size: 0.9375rem; color: var(--wna2-fg-2); margin: 18px 0 20px; }
@media (min-width: 640px) {
	.wna2-form__grid { grid-template-columns: 1fr 1fr; }
	.wna2-form__feld--voll { grid-column: 1 / -1; }
}

/* --- Footer (Sprint 0C.4) ---------------------------------------------- */
/* Ruhiger Abschluss: eine Graphit-Stufe heller als der Conversion-Abschluss,
   feine Linien, wenige Linkgruppen, Orange nur als Signal. */
.wna2-footer {
	--f-einzug: clamp(20px, 3vw, 40px);
	--f-links: max(var(--wna2-gutter), (100% - var(--wna2-max)) / 2);
	--f-oben: clamp(64px, 8vw, 112px);
	position: relative; background: var(--wna2-g-900); color: var(--wna2-g-300);
	padding: var(--f-oben) 0 32px; border-top: 1px solid var(--wna2-g-800);
}
/* die WNA-Linie endet an der Marke */
.wna2-footer__faden {
	position: absolute; top: 0; left: var(--f-links); width: 2px; height: calc(var(--f-oben) + 22px);
	background: linear-gradient(180deg, rgba(255, 145, 77, 0), var(--wna2-o-500));
}
.wna2-footer__faden::after {
	content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px;
	border-radius: 50%; background: var(--wna2-o-500); box-shadow: 0 0 0 4px rgba(255, 145, 77, 0.16);
}
.wna2-footer__raster { display: grid; gap: 48px; }
.wna2-footer__marke-block { padding-left: var(--f-einzug); }
.wna2-footer__marke { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--wna2-w-50); font-size: 1.125rem; letter-spacing: 0.02em; text-decoration: none; }
.wna2-footer__marke img { width: 40px; height: 40px; }
.wna2-footer__marke strong { font-weight: 700; }
.wna2-footer__claim { margin-top: 20px; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--wna2-w-50); }
.wna2-footer__satz { margin-top: 10px; max-width: 40ch; font-size: 0.9375rem; line-height: 1.55; color: var(--wna2-g-400); }
.wna2-footer__kontakt { display: grid; gap: 0; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--wna2-g-800); font-style: normal; font-size: 0.9375rem; max-width: 26rem; }
.wna2-footer__kontakt a, .wna2-footer__kontakt p { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 11px 0; /* 0D.1 FREEZE EXCEPTION – Responsive: Touch-Ziel */ color: var(--wna2-g-200); text-decoration: none; }
.wna2-footer__kontakt span { flex: 0 0 5.5rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--wna2-g-400); } /* 0D.4 FREEZE EXCEPTION – Accessibility: Kontrast 3,2 → 6,4:1 */
.wna2-footer__kontakt a:hover { color: var(--wna2-w-50); text-decoration: underline; text-decoration-color: var(--wna2-o-500); }
.wna2-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 32px 24px; padding-left: var(--f-einzug); } /* 0D.1 FREEZE EXCEPTION – Responsive: eine Spalte unter ~390 px, sonst lief „Leistungswelten“ aus */
.wna2-footer__titel { margin-bottom: 8px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--wna2-g-400); } /* 0D.4 FREEZE EXCEPTION – Accessibility: Kontrast */
.wna2-footer__gruppe ul { list-style: none; }
.wna2-footer__gruppe a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wna2-g-200); text-decoration: none; }
.wna2-footer__gruppe a:hover { color: var(--wna2-w-50); text-decoration: underline; text-decoration-color: var(--wna2-o-500); text-underline-offset: 0.3em; }
.wna2-footer__gruppe a[aria-current="page"] { color: var(--wna2-w-50); text-decoration: underline; text-decoration-color: var(--wna2-o-500); text-underline-offset: 0.3em; }
.wna2-footer__gruppe--recht { grid-column: 1 / -1; }
.wna2-footer__gruppe--recht ul { display: flex; flex-wrap: wrap; column-gap: 24px; }
.wna2-footer__fuss { margin-top: clamp(48px, 6vw, 80px); padding: 22px 0 0 var(--f-einzug); border-top: 1px solid var(--wna2-g-800); font-size: 0.8125rem; color: var(--wna2-g-400); } /* 0D.4 FREEZE EXCEPTION – Accessibility: Kontrast */
@media (min-width: 1024px) {
	.wna2-footer__raster { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
	.wna2-footer__marke-block { grid-column: 1 / span 5; }
	.wna2-footer__nav { grid-column: 7 / span 6; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 58px 0 0; }
	.wna2-footer__gruppe--recht { grid-column: auto; }
	.wna2-footer__gruppe--recht ul { display: block; }
	.wna2-footer__gruppe a { min-height: 40px; }
}

/* --- Reduced Motion (global) ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* --- Referenzen (Übergangs-Layout bis Case-Studies 2.0) ---------------- */
.wna2-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--wna2-fg-2); }
.wna2-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--wna2-o-600); }
.wna2-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wna2-fg-2); } /* 0D.1: Touch-Ziel */
.wna2-breadcrumb + .wna2-kicker { margin-top: 18px; }
.wna2-referenzen { list-style: none; display: grid; gap: 28px; }
.wna2-referenz { display: grid; gap: 14px; }
.wna2-referenz__bild img { border-radius: var(--wna2-radius); width: 100%; }
.wna2-referenz__titel { font-size: 1.35rem; margin: 6px 0 4px; }
.wna2-referenz__titel a { text-decoration: none; }
.wna2-referenz__titel a:hover { text-decoration: underline; }
.wna2-referenz__meta { color: var(--wna2-fg-2); font-size: 0.9375rem; margin-top: 6px; }
.wna2-galerie { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 0; }
.wna2-galerie img { border-radius: var(--wna2-radius); width: 100%; }
@media (min-width: 640px) { .wna2-referenz { grid-template-columns: 220px 1fr; align-items: start; } }
