/* ==========================================================================
   base.css (projektunabhängig)
   - reduziert Browser-Defaults
   - schafft konsistente Grundregeln
   - enthält kein Design (keine Farben, keine Fonts, kein Layout-System)
   ========================================================================== */

/* 1) Kalkulierbares Box-Modell */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2) Standard-Abstände entfernen */
* {
  margin: 0;
  padding: 0;
}

/* 3) Textgrößen-Auto-Anpassung auf Mobile Browsern vermeiden */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 4) Medien-Elemente responsiv & ohne Inline-Gaps */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 5) Form-Controls erben Typografie */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 6) Tabellen leichter kontrollierbar */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 7) Fokus sichtbar (Accessibility) */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* 8) Animationen reduzieren, wenn User es wünscht */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
