/* ═══════════════════════════════════════════════════════════
   BASE — Reset, Typografie, globale Styles (Mobile-First)
   ═══════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.15;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-hero); font-weight: var(--fw-black); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--text-dim); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }

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

ul { list-style: none; }

strong { color: var(--text); font-weight: var(--fw-semibold); }

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

::selection { background: var(--coral-light); color: var(--navy); }

/* Layout-Helfer */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: var(--max-width-narrow); }

.section { padding-block: var(--space-section); }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); }
.section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--dark p { color: var(--text-on-dark-dim); }

.text-center { text-align: center; }
.accent { color: var(--accent); }

/* Abschnitts-Kopf */
.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section__title { margin-bottom: 1rem; }
.section__lead {
  font-size: var(--fs-lead);
  max-width: 620px;
  margin-inline: auto;
}

/* Scroll-Reveal (von js/main.js gesteuert) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Mobile-Härtung: lange Wörter (v. a. deutsche Komposita) nie überlaufen lassen ── */
h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, a, label { overflow-wrap: break-word; }
