/* ==========================================================================
   EIRA Designsystem · Tokens
   Alle Farben, Schriften und Abstände an einer Stelle.
   Für die spätere WordPress-Umsetzung 1:1 übernehmbar (Theme-CSS oder
   Elementor „Globale Farben / Schriften“).
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, kein Google-CDN) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("../assets/fonts/RedHatDisplay-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
/* Serifen-Kandidaten für Editorial-Headlines */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- Markenfarben ---------- */
  --eira-primary: #2D3A34;     /* Dunkelgrün: Text, dunkle Sektionen */
  --eira-forest: #4f5c54;      /* Sekundärtext */
  --eira-sage: #6B8A7A;
  --eira-sage-light: #cbdad4;
  --eira-paper: #FDFBF8;       /* Grundfläche */
  --eira-creme: #f4ede7;
  --eira-gold: #FFB800;        /* nur Akzente, v. a. der Punkt */

  /* ---------- Ergänzt: Stein- und Greigetöne (aus den Skulpturen) ---------- */
  --eira-stone: #EFEBE5;       /* Sockel / Nische hinter Objekten */
  --eira-greige: #DDD5C9;      /* Linien auf Stein, Platzhalter-Steine */
  --eira-clay: #B5A998;        /* Schatten, dunkle Steinkante */

  /* ---------- Modulfarben (sparsam: Hover-Akzent je Organsystem) ---------- */
  --mod-atemwege: #96a187;
  --mod-sinnesorgane: #7a9dab;
  --mod-herz: #c25450;
  --mod-endokrinologie: #b8943e;
  --mod-stoffwechsel: #a06650;
  --mod-neurologie: #5b7b8a;

  /* ---------- Funktionale Rollen ---------- */
  --c-bg: var(--eira-paper);
  --c-text: var(--eira-primary);
  --c-text-soft: var(--eira-forest);
  --c-line: rgba(45, 58, 52, 0.14);
  --c-line-strong: rgba(45, 58, 52, 0.32);
  --c-accent: var(--eira-gold);
  --c-patho: var(--mod-herz);
  --c-physio: var(--eira-sage);

  /* ---------- Typografie ---------- */
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Geist", system-ui, sans-serif;   /* Organnamen, Labels */
  --font-logo: "Red Hat Display", "Geist", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;  /* Headlines (umschaltbar) */
  --serif-weight: 360;
  --serif-scale: 1;
  --serif-tracking: -0.025em;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;                                   /* gesperrte Kleinlabels */
  --fs-h1: calc(clamp(2.75rem, 1.2rem + 6.4vw, 7.25rem) * var(--serif-scale));
  --fs-h2: calc(clamp(2.25rem, 1.3rem + 4vw, 5rem) * var(--serif-scale));
  --fs-h3: calc(clamp(1.75rem, 1.2rem + 2vw, 2.75rem) * var(--serif-scale));

  /* ---------- Raster & Abstände ---------- */
  --max: 1320px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --section-y: clamp(96px, 12vw, 184px);
  --header-h: 64px;
  --radius: 4px;

  /* ---------- Bewegung ---------- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --dur: 900ms;
}

/* Headline-Varianten (über das Prototyp-Panel umschaltbar) */
html[data-serif="instrument"] {
  --font-serif: "Instrument Serif", Georgia, serif;
  --serif-weight: 400;
  --serif-scale: 1.14;
  --serif-tracking: -0.015em;
}
html[data-serif="newsreader"] {
  --font-serif: "Newsreader", Georgia, serif;
  --serif-weight: 380;
  --serif-scale: 1.02;
  --serif-tracking: -0.03em;
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}
