/* ==========================================================
   03 · Basis: Grundstil, Überschriften, Links, Hilfsklassen
   ========================================================== */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s var(--ease); }
a:hover { color: var(--moss-dark); }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage-200); color: var(--ink); }

/* --- Überschriften --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); font-family: var(--sans); font-weight: 600; }

/* Fett/Kursiv aus dem Editor in Überschriften vereinheitlichen */
:is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }
:is(h1, h2, h3, h4, h5, h6) i { font-style: normal; }

/* --- Text --- */
p, ul, ol { margin: 0 0 1.1em; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
address { font-style: normal; }

/* --- Inhaltsbreite --- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap .wrap { width: 100%; }
.prose { max-width: 44rem; }

/* --- Hilfsklassen --- */
.text-center { text-align: center; }

/* kleine Überschrift in Großbuchstaben über Titeln */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

/* "Zum Inhalt springen" (nur per Tastatur sichtbar) */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--moss); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Weniger Bewegung, wenn im Betriebssystem eingestellt --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
