/* ==========================================================================
   Design-Tokens — Rechtsanwalt Christian Hoffs / GERECHT24
   Palette "Trust & Authority". Ein Akzent, ein Radius-System, ein Modus.
   ========================================================================== */

/* --- Schriften, selbst gehostet. Kein Google-Fonts-CDN (DSGVO). ---------- */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/ebgaramond-500-latin.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: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/ebgaramond-500-latin-ext.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: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin.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: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin-ext.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: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin.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: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin-ext.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;
}

:root {
  color-scheme: light;

  /* --- Farben ----------------------------------------------------------- */
  --farbe-primaer: #1e3a8a;
  --farbe-primaer-hell: #1e40af;
  --farbe-primaer-tief: #16296b;
  --farbe-auf-primaer: #ffffff;

  --farbe-akzent: #b45309;
  --farbe-akzent-hell: #d1690f;
  --farbe-akzent-tief: #8f4207;
  --farbe-auf-akzent: #ffffff;

  --farbe-grund: #f8fafc;
  --farbe-flaeche: #ffffff;
  --farbe-flaeche-gedaempft: #e9eef5;
  --farbe-flaeche-tief: #0f1e46;

  --farbe-text: #0f172a;
  --farbe-text-gedaempft: #475569;
  --farbe-text-schwach: #5a6779; /* 5,4:1 auf Weiss, bewusst über AA */
  --farbe-text-auf-tief: #dce4f4;

  --farbe-rahmen: #cbd5e1;
  --farbe-rahmen-zart: #e2e8f0;

  --farbe-fehler: #b91c1c;
  --farbe-fehler-grund: #fef2f2;
  --farbe-erfolg: #15803d;
  --farbe-erfolg-grund: #f0fdf4;

  --farbe-fokus: #1e3a8a;

  /* --- Typografie ------------------------------------------------------- */
  --schrift-titel: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman",
    serif;
  --schrift-text: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --groesse-2xs: 0.75rem;   /* 12 */
  --groesse-xs: 0.8125rem;  /* 13 */
  --groesse-sm: 0.9375rem;  /* 15 */
  --groesse-md: 1rem;       /* 16 — nie kleiner im Fliesstext */
  --groesse-lg: 1.125rem;   /* 18 */
  --groesse-xl: 1.375rem;   /* 22 */
  --groesse-2xl: 1.75rem;   /* 28 */
  --groesse-3xl: 2.25rem;   /* 36 */
  --groesse-4xl: 3rem;      /* 48 */
  --groesse-5xl: 3.75rem;   /* 60 */

  --zeile-eng: 1.15;
  --zeile-normal: 1.4;
  --zeile-weit: 1.65;

  --mass-text: 68ch;

  /* --- Abstaende (VISUAL_DENSITY 4) ------------------------------------- */
  --abstand-1: 0.25rem;
  --abstand-2: 0.5rem;
  --abstand-3: 0.75rem;
  --abstand-4: 1rem;
  --abstand-5: 1.5rem;
  --abstand-6: 2rem;
  --abstand-7: 2.5rem;
  --abstand-8: 3rem;
  --abstand-9: 4rem;
  --abstand-10: 5rem;

  --abschnitt-y: clamp(3.5rem, 8vw, 6.5rem);
  --seite-x: clamp(1.25rem, 5vw, 3rem);
  --breite-max: 1240px;

  /* --- Form (ein System, ueberall gleich) ------------------------------- */
  --radius-karte: 12px;
  --radius-feld: 8px;
  --radius-knopf: 999px;
  --radius-bild: 12px;

  /* --- Schatten, in den Grundton eingefaerbt, nie reines Schwarz -------- */
  --schatten-zart: 0 1px 2px rgb(15 23 42 / 0.05),
    0 1px 3px rgb(15 23 42 / 0.06);
  --schatten-karte: 0 2px 4px rgb(30 58 138 / 0.05),
    0 8px 24px rgb(30 58 138 / 0.08);
  --schatten-hoch: 0 10px 20px rgb(30 58 138 / 0.1),
    0 24px 48px rgb(30 58 138 / 0.14);

  /* --- Bewegung (MOTION_INTENSITY 3) ------------------------------------ */
  --dauer-schnell: 140ms;
  --dauer-normal: 220ms;
  --kurve: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Ebenen ----------------------------------------------------------- */
  --z-inhalt: 1;
  --z-klebrig: 20;
  --z-kopf: 40;
  --z-schublade: 60;
  --z-sprunglink: 80;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dauer-schnell: 1ms;
    --dauer-normal: 1ms;
  }
}
