/**
 * CSS Reset & Normalisierung
 * Moderne Browser-Reset für konsistente Darstellung
 */

/* ========================================
   Box-Sizing Reset
   ======================================== */

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


/* ========================================
   Margin & Padding Reset
   ======================================== */

* {
    margin: 0;
    padding: 0;
}


/* ========================================
   HTML & Body Grundeinstellungen
   ======================================== */

html {
    /* Verhindert Font-Size-Anpassung nach Orientierungsänderung */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    
    /* Smooth Scrolling */
    scroll-behavior: smooth;
}

body {
    /* Standard Line-Height */
    line-height: 1.5;
    
    /* Font-Smoothing für bessere Lesbarkeit */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Text-Rendering Optimierung */
    text-rendering: optimizeLegibility;
}


/* ========================================
   Typographie Reset
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

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


/* ========================================
   Listen Reset
   ======================================== */

ul, ol {
    list-style: none;
}


/* ========================================
   Medien Reset
   ======================================== */

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

img {
    /* Verhindert Lücken unter Bildern */
    vertical-align: middle;
}


/* ========================================
   Formular-Elemente Reset
   ======================================== */

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

input, textarea {
    border: none;
    outline: none;
}


/* ========================================
   Links Reset
   ======================================== */

a {
    color: inherit;
    text-decoration: none;
}


/* ========================================
   Tabellen Reset
   ======================================== */

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ========================================
   Accessibility
   ======================================== */

/* Focus-Styles entfernen nur wenn nicht per Tastatur navigiert wird */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduzierte Bewegung für Barrierefreiheit */
@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;
    }
}

