/* ==========================================================
   Einfach Ehrlich – Design-Tokens
   Einzige Stelle für Farben, Schriften, Maße, Bewegung.
   Quelle: DESIGN.md. Änderungen zuerst dort, dann hier.
   ========================================================== */

/* ---------- Schriften (selbst gehostet, DSGVO) ---------- */
@font-face {
  font-family: "Gilda Display";
  src: url("../assets/fonts/gilda-display-v20-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-v9-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-v9-latin_latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-v9-latin_latin-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Farben ---------- */
  --moos:            oklch(34% 0.035 140);   /* #2e3d2b  Buttons, Links, Icons, das eine Band */
  --moos-tief:       oklch(27% 0.03 140);    /* #1f2a1c  Hover von Moos-Flächen */
  --salbei:          oklch(58% 0.035 125);   /* #757e68  Schleife, Formular-Ränder, Linien */
  --salbei-hell:     oklch(92% 0.02 120);    /* #e3e7d8  Icon-Kreise, aktive Wahl, Hover */
  --creme:           oklch(96.5% 0.012 85);  /* #f7f3eb  Seitengrund */
  --leinen:          oklch(92.5% 0.02 80);   /* #ede5d8  Karten, Wechsel-Sektionen */
  --papier:          oklch(98.5% 0.006 85);  /* #fcfaf6  Felder, Badge, Person-Wahl */
  --sand:            oklch(85% 0.022 80);    /* #d5cdbe  nur dekorative Haarlinien */
  --tinte:           oklch(26% 0.012 120);   /* #23251e  Text */
  --tinte-weich:     oklch(47% 0.012 110);   /* #5b5b54  Zweittext */
  --creme-gedaempft: #c5c5bb;                /* Zweittext auf Moos, 6.7:1 */
  --fehler:          oklch(50% 0.12 30);     /* #9c4438  Formularfehler */
  --oliv:            oklch(48% 0.075 128);   /* #516636  Akzentwörter in Überschriften (Serenoa), 5.1:1 auf Leinen */

  /* Rollen (im CSS bitte diese nutzen, nicht die Rohfarben) */
  --bg:            var(--creme);
  --bg-alt:        var(--leinen);
  --surface:       var(--papier);
  --text:          var(--tinte);
  --text-muted:    var(--tinte-weich);
  --accent:        var(--moos);
  --accent-strong: var(--moos-tief);
  --line:          var(--sand);
  --line-strong:   var(--salbei);
  --on-accent:     var(--creme);
  --on-accent-muted: var(--creme-gedaempft);

  /* Einstieg oben grün (Kundenwunsch 15.11.): Header, Hero, Seitenkopf */
  --top-bg:        var(--moos);
  --top-text:      var(--creme);
  --top-text-muted: var(--creme-gedaempft);

  /* Logo "Einfach Ehrlich": Band Salbei-Silber, Feder Creme (auf Moos) */
  --logo-band:     #c3cab8;   /* 7.6:1 auf Moos */
  --logo-linie:    #9aa48f;
  --logo-feder:    var(--creme);
  --logo-zusatz:   #b9c1ad;   /* "Psychologische Beratung", 6.6:1 auf Moos */

  /* ---------- Typografie ---------- */
  --font-display: "Gilda Display", "Times New Roman", serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display:  clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  --fs-hero:     clamp(3rem, 1.1rem + 6.2vw, 7rem);
  --fs-headline: clamp(2.125rem, 1.3rem + 3vw, 3.75rem);
  --fs-statement: clamp(1.75rem, 0.9rem + 3.2vw, 3.75rem);
  --fs-title:    1.5rem;
  --fs-body-lg:  clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem); /* 19 → 22 px */
  --fs-body:     clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);   /* 17 → 19 px */
  --fs-small:    1rem;      /* 16 px, vorher 15 */
  --fs-label:    0.875rem;  /* 14 px, vorher 13 */
  --fs-wordmark: 1.375rem;

  --lh-display:  1.08;
  --lh-hero:     0.98;
  --lh-headline: 1.15;
  --lh-title:    1.25;
  --lh-body-lg:  1.65;
  --lh-body:     1.65;
  --lh-small:    1.55;

  --ls-label:    0.14em;
  --ls-wordmark: 0.12em;

  --measure:     65ch;
  --measure-lg:  55ch;

  /* ---------- Abstände ---------- */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --space-4xl: 112px;
  --space-section: clamp(72px, 10vw, 144px);

  --container: 72rem;
  --gutter:    clamp(20px, 5vw, 48px);

  /* ---------- Rundungen ---------- */
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  /* ---------- Elevation (nur Hero-Badge) ---------- */
  --shadow-schwebe: 0 1px 2px rgb(35 37 30 / 0.04), 0 12px 32px -8px rgb(35 37 30 / 0.12);

  /* ---------- Linien ---------- */
  --stroke-icon:    1.5px;
  --stroke-schleife: 1.25px;
  --focus-ring:     2px solid var(--moos);
  --focus-offset:   3px;

  /* ---------- Bewegung ---------- */
  --ease-out:    cubic-bezier(0.25, 1, 0.5, 1);   /* quart */
  --ease-out-5:  cubic-bezier(0.22, 1, 0.36, 1);  /* quint, Schleife */
  --dur-state:   200ms;
  --dur-open:    300ms;
  --dur-reveal:  600ms;
  --dur-schleife: 1600ms;

  /* ---------- Größen ---------- */
  --tap:        44px;
  --btn-h:      52px;
  --icon-kreis: 56px;
  --icon:       26px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-reveal: 0ms;
    --dur-schleife: 0ms;
    --dur-open: 0ms;
  }
}

/* Breakpoints (mobile-first, nur als Referenz, CSS-Variablen gehen nicht in @media):
   sm 40em (640px) · md 60em (960px) · lg 75em (1200px) */
