/* Modern CSS Reset */

/* 1. Box-Model global auf border-box setzen */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Margin & Padding bei allen gÃ¤ngigen Elementen entfernen */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* 3. HTML & Body Setup */
html {
  /* Verhindert TextgrÃ¶ÃŸen-Ã„nderung bei Orientierungswechsel (iOS) */
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  /* Verhindert hÃ¼pfen bei Scrollbar ja oder nein */
  scrollbar-gutter: stable;
}

body {
  /* Verbesserte Text-GlÃ¤ttung */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* MindesthÃ¶he fÃ¼r Layouts und Vermeidung von horizontalem Scrollen */
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* 4. Medien-Elemente (Bilder & Videos) */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Listen ohne Standard-Styling */
ul,
ol {
  list-style: none;
}

/* 6. Formular-Elemente vereinheitlichen */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Tabellen-Fix */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 8. Textarea-GrÃ¶ÃŸe fixieren (nur vertikal erlauben) */
textarea:not([rows]) {
  min-height: 10em;
}

textarea {
  resize: vertical;
}

/* 9. Fokus-Stile (Barrierefreiheit) */
/* Entfernt den "Blue Glow", behÃ¤lt aber die Sichtbarkeit bei Tastatur-Navi */
:focus-visible {
  outline: 3px solid var(--accent-color, #ff5800);
  outline-offset: 2px;
}

/* 10. Animationen reduzieren (Respektiert Nutzer-Systemeinstellungen) */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
