/* =========================================================================
   DiNable — Stylesheet
   Basiert auf DiNable_Styleguide.docx v1.0: ein einziger Akzent (Orange),
   alles andere schwarz/anthrazit/grau. Reduktion, Weißraum, keine
   Farbverläufe, Muster oder Zierlinien. Farbgewichtung laut Styleguide
   ca. 70% Weiß/Neutral, 20% Schwarz/Anthrazit, 10% Orange.
   Alle Text/Grund-Paare sind auf WCAG 2.2 AA geprüft (siehe Kommentare).
   CSP: keine Inline-Styles, keine externen Ressourcen. Fonts selbst gehostet.
   ========================================================================= */

/* ---------- Hausschrift: Poppins, selbst gehostet (siehe fonts/README.txt) */
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Flächen */
  --papier:       #FFFFFF;
  --papier-tief:  #EDEDED;   /* Flächengrau lt. Styleguide — Karten, Info-Boxen, Zebra-Flächen */
  --weiss:        #FFFFFF;

  /* Text (exakt lt. Styleguide Abschnitt 03) */
  --tinte:        #1A1A1A;   /* Schwarz — Titel & Überschriften. ~16.6:1 auf Weiß */
  --tinte-weich:  #333333;   /* Anthrazit — Fließtext. ~12.6:1 auf Weiß */
  --graphit:      #767676;   /* Grau — Sekundärtext, Beschriftungen, Seitenzahlen. ~4.55:1 auf Weiß (AA für Standardtext) */
  --linie:        #D3D3D3;   /* Hellgrau — nur Linien, Trenner, Tabellenraster, NIE Text */
  /* Feldrahmen — eigener Token (nicht --linie). >=3:1 auf Weiss und --papier-tief (WCAG 1.4.11). */
  --feld-linie:   #767676;   /* = --graphit; ~4.5:1 auf Weiss, ~3.9:1 auf --papier-tief */

  /* Marke — Orange ist die EINZIGE Akzentfarbe. Keine weiteren Töne mischen. */
  --marke:        #FF5800;   /* Primär-Orange — Akzente, Zahlen, Nummernkreise, Statement-Flächen */
  --marke-hell:   #FF7500;   /* Orange hell — Zweitakzent, sparsam; auf --nacht AA-sicher (~6.5:1) */
  /* Reines Orange als GROSSER Text (Punkt-Motiv, Kennzahlen) erreicht auf
     --papier-tief nur 2.7:1 — unter der 3:1-Grossformat-Schwelle. Eine
     minimal abgedunkelte, rechnerische Variante (kein neuer Markenton,
     nur fuer Textlesbarkeit) sichert >=3.3:1 auf Weiss UND --papier-tief. */
  --marke-text:   color-mix(in srgb, var(--marke) 88%, black);
  /* Orange liegt bei ca. 3.1:1 auf Weiß/Schwarz — WCAG-Grossformat, nicht Fliesstext.
     Deshalb NIE als Farbe fuer normalen Text oder kleine Labels einsetzen (das schreibt
     der Styleguide selbst so vor: "nur als Akzent oder kurze Statements mit weisser
     Schrift"). Verwendung ausschliesslich: (a) nicht-textliche Elemente (Punkt, Linie,
     Kreisflaeche), (b) grosse/fette Kennzahlen, (c) Buttons/Statements mit >=19px fettem
     Text, wo die 3:1-Grossformat-Schwelle greift. Links tragen daher schwarzen Text mit
     oranger Unterstreichung statt oranger Schrift. */

  /* Prüfstatus — funktional, nicht dekorativ. Rot/Grün sind universelle Statuskonventionen,
     bewusst weit von Orange entfernt (kein Verwechslungsrisiko mit der Marke). "Nicht
     prüfbar" nutzt bewusst das neutrale Marken-Grau statt einer erfundenen dritten Farbe. */
  --verstoss:     #B3261E;   /* ~6.5:1 auf Weiß */
  --konform:      #1E7A42;   /* ~5.4:1 auf Weiß */
  --unbekannt:    var(--tinte-weich);  /* Anthrazit statt Grau: --graphit faellt auf --papier-tief unter AA */

  /* Dunkler Abschnitt — reine Markenfarbe (Schwarz), keine erfundene Zusatzfarbe */
  --nacht:        #1A1A1A;
  --nacht-weich:  #EDEDED;
  --nacht-linie:  color-mix(in srgb, #FFFFFF 18%, transparent);

  /* Fokusring — Standard dunkel auf hellem Grund; auf --nacht-Flaechen wird
     die Variable weiter unten auf Weiss gesetzt (WCAG 2.4.7, 1.4.11). */
  --fokus:        var(--tinte);

  /* Typografie — ausschließlich Poppins in den drei lt. Styleguide definierten Schnitten */
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --max:   80rem;
  --rand:  clamp(1.25rem, 5vw, 4.5rem);
  --s3: .75rem;  --s4: 1rem;   --s5: 1.25rem; --s6: 1.5rem;
  --s8: 2rem;    --s10: 2.5rem; --s12: 3rem;  --s16: 4rem;
  --s20: 5rem;   --s24: 6rem;

  /* Radien — "abgerundet" lt. Styleguide (Karten), moderat statt spielerisch */
  --r1: 8px;
  --r2: 16px;
  --r-kreis: 999px;

  /* Schatten — dezent, keine Verläufe/Schmuckelemente lt. Styleguide */
  --schatten-karte: 0 1px 2px rgba(26,26,26,.05), 0 8px 24px rgba(26,26,26,.08);

  /* Bewegung */
  --dauer-1: 120ms;
  --dauer-2: 200ms;
  --dauer-3: 420ms;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky .kopf: gemessen 73px bei 1280/375. Puffer fuer Fokusring (outline-offset). */
  scroll-padding-top: 5rem; /* 80px >= Header */
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte-weich);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Barrierefreiheit: Grundausstattung ---------- */
:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Dunkelflaechen: --tinte und --nacht sind beide #1A1A1A (Kontrast 1:1). */
.fuss, .block--nacht, .pilot__seite { --fokus: var(--weiss); }

