/* KI-Akte · Designsystem-Tokens. Quelle der Wahrheit für Prototyp und Kontrasttest
   (tests/test_contrast.py liest die Werte aus dieser Datei).
   Schriften: IBM Plex Sans/Mono (IBM Corp.) und Source Serif 4 (Adobe), SIL Open Font License 1.1,
   https://openfontlicense.org – als WOFF2-Teilmengen selbst gehostet, kein Abruf bei Dritten. */

@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Source Serif Display"; src: url("../fonts/SourceSerif4Display-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif Display"; src: url("../fonts/SourceSerif4Display-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Papier und Tinte */
  --paper: #F3EFE6;        /* Arbeitsfläche, Umschlagkarton */
  --sheet: #FFFDF8;        /* Aktenblatt */
  --ink: #1E2925;          /* Text, Aktenrücken */
  --ink-2: #4B5550;        /* Nebentext */
  --rule: #D3CBB9;         /* Linien, Ränder (dekorativ) */
  --rule-strong: #7D7566;  /* Formularränder, 3:1 auf Blatt */
  --spine: #1E2925;
  --on-spine: #F3EFE6;

  /* Handlung */
  --action: #1D4B6B;       /* Tintenblau: Links, Primärknöpfe */
  --action-hover: #143A54;
  --on-action: #FFFFFF;
  --focus: #C2410C;        /* Fokusrahmen auf hellen Flächen */
  --focus-on-dark: #FDBA74; /* Fokusrahmen auf Aktenrücken und Kopfleiste */

  /* Frist / Siegel */
  --seal: #9E3324;
  --seal-soft: #F5E2DC;

  /* Einordnungsklassen: Text, Fläche */
  --k-verboten: #8A1C1C;    --k-verboten-bg: #F6E1DE;
  --k-hoch: #8A4300;        --k-hoch-bg: #F8E7D2;
  --k-transparenz: #1D4B6B; --k-transparenz-bg: #E1EAF0;
  --k-minimal: #355640;     --k-minimal-bg: #E2EBE2;
  --k-offen: #5A5246;       --k-offen-bg: #ECE6DA;

  --ok: #2F5D3A;

  /* Typografie */
  --font-text: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Source Serif Display", Georgia, "Times New Roman", serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-xs: 0.8125rem;   /* 13 */
  --t-s: 0.875rem;     /* 14 */
  --t-m: 1rem;         /* 16 Grundtext */
  --t-l: 1.25rem;      /* 20 */
  --t-xl: 1.75rem;     /* 28 */
  --t-xxl: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem); /* 34–52 Seitentitel */

  /* Raster und Abstand: 4er-Schritte */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --measure: 68ch;
  --spine-w: 56px;
  --radius: 2px;           /* Papierkanten: fast eckig */
}
