/* ============================================================
   reset.css — kleiner, moderner Reset
   Basiert auf gängigen Best-Practices (Box-Sizing, sinnvolle
   Defaults für Medien, Formulare, Typografie).
   ============================================================ */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Medien blockweise und nie breiter als ihr Container */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Formularelemente erben die Schrift */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Umbrüche bei langen Wörtern/URLs erlauben */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Listen ohne Standard-Aufzählung, wenn als Navigation genutzt */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Links erben Farbe, sofern nicht anders gestylt */
a {
  color: inherit;
  text-decoration: none;
}

/* Sanftes Scrollen zu Ankern — nur, wenn keine Reduktion gewünscht */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Fokus nie unsichtbar machen — Sichtbarkeit kommt aus styles.css */
:focus-visible {
  outline: none; /* eigener Fokus-Ring wird in styles.css gesetzt */
}
