/* tokens.css – Design-Tokens Schwiertz Bedachungen
   Stil: Editorial Grid / Magazine. Verfahren: Skill design-system.
   System seit 2026-11-16: fünf Schriftgrößen, drei Schnitte, fünf
   Textfarben, fünf Flächen (Übersicht in docs/BAU.md).

   CI-Fundstücke (Logo, assets/images/logo.svg):
     Logo-Rot   #ff3f40 = oklch(0.659 0.227 25.9)
     Logo-Blau  #56729a = oklch(0.547 0.071 257.3)
   Alle Neutralen tragen den Farbton 257 des Logo-Blaus bei sehr kleiner
   Buntheit (design-system 1.3).

   TEXTFARBEN – genau fünf, keine weiteren
     --color-ink        Tinte       Text auf hell
     --color-ink-muted  Gedämpft    Sekundärtext auf hell
     --color-hell       Hell        jeder Text auf dunkel (auch sekundär)
     --color-rot-text   Rot         Eyebrows, Fehler, Auszeichnung auf hell
     --color-blau       Logo-Blau   Bildzeile, Formularstand, Vermerk; nur auf Weiß

   FLÄCHEN – genau fünf
     --color-paper   Weiß         Seite, Karten, Formular
     --color-tint    Tönung       helle Zäsur aus dem Logo-Blau
     --color-dunkel  Dunkel       = --buehne (Logo-Blau, tief): Hero,
                                  Notdienst, Footer, dunkle Karte
     --color-accent  Logo-Rot     Hauptknopf, Marken, Notdienstnummer
     --color-blau    Logo-Blau    Symbolkreise
   Linien (--color-line, --color-line-on-night) sind keine Flächen.

   KONTRASTE – gerechnet (oklch → sRGB → WCAG 2.x), nicht geschätzt.
     Vordergrund     Grund       Kontrast  Pflicht
     Tinte           Weiß         18,10    4,5
     Tinte           Tönung       15,88    4,5
     Gedämpft        Weiß          7,12    4,5
     Gedämpft        Tönung        6,25    4,5
     Hell            Dunkel       16,60    4,5
     Rot             Weiß          5,38    4,5
     Rot             Tönung        4,72    4,5
     Logo-Blau       Weiß          4,91    4,5
     Logo-Blau       Tönung        4,31    FAIL → kein blauer Text auf Tönung
   Knöpfe
     Tinte auf Logo-Rot            5,21    4,5  Hauptknopf
     Logo-Rot gegen Weiß           3,48    3    Fläche
     Logo-Rot gegen Tönung         3,05    3    Fläche
     Logo-Rot gegen Dunkel         5,21    3    Fläche
     Hell auf Dunkel              16,60    4,5  Hover auf hell
     Tinte auf Weiß               18,10    4,5  Hover auf dunkel
   Fokus: Logo-Blau auf hell (4,91), Hell auf dunkel (16,60).
*/

