/* ==========================================================================
   VLISTA — Reset
   Nur das Nötige. Keine Meinung über Erscheinungsbild, nur über Verhalten.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol {
  margin: 0;
}

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

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

/* Bilder tragen ihre Seitenverhältnisse selbst, damit beim Laden nichts springt */
img {
  height: auto;
  background-color: var(--vl-paper-deep);
}

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

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

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

/* Sichtbarer Fokus für Tastaturbedienung — nie entfernen, nur gestalten */
:focus-visible {
  outline: 2px solid var(--vl-signal);
  outline-offset: 3px;
}

:where(:focus:not(:focus-visible)) {
  outline: none;
}

/* Wer weniger Bewegung möchte, bekommt weniger Bewegung.
   Der Feed schaltet zusätzlich in ein statisches Raster (siehe feed.js). */
@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;
  }
}
