/* TL Gold – Farben als Rollen (docs/design.md §2). Nie feste Farbwerte in Seiten verwenden.
   Kontrast jeder Textfarbe ≥ 4,5:1 auf grund, flaeche, flaeche-2 – geprüft durch tests/test_farben.py. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("../vendor/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("../vendor/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: italic; font-display: swap; src: url("../vendor/fonts/fraunces-latin-500-italic.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --grund: #F6F3EE;
  --flaeche: #FFFFFF;
  --flaeche-2: #EFEAE1;
  --linie: #E2DACB;
  --text: #1C1813;
  --text-2: #5F5648;
  --gold: #7E5B1A;
  --gold-grund: #F1E7D3;
  --knopf: #7E5B1A;
  --knopf-text: #FFFFFF;
  --gut: #2A6E44;
  --gut-grund: #E3F0E7;
  --warn: #8F5B00;
  --warn-grund: #F7EBD3;
  --warn-text: #FFFFFF;
  --fehler: #B3392B;
  --fehler-grund: #F8E3E0;
  --fehler-text: #FFFFFF;
  --blau: #2B5A8C;
  --blau-grund: #E3ECF6;
  --schatten: 0 1px 2px rgba(40, 28, 10, .05), 0 8px 24px rgba(40, 28, 10, .06);
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-titel: "Fraunces", Georgia, serif;
}

/* dunkel – eigene Töne, keine Umkehrung */
:root[data-modus="dunkel"] {
  color-scheme: dark;
  --grund: #14110D;
  --flaeche: #1D1914;
  --flaeche-2: #26211A;
  --linie: #3A3226;
  --text: #F3ECE0;
  --text-2: #B8AD9B;
  --gold: #D9B26A;
  --gold-grund: #2E2618;
  --knopf: #D9B26A;
  --knopf-text: #1A1408;
  --gut: #7FC59A;
  --gut-grund: #1B2A20;
  --warn: #E8B04B;
  --warn-grund: #2E2513;
  --warn-text: #1A1408;
  --fehler: #F08A7E;
  --fehler-grund: #331C19;
  --fehler-text: #1A1408;
  --blau: #8DB4E2;
  --blau-grund: #1A2433;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

/* „System“: folgt dem Gerät */
@media (prefers-color-scheme: dark) {
  :root[data-modus="system"] {
    color-scheme: dark;
    --grund: #14110D;
    --flaeche: #1D1914;
    --flaeche-2: #26211A;
    --linie: #3A3226;
    --text: #F3ECE0;
    --text-2: #B8AD9B;
    --gold: #D9B26A;
    --gold-grund: #2E2618;
    --knopf: #D9B26A;
    --knopf-text: #1A1408;
    --gut: #7FC59A;
    --gut-grund: #1B2A20;
    --warn: #E8B04B;
    --warn-grund: #2E2513;
    --warn-text: #1A1408;
    --fehler: #F08A7E;
    --fehler-grund: #331C19;
    --fehler-text: #1A1408;
    --blau: #8DB4E2;
    --blau-grund: #1A2433;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
