/* =====================================================================
   base.css  –  Fundament
   ---------------------------------------------------------------------
   Enthält: Design-Tokens (CSS-Variablen), Reset, Basis-Typografie.
   Markenfarbe Grün #285a35 ist die Basis der gesamten Palette.
   Alle weiteren CSS-Dateien bauen auf diesen Variablen auf.
   ===================================================================== */

/* ---- Design Tokens ------------------------------------------------- */
:root {
  /* Marken-Palette (abgeleitet vom Banner: tiefes Grün, Kilian-Gelb, Faden-Rot) */
  --gruen:        #285a35;   /* Wunschfarbe des Kunden – Signatur */
  --gruen-tief:   #16331f;   /* dunkler Hintergrund            */
  --gruen-nacht:  #0e2114;   /* fast schwarz, für Tiefe         */
  --gruen-hell:   #3e7d4f;
  --gelb:         #e7c84b;   /* Akzent / CTA                    */
  --rot:          #d24b3a;   /* sekundärer Akzent (Faden)       */
  --creme:        #f3efe4;   /* Text auf Grün / heller BG       */
  --creme-dim:    rgba(243, 239, 228, 0.62);

  /* Flächen */
  --bg:           var(--gruen-tief);
  --bg-2:         var(--gruen-nacht);
  --fg:           var(--creme);
  --line:         rgba(243, 239, 228, 0.14);
  --card:         rgba(243, 239, 228, 0.045);
  --card-hover:   rgba(243, 239, 228, 0.08);

  /* Typo */
  --font-display: "Anton", "Archivo Black", "Arial Narrow", sans-serif;
  --font-body:    "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;

  /* fluide Schriftgrößen (clamp = skaliert mit Viewport) */
  --fs-hero:   clamp(2.7rem, 9vw, 8rem);
  --fs-h1:     clamp(2.6rem, 8vw, 7rem);
  --fs-h2:     clamp(2rem, 5vw, 4.2rem);
  --fs-h3:     clamp(1.3rem, 2.6vw, 2rem);
  --fs-lead:   clamp(1.05rem, 1.6vw, 1.5rem);
  --fs-body:   clamp(1rem, 1.1vw, 1.125rem);
  --fs-small:  0.85rem;

  /* Layout */
  --maxw:      1320px;
  --gutter:    clamp(1.2rem, 5vw, 5rem);
  --radius:    18px;
  --radius-lg: 28px;

  /* Motion – zentrale Easings für ein einheitliches "Feel" */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);     /* satt auslaufend  */
  --ease-io:   cubic-bezier(0.65, 0.05, 0.36, 1); /* in/out           */
  --dur:       0.7s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;   /* sanfte Anker-Sprünge (Fallback) */
}

/* Wenn JS-Smoothscroll/Reveals aktiv sind, übernimmt JS das Scrollen.
   .is-loading blendet alles bis zum Preloader-Ende aus.            */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---- Typografie ---------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }

.display  { font-family: var(--font-display); text-transform: uppercase; }
.lead     { font-size: var(--fs-lead); color: var(--creme-dim); max-width: 46ch; }
.eyebrow  {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gelb);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--gelb); display: inline-block; }

.text-gelb { color: var(--gelb); }
.text-dim  { color: var(--creme-dim); }

/* ---- Hilfsklassen -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: clamp(5rem, 12vh, 11rem); position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Barrierefreiheit: Animationen respektieren System-Einstellung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
