/* ==========================================================================
   BASE STYLES - Reset & Grundlegende Elemente
   ========================================================================== */

/* Layout Imports (Header, Footer, Toolbar) */
@import url('./layout/header.css');
@import url('./layout/mobile-toolbar.css');

/* ==================== RESET ==================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-white);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==================== ACCESSIBILITY ==================== */

/* Screen-Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link für Tastatur-Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-cyan);
    color: var(--bg-dark);
    padding: var(--space-sm) var(--space-md);
    z-index: var(--z-toast);
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
}

/* Focus-Visible für bessere Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* ==================== TYPOGRAPHY DEFAULTS ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-white);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-purple);
}

strong, b {
    font-weight: 600;
}

/* ==================== LISTS ==================== */

ul, ol {
    list-style: none;
}

/* ==================== MEDIA ==================== */

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== FORMS ==================== */

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    background: transparent;
    border: 1px solid var(--cyan-30);
    color: var(--text-white);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-subtle);
}

/* ==================== SELECTION ==================== */

::selection {
    background: var(--cyan-30);
    color: var(--text-white);
}

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan-30);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-50);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-30) var(--bg-dark);
}
