/* ============================================================
   BASE — Reset, Tokens, Typography, A11y, Layout, Focus
   ============================================================ */

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --accent:        #4f72e3;
  --accent-hover:  #3d5fc5;
  --accent-tint:   rgba(79,114,227,.10);
  --accent-tint-2: rgba(79,114,227,.06);
  /* Semantik */
  --green:  #059669;
  --red:    #dc2626;
  --amber:  #d97706;
  --green-tint: rgba(5,150,105,.10);
  --amber-tint: rgba(217,119,6,.12);
  /* Text */
  --text:  #1e293b;
  --text2: #475569;
  /* text3 = slate-500 (statt slate-400): 4.94:1 auf #fff → WCAG AA für Body-Text.
     Token weicht bewusst vom Design-System ab, weil Lighthouse a11y ≥95 verlangt. */
  --text3: #64748b;
  /* Surface */
  --surface:  #ffffff;
  --surface2: #f8fafc;
  --surface3: #f1f5f9;
  --border:   #e2e8f0;
  /* Radii */
  --r:    10px;
  --r2:   12px;
  --r3:   16px;
  --pill: 999px;
  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.02);
  --sh:    0 2px 8px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 14px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --sh-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
  --sh-accent: 0 6px 20px rgba(79,114,227,.25);
  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Easing */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html, body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; }

/* ─── Typography helpers ──────────────────────────────────── */
.display {
  font-size: clamp(36px, 7.6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(28px, 5.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.lead {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--text2);
  max-width: 60ch;
}
.lead--invert { color: rgba(255,255,255,.85); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.eyebrow--green { color: var(--green); }
.accent { color: var(--accent); }

/* ─── A11y helpers ────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 100;
  padding: 12px 16px; background: var(--accent); color: #fff;
  border-radius: var(--r); font-weight: 600;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ─── Layout container ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 1000px; }
.center { text-align: center; }

/* Section header pattern */
.sec-h { margin-bottom: 40px; }
.sec-h--center { text-align: center; max-width: 720px; margin-inline: auto; }
.sec-h--center .lead { margin-inline: auto; margin-top: 12px; }
.sec-h h2 { margin-bottom: 8px; }

/* Focus ring (Tastatur-User) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Container responsive ────────────────────────────────── */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 24px; }
}
