/* vorgereist auf See – Design-Tokens (Landgang-Pass)
 *
 * Einzige Quelle aller Farben, Schriften und Maße für Website, Mobile WebApp und spätere native App.
 * Abschnitt 1 steht wörtlich in Docu/landgang-pass-design.md, Abschnitt 13.1; ein Test vergleicht beide.
 * Keine frei erfundenen Farbwerte: Was hier nicht steht, gibt es im Design nicht.
 */

/* 1. Tokens: wörtlich aus dem Design-Dokument, Abschnitt 13.1 */
:root {
  /* Farben */
  --c-sea: #DFEADF;
  --c-canvas-bg: var(--c-sea);
  --c-sea-deep: #E3D3B5;
  --c-sea-line: #7D725E;
  --c-sea-dash: #7D725E;
  --c-paper: #F1F7F7;
  --c-card-line: #9B8F7A;
  --c-ink: #0E2A2E;
  --c-ink-2: #3B4F52;
  --c-ink-3: #55686B;
  --c-paper-line: #E3D3B5;
  --c-mist: #5E5444;
  --c-mist-2: #665B49;
  --c-coral: #FF6B4A;
  --c-coral-pressed: #E85A3B;
  --c-coral-ink: #B4381C;
  --c-coral-soft: #B4381C;

  /* Countdown-Stufen */
  --c-ok-bg: #CFEBDD;   --c-ok-fg: #0B5D33;
  --c-warn-bg: #FFE7A3; --c-warn-fg: #5C4300;
  --c-alert-bg: #B3261E; --c-alert-fg: #FFFFFF;

  /* Schrift */
  --f-sans: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --t-code: 700 44px/1 var(--f-sans);
  --t-time-xl: 700 30px/1.1 var(--f-mono);
  --t-time-l: 700 26px/1.1 var(--f-mono);
  --t-unit: 700 20px/1.1 var(--f-mono);
  --t-title: 700 25px/1.12 var(--f-sans);
  --t-h2: 700 22px/1.2 var(--f-sans);
  --t-body-l: 400 19px/1.35 var(--f-sans);
  --t-body: 400 18px/1.4 var(--f-sans);
  --t-label: 700 16px/1.2 var(--f-mono);
  --t-legal: 400 15px/1.3 var(--f-sans);

  /* Maße */
  --gutter: 18px;
  --gap-block: 14px;
  --tap: 56px;
  --btn-primary: 64px;
  --r-card: 20px;
  --r-btn: 16px;
  --r-field: 12px;
  --r-stamp: 6px;
  --notch: 26px;
}

[data-mode="sun"] {
  --c-canvas-bg: var(--c-paper);
}

/* 2. Aus dem Fließtext des Design-Dokuments abgeleitet (Werte verbindlich, Token-Namen eigene Wahl) */
:root {
  --c-canvas-fg: var(--c-ink);     /* §3.3: Text auf dem hellen Hintergrund (bis Version 1.1 Papier auf Petrol) */
  --c-card-bg: var(--c-paper);     /* §3.1: Pass-Karten */
  --bw-card: 1.5px;                /* §3.1: Karten heben sich mit Taupe-Rahmen vom Hintergrund ab */
  --ls-label: .08em;               /* §4.1, §14: Labels und Stempel */
  --ls-code: -.02em;               /* §4.1, §14: Codes */
  --w-medium: 500;                 /* §7.1, §7.5: „← Reise", Sekundärknopf */
  --bw-line: 1.5px;                /* §7.2–7.5: Feld-, Knopf-, Ticket-Rahmen */
  --bw-strong: 2px;                /* §6.1, §6.3, §7.3: Perforation, Stempel, Feld „Offen" */
  --perf-inset: 22px;              /* §6.1 */
  --focus-ring: 3px;               /* §7.5 */
  --focus-offset: 2px;             /* §7.5 */
  --motion-fast: 150ms;            /* §11 */
  --motion-slow: 250ms;            /* §11 */
  --pass-max: 440px;               /* Features Website §8 */
}

/* §12 Sonnenmodus: Karten auf Weiß mit 2 px Rahmen in Ink, Text in Ink. Koralle bleibt am Primärknopf. */
[data-mode="sun"] {
  --c-canvas-fg: var(--c-ink);
  --c-card-bg: #FFFFFF;
  --c-card-line: var(--c-ink);
  --bw-card: 2px;
}

@media (min-width: 400px) { :root { --gutter: 20px; } }   /* §5 */
@media print { :root { --c-canvas-bg: #FFFFFF; } }        /* §3.1, §12: keine Hintergrundflächen im Druck */

/* 3. Schriften: selbst gehostet (kein Abruf bei Google), je Schnitt die Teilmengen latin und latin-ext.
 *    latin-ext deckt Estnisch, Finnisch und Polnisch ab. Die Pfeile ← und → sind in keiner Teilmenge
 *    enthalten: Pfeile immer als Icon setzen, nie als Textzeichen. Quelle und Prüfsummen: fonts/README.md */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  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: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  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: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  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: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
  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: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/space-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2');
  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: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/space-mono-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
