/* Reset & Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* siehe reveal-transform-needs-html-overflow-hidden */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.6em;
  text-wrap: pretty;
}
h1 { font-size: clamp(3.4rem, 3.6vw + 1.8rem, 5.4rem); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.8vw + 1.2rem, 2.9rem); font-weight: 500; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 0.6vw + 1rem, 1.5rem); font-weight: 600; text-wrap: balance; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; text-wrap: pretty; max-width: 68ch; }
p.lede { font-size: 1.2rem; color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

button { font-family: inherit; }

::selection { background: var(--primary); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9em;
  position: relative;
  padding-bottom: 0.5em;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.4em;
  height: 2px;
  background: var(--primary);
}

/* Skip-Link für Tastaturnutzung */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--primary);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 2000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Fokus-Sichtbarkeit */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Icons – dezent, nie riesig */
.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
}
