/* ==========================================================================
   Design Tokens – Medizinische Akademie (Prototyp)
   Farbwerte sind VORLÄUFIG: aus Originaldateien bzw. dem PDF-Entwurf gemessen.
   ========================================================================== */

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-stretch: 87% 112%;
  font-style: normal;
  font-display: swap;
}

/* Kursive: statischer Schnitt (36pt, SemiCondensed) statt 4,5-MB-Variable-Font */
@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather-SemiCondensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Markenfarben (Referenzwerte, vorläufig) --- */
  --brand-teal: #4bb69c;        /* Grün-Türkis, Flächen im Entwurf (gemessen) */
  --brand-teal-logo: #4cb69b;   /* Logo-Türkis „>Akademie“ (gemessen, nur im Logo) */
  --brand-yellow: #fecc00;      /* Logo-Gelb (SVG-Originalwert) */
  --brand-ib-blue: #009ddf;     /* IB-Blau (SVG-Originalwert, nur im IB-Logo) */

  /* --- Funktionale Abstufungen (abgeleitet, für Kontrast & Hierarchie) --- */
  --teal-deep: #1c6b5a;         /* Text, Links, Buttons auf Weiß: 6,36:1 */
  --teal-deeper: #134d41;       /* Hover, Fokus, Footer-Fläche: 9,7:1 */
  --ink: #15322b;               /* Überschriften; auf Grün-Türkis 5,56:1 */
  --text: #2a3532;              /* Fließtext: 12,7:1 auf Weiß */
  --text-muted: #4d5c58;        /* Sekundärtext: 7,0:1 auf Weiß */
  --mint-50: #f1f9f6;           /* sehr helle Fläche */
  --mint-100: #e2f3ed;          /* helle Fläche */
  --mint-200: #c9e8e2;          /* Fläche aus dem Entwurf (gemessen) */
  --line: #cfe3dd;              /* Trennlinien */
  --white: #ffffff;

  /* --- Typografie --- */
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* V3.1a (bis 1099 px): 320 → 34 px, 390 → 36 px, 768 → 46 px, max. 50 px */
  --fs-display: clamp(34px, 1.6rem + 2.65vw, 50px);
  --fs-h2: clamp(32px, 1.6rem + 1.9vw, 54px);
  --fs-h3: clamp(20px, 1.15rem + 0.35vw, 24px);
  --fs-lead: clamp(18px, 1rem + 0.3vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-xs: 14px;

  --lh-tight: 1.08;
  --lh-heading: 1.18;
  --lh-body: 1.62;

  /* Merriweather: halbschmale Breite für Display-Satz */
  --wdth-display: 92;
  --wdth-text: 100;

  /* --- Raum --- */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section-space: clamp(80px, 3rem + 6vw, 168px);

  /* --- Layout (V2: differenziertes Raster) ---
     Lesebreite  → --w-read    (Fließtext, Leads)
     Inhaltsbreite → --w-wrap  (12-Spalten-Raster aller Kompositionen)
     Medienfläche → randabfallend (Hero, Kontaktband, Markenband-Grund) */
  --w-wrap: 1600px;
  --w-read: 36rem;
  --gutter: clamp(20px, 4.2vw, 96px);
  --grid-gap: clamp(16px, 1.8vw, 32px);
  --header-h: 84px;

  /* --- Formensprache: „Sprechform“ ---
     Drei weiche Ecken, eine spitze Ecke (der „Ansatz“ einer Sprechblase).
     Die spitze Ecke zeigt immer zum zugehörigen Text. */
  --r-organic: clamp(32px, 1rem + 4.4vw, 112px);
  --r-organic-s: 20px;
  --r-control: 14px;
  --r-control-tail: 3px;

  /* --- Bewegung --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;
}

@media (min-width: 1024px) {
  :root {
    --fs-body: 18px;
    --header-h: 104px;
  }
}

@media (min-width: 1800px) {
  :root {
    --fs-h2: 60px;
    --fs-lead: 22px;
  }
}
