/* =========================================================
   NH Design-System – Tokens
   Einzige Quelle für Farben, Schrift, Abstände, Formen, Bewegung.
   Komponenten verwenden ausschließlich diese Variablen.

   Breakpoints (in Media Queries nicht als Variable nutzbar):
     sm  40rem   (640px)   – großes Handy / kleines Tablet
     md  60rem   (960px)   – Tablet quer / kleiner Laptop
     lg  80rem   (1280px)  – Desktop
   Immer mobile-first: @media (min-width: …)
========================================================= */

/* ---------- Schriften (selbst gehostet, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Farben: Rohwerte ---------- */
  --navy-950: #000035;   /* Marke */
  --navy-900: #0b0d45;
  --navy-800: #1b1f5c;   /* Hover auf Navy */
  --navy-100: #e7e8f2;

  --stone-0:   #ffffff;
  --stone-50:  #f7f6f3;  /* warme Fläche (Astrawatt-Beige) */
  --stone-100: #efede8;
  --stone-200: #e4e1db;  /* Rahmen, Karten */
  --stone-300: #d3cfc7;
  --stone-500: #8d8981;
  --stone-600: #6b6862;  /* Sekundärtext – 5,6:1 auf Weiß */
  --stone-800: #34322e;  /* Fließtext */

  --signal-500: #e4572e; /* Notfall-Akzent – nur Flächen/Icons, nie Text */
  --green-500:  #2f9e6b; /* „einsatzbereit“-Punkt */
  --green-700:  #1e7a4f; /* Erfolgsmeldung (Text) */
  --red-700:    #b42318; /* Fehlermeldung (Text) */
  --amber-500:  #fbbc04; /* Bewertungssterne – Google-Gelb */

  /* ---------- Farben: Rollen (nur diese in Komponenten) ---------- */
  --color-bg:            var(--stone-0);
  --color-bg-muted:      var(--stone-50);
  --color-bg-inverse:    var(--navy-950);
  --color-surface:       var(--stone-0);
  --color-border:        var(--stone-200);
  --color-border-strong: var(--stone-300);

  --color-heading:       var(--navy-950);
  --color-text:          var(--stone-800);
  --color-text-muted:    var(--stone-600);
  --color-text-inverse:  var(--stone-0);
  --color-text-inverse-muted: rgb(255 255 255 / 0.72);

  --color-brand:         var(--navy-950);
  --color-brand-hover:   var(--navy-800);
  --color-signal:        var(--signal-500);
  --color-ok:            var(--green-500);
  --color-success:       var(--green-700);
  --color-error:         var(--red-700);
  --color-star:          var(--amber-500);
  --color-focus:         #3b5bdb;

  /* ---------- Typografie ---------- */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --weight-regular: 400;
  --weight-medium: 550;
  --weight-bold: 700;

  /* Fließende Skala – Grundschrift bleibt 100 % (Browser-Einstellung wird respektiert) */
  --fs-display: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem);
  --fs-h2:      clamp(2rem, 1.45rem + 2.1vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.06;
  --lh-heading: 1.15;
  --lh-body: 1.6;

  --tracking-heading: -0.025em;
  --tracking-eyebrow: 0.16em;

  /* ---------- Abstände (4er-Raster) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --container-max: 80rem;                       /* 1280px */
  --container-pad: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --measure: 65ch;                              /* max. Zeilenlänge */

  /* ---------- Formen ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(20 18 12 / 0.06), 0 2px 8px rgb(20 18 12 / 0.04);
  --shadow-md: 0 2px 4px rgb(20 18 12 / 0.05), 0 12px 32px rgb(20 18 12 / 0.08);
  --shadow-header: 0 1px 0 var(--stone-200), 0 8px 24px rgb(20 18 12 / 0.06);

  /* ---------- Bewegung ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 600ms;
  --reveal-distance: 2.5rem;

  /* Einblenden (Hero + Scrollen): ruhig und gleichmäßig */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);   /* easeOutCubic – sanfter als --ease-out */
  --dur-reveal: 1200ms;
  --reveal-stagger: 90ms;

  /* ---------- Ebenen ---------- */
  --z-header: 100;
  --z-mobile-bar: 90;
  --z-menu: 110;

  --header-h: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-reveal: 0ms;
    --reveal-distance: 0;
  }
}
