/* ==========================================================================
   Biomed Pro – Design-Tokens
   Single Source für Farben, Typo, Abstände, Motion.
   REGELN (Premium-Direktive):
   - Abstände NUR aus der 8px-Skala (--space-*). Keine Ad-hoc-Werte.
   - Farbe = Akzent (Linien, Icons, einzelne Wörter, Hover), nie Fläche.
     Einzige Ausnahme: Wellen-Divider.
   - Radien klein & konsequent (--radius), Schatten nur diffus (--shadow).
   - Alle Transitions mit --ease, nie default ease/linear.
   ========================================================================== */

/* ---- Fonts: lokal gehostet (DSGVO – keine Google-Fonts-Requests) ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-var-italic.woff2') format('woff2-variations');
}
/* Fließtext/UI: Instrument Sans (Variable, Schnitte 400–700, Latin inkl. Umlaute). Entscheidung Christian 12.10.2026 */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../fonts/instrument-sans-var.woff2') format('woff2-variations'),
       url('../fonts/instrument-sans-var.woff2') format('woff2');
}

:root {
  /* ---- CI-Farben (fix) ---- */
  --color-primary-dark: #164075;
  --color-primary: #296fb7;
  --color-accent-lime: #bcd036;
  --color-accent-green: #60ac59;
  /* Akzent-Grün für kleine Schrift: gleicher Farbton, abgedunkelt auf
     WCAG-AA-Kontrast (4.6:1 auf --color-bg). #60ac59 selbst erreicht nur 2.6:1. */
  --color-accent-green-text: #3d7a38;

  /* ---- Neutrale Basis (warm, kein reines Weiß) ---- */
  --color-bg: #fafaf9;
  --color-bg-alt: #f3f2ee;        /* warmer Stein-Ton für Wechselsektionen */
  --color-ink: #16202b;           /* Headlines/Text-Dunkel */
  --color-text: #344356;          /* Fließtext: Dunkelblau-Grau aus #164075 (Farbton 213°), 9,7:1 auf --color-bg */
  --color-lead: #22344c;          /* Lead unter der Seiten-H1 */
  --color-muted: #5b636c;          /* ≥ 4.5:1 auf beiden Hintergründen */
  --color-line: #e2e0da;          /* Haarlinien */
  --color-footer: #111820;        /* neutrales Fast-Schwarz, bewusst keine CI-Farbe */

  /* ---- Abstands-Skala (8px-Basis) – ausschließlich diese Werte ---- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Semantische Abstände (verweisen nur auf die Skala) */
  --gutter: var(--space-3);
  --section-y: var(--space-6);

  /* ---- Typografie ---- */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --fs-kicker: 12px;
  --fs-small: 14px;
  --fs-body: 16px;                /* Desktop und Mobil (12.10.2026) */
  --fs-lead: 20px;                /* Mobil 18 px, siehe unten */
  --fs-h3: clamp(24px, 1.3rem + 0.5vw, 30px);
  --fs-h2: clamp(38px, 1.6rem + 2.6vw, 66px);
  --fs-h1: clamp(48px, 2rem + 4.2vw, 92px);
  --fs-display: clamp(44px, 1.8rem + 4vw, 88px);

  --lh-body: 1.7;
  --tracking-head: -0.02em;
  --tracking-kicker: 0.18em;
  --measure: 65ch;               /* max. Zeilenlänge Fließtext */

  /* ---- Layout ---- */
  --container: 1280px;
  --radius: 4px;
  --radius-btn: 2px;

  /* Header-Höhen (aus der Skala) */
  --header-h: var(--space-7);          /* 96 */
  --header-h-compact: var(--space-6);  /* 64 */

  /* ---- Schatten: weich & diffus, niedrige Deckkraft ---- */
  --shadow: 0 32px 64px -32px rgba(17, 24, 32, 0.1);
  --shadow-hover: 0 48px 96px -40px rgba(17, 24, 32, 0.1);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);        /* ruhig ausklingend – für ALLES */
  --dur-fast: 0.35s;
  --dur: 0.6s;
  --dur-slow: 1.1s;
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--space-5);
    --section-y: var(--space-7);
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter: var(--space-6);
    --section-y: var(--space-8);
  }
}
@media (max-width: 767px) {
  :root {
    --fs-lead: 18px;
    --header-h: var(--space-6);          /* 64 */
    --header-h-compact: var(--space-5);  /* 48 */
  }
}
