/* ============================================================
   BASE — Reset, Custom Properties, Typography
   ============================================================ */

/* ============================================================
   SELBST GEHOSTETE SCHRIFTEN — lokal, keine Google-Fonts-Requests
   Inter (400/500/600) + JetBrains Mono (400/500/700), je latin + latin-ext.
   Variable woff2 in /public/fonts/, unicode-range 1:1 von Google (css2, Inter v20).
   cyrillic/greek/vietnamese bewusst weggelassen: auf einer DE/EN-Seite rendert
   kein Glyph dieser Ranges, Schriftbild bleibt identisch. Eingebaut 2026-10-02.
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/public/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/public/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/public/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/public/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/public/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/public/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/public/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/public/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Farben — Logo-Palette, gesetzt 2026-08-29 ──
     Ersetzt die Blau-Fassung (#1A1A2E / #3B82F6 / #0F4C81). Grund: #3B82F6 auf
     Weiss liegt bei 3.68 (AA-Fail), #165AC8 bei 6.31. Die ALTEN Tokennamen tragen
     die neuen Werte per Rolle, damit die bestehenden Komponenten ohne Massen-Rename
     greifen; die neuen Namen (--c-signal-light, --c-node, --c-surface-2, --c-text-2,
     --c-meta, --c-footer …) stehen additiv daneben. Single Source: reference/. ── */

  /* Grundflächen */
  --c-dark:         #0A1B32;   /* dunkler Bandgrund (Band 1, 5, 8) */
  --c-footer:       #06121F;   /* Fusszeile */
  --c-white:        #FFFFFF;
  --c-surface:      #FFFFFF;   /* weisser Bandgrund, Kartenfläche */
  --c-surface-2:    #EDF1F7;   /* heller Bandgrund unter Rastern */
  --c-light:        #EDF1F7;   /* Alt-Name → surface-2 */

  /* Signal */
  --c-accent:       #165AC8;   /* Alt-Name = Primärsignal auf hell: Link, Eyebrow, gefüllter Knopf, Zahlen, aktive Nav, Fokus */
  --c-signal:       #7FB0F5;   /* Alt-Name → Signal auf DUNKEL == neu --c-signal-light */
  --c-signal-light: #7FB0F5;   /* Eyebrow und Link auf dunklem Grund */
  --c-signal-soft:  #9DBEEC;   /* Referenzband-Schriftzüge auf dunkel */
  --c-node:         #4E8BE8;   /* Canvas-Knoten */
  --c-on-signal:    #FFFFFF;   /* Schrift auf gefüllter Signalfläche — weiss (Knopf-Regel 29.08.) */
  --c-accent-hover: #114A9E;   /* Hover gefüllter Knopf auf hell */
  --c-signal-hover: #9DC2F7;   /* Hover auf dunkel (seit Knopf-Vereinheitlichung ungenutzt) */
  --c-signal-dim:   color-mix(in srgb, var(--c-accent) 15%, transparent);
  --c-signal-tint:   #EAF2FE;  /* helle Info-/Trust-Fläche (nur hell) — geparkt (Pool) */
  --c-signal-tint-2: #DBEAFE;

  /* Text */
  --c-text:         #0F1A2B;   /* Primärtext auf hell (frueher auch --c-text-dark, mechanisch ersetzt 30.08) */
  --c-text-2:       #3E4C60;   /* Sekundärtext auf hell, Nav-Links */
  --c-subtle:       #3E4C60;   /* Alt-Name → Sekundärtext (Textfarben-Regel: kein Meta-Grau für Inhalt) */
  --c-meta:         #5A6779;   /* NUR Metadaten auf hell */
  --c-text-light:   #E7ECF3;   /* Alt-Name = Primärtext auf dunkel == neu --c-text-dark */
  --c-text-dark-2:  #A7B6CC;   /* Sekundärtext auf dunkel */

  /* Linien / Karten */
  --hairline:         rgba(10, 27, 50, 0.10);
  --hairline-light:   rgba(10, 27, 50, 0.10);   /* Alt-Name == --hairline */
  --hairline-2:       rgba(10, 27, 50, 0.12);
  --hairline-light-2: rgba(10, 27, 50, 0.12);   /* Alt-Name == --hairline-2 */
  --hairline-dark:    rgba(231, 236, 243, 0.18);
  --hairline-dark-2:  rgba(231, 236, 243, 0.24);
  --c-border-light:   rgba(10, 27, 50, 0.10);
  --c-border-dark:    rgba(255, 255, 255, 0.08);
  --card-dark:        rgba(255, 255, 255, 0.06);
  --card-dark-line:   rgba(255, 255, 255, 0.12);
  --surface-dark-2:   #12213B;   /* Karte/Block auf --c-dark */
  --surface-dark-3:   #06121F;   /* abgesenkter Block / Footer */
  --chip-bg:          #17284A;
  --chip-text:        #A7B6CC;

  /* Status — nur /demo/pool/ (geparkt), Werte bleiben */
  --status-ok:       #3FA37A;
  --status-ok-bg:    color-mix(in srgb, var(--status-ok) 13%, transparent);
  --status-warn:     #D9A441;
  --status-warn-bg:  rgba(217, 164, 65, 0.13);
  --c-pill-inactive: #9AA2BD;

  --nav-scrolled-bg: rgba(255, 255, 255, 0.92);  /* helle Nav, gescrollt */

  --radius-btn:  7px;
  --radius-card: 10px;
  --pill-radius: 6px;
  --pool-max-width: 760px;

  /* ── Fonts ── */
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Spacing ── */
  --sp-2xs:  0.25rem;
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   7rem;
  --sp-2xl:  10rem;

  /* ── Layout ── */
  --container-max:  1200px;
  --container-pad:  clamp(1rem, 5vw, 2.5rem);
  --nav-height:     80px;   /* zweizeilig seit 15.09.: Wortmarke + GmbH / Tagline */

  /* ── Eyebrow (.section-label + verwandte Mono-Labels) ── */
  --eyebrow-size:     clamp(0.85rem, 1vw + 0.6rem, 1rem);   /* Demo-CSS */
  --eyebrow-weight:   600;
  --eyebrow-tracking: 0.14em;
  --eyebrow-margin:   1rem;

  /* ── Breakpoints (Doku-Konstanten) ── */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* ── Easing ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── HTML / Body ── */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-surface);
  overflow-x: hidden;
}

/* ── Typography ── */
/* Überschriften: Inter, Gewicht 600, Tracking -0.02em (Regel: Inter ist Sprache,
   Mono ist Beschriftung). Grössen ziehen die Referenz nach. */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--c-text);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.01em; }

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }
img, svg { display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Container ── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Section utilities ── */

.section-header {
  margin-bottom: var(--sp-lg);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--c-accent);   /* Default = heller Grund; dunkle Bühnen kippen auf --c-signal-light */
  margin-bottom: var(--eyebrow-margin);
}

.section-headline {
  color: inherit;
}

.section-lead {
  margin-top: var(--sp-sm);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text-2);
  max-width: 540px;
}

/* ── Focus ── */

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Selection ── */

::selection {
  background-color: var(--c-accent);
  color: var(--c-white);
}

/* ── Scrollbar ── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-dark); }
::-webkit-scrollbar-thumb { background: var(--c-accent); border-radius: 3px; }

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
