/* Reset, Grundtypografie, Layoutbausteine */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

/* Typografie */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.3vw, 2.85rem);
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 20px;
}

.claim {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* Layout */

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-head p {
  margin-top: 20px;
}

/* Dunkle Sektionen */

.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.section--dark .eyebrow {
  color: var(--accent);
}

.section--dark .lead,
.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark);
}

.section--alt {
  background: var(--surface-raised);
}

/* Hilfsklassen */

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

.sr-only:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 11px 18px;
  clip: auto;
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-s);
}

.stack > * + * {
  margin-top: 1.1em;
}

/* Scroll-Reveal */

/* Ohne JavaScript bleibt alles sichtbar, die Klasse js setzt das Skript selbst. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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