/* Grundlagen: Reset, Typografie, Layout-Helfer. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  font-weight: var(--weight-bold);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.15;
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: -0.012em;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--color-accent-text);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-ink);
}

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

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--subtle {
  background: var(--color-subtle);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-on-dark-muted);
}

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

.section--tint {
  background: var(--color-tint);
}

.section--accent {
  background: var(--color-slate);
  color: var(--color-on-dark-muted);
}

.section--accent h2,
.section--accent strong {
  color: #fff;
}

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

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  margin-bottom: clamp(var(--space-7), 5vw, var(--space-8));
}

.eyebrow {
  color: var(--color-accent-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

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

.lead {
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

/* Platzhalter, die vor dem Livegang ersetzt werden müssen, bleiben sichtbar markiert. */
.placeholder {
  background: #fff4cc;
  color: #5c4500;
  border-radius: 4px;
  padding: 0 0.3em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}