.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--tinte); color: var(--weiss);
  padding: 0.75rem 1.25rem; text-decoration: none;
}
.sprung:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hash-Ziel: kurzer Impuls, damit der Sprung absichtlich wirkt */
@keyframes ziel-impuls {
  0% { box-shadow: inset 0 0 0 0 transparent; }
  25% { box-shadow: inset 0 0 0 3px var(--marke); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}
section[id]:target {
  animation: ziel-impuls 1.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  section[id]:target { animation: none; }
}

/* ---------- Layout ---------- */
.bahn {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.block { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.block--sand  { background: var(--papier-tief); }
.block--nacht { background: var(--nacht); color: var(--nacht-weich); }
.block--eng   { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Typografie ----------
   Lt. Styleguide 04: Light fuer Titel/Ueberschriften, Regular fuer Fliesstext,
   Bold fuer Hervorhebungen/Labels/Kennzahlen. */
h1, h2 {
  margin: 0; line-height: 1.08; letter-spacing: -0.01em; font-weight: 300;
  color: var(--tinte); text-wrap: balance; hyphens: manual; overflow-wrap: break-word;
}
h3 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--tinte); }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }

/* Silbentrennung nur dort automatisch, wo eine Spalte fuer lange deutsche
   Komposita zu schmal werden kann (R6-Audit-Fund): sehr schmale Viewports
   und der zweispaltige Hero, dessen Textspalte schmaler ist als die volle
   .bahn-Breite. */
@media (max-width: 420px) { h1 { hyphens: auto; } }
@media (min-width: 900px) { .hero h1 { hyphens: auto; } }

p  { margin: 0 0 1.05em; max-width: 62ch; }
.block--nacht h1, .block--nacht h2, .block--nacht h3 { color: var(--weiss); }

.fuehrung { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--tinte-weich); }
.block--nacht .fuehrung { color: var(--nacht-weich); }

.kicker {
  display: block; margin: 0 0 0.75rem;
  font-size: 0.85rem; color: var(--graphit); font-weight: 400;
}
.block--nacht .kicker { color: var(--linie); }
/* --graphit (#767676) erreicht 4.5:1 nur auf reinem Weiss, nicht mehr auf
   der etwas dunkleren Kartenfläche --papier-tief (#EDEDED, ~3.9:1) — dort
   auf Anthrazit wechseln statt den Markenton selbst zu veraendern. */
.block--sand .kicker { color: var(--tinte-weich); }

