 /* === Reset & Basis === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Marker Felt', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* === Grundlegende Typografie === */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

p {
    margin: 0 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Links & Buttons === */
a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

/* === Container & Layout === */
.container {
    width: min(95%, var(--container-width));
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.content-section {
    position: relative;
    z-index: var(--z-content);
}

/* === Header Basis === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--bg);
    transition: all var(--transition-medium);
}

/* === Navigation Basis === */
.nav {
    display: none;
}

.nav.active {
    display: block;
}

/* === Footer Basis === */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--primary);
}

/* === Utility Klassen === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

/* === Performance Optimierungen === */
/* Verhindert Flackern beim Laden */
.no-fouc {
    opacity: 0;
    visibility: hidden;
}

/* GPU-Beschleunigung für Animationen */
.gpu {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

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

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* === Print Styles === */
@media print {
    .header,
    .footer,
    .nav,
    .social-media-wrapper {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
}