/* ==========================================================================
   Fahrschule Roadtrip – Design-Tokens
   Farben aus Logo und Fahrzeugdesign: Orange = Auto/Klasse B, Blau = Zweirad/Klasse A.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-normal-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-normal-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-normal-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-normal-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

/* Temperatur als animierbare Zahl: 0 = warm (Papier, Auto-Zonen), 1 = kühl (Nebel, Motorrad-Zone) */
@property --temp {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  /* — Farbe (aus Logo und Fahrzeugdesign: Asphalt-Schwarz, Roadtrip-Orange, Logo-Blau) — */
  --ink-hsl: 225 7% 10%;
  --slate-hsl: 225 7% 17%;
  --steel-hsl: 222 7% 46%;
  --paper-hsl: 40 20% 96%;
  --mist-hsl: 214 30% 94%;
  --orange-hsl: 25 100% 50%;          /* Streifen auf Autos und Anhänger, Klasse B */
  --orange-hover-hsl: 22 100% 45%;
  --orange-strong-hsl: 22 100% 34%;   /* oranger Text auf hellem Grund (5,5:1) */
  --orange-on-dark-hsl: 25 100% 50%;  /* Orange auf Asphalt (6,2:1) */
  --blue-hsl: 216 82% 40%;            /* Logo-Blau, Klasse A – Text und Links auf hell (6,4:1) */
  --blue-bright-hsl: 216 100% 62%;    /* Blau auf dunklem Grund und für Linien */

  --ink: hsl(var(--ink-hsl));
  --slate: hsl(var(--slate-hsl));
  --steel: hsl(var(--steel-hsl));
  --paper: hsl(var(--paper-hsl));
  --mist: hsl(var(--mist-hsl));
  --orange: hsl(var(--orange-hsl));
  --orange-hover: hsl(var(--orange-hover-hsl));
  --orange-strong: hsl(var(--orange-strong-hsl));
  --orange-on-dark: hsl(var(--orange-on-dark-hsl));
  --blue: hsl(var(--blue-hsl));
  --blue-bright: hsl(var(--blue-bright-hsl));
  --glow-orange: hsl(var(--orange-hsl) / 0.28);
  --glow-blue: hsl(var(--blue-bright-hsl) / 0.24);

  /* Semantische Flächen */
  --color-surface: color-mix(in oklab, var(--paper) calc((1 - var(--temp)) * 100%), var(--mist));
  --color-surface-raised: hsl(0 0% 100% / 0.72);
  --color-text: var(--ink);
  --color-text-muted: hsl(222 8% 36%);
  --color-border: hsl(var(--steel-hsl) / 0.28);
  --color-line: hsl(var(--steel-hsl) / 0.45);
  --on-dark: hsl(40 20% 96%);
  --on-dark-muted: hsl(222 9% 72%);

  /* — Typografie — */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.94rem, 0.9rem + 0.15vw, 1rem);
  --step-0: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);   /* Fließtext ≥ 18 px */
  --step-1: clamp(1.3rem, 1.2rem + 0.45vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.2rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 5rem);
  --step-5: clamp(2.9rem, 1.6rem + 5.6vw, 6rem);         /* Hero */
  --step-xxl: clamp(3.4rem, 0.6rem + 10.5vw, 11.5rem);   /* typografischer Anker */

  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.58;
  --track-display: -0.032em;
  --track-head: -0.02em;
  --track-label: 0.09em;
  --measure: 66ch;

  /* — Raum (4-px-Basis) — */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(var(--s-8), 9vw, var(--s-10));
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1280px;

  /* — Form — */
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --line: 1.5px;
  --bend: 28px; /* Radius der Rohrbögen */
  --shadow-s: 0 1px 2px hsl(20 30% 20% / 0.06), 0 4px 12px hsl(20 30% 20% / 0.06);
  --shadow-m: 0 2px 4px hsl(20 30% 20% / 0.06), 0 16px 40px hsl(20 30% 20% / 0.12);

  /* — Motion — */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1); /* CSS-Pendant zu GSAP back.out(1.4) */
  --dur-xs: 150ms;
  --dur-s: 300ms;
  --dur-m: 600ms;
  --dur-l: 1000ms;
  --stagger: 70ms;

  /* — Ebenen — */
  --z-base: 1;
  --z-fore: 5;
  --z-sticky: 40;
  --z-header: 60;
  --z-menu: 80;
  --z-skip: 100;

  --masthead-h: 76px;
  --countdown-h: 48px;
}

@media (min-width: 1024px) {
  :root { --masthead-h: 84px; --countdown-h: 52px; }
}