/* ---------- Signatur: "Titel mit orangem Punkt" (Styleguide 05) ----------
   Das zentrale Wiedererkennungsmotiv: Ueberschrift, unterstrichen, direkt
   gefolgt von einem orangen Punkt. Der Punkt gehoert zur Ueberschrift, nicht
   zum Satz — daher eigenes <span>, nicht Teil des Fliesstexts.
   Die Linie ist ein handgezeichneter Bleistift-Scribble statt einer
   glatten CSS-Linie: zwei leicht versetzte, unregelmaessige Wellen als
   gekacheltes SVG-Hintergrundbild auf einem Inline-Span, das jeder
   Zeile automatisch folgt (auch bei mehrzeiligen Ueberschriften). */
/* line-height + padding-bottom am Block: Scribble braucht Platz zwischen Zeilen
   und unter der letzten Zeile (Inline-padding vergrößert die Box nicht). */
.titel {
  margin: 0 0 0.6rem;
  line-height: 1.45;
  padding-bottom: calc(0.24em + 2mm);
}
.titel .titel-text {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12'%3E%3Cpath d='M0,7 C15,4 30,10 45,6 C60,3 75,9 90,7' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 calc(100% - 2mm);
  background-size: 1.8em 0.24em;
  padding-bottom: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* T-033: Ausgangslage-Titel — erzwungener Umbruch + etwas mehr Zeilenabstand
   (globales .titel line-height 1.45 von T-032 bleibt). */
.titel--zeile-tiefer {
  line-height: 1.7;
}
.titel .punkt { color: var(--marke-text); }
.block--nacht .titel-text {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12'%3E%3Cpath d='M0,7 C15,4 30,10 45,6 C60,3 75,9 90,7' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Wortmarke (SVG, selbst gehostet) ---------- */
.wortmarke {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  vertical-align: middle;
  overflow: visible;
}
.wortmarke__img {
  display: block;
  /* 2.75rem: i-Punkt und Endball bleiben lesbar; Header min-height 4.5rem */
  height: 2.75rem;
  width: auto;
  overflow: visible;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__zeile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem; flex-wrap: wrap;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.9rem); }
.nav a:not(.knopf) {
  font-size: 0.95rem; text-decoration: none; color: var(--tinte-weich);
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
}
.nav a:not(.knopf):hover { color: var(--tinte); border-bottom-color: var(--marke); }

/* Mobile-Menü-Schalter — nur mit JS sinnvoll; ohne JS bleibt die Nav sichtbar */
.nav__schalter {
  display: none; align-items: center; gap: 0.5rem; order: 2;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  background: transparent; border: 1.5px solid var(--tinte);
  border-radius: var(--r1); padding: 0.45rem 0.8rem; cursor: pointer; color: var(--tinte);
}
.js .nav__schalter { display: inline-flex; }
.nav__balken { display: inline-block; width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.nav__balken::before, .nav__balken::after {
  content: ""; position: absolute; left: 0; width: 1.1rem; height: 2px; background: currentColor;
}
.nav__balken::before { top: -0.32rem; } .nav__balken::after { top: 0.32rem; }
.nav a[aria-current="page"]:not(.knopf) { color: var(--tinte); border-bottom-color: var(--marke); }

@media (max-width: 1023.98px) {
  .nav {
    order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .js .nav {
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height var(--dauer-3) var(--ease), visibility 0s linear var(--dauer-3);
  }
  .js .nav.offen { max-height: 32rem; visibility: visible; transition: max-height var(--dauer-3) var(--ease); }
  .nav a:not(.knopf) { padding: 0.9rem 0; border-bottom: 1px solid var(--linie); }
  .nav .knopf { margin-top: 0.9rem; text-align: center; }
}
@media (min-width: 1024px) { .js .nav__schalter { display: none; } }

/* ---------- Schaltflächen ----------
   Bold-Text ab ~19px, damit weisser Text auf Orange (~3.1:1) die WCAG-
   Grossformat-Schwelle (3:1 bei fett+>=18.66px) sicher erreicht. */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1;
  padding: 0.7rem 1.5rem; border: 1.5px solid var(--tinte);
  border-radius: var(--r1); text-decoration: none; cursor: pointer;
  transition: transform var(--dauer-1) var(--ease), background-color var(--dauer-2) var(--ease), color var(--dauer-2) var(--ease);
}
.knopf:hover { text-decoration: none; transform: translateY(-1px); }
.knopf--voll   { background: var(--marke); border-color: var(--marke); color: var(--weiss); }
.knopf--voll:hover {
  background: color-mix(in srgb, var(--marke) 84%, black);
  border-color: color-mix(in srgb, var(--marke) 84%, black);
}
.knopf--leer   { background: transparent; color: var(--tinte); }
.knopf--leer:hover { background: var(--tinte); color: var(--papier); }
/* Klein: etwas weniger Padding, Schrift trotzdem >=18.66px fett, damit
   Weiß auf --marke (~3.1:1) die WCAG-Grossformat-Schwelle (3:1) erreicht —
   gleiche Markenfarbe wie .knopf--voll, ohne abgedunkeltes color-mix. */
.knopf--klein  { padding: 0.5rem 1rem; font-size: 1.1875rem; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Textlinks: schwarzer Text mit oranger Unterstreichung statt oranger
   Schrift — so bleibt Orange auf jeder Groesse WCAG-sicher (Linie ist
   nicht-textlich, keine 4.5:1-Pflicht), und "Orange traegt die
   Aufmerksamkeit" (Styleguide 01) bleibt trotzdem sichtbar erfuellt. */
.textlink {
  font-size: 0.95rem; font-weight: 700; text-decoration: none; color: var(--tinte);
  border-bottom: 2px solid var(--marke); padding-bottom: 1px;
}
.textlink:hover { border-bottom-width: 3px; }
.block--nacht .textlink { color: var(--weiss); }

.aktionen { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* ---------- Hinweis-Karte ----------
   Graue Karte statt farbiger Balken — Styleguide verbietet "Farbbalken,
   Zierstreifen oder dekorative Linien". */
.notiz {
  padding: 1.1rem 1.25rem; border-radius: var(--r1);
  background: var(--papier-tief); font-size: 0.92rem; color: var(--tinte-weich);
}
.notiz p { margin: 0; max-width: none; }
.notiz strong { color: var(--tinte); }
.block--nacht .notiz { background: color-mix(in srgb, var(--weiss) 8%, transparent); color: var(--nacht-weich); }
.block--nacht .notiz strong { color: var(--weiss); }

/* ---------- Numerierter Kreis (Styleguide 05) ----------
   "Orange Kreise mit weisser Nummer" fuer Auflistungen und Prozessschritte. */
.kreis {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-kreis); flex: none;
  background: var(--marke); color: var(--weiss); font-weight: 700; font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 9vw, 7.5rem); }
.hero__raster { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero__vorspann { margin-top: 1.4rem; }

.hero__spur {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linie);
  font-size: 0.88rem; color: var(--graphit);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
}
.hero__spur-trenn { display: none; }
@media (min-width: 480px) {
  .hero__spur { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
  .hero__spur-trenn { display: inline; }
}

/* Produktkarte im Hero: schlichte weisse Karte, dezenter Schatten statt
   Zeichenblatt-Offset — "keine Schmuckelemente" (Styleguide 05). */
.plankarte {
  margin: 0; background: var(--weiss); border-radius: var(--r2);
  border: 1px solid var(--linie); box-shadow: var(--schatten-karte); overflow: hidden;
}
.plankarte__kopf {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--graphit);
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--linie);
}
.plankarte__status { color: var(--verstoss); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.plankarte__zeichnung { padding: 1.2rem 1.2rem 0.4rem; }
.plan__svg { display: block; width: 100%; height: auto; }
.plan__schraffur { stroke: var(--linie); }
.plan__wand { stroke: var(--tinte); }
.plan__tuer { stroke: var(--tinte); }
.plan__bogen { stroke: var(--graphit); }
.plan__mass--verstoss { stroke: var(--verstoss); }
.plan__mass--konform { stroke: var(--konform); }
.plan__zahl {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.plan__label {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.plan__zahl--verstoss, .plan__label--verstoss { fill: var(--verstoss); }
.plan__zahl--konform, .plan__label--konform { fill: var(--konform); }
.plankarte__fuss {
  padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--linie);
  font-size: 0.85rem; line-height: 1.55; color: var(--graphit);
}
.plankarte__fuss strong { color: var(--tinte); }

@media (prefers-reduced-motion: no-preference) {
  .plan__mass { stroke-dasharray: 260; stroke-dashoffset: 260; animation: zeichnen 1.1s ease-out 0.25s forwards; }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }
}

/* ---------- Statement-Fläche (Styleguide 03) ----------
   Explizit erlaubte Orange-Flächen-Nutzung: "kurze Statements mit weisser
   Schrift". Hervorhebung ueber Schriftschnitt (Light/Bold), nicht Farbe —
   auf Orange gibt es sonst keine zweite AA-sichere Textfarbe. */
.statement { background: var(--marke); color: var(--weiss); padding-block: clamp(3rem, 7vw, 5rem); }
.statement__raster { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .statement__raster { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.statement p {
  margin: 0; max-width: none; font-weight: 300; color: var(--weiss);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.18; letter-spacing: -0.01em;
}
.statement em { font-weight: 700; font-style: normal; }

/* ---------- Split-Überschrift ---------- */
.split { display: grid; gap: var(--s6); grid-template-columns: 1fr; align-items: end; margin-bottom: var(--s10); }
@media (min-width: 760px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: var(--s16); } }
.split > p { margin: 0; color: var(--tinte-weich); }
.block--nacht .split > p { color: var(--nacht-weich); }

/* ---------- Karten-Raster (gleichrangige Inhalte, Styleguide 05) ---------- */
.raster { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin-top: var(--s10); }
@media (min-width: 760px) { .raster--3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .raster--5 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .raster--5 { grid-template-columns: repeat(5,1fr); } }

.posten { background: var(--papier-tief); border-radius: var(--r2); padding: var(--s6); }
.block--nacht .posten { background: color-mix(in srgb, var(--weiss) 6%, transparent); }
/* Kein eigenes, kleineres Mass fuer .posten .kreis: die Kreis-Nummer traegt
   weissen Text auf Orange (~3.1:1) und braucht die WCAG-Grossformat-Schwelle
   (>=18.66px fett), die die Standardgroesse von .kreis erreicht. */
.posten .kreis { margin-bottom: var(--s5); }
.posten h3 { margin: 0 0 var(--s3); }
.posten p  { margin: 0; color: var(--tinte-weich); font-size: 0.96rem; }
.block--nacht .posten p { color: var(--nacht-weich); }

/* ---------- Zustands-Karten (Signatur: drei Zustände) ---------- */
.zustaende { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin-top: var(--s10); }
@media (min-width: 760px) { .zustaende { grid-template-columns: repeat(3,1fr); } }
.zustand { background: var(--papier-tief); border-radius: var(--r2); padding: var(--s6); }
.zustand h3 { margin: 0 0 var(--s3); }
.zustand p  { margin: 0; font-size: 0.95rem; color: var(--tinte-weich); }
.zustand__marke {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.85rem; font-weight: 700;
}
.zustand__marke::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none; }
.zustand--verstoss .zustand__marke { color: var(--verstoss); }
.zustand--verstoss .zustand__marke::before { background: var(--verstoss); }
.zustand--konform  .zustand__marke { color: var(--konform); }
.zustand--konform  .zustand__marke::before { background: var(--konform); }
.zustand--unbekannt .zustand__marke { color: var(--unbekannt); }
.zustand--unbekannt .zustand__marke::before { background: var(--unbekannt); }

/* ---------- Ablauf (Prozessschritte mit Kreis-Nummer) ---------- */
.ablauf { list-style: none; padding: 0; margin: var(--s10) 0 0; }
.ablauf__schritt {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  padding-block: var(--s6); border-top: 1px solid var(--linie);
}
.ablauf__schritt:last-child { border-bottom: 1px solid var(--linie); }
.block--nacht .ablauf__schritt { border-color: var(--nacht-linie); }
.ablauf__schritt h3 { margin: 0 0 0.35rem; }
.ablauf__schritt p  { margin: 0; color: var(--tinte-weich); font-size: 0.96rem; }
.block--nacht .ablauf__schritt p { color: var(--nacht-weich); }

/* ---------- Marktkontext ---------- */
.markt { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-top: var(--s10); }
@media (min-width: 760px) { .markt { grid-template-columns: repeat(3,1fr); } }
.markt__karte { border-top: 2px solid var(--tinte); padding-top: var(--s5); }
.block--nacht .markt__karte { border-top-color: var(--marke-hell); }
.markt__zahl { font-size: clamp(1.8rem,1.3rem + 1.6vw,2.6rem); font-weight: 300; letter-spacing: -0.02em; }
.markt__quelle { font-size: 0.78rem; color: var(--graphit); margin-top: var(--s4); }
.block--nacht .markt__quelle { color: var(--linie); }

/* ---------- Medien-Platzhalter (Demo / Bilder / Eindrücke / Videos) ---------- */
.medien-raster {
  display: grid; gap: var(--s5); grid-template-columns: 1fr; margin-top: var(--s10);
}
@media (min-width: 640px) { .medien-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .medien-raster { grid-template-columns: repeat(4, 1fr); } }
.medien-slot {
  border: 1px dashed var(--linie); border-radius: var(--r2); padding: var(--s6);
  background: var(--papier-tief); min-height: 12rem;
  display: flex; flex-direction: column; gap: var(--s3);
}
.medien-slot h3 { margin: 0; }
.medien-slot > p { margin: 0; font-size: 0.94rem; color: var(--tinte-weich); }
.medien-slot__platz {
  flex: 1; min-height: 5.5rem; margin: var(--s3) 0;
  border-radius: var(--r1);
  background: color-mix(in srgb, var(--tinte) 6%, var(--weiss));
  /* nur visuelle Reserve — kein Text (Kontrast/aria-hidden) */
}

/* ---------- Zitate ---------- */
.stimmen { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-top: var(--s10); }
@media (min-width: 760px) { .stimmen { grid-template-columns: 1fr 1fr; } }
.stimme { margin: 0; background: var(--papier-tief); border-radius: var(--r2); padding: var(--s6); }
.stimme blockquote { margin: 0; font-size: 1.1rem; line-height: 1.42; font-weight: 400; color: var(--tinte); }
.stimme figcaption { margin-top: var(--s4); font-size: 0.85rem; color: var(--tinte-weich); /* auf --papier-tief-Karte, --graphit faellt unter AA */ }

/* ---------- Zielgruppe ---------- */
.zielgruppe { display: grid; gap: var(--s8); grid-template-columns: 1fr; }
@media (min-width: 760px) { .zielgruppe { grid-template-columns: 1fr 1fr; gap: var(--s16); } }
.zielgruppe__spuren { display: grid; gap: var(--s5); }
.zielgruppe__liste {
  list-style: none; margin: var(--s10) 0 0; padding: 0;
  display: grid; gap: 0; grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .zielgruppe__liste { grid-template-columns: 1fr 1fr; column-gap: var(--s10); }
}
.zielgruppe__liste li {
  margin: 0; padding: var(--s5) 0;
  border-top: 1px solid var(--linie);
  font-size: 0.96rem; line-height: 1.5; color: var(--tinte-weich);
}
.zielgruppe__liste li:last-child { border-bottom: 1px solid var(--linie); }
@media (min-width: 760px) {
  /* Zwei Spalten: untere Kante nur in der kürzeren Spalte vermeiden —
     jede Zelle behält nur die obere Linie. */
  .zielgruppe__liste li:last-child { border-bottom: none; }
  .zielgruppe__liste li:nth-last-child(-n+2) { border-bottom: 1px solid var(--linie); }
}
.zielgruppe__liste strong {
  display: block; color: var(--tinte); font-weight: 700;
  margin-bottom: 0.25rem; font-size: 1rem;
}
.zielgruppe__bsp { color: var(--graphit); font-size: 0.9em; }

/* ---------- Team ---------- */
.team-gruppenfoto { margin: var(--s8) auto var(--s10); max-width: 28rem; }
.team-gruppenfoto img {
  display: block; width: 100%; border-radius: var(--r2);
  box-shadow: var(--schatten-karte);
}
.team { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin-top: var(--s10); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3,1fr); } }
.team--zwei {
  justify-items: center; margin-inline: auto; max-width: 40rem;
}
@media (min-width: 760px) {
  .team--zwei {
    grid-template-columns: repeat(2, minmax(0, 17rem));
    justify-content: center; justify-items: stretch; gap: var(--s8);
  }
}
.team--zwei .mensch { width: 100%; max-width: 17rem; text-align: center; }
.team--zwei .mensch__foto { margin-inline: auto; }
.team--zwei .mensch__kontakt { text-align: center; }
.mensch { background: var(--papier-tief); border-radius: var(--r2); padding: var(--s6); }
.mensch__foto {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: center 18%; border-radius: var(--r1); margin-bottom: var(--s5);
}
.mensch__rolle { font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--tinte-weich); /* auf --papier-tief-Karte, --graphit faellt unter AA */ display: block; margin-bottom: 0.6rem; font-weight: 700; }
.mensch h3 { margin: 0 0 0.15rem; }
.mensch__beruf { font-size: 0.86rem; color: var(--tinte-weich); /* auf --papier-tief-Karte, --graphit faellt unter AA */ margin: 0 0 var(--s4); }
.mensch p { font-size: 0.94rem; color: var(--tinte-weich); margin: 0 0 var(--s3); }
.mensch__kontakt { font-size: 0.85rem; }

