/* WK-Gerüst: Grundlagen. Alle Werte über Tokens. */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--kopf-hoehe);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: var(--text-groesse);
  line-height: 1.6;
}

main { flex: 1; display: block; }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  line-height: 1.15;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
  margin: var(--abstand-6) 0 var(--abstand-2);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p, ul, ol, dl { margin: 0 0 var(--abstand-2); }
p { max-width: 70ch; text-wrap: pretty; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: 0.15em; }

:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

.huelle { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { padding-block: var(--abstand-8); }

.skip {
  position: absolute;
  left: var(--abstand-2);
  top: var(--abstand-2);
  z-index: 100;
  padding: var(--abstand-1) var(--abstand-2);
  background: var(--akzent);
  color: var(--akzent-text);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

.preis, .zahl { font-variant-numeric: tabular-nums; }