:root {
  /* --- Farbe ------------------------------------------------------------ */
  --color-paper:     #ffffff;
  --color-ink:       oklch(0.200 0.012 257);   /* #13161c */
  --color-ink-muted: oklch(0.460 0.016 257);   /* #525961 */
  --color-hell:      oklch(0.970 0.004 257);   /* #f3f5f8 */
  --color-rot-text:  oklch(0.550 0.200 25.9);  /* #cc272b Logo-Rot abgedunkelt */
  --color-blau:      oklch(0.547 0.071 257.3); /* #56729a Logo-Blau */
  --color-tint:      oklch(0.955 0.012 257);   /* #ebf1f8 */
  --color-dunkel:    var(--buehne);
  --color-accent:    oklch(0.659 0.227 25.9);  /* #ff3f40 Logo-Rot */
  --color-line:          oklch(0.860 0.008 257);   /* Haarlinie auf hell */
  --color-line-on-night: oklch(0.420 0.012 257);   /* Haarlinie auf dunkel */
  --color-selection:     oklch(0.880 0.040 257);

  /* --- Schrift ---------------------------------------------------------- */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    var(--font-display);

  /* Drei Schnitte */
  --fw-text:  400;   /* Lesetext */
  --fw-ui:    600;   /* Knöpfe, Navigation, Labels, Eyebrows, Hervorhebung */
  --fw-titel: 800;   /* H1 bis H3, große Zahlen */

  /* Fünf Größen. Linear zwischen 390 und 1440 px, darüber gedeckelt.
                     390    768    1440   1920
       --fs-display  47,6   56     69,1   72     H1, Footer-Leitwort
       --fs-h2       32     40,6   56     56     H2, Notdienstnummer
       --fs-lead     20     22,9   28     28     H3, Lead, große Nummer
       --fs-text     16     16,7   18     18     Lesetext, Knöpfe, Formular
       --fs-klein    14     14     14     14     Eyebrow, Label, Kleingedrucktes
     Display folgt der Hero-H1 (dieselben Abfragen wie hero.css): Breit
     4,8 vw, die längste H1-Zeile bleibt in ≤ 43 vw; Hochformat 12,2 vw;
     Laptop-Höhen (≤ 800 px) etwas kleiner. Typo-Spannweite Display ÷ Text:
     3,0 bei 390 px, 3,8 bei 1440 px. */
  --fs-display: clamp(2.75rem, 4.8vw, 4.5rem);
  --fs-h2:      clamp(2rem, 1.443rem + 2.286vw, 3.5rem);
  --fs-lead:    clamp(1.25rem, 1.064rem + 0.762vw, 1.75rem);
  --fs-text:    clamp(1rem, 0.954rem + 0.19vw, 1.125rem);
  --fs-klein:   0.875rem;

  --lh-display: 0.98;
  --lh-heading: 1.02;
  --lh-sub: 1.2;
  --lh-text: 1.55;
  --tracking-display: -0.03em;
  --tracking-heading: -0.025em;
  --tracking-rubrik: 0.12em;
  --measure-text: 62ch;

  /* --- Raster ----------------------------------------------------------- */
  /* Zwölf Spalten über die ganze Seite. Feste Kanten:
       Spalte 1–3   Rubrik, Randspalte
       ab Spalte 4  Überschriften und Lesetext
       ab Spalte 8  jede zweite Spalte (Bild, Namen, Formular, Hinweis)   */
  --rand:   clamp(1rem, 4vw, 4.5rem);
  --spalte: clamp(1rem, 1.8vw, 2rem);

  /* --- Abstände --------------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  --space-xl:  clamp(2.25rem, 1.8rem + 1.9vw, 3.75rem);
  /* Sektionsabstand: EIN Polster je Grenze (section-craft §4). */
  --space-section:   clamp(3.5rem, 2.4rem + 4.4vw, 7rem);    /* 56 → 112 */
  --space-section-s: clamp(3rem, 2.3rem + 2.9vw, 5.25rem);   /* 48 → 84 */

  /* --- Linien ----------------------------------------------------------- */
  --line-hair: 1px;
  --line-rule: 3px;     /* Sektionskopf, Kolophon */
  --line-mark: 5px;     /* rote Marke, Unterstreichung der Nummer */

  /* --- Formen (Stilwechsel 2026-09-28: Karten, Panels, Pill-Knöpfe) ------ */
  --radius-s:     0.75rem;   /* Felder, Optionen, Symbolkacheln */
  --radius:       1.25rem;   /* Karten */
  --radius-l:     1.75rem;   /* große Karte, Bildrahmen, Formular */
  --radius-panel: clamp(1.5rem, 0.9rem + 2.4vw, 2.5rem);
  --panel-rand:   clamp(0.5rem, 0.2rem + 1vw, 1rem);
  --wrap-max:     96rem;     /* 1536 px: auf 1920 bleiben 192 px je Seite */
  --shadow-s: 0 1px 2px oklch(0.2 0.02 257 / 0.06), 0 2px 8px oklch(0.2 0.02 257 / 0.05);
  --shadow-m: 0 4px 12px oklch(0.2 0.02 257 / 0.08), 0 16px 40px oklch(0.2 0.02 257 / 0.08);
  --shadow-l: 0 12px 32px oklch(0.2 0.02 257 / 0.12), 0 32px 80px oklch(0.2 0.02 257 / 0.12);

  --header-h: 5.25rem;

  /* --- Hero-Bühne ------------------------------------------------------- */
  /* Die Bühne bleibt dunkel (Logo-Blau abgedunkelt, Farbton 257,3), obwohl
     die Seite hell ist; zur nächsten Sektion eine harte Kante.
     Kontraste gegen --buehne (WCAG, aus den oklch-Werten gerechnet):
       --auf-buehne 16,4 : 1, --auf-buehne-2 9,7 : 1, --auf-buehne-blau 7,9 : 1
       (gegen --buehne-licht, den hellsten Fleck: 13,6 / 8,1 / 6,5 : 1).
     --buehne-linie ist nur Linie, kein Text. */
  --h-marke: 257.3;
  --buehne:          oklch(0.20 0.03 var(--h-marke));
  --buehne-licht:    oklch(0.27 0.036 var(--h-marke));
  --auf-buehne:      oklch(0.965 0.006 var(--h-marke));
  --auf-buehne-2:    oklch(0.80 0.02 var(--h-marke));
  --auf-buehne-blau: oklch(0.74 0.06 var(--h-marke));  /* Byline-Blau, für Dunkel aufgehellt */
  --buehne-linie:    oklch(0.42 0.03 var(--h-marke));

  /* --- Bewegung --------------------------------------------------------- */
  --dur-schnell: 150ms;
  --dur-normal: 240ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 63.99rem) {
  :root { --header-h: 4.25rem; }
}
/* Display-Stufe folgt der Hero-H1: Laptop-Höhen kleiner, Hochformat und
   schmal eigene Kurve. Dieselben Abfragen stehen in hero.css. */
@media (min-width: 48.01rem) and (max-height: 50rem) {
  :root { --fs-display: clamp(2.5rem, 1rem + 3.6vw, 4.25rem); }
}
@media (max-width: 48rem), (max-aspect-ratio: 1/1) {
  :root { --fs-display: clamp(2.5rem, 12.2vw, 3.5rem); }
}
