/* ==========================================================================
   SummitPeak „Höhenlinie Navy“ – Design-Tokens und Schriften.
   Alle Farben, Glas-Werte, Schriftgrößen, Abstände und Bewegungswerte stehen hier;
   base.css, home.css und pages.css greifen nur auf diese Variablen zu.
   ========================================================================== */

/* ---------- Schrift (selbst gehostet, WOFF2) ----------
   Eine Familie für alles: Inter mit optischer Größe (Entscheidung des Inhabers vom 15.11.2026,
   wie auf der bisherigen Seite). Überschriften unterscheiden sich durch Größe, Stärke und Laufweite. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* V3.1: Geist Mono (SIL OFL 1.1) nur für die 0/1-Ziffern des Code-Effekts im Einstieg – keine Text-Schrift */
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* ---------- Farben ---------- */
  --navy: #0D2B57;          /* Hausfarbe */
  --navy-deep: #0A2247;     /* tiefer */
  --navy-deepest: #071A38;  /* tiefste Ebene */
  --blue: #2A5286;          /* Sekundärblau – nur als Tiefenlicht */
  --copper: #C77D14;        /* winziger Akzent, höchstens einer pro Bildschirm */

  --heading: #FFFFFF;
  --text: #C9D4E3;          /* Fließtext auf Navy (9,3:1) */
  --text-glass: #D3DCE8;    /* Fließtext auf Glas (heller, weil der Untergrund heller sein kann) */
  --muted: #A9B8CC;         /* Nebeninformation, nur auf Navy oder schwachem Glas (6,9:1) */
  --accent-text: #9DB6DE;   /* helles Sekundärblau für das Schlüsselwort in Überschriften */
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .2);
  --error: #FFC2B8;         /* Fehlertext auf Glas */
  --error-line: #FFB4A8;

  /* ---------- Glas ---------- */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .045));
  --glass-border: rgba(255, 255, 255, .13);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .09);
  --glass-shadow: 0 30px 60px -24px rgba(2, 10, 26, .65), 0 12px 24px -12px rgba(2, 10, 26, .35);
  --glass-blur: saturate(160%) blur(22px);
  --glass-solid: #16355F;   /* deckende Ersatzfläche ohne backdrop-filter */
  --field-bg: rgba(7, 26, 56, .5);
  --field-line: rgba(255, 255, 255, .42);

  /* ---------- Schrift ---------- */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;   /* nur Code-Ziffern */

  --heading-weight: 600;
  --display-tracking: -0.035em;
  --heading-tracking: -0.028em;

  --fs-display: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  --fs-small: .9375rem;
  --fs-xs: .8125rem;        /* 13 px: kleinste Größe für lesbaren Text */

  /* ---------- Maße (8-px-System) ---------- */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(16px, 2.2vw, 32px);
  --section-y: clamp(88px, 10vw, 152px);
  --nav-h: 64px;

  /* ---------- Kopfzeile (V3.1) ---------- */
  --hp: 0;                                  /* Scroll-Fortschritt 0…1, setzt site.js (0 bei 0 px, 1 ab 48 px) */
  --hh-top: 104px; --hh-min: 68px;          /* Kopfzeile oben / gescrollt (Mobil: 72/60, s. base.css) */
  --logo-top: 72px; --logo-k: .6667;        /* Logo-Höhe oben; Faktor gescrollt (48/72) */
  --hh-cur: calc(var(--hh-top) - (var(--hh-top) - var(--hh-min)) * var(--hp));
  --header-h: var(--hh-min);                /* Versatz für Anker, Bühne und Menü: kompakte Höhe */
  --glass-fade: 28px;                       /* weicher Auslauf des Glases unter der Kopfzeile */
  --radius: 14px;
  --radius-lg: 24px;

  /* ---------- Bewegung ---------- */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);   /* kräftiges Ease-out für alles, was ein- oder austritt */
  --dur-press: 160ms;                        /* Rückmeldung auf Drücken */
  --dur-ui: 200ms;                           /* Farb- und Zustandswechsel */
}
