/* =========================================
   1. CSS RESET (modern & minimal)
========================================= */

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

/* =========================================
   2. ROOT VARIABLES (Design Tokens)
========================================= */

:root {
    /* Farben */
    --color-bg: #0f172a;
    /* Slate 900 */
    --color-surface: #020617;
    /* Dark Surface */
    --color-text: #e5e7eb;
    /* Light Text */
    --color-muted: #9ca3af;
    --color-accent: #38bdf8;

    /* Typografie */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Layout */
    --max-width: 1200px;
    --spacing: 1rem;

    /* Animation */
    --transition-fast: 150ms ease;
}

/* =========================================
   3. HTML
========================================= */

html {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-family: var(--font-sans);

    color-scheme: dark light;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   4. BODY
========================================= */

body {
    min-height: 100dvh;

    background-color: var(--color-bg);
    color: var(--color-text);

    display: flex;
    flex-direction: column;

    font-weight: 400;
    overflow-x: hidden;
}

/* =========================================
   5. MEDIA DEFAULTS
========================================= */

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

/* =========================================
   6. FORM ELEMENTS
========================================= */

input,
button,
textarea,
select {
    font: inherit;
    color: var(--color-bg);
}

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

/* =========================================
   7. LINKS
========================================= */

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   8. ACCESSIBILITY
========================================= */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =========================================
   9. REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}