/* ═══════════════════════════════════════════════════════════
   HIVECRISP CSS RESET
   Moderner Reset basierend auf Josh Comeau's Custom CSS Reset
   + ergänzende Normalisierungen.
   ═══════════════════════════════════════════════════════════ */

/* Box-Sizing global */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Margin-Reset */
* {
    margin: 0;
}

/* Viewport-Höhe korrigieren (Mobile Safari Fix) */
html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    tab-size: 4;
}

/* Smooth Rendering */
body {
    height: 100%;
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Textumbruch für lange Wörter */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Listen-Reset */
ul, ol {
    list-style: none;
    padding: 0;
}

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

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

/* Table-Reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Fieldset-Reset */
fieldset {
    border: none;
    padding: 0;
}

/* Dialog-Reset */
dialog {
    padding: 0;
}

/* Textarea nur vertikal resizable */
textarea {
    resize: vertical;
}

/* Reduced Motion */
@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;
    }
}
