/* =====================================================================
   RESET
   Bewusst knapp gehalten: nur was gebraucht wird, keine Normalize-Wand.
   ===================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sprungziele landen nicht unter der fixierten Kopfzeile */
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip statt hidden: „hidden“ macht den Body zum Scroll-Container und
     setzt damit jedes position:sticky auf der Seite außer Kraft.
     „clip“ schneidet nur ab und lässt sticky funktionieren. */
  overflow-x: clip;
}

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

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: inherit;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* Wird per JS gesetzt, sobald das Menü offen ist */
body[data-scroll-locked='true'] {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