/* ---------- Zeitstrahl ---------- */
.strahl { list-style: none; margin: var(--s10) 0 0; padding: 0; }
.strahl__punkt { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-bottom: var(--s8); position: relative; }
.strahl__marke { font-size: 0.85rem; font-weight: 700; color: var(--tinte); min-width: 8.5rem; padding-top: 0.15rem; }
.strahl__inhalt { border-left: 2px solid var(--linie); padding-left: 1.4rem; padding-bottom: 0.4rem; position: relative; }
.strahl__inhalt::before {
  content: ""; position: absolute; left: -0.44rem; top: 0.35rem;
  width: 0.75rem; height: 0.75rem; background: var(--papier); border: 2px solid var(--linie); border-radius: 50%;
}
.strahl__punkt--jetzt .strahl__inhalt::before { background: var(--marke); border-color: var(--marke); }
/* Kein oranger Text hier: bei 13.6px braucht Orange 4.5:1 und erreicht auch
   abgedunkelt nur ~4:1. Der Punkt-Marker (nicht-textlich) und das "Aktuell"-
   Tag tragen die Hervorhebung bereits, ohne Kontrastproblem. */
.strahl__inhalt h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.strahl__inhalt p { margin: 0; color: var(--tinte-weich); font-size: 0.95rem; }
.strahl__tag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.04em; background: var(--papier-tief); color: var(--tinte);
  padding: 0.15rem 0.55rem; margin-bottom: 0.4rem; font-weight: 700; border-radius: var(--r1);
}
@media (max-width: 640px) {
  .strahl__punkt { grid-template-columns: 1fr; gap: 0.5rem; }
  .strahl__inhalt { border-left: none; padding-left: 0; }
  .strahl__inhalt::before { display: none; }
}

