/*
  Basis-Reset und globale Grundregeln. Layout- und Komponenten-Styling
  folgen in Phase 2 (Grundgerüst) bzw. den jeweiligen Seiten-Phasen.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-base);
  font-size: clamp(16px, calc(16px + 1 * ((100vw - 768px) / 256)), 17px);
  line-height: 1.65;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Typografie — Styleguide Kap. 3.2 ---------- */
/* Zwischen 768px und 1024px linear interpoliert (clamp), darunter/darüber fest. */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

h1 {
  font-size: clamp(36px, calc(36px + 28 * ((100vw - 768px) / 256)), 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(30px, calc(30px + 14 * ((100vw - 768px) / 256)), 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(22px, calc(22px + 6 * ((100vw - 768px) / 256)), 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h4 {
  font-size: clamp(18px, calc(18px + 2 * ((100vw - 768px) / 256)), 20px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
}

.lead {
  font-size: clamp(18px, calc(18px + 2 * ((100vw - 768px) / 256)), 20px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-body);
  max-width: 65ch;
}

.prose p {
  max-width: 72ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin: 0 0 var(--space-3);
}

small,
.fine-print {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Fokuszustand — global, nie entfernt (Styleguide Kap. 3.4 / Kap. 5) */
:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-base);
  color: var(--brand-teal);
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
