/* ============================================================
   GranitCloud — base.css
   Design-Token, EXTRAHIERT aus dem gelockten Hero (index.html).
   Quelle der Wahrheit für alle neuen Sektionen & Unterseiten.
   KEINE neuen Farben/Fonts hier einführen — nur aus Hero abgeleitet.
   ============================================================ */

/* ---------- Schrift lokal (same-origin, keine Übertragung an Dritte) ----------
   Schibsted Grotesk ist eine Variable Font: EIN File deckt 400–700 ab.
   Ersetzt das frühere Laden vom Google-Fonts-CDN. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-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;
}

:root {
  /* ---------- Farbe (1:1 aus Hero) ---------- */
  /* ---------- Helles Theme (Sektionen + Unterseiten). Hero bleibt dunkel, eigene Token. ---------- */
  --granit-900: #F3F1ED;                  /* heller, warm-neutraler Grund (Stein/Granit hell) */
  --ink:        #1C1E21;                  /* Primärtext dunkel */
  --muted:      rgba(28,30,33,.64);        /* Sekundärtext */
  --stein:      rgba(28,30,33,.46);        /* leiser Tertiärtext */
  --line:       rgba(28,30,33,.13);        /* Hairlines / Trenner */
  --surface:    rgba(28,30,33,.035);       /* leicht erhöhte Fläche */
  --surface-2:  rgba(28,30,33,.06);        /* stärker erhöhte Fläche */
  --accent:     #C8382C;                  /* Schweizer-Rot, CTAs + Akzentstriche */
  --accent-h:   #B02F24;                  /* Hover */
  --on-accent:  #FFFFFF;                  /* Text auf Accent */

  /* ---------- Typografie (1:1 aus Hero) ---------- */
  --font-sans:  "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-body: 400;  --fw-med: 500;  --fw-semi: 600;  --fw-bold: 700;

  /* ---------- Radius (aus Hero) ---------- */
  --radius:    11px;
  --radius-sm: 8px;

  /* ---------- Layout & Abstände (aus Hero abgeleitet) ---------- */
  --maxw:      1280px;                    /* aus Hero --maxw */
  --pad-x:     clamp(20px, 4vw, 48px);    /* aus Hero .hero__body padding */
  --section-y: clamp(64px, 9vw, 120px);   /* Vertikalrhythmus der Sektionen */
  --gap:       clamp(20px, 3vw, 40px);

  /* ---------- Typo-Skala (harmoniert mit Hero-Headline) ---------- */
  --fs-h2:    clamp(1.9rem, 3.4vw, 2.9rem);
  --fs-h3:    clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body:  clamp(1rem, 1.2vw, 1.12rem);
  --fs-small: 0.92rem;
  --lh-body:  1.6;
}

/* ============================================================
   Gemeinsame Primitive — von hier leiten alle neuen Seiten ab.
   (Wirken NICHT auf den Hero: der bringt eigene inline-Styles mit.)
   ============================================================ */

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

/* Nur für eigenständige Unterseiten (index.html/Hero hat eigenes body-Styling) */
body.gc-page {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-body);
  background: var(--granit-900);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: var(--lh-body);
}

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

.section { padding-block: var(--section-y); background: var(--granit-900); }
.section + .section { border-top: 1px solid var(--line); }

/* Überschriften */
.h2 {
  font-size: var(--fs-h2); font-weight: var(--fw-bold);
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em;
}
.h3 {
  font-size: var(--fs-h3); font-weight: var(--fw-semi);
  letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 .4em;
}
.lead { font-size: var(--fs-body); color: var(--muted); max-width: 60ch; margin: 0; }

/* Buttons — identisch zum Hero (.btn), damit CTAs überall gleich aussehen */
/* .btn — IDENTISCH zum gelockten Hero (padding/box-shadow 1:1), damit kein Leak */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 1.02rem; font-weight: var(--fw-semi);
  line-height: 1; padding: 17px 30px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -8px rgba(200,56,44,.6); }
.btn--primary:hover { background: var(--accent-h); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(28,30,33,.28); }
.btn--ghost:hover { background: rgba(28,30,33,.05); border-color: rgba(28,30,33,.5); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Links */
a { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: gcReveal .7s cubic-bezier(.16,1,.3,1) forwards; }
  @keyframes gcReveal { to { opacity: 1; transform: none; } }
}