/* ---------- Pilot-CTA ---------- */
.pilot { display: grid; grid-template-columns: 1fr; background: var(--weiss); border-radius: var(--r2); border: 1px solid var(--linie); box-shadow: var(--schatten-karte); margin-top: var(--s10); overflow: hidden; }
@media (min-width: 760px) { .pilot { grid-template-columns: 1.1fr 0.9fr; } }
.pilot__haupt { padding: clamp(1.75rem, 4vw, 3rem); }
.pilot__haupt h2 { margin-bottom: var(--s5); }
.pilot__seite { background: var(--nacht); color: var(--nacht-weich); padding: clamp(1.75rem, 4vw, 3rem); }
.pilot__label { font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--marke-hell); font-weight: 700; }
.pilot__liste { list-style: none; margin: var(--s5) 0 var(--s8); padding: 0; }
.pilot__liste li { padding: var(--s3) 0; border-bottom: 1px solid var(--nacht-linie); font-size: 0.95rem; }
.pilot__liste li::before { content: "→"; color: var(--marke-hell); margin-right: 0.6rem; font-weight: 700; }
.pilot__invest { font-size: 0.92rem; color: var(--nacht-weich); margin: 0; }
.pilot__invest a { color: var(--weiss); text-decoration-color: var(--marke-hell); }

