/* ═══════════════════════════════════════════
   BASE — Reset, Typografie, globale Styles
   ═══════════════════════════════════════════ */

*, *::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: var(--lh-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Überschriften ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { max-width: 68ch; }

/* ── Links ── */
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }

/* ── Bilder ── */
img { max-width: 100%; height: auto; display: block; }

/* ── Listen ── */
ul, ol { list-style: none; }

/* ── Eingaben ── */
input, textarea, button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Auswahl & Fokus ── */
::selection { background: var(--color-accent-soft); color: var(--color-text-heading); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

/* ── Hilfsklassen ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.container--narrow { max-width: var(--max-width-narrow); }

.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-bg-alt); }
.section--accent { background: var(--color-accent-light); }

.text-center { text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: var(--space-sm);
  display: inline-block;
}
.lead { font-size: var(--fs-lead); color: var(--color-text-dim); }

.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;
}

/* ── Scroll-Reveal (wird per JS aktiviert) ── */
.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: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
