/* =========================================================================
   Tamos Consulting – Design-Tokens
   Nur :root-Custom-Properties und @font-face. Verbindliche Namen nicht
   umbenennen. Details und Begründungen: KONZEPT.md
   ========================================================================= */

/* ---- Schriften (lokal, latin, variabel) -------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Farbe: hell (Standard) ------------------------------------------ */
  --c-bg: #f6f5f1;            /* warmes Papierweiß */
  --c-ink: #0e0e0c;           /* fast Schwarz, warm – Text, Linien, Glyphen */
  --c-muted: #5f5e58;         /* Labels, Meta (6.1:1 auf --c-bg) */
  --c-line: rgba(14, 14, 12, 0.14);   /* Haarlinie 1px */
  --c-surface: #ecebe5;       /* Karten, Felder, App-Fenster-Grund */
  --c-surface-2: #ffffff;     /* erhöhte Fläche (Formularfeld im Fokus, Tab aktiv) */

  /* ---- Farbe: invertiert (schwarze Sektionen) -------------------------- */
  --c-invert-bg: #0e0e0c;
  --c-invert-ink: #f6f5f1;
  --c-invert-muted: #a3a29b;  /* 7.6:1 auf --c-invert-bg */
  --c-invert-line: rgba(246, 245, 241, 0.16);
  --c-invert-surface: #1a1a17;
  --c-invert-surface-2: #24241f;

  /* ---- Akzent 1 „Signal“: Aktion, Impuls, Fortschritt ------------------- */
  --c-accent: #ff5a1f;        /* Signalorange */
  --c-accent-ink: #0e0e0c;    /* Text auf Akzent (7.0:1) */
  --c-accent-text: #c2410c;   /* Akzent als Schrift auf hellem Grund (4.9:1), sparsam */
  --c-accent-soft: rgba(255, 90, 31, 0.14); /* Glimmen hinter dem Impuls */

  /* ---- Akzent 2 „Status“: erledigt, korrekt, Erfolg -------------------- */
  --c-accent-2: #1f8a4c;      /* Statusgrün, auf hell als Text/Füllung (4.6:1) */
  --c-accent-2-ink: #ffffff;  /* Text auf Statusgrün */
  --c-accent-2-bright: #3ddc84; /* Statusgrün auf schwarzem Grund (11:1) */
  --c-accent-2-soft: rgba(31, 138, 76, 0.12);

  /* ---- Warnung (kein dritter Akzent: nur für „Zahlung fehlt“, „Zur Prüfung“, Formularfehler) */
  --c-warn: #b42318;          /* 5.9:1 auf hell */
  --c-warn-bright: #ff8a7a;   /* auf schwarz */

  /* ---- Schriftfamilien ------------------------------------------------- */
  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Schriftgrößen (fluid 390 → 1440) -------------------------------- */
  --fs-hero:  clamp(2.75rem, 1.05rem + 6.95vw, 7.5rem);    /* 44 → 120 */
  --fs-h1:    clamp(2.375rem, 1.35rem + 4.2vw, 5rem);      /* 38 → 80 */
  --fs-h2:    clamp(2rem, 1.36rem + 2.6vw, 3.75rem);       /* 32 → 60 */
  --fs-h3:    clamp(1.25rem, 1.07rem + 0.74vw, 1.75rem);   /* 20 → 28 */
  --fs-lead:  clamp(1.125rem, 1.03rem + 0.38vw, 1.375rem); /* 18 → 22 */
  --fs-body:  clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);    /* 16 → 17 */
  --fs-small: clamp(0.875rem, 0.86rem + 0.06vw, 0.9375rem);/* 14 → 15 */
  --fs-micro: 0.8125rem;                                    /* 13 – Mono-Labels */
  --fs-stat:  clamp(2.5rem, 1.6rem + 3.7vw, 5rem);         /* Kennzahlen (98 %) */

  /* Zeilenhöhen und Laufweiten */
  --lh-tight: 0.92;   /* Hero */
  --lh-head: 1.02;    /* h1/h2 */
  --lh-snug: 1.2;     /* h3 */
  --lh-text: 1.6;     /* Fließtext */
  --ls-hero: -0.045em;
  --ls-head: -0.035em;
  --ls-h3: -0.015em;
  --ls-mono: 0.01em;
  --wdth-display: 88%; /* font-stretch der Display-Schrift: leicht schmal, markant */

  /* ---- Abstände (4er-Basis) ------------------------------------------- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  --section-pad: clamp(5rem, 2.9rem + 8.6vw, 10rem);  /* 80 → 160 */
  --head-gap: clamp(2rem, 1.5rem + 2vw, 4rem);        /* Überschrift → Inhalt */
  --wrap: 1440px;                                     /* inkl. --gutter */
  --gutter: clamp(1rem, -0.2rem + 4.9vw, 4rem);       /* Seitenrand 16 → 64 */
  --grid-gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);    /* Spaltenabstand 16 → 24 */
  --measure: 62ch;
  --header-h: 72px;
  --tap: 44px;
  --btn-h: 52px;

  /* ---- Radien (eckig-präzise, Beratung + Software) -------------------- */
  --radius-s: 4px;    /* Buttons, Felder, Chips */
  --radius-m: 8px;    /* Karten, Panels */
  --radius-l: 14px;   /* App-Fenster, große Rahmen */
  --radius-pill: 999px; /* nur Status-Punkte und Tags */

  /* ---- Bewegung --------------------------------------------------------- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* Eintritte, UI-Antworten */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* Bewegung auf dem Bildschirm, Impuls */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* Vollbild-Menü */
  --ease-hover: ease;                              /* reine Farbwechsel */
  --dur-press: 140ms;   /* :active */
  --dur-ui: 220ms;      /* Hover, Tabs, Felder */
  --dur-reveal: 700ms;  /* Scroll-Reveal */
  --dur-scene: 900ms;   /* große Szenenwechsel, Linie zeichnen */
  --dur-pulse: 1400ms;  /* ein Impuls über eine Strecke */
  --stagger: 70ms;      /* Versatz je Element */
  --reveal-y: 16px;

  /* ---- Ebenen ----------------------------------------------------------- */
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 100;
}

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
    --btn-h: 48px;
  }
}
