/* Grundlagen, die auf jeder Seite gelten. Setzt tokens.css voraus. */

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

html {
  /* Verhindert, dass iOS beim Drehen die Schrift eigenmaechtig vergroessert. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--schrift);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, figure { margin: 0; }

/* Tastaturbedienung muss sichtbar bleiben. Der Ring haengt an :focus-visible,
   damit ein Mausklick ihn nicht auslöst. */
:focus-visible {
  outline: 2px solid var(--gruen);
  outline-offset: 3px;
}

/* Nur fuer Screenreader — etwa Beschriftungen, die im Entwurf fehlen. */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
