/* ========================================
   EDITOPIA 2026 - Post-Digital Minimalism
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Monochrome Palette */
    --ink-black: #000000;
    --paper-white: #FFFFFF;
    --off-white: #F4F4F4;
    --dim-grey: #999999;  /* 6.3:1 on black, used for decorative/secondary text */
    --light-grey: #E0E0E0;

    /* Typography */
    --font-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border */
    --border-thin: 1px solid var(--ink-black);
    --border-medium: 2px solid var(--ink-black);
    --border-thick: 3px solid var(--ink-black);
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Container */
    --container-max: 1200px;
    --content-max: 720px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

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

/* ========================================
   Accessibility Utilities
   ======================================== */

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--ink-black);
    color: var(--paper-white);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-sm);
    outline: 3px solid var(--ink-black);
    outline-offset: 2px;
}

/* Visually Hidden (for screen readers only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Visible Styles - Keyboard Navigation */
:focus-visible {
    outline: 3px solid var(--ink-black);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast focus for buttons and links */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--ink-black);
    outline-offset: 2px;
}

/* Inverted focus on dark backgrounds */
.facts-box :focus-visible,
.facts-box a:focus-visible,
.facts-box button:focus-visible {
    outline-color: var(--paper-white);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-black);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--ink-black);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--dim-grey);
}

strong {
    font-weight: 600;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.pipe {
    opacity: 0.7;
    margin: 0 0.1em;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--off-white);
    border-bottom: var(--border-thin);
    transform: translateY(0);
    transition: transform 300ms ease, box-shadow var(--transition-base);
}

/* Navigation hide on scroll down (controlled by JS) */
.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav.nav-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.nav-link {
    /* Minimum touch target for accessibility */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--ink-black);
    color: var(--paper-white);
}

.nav-pipe {
    color: var(--dim-grey);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-btn {
    background: none;
    border: none;
    /* Minimum 44x44px touch target for accessibility */
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--dim-grey);
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-btn:hover {
    color: var(--ink-black);
}

.lang-btn.active {
    color: var(--ink-black);
    font-weight: 600;
}

.lang-pipe {
    color: var(--dim-grey);
    font-size: 0.75rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background-color: var(--off-white);
    overflow: hidden;
}

/* ========================================
   Ambient Background - Textrad
   ======================================== */
.hero-ambient {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 75vh;
    height: 75vh;
    pointer-events: none;
    z-index: 0;
    /* Gradient mask - softer fade */
    mask-image: radial-gradient(
        ellipse 60% 60% at 50% 50%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 85%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 60% 60% at 50% 50%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 85%
    );
}

.ambient-wheel {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.25;
    mix-blend-mode: multiply;
    filter: contrast(1.3);
    animation: ambient-rotate 180s linear infinite;
    will-change: transform;
}

@keyframes ambient-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ensure all hero content stays above ambient */
.hero-logo,
.hero-title,
.hero-meta,
.hero-badge,
.scroll-hint {
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-medium);
    border-radius: var(--border-radius);
    background-color: var(--paper-white);
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.logo-year {
    background-color: var(--ink-black);
    color: var(--paper-white);
}

.hero-title {
    max-width: 900px;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero-title-name {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #4A4A4A;
    letter-spacing: 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: #4A4A4A;  /* 5.9:1 on off-white */
}

.hero-meta-ide {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-ide-logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
    vertical-align: middle;
}

.meta-pipe {
    color: var(--dim-grey);
}

.hero-badge {
    display: inline-block;
    margin-top: var(--space-xl);
    padding: var(--space-xs) var(--space-md);
    border: var(--border-thin);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--dim-grey);
}

.scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dim-grey);
    transition: color var(--transition-fast);
}

.scroll-hint:hover {
    color: var(--ink-black);
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.8;
    }
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Main & Sections
   ======================================== */
.main {
    background-color: var(--off-white);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim-grey);
}

/* ========================================
   Intro Section
   ======================================== */
.section-intro {
    background-color: var(--paper-white);
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
}

.intro-text {
    max-width: var(--content-max);
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
}