/* ---------- Formulare ---------- */
.formseite { min-height: 68vh; display: flex; align-items: center; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.formraster { display: grid; gap: clamp(2rem, 6vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .formraster { grid-template-columns: 0.95fr 1.05fr; } }
.formraster__intro h1 { margin-bottom: var(--s5); }
.formraster__intro > p { color: var(--tinte-weich); max-width: 46ch; }

.formular { background: var(--papier-tief); border-radius: var(--r2); padding: clamp(1.5rem, 4vw, 2.5rem); }
.formular__pflicht-hinweis { margin: 0 0 var(--s5); font-size: 0.9rem; color: var(--tinte-weich); }
.pflicht { color: var(--tinte); font-weight: 700; }
.feld { margin-bottom: var(--s5); }
.feld label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--tinte); }
.feld input, .feld textarea, .feld select {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.68rem 0.8rem;
  border: 1.5px solid var(--feld-linie); border-radius: var(--r1);
  background: var(--weiss); color: var(--tinte);
}
.feld textarea { min-height: 7rem; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible { border-color: var(--tinte); }
.feld input[aria-invalid="true"], .feld textarea[aria-invalid="true"] { border-color: var(--verstoss); }
.feld__hilfe { display: block; font-size: 0.82rem; color: var(--tinte-weich); /* auf --papier-tief-Formularkarte, --graphit faellt unter AA */ margin-top: 0.35rem; }
.feld__fehler { display: block; font-size: 0.82rem; color: var(--verstoss); margin-top: 0.35rem; font-weight: 700; }
.feld--check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.feld--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; }
.feld--check label { margin: 0; font-weight: 400; font-size: 0.9rem; }
.feld--check .feld__fehler { grid-column: 1 / -1; }
.formular .knopf { width: 100%; margin-top: 0.4rem; }
.formular__fuss { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--linie); font-size: 0.9rem; color: var(--tinte-weich); }
.formular__fuss p { margin: 0; }
/* Honigtopf gegen Spam — visuell und für Screenreader entfernt */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formular-Rückmeldung */
.rueckmeldung { margin-top: var(--s5); padding: 0.9rem 1.05rem; font-size: 0.92rem; border-radius: var(--r1); background: var(--papier-tief); color: var(--tinte-weich); }
.rueckmeldung[data-status="ok"]     { background: color-mix(in srgb, var(--konform) 10%, white); color: var(--konform); }
.rueckmeldung[data-status="fehler"] { background: color-mix(in srgb, var(--verstoss) 10%, white); color: var(--verstoss); }
.rueckmeldung[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s10); border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s5) 2.5rem var(--s5) 0;
  position: relative; font-weight: 700; font-size: 1.05rem; color: var(--tinte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--marke-text); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq__inhalt { padding: 0 0 var(--s6); color: var(--tinte-weich); }
