/**
 * MODERN CSS RESET
 * Normalisiert Browser-Unterschiede
 */

/* Box-Sizing auf allen Elementen */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset Margins & Paddings */
* {
  margin: 0;
  padding: 0;
}

/* HTML & Body Grundeinstellungen */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
}

/* Media Elemente */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elemente */
input,
button,
textarea,
select {
  font: inherit;
}

/* Button Reset */
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* Link Reset */
a {
  text-decoration: none;
  color: inherit;
}

/* Liste Reset */
ul,
ol {
  list-style: none;
}

/* Heading Font-Weight Reset */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* Prevent text overflow */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove default fieldset & legend styles */
fieldset {
  border: none;
}

/* Accessibility: Respect motion preferences */
@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;
  }
}