.intro-text p {
    margin-bottom: var(--space-md);
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Quote Section
   ======================================== */
.section-quote {
    padding: var(--space-2xl) 0;
}

.quote-box {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-xl);
    padding-top: calc(var(--space-xl) + 0.5rem); /* Extra space for label */
    border: var(--border-thin);
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
}

.quote-label {
    position: absolute;
    top: -0.6em;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--off-white);
    padding: 0.25em var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--dim-grey);
    white-space: nowrap; /* Prevent label from wrapping */
    z-index: 1;
}

.quote-text {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.6;
    font-style: normal;
    padding-top: var(--space-xs); /* Small buffer below label */
}

.quote-text::before {
    content: '\201E';
}

.quote-text::after {
    content: '\201C';
}

/* ========================================
   Themenfelder Section
   ======================================== */
.section-themen {
    background-color: var(--paper-white);
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
}

.themen-content {
    max-width: var(--content-max);
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
}

.themen-content p {
    margin-bottom: var(--space-md);
}

.themen-content p:last-child {
    margin-bottom: 0;
}

.themen-content strong {
    font-weight: 600;
}

/* ========================================
   Hard Facts Section
   ======================================== */
.section-facts {
    background-color: var(--off-white);
}

.facts-box {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-xl);
    background-color: var(--ink-black);
    color: var(--paper-white);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.facts-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: #AAAAAA;  /* 7.6:1 on black — replaces opacity: 0.7 for WCAG AA */
}

.facts-content {
    margin-bottom: var(--space-xl);
}

.facts-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 2;
}

.facts-list li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.facts-list li:last-child {
    border-bottom: none;
}

.facts-label {
    color: #AAAAAA;  /* 7.6:1 on black — WCAG AA compliant */
    margin-right: var(--space-sm);
}

.facts-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    text-align: left;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: var(--border-medium);
}

.btn-primary {
    background-color: var(--paper-white);
    color: var(--ink-black);
    border-color: var(--paper-white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--paper-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--ink-black);
    border-color: var(--ink-black);
}

.btn-outline:hover {
    background-color: var(--ink-black);
    color: var(--paper-white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-2xl) 0;
    background-color: var(--paper-white);
    border-top: var(--border-thin);
    text-align: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-contact {
    margin-bottom: var(--space-sm);
}

.footer-contact a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    border-bottom: var(--border-thin);
    padding-bottom: 2px;
}

.footer-contact a:hover {
    border-color: var(--dim-grey);
}

.footer-institute {
    margin-bottom: var(--space-md);
}

.footer-institute a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--dim-grey);
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.footer-institute a:hover {
    color: var(--ink-black);
}

.footer-license {
    margin-top: var(--space-sm);
}

.cc-badge {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.cc-badge:hover {
    opacity: 1;
}

.footer-legal {
    margin-top: var(--space-sm);
}

.legal-link {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--dim-grey);
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: var(--ink-black);
}

/* ========================================
   Impressum Modal
   ======================================== */
.impressum-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.impressum-modal[hidden] {
    display: none;
}

.impressum-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.impressum-content {
    position: relative;
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    background-color: var(--paper-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.impressum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border-bottom: var(--border-thin);
    flex-shrink: 0;
}

.impressum-header h2 {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.impressum-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--dim-grey);
    cursor: pointer;
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.impressum-close:hover {
    color: var(--ink-black);
}

.impressum-body {
    padding: var(--space-xl);
    overflow-y: auto;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #333;
}

.impressum-body h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: var(--border-thin);
}

.impressum-body h3:first-child {
    margin-top: 0;
}

.impressum-body h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.impressum-body p {
    margin-bottom: var(--space-sm);
}

.impressum-body ul {
    list-style: none;
    margin-bottom: var(--space-sm);
    padding-left: 0;
}

.impressum-body ul li {
    padding-left: var(--space-md);
    position: relative;
    margin-bottom: var(--space-xs);
}

.impressum-body ul li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--dim-grey);
}

.impressum-body a {
    border-bottom: 1px solid var(--dim-grey);
    padding-bottom: 1px;
}

.impressum-body a:hover {
    border-color: var(--ink-black);
    color: var(--ink-black);
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--off-white);
    z-index: 1000;
    transition: opacity var(--transition-base);
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: var(--border-medium);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--dim-grey);
    letter-spacing: 0.1em;
}