.faq__inhalt p { margin: 0 0 0.8em; }
.faq__inhalt p:last-child { margin-bottom: 0; }

/* ---------- Rechtstext ---------- */
.rechtstext { max-width: 46rem; }
.rechtstext h1 { margin-bottom: var(--s6); }
.rechtstext h2 { font-size: 1.3rem; font-weight: 700; margin: var(--s10) 0 var(--s4); text-decoration: none; }
.rechtstext h3 { margin: var(--s6) 0 var(--s3); }
.rechtstext p, .rechtstext li { color: var(--tinte-weich); }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: 0.4rem; }
.platzhalter { background: var(--papier-tief); color: var(--tinte-weich); font-weight: 700; font-size: 0.85rem; padding: 0.05rem 0.4rem; border-radius: var(--r1); }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--nacht); color: var(--nacht-weich); padding-block: var(--s16) var(--s10); }
.fuss a { color: var(--nacht-weich); }
.fuss a:hover { color: var(--weiss); }
.fuss__raster { display: grid; gap: var(--s10); grid-template-columns: 1fr; }
@media (min-width: 760px) { .fuss__raster { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s8); } }
.fuss__marke p { margin: var(--s4) 0 0; font-size: 0.92rem; max-width: 30ch; }
.fuss__titel { font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--linie); margin: 0 0 var(--s4); font-weight: 700; }
.fuss__spalte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.fuss__spalte a { text-decoration: none; }
.fuss__spalte a:hover { text-decoration: underline; }
.fuss__unten { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--nacht-linie); display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; font-size: 0.82rem; }
.fuss__unten p { margin: 0; }
.fuss__textknopf {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.fuss__textknopf:hover { color: var(--weiss); text-decoration: underline; }

/* ---------- Consent-Dialog (GA4, blockiert bis Entscheidung) ---------- */
html.consent-gesperrt,
html.consent-gesperrt body {
  overflow: hidden;
}
.consent {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--rand);
  background: color-mix(in srgb, var(--nacht) 72%, transparent);
  --fokus: var(--tinte);
}
.consent__karte {
  width: min(100%, 28rem);
  background: var(--papier);
  color: var(--tinte-weich);
  border: 1px solid var(--linie);
  padding: var(--s8) var(--s6);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--nacht) 28%, transparent);
}
.consent__titel {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tinte);
}
.consent p { margin: 0; font-size: 0.98rem; max-width: none; }
.consent a { color: var(--tinte); text-decoration: underline; text-underline-offset: 0.12em; }
.consent a:hover { color: var(--marke-text); }
.consent__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s6);
}
.consent__aktionen .knopf { flex: 1 1 7rem; justify-content: center; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .consent__karte { box-shadow: none; }
}
