/* =======================================================================
 * 🧱 BASE STYLES — Grundlegende Body- und Scroll-Stile
 * =======================================================================
 * Reset + Globale Grundregeln. Nutzt die Tokens aus tokens.css.
 * ======================================================================= */

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

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow),
                color var(--transition-slow);
}

/* === Text Selection === */
::selection {
    background-color: var(--color-neon-blue);
    color: #000;
}

/* === Scrollbar (Webkit) === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-neon-dark);
}

/* === Links Basis-Stil === */
a {
    color: inherit;
    text-decoration: none;
}

/* === Bilder === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Focus Styles für Accessible Navigation === */
:focus-visible {
    outline: 2px solid var(--color-neon-blue);
    outline-offset: 2px;
}

/* === Skip-Link (Screen Reader / Keyboard Navigation) === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--color-neon-blue);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* === Reduced Motion (Accessibility) === */
@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;
    }
}