/* ========================================
   Error Modal
   ======================================== */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.error-modal[hidden] {
    display: none;
}

.error-content {
    max-width: 400px;
    padding: var(--space-xl);
    background-color: var(--paper-white);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.error-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    border: var(--border-thick);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.error-message {
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
    color: #555555;  /* 7.4:1 on white — WCAG AA compliant */
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet and smaller (768px) */
@media (max-width: 768px) {
    :root {
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }

    .hero {
        min-height: auto;
        padding: var(--space-3xl) var(--space-md);
        padding-top: calc(var(--space-3xl) + 60px); /* Account for fixed nav */
    }

    .hero-ambient {
        width: 80vw;
        height: 80vw;
        right: -25%;
        opacity: 0.7;
    }

    .hero-logo {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .logo-box {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.875rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .meta-pipe {
        display: none;
    }

    .nav-inner {
        font-size: 0.6875rem;
        gap: var(--space-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    .nav-link {
        padding: var(--space-xs) var(--space-sm);
        min-height: 44px; /* Maintain touch target */
    }

    .themen-grid {
        grid-template-columns: 1fr;
    }

    .quote-box {
        padding: var(--space-lg);
    }

    .facts-box {
        padding: var(--space-lg);
        border-radius: var(--border-radius);
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Adjust text for better mobile readability */
    .intro-text,
    .themen-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .intro-text p,
    .themen-content p {
        margin-bottom: var(--space-sm);
    }

    /* Better button sizing for touch */
    .btn {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        min-height: 48px;
    }

    /* Impressum modal mobile */
    .impressum-content {
        width: 95%;
        max-height: 85vh;
    }

    .impressum-header {
        padding: var(--space-sm) var(--space-md);
    }

    .impressum-body {
        padding: var(--space-md);
    }

    .legal-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .nav-pipe {
        display: none;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs);
        padding: var(--space-xs);
    }

    .nav-link {
        font-size: 0.6875rem;
        padding: var(--space-xs) var(--space-sm);
        min-height: 44px;  /* WCAG touch target */
    }

    .lang-switch {
        width: auto;
        justify-content: center;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: var(--space-xs);
    }

    .lang-btn {
        min-width: 44px;  /* WCAG touch target */
        min-height: 44px;
        padding: var(--space-xs);
    }

    .lang-pipe {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    /* Quote box mobile fix */
    .quote-box {
        padding: var(--space-lg);
        padding-top: calc(var(--space-lg) + 0.75rem);
    }

    .quote-label {
        font-size: 0.625rem;
        letter-spacing: 0.1em;
        padding: 0.2em var(--space-xs);
    }

    .quote-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-ambient {
        display: none;
    }

    .scroll-hint {
        bottom: var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .section-quote {
        padding: var(--space-xl) 0;
    }

    /* Smaller text on small mobile */
    .intro-text,
    .themen-content {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .footer {
        padding: var(--space-xl) 0;
    }

    .impressum-body {
        font-size: 0.75rem;
    }

    .impressum-body h3 {
        font-size: 0.6875rem;
    }
}

/* Very small screens (360px - older/smaller smartphones) */
@media (max-width: 360px) {
    :root {
        --space-2xl: 2rem;
        --space-xl: 1.5rem;
    }

    .hero-logo {
        flex-direction: column;
    }

    .logo-box {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.625rem;
    }

    .nav-link {
        font-size: 0.5625rem;
    }

    .intro-text,
    .themen-content {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .quote-text {
        font-size: 0.9375rem;
    }

    .facts-list {
        font-size: 0.8125rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-xl) var(--space-lg);
        padding-top: calc(var(--space-xl) + 50px);
    }

    .hero-logo {
        margin-bottom: var(--space-md);
    }

    .hero-ambient {
        display: none;
    }

    .scroll-hint {
        display: none;
    }

    .section {
        padding: var(--space-xl) 0;
    }
}

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

    .ambient-wheel {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .nav,
    .loading,
    .error-modal,
    .impressum-modal,
    .hero-ambient {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .section {
        padding: 2rem 0;
        break-inside: avoid;
    }

    .facts-box {
        background-color: white;
        color: black;
        border: 2px solid black;
    }

    .btn {
        display: none;
    }
}
