/* base.css — Reset, Grundtypografie, Layout-Grundlagen.
 * Keine Hex-Werte: ausschließlich Tokens aus tokens.css. Mobile-first. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }

body{
  margin:0;
  background:var(--page);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
@media (min-width:48rem){ body{font-size:18px} }

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

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--forest);
  line-height:1.18;
  margin:0 0 var(--space-4);
  font-weight:600;
}
h1{font-size:clamp(2rem,1.3rem + 3vw,3.1rem); letter-spacing:-.012em}
h2{font-size:clamp(1.5rem,1.1rem + 1.6vw,2.1rem)}
h3{font-family:var(--font-sans); font-size:1.12rem; font-weight:700; letter-spacing:-.005em}
h4{font-family:var(--font-sans); font-size:.95rem; font-weight:700}

p{margin:0 0 var(--space-4); max-width:var(--measure)}
ul,ol{max-width:var(--measure)}

a{color:var(--teal-deep); text-decoration-thickness:1px; text-underline-offset:.18em}
a:hover{color:var(--forest)}

:focus-visible{outline:2px solid var(--teal-deep); outline-offset:2px; border-radius:2px}

hr{border:0; border-top:1px solid var(--line); margin:var(--space-12) 0}

code,kbd{font-family:var(--font-mono); font-size:.88em}

/* ---- Layout ---- */
.container{width:min(100% - 2.5rem, var(--container)); margin-inline:auto}
/* Luftiger seit dem 26.07.2026: Die kleinen Überschriften über den Abschnitten
   sind entfallen, der Abstand trägt die Gliederung jetzt allein. */
.section{padding-block:var(--space-24)}
.section--tight{padding-block:var(--space-16)}
.stack > * + *{margin-top:var(--space-4)}

/* ---- Wiederkehrende Textbausteine ---- */
.eyebrow{
  font-size:.76rem; font-weight:700; text-transform:uppercase;
  letter-spacing:var(--eyebrow-tracking); color:var(--teal-deep);
  margin:0 0 var(--space-2);
}
.lede{font-size:1.12rem; color:var(--ink-soft); max-width:var(--measure)}
.small{font-size:.85rem; color:var(--ink-soft)}

/* ---- Barrierefreiheit ---- */
.skip-link{position:absolute; left:-9999px}
.skip-link:focus{
  left:var(--space-4); top:var(--space-4); z-index:99;
  background:var(--surface); color:var(--forest);
  padding:var(--space-2) var(--space-4); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card);
}
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}
