/* 2026 Lean Preflight */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  height: 100%;
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100%; /* Besser als height: 100% für scrollbare Inhalte */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: system-ui, sans-serif;
  background-color: canvas; /* Nutzt System-Farben für Dark/Light Mode */
  color: canvastext;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.1; /* Engere Zeilenabstände für Headlines */
}

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

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

/* Utility: Container 2026 */
.container {
  max-width: 800px;
  margin-inline: auto; /* Modernes logisches Property für margin-left/right */
  padding: 2rem 1rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
