/* ========================================
   THEME VARIABLEN
   ======================================== */

:root {
    /* Light Theme (Standard) */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --accent: #d97706;
    --accent-hover: #b45309;
    --border: #e5e5e5;
    --border-light: #f5f5f5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #171717;
    --bg-tertiary: #262626;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #fbbf24;
    --accent-hover: #fcd34d;
    --border: #262626;
    --border-light: #1a1a1a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ========================================
   BASIS STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-secondary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

[data-theme="dark"] #bg-canvas {
    opacity: 0.25;
}

.hero, .manifesto, main, footer {
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
}

/* ========================================
   SIDE NAVIGATION
   ======================================== */

.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    z-index: 90;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .side-nav {
    background: rgba(23, 23, 23, 0.9);
}

.nav-header-container {
    flex-shrink: 0;
    padding-top: 1rem;
    background: inherit;
}

.nav-header {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-header:hover {
    color: var(--accent);
}

.nav-subheader {
    display: block;
    font-size: 0.65rem;
    font-style: italic;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem 0.75rem;
    opacity: 0.7;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-subheader:hover {
    color: var(--accent);
    opacity: 1;
}

#nav-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

#nav-list li {
    margin: 0;
}

#nav-list a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#nav-list a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent);
}

#nav-list a.active {
    background: var(--bg-tertiary);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}

.nav-footer-container {
    flex-shrink: 0;
    margin-top: auto;
    background: inherit;
}

.nav-footer {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-footer:hover {
    color: var(--accent);
}

.nav-footer.nav-stories {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    color: #fff;
    margin: 0.5rem 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    text-align: center;
    border-top: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-footer.nav-stories:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

[data-theme="dark"] .nav-footer.nav-stories:hover {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.nav-icon {
    margin-right: 0.35rem;
    font-size: 1rem;
    filter: grayscale(100%) sepia(100%) hue-rotate(0deg) saturate(500%);
    opacity: 0.3;
}

[data-theme="dark"] .nav-icon {
    filter: grayscale(100%) sepia(100%) hue-rotate(10deg) saturate(700%) brightness(1.3);
    opacity: 0.3;
}

.nav-title-main {
    display: inline;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-title-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.15rem;
    line-height: 1.3;
}

#nav-list a:hover .nav-title-main,
#nav-list a.active .nav-title-main {
    color: var(--accent);
}

/* Offset für Content wegen fixed Nav */
body {
    margin-left: 200px;
}

/* ========================================
   STICKY HEADER (nur Theme Toggle)
   ======================================== */

/* ========================================
   TOP NAVIGATION
   ======================================== */

.top-nav {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* Page/Stories Toggle */
.page-stories-toggle {
    display: flex;
    position: relative;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 0;
}

.toggle-option {
    position: relative;
    z-index: 1;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: calc(var(--radius-md) - 2px);
    transition: all 0.2s ease;
    background: transparent;
}

.toggle-option:hover {
    color: var(--text-primary);
}

.toggle-option.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.top-nav-links {
    display: flex;
    gap: 0.25rem;
}

.top-nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.top-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.top-nav-link.active {
    color: var(--accent);
    background: var(--bg-tertiary);
}

.top-nav-link.mobile-only {
    display: none;
}

.top-nav-toggle {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.top-nav-toggle:hover {
    background: var(--border);
    color: var(--text-primary);
}

.top-nav-toggle:active {
    transform: scale(0.95);
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--border);
}

.menu-icon {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

/* Menu open state */
.top-nav.menu-open .menu-icon {
    background: transparent;
}

.top-nav.menu-open .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.top-nav.menu-open .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile dropdown */
.top-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem;
    min-width: 150px;
}

.top-nav.menu-open .top-nav-dropdown {
    display: block;
}

.top-nav-dropdown .top-nav-link {
    display: block;
    width: 100%;
    text-align: left;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-tldr {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.hero-tldr strong {
    color: var(--accent);
    font-weight: 600;
}

.hero-author {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.hero-abstract {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    padding: 1.5rem 2rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
}

[data-theme="dark"] .hero-abstract {
    background: rgba(38, 38, 38, 0.6);
}

.hero-abstract-ending {
    display: block;
    text-align: center;
    font-style: italic;
}

/* Source Badges */
.hero-sources-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.hero-source-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.source-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Badge categories */
.source-badge.tier-1 {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(217, 119, 6, 0.3);
    color: var(--accent);
}

[data-theme="dark"] .source-badge.tier-1 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.4);
}

.source-badge.tier-1:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-color: var(--accent);
}

/* Responsive badges */
@media (max-width: 768px) {
    .hero-source-badges {
        gap: 0.25rem;
    }

    .source-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.5rem;
    }

    .hero-sources-label {
        font-size: 0.5rem;
    }
}

.hero-emblem {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-emblem .anonymous-emblem {
    width: 48px;
    height: 48px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .hero-emblem .anonymous-emblem {
    filter: invert(1);
}

.hero-emblem .anonymous-emblem:hover {
    opacity: 1;
}

/* Theme toggle icons */

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: inline;
}

/* ========================================
   MANIFESTO SECTION
   ======================================== */

.manifesto {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
}

.manifesto h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.manifesto p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.manifesto p:last-of-type {
    margin-bottom: 0;
}

.manifesto p strong {
    color: var(--text-primary);
}

.manifesto em {
    font-style: italic;
}

.manifesto-ending {
    font-size: 1.125rem !important;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary) !important;
    text-align: center !important;
    margin-top: 2rem !important;
}

/* ========================================
   HAUPTBEREICH / GALERIE
   ======================================== */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ========================================
   EINTRAG (BILD + TEXT) - MODERNE KARTEN
   ======================================== */

.entry {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 6rem;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Blurred background image */
.entry-bg-image {
    position: absolute;
    top: -80px;
    left: -80px;
    right: -80px;
    bottom: -80px;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .entry-bg-image {
    opacity: 0.12;
}

.entry:hover .entry-bg-image {
    opacity: 0.22;
}

[data-theme="dark"] .entry:hover .entry-bg-image {
    opacity: 0.18;
}

/* Blurred background video */
.entry-bg-video {
    position: absolute;
    top: -80px;
    left: -80px;
    right: -80px;
    bottom: -80px;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
    object-fit: cover;
    filter: blur(3px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .entry-bg-video {
    opacity: 0.12;
}

.entry:hover .entry-bg-video {
    opacity: 0.22;
}

[data-theme="dark"] .entry:hover .entry-bg-video {
    opacity: 0.18;
}

/* Ensure content is above background */
.entry-image-column,
.entry-text-column {
    position: relative;
    z-index: 1;
}

.entry:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.entry:last-child {
    margin-bottom: 0;
}

/* Spalten-Layout - z-index already set above */
.entry-image-column,
.entry-text-column {
    display: flex;
    flex-direction: column;
}

/* Referenzen-Box (einheitliches Design) */
.entry-references {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.entry-references .references-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.entry-references .references-list {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
}

.entry-references .reference-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.entry-references .reference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.entry-references .ref-authors {
    font-weight: 500;
}

.entry-references .ref-title {
    color: var(--text-primary);
}

.entry-references .ref-journal {
    color: var(--text-muted);
}

.entry-references .ref-link {
    color: var(--accent);
    text-decoration: none;
    margin-left: 0.25rem;
}

.entry-references .ref-link:hover {
    text-decoration: underline;
}

/* Standard: Querformat - Referenzen unter Bild */
.refs-under-image {
    display: block;
}

.refs-under-text {
    display: none;
}

/* Portrait: Referenzen unter Text */
.entry.portrait-image .refs-under-image {
    display: none;
}

.entry.portrait-image .refs-under-text {
    display: block;
}

/* Bild-Bereich */
.entry-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.entry-image,
.entry-video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
    image-orientation: from-image;
    display: block;
}

.entry-video {
    display: none;
}

.entry-video.loaded {
    display: block;
}

.entry-video.loaded + .entry-image {
    display: none;
}

.entry:hover .entry-image,
.entry:hover .entry-video {
    transform: scale(1.03);
}

/* Taschenlampen-Overlay */
.flashlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 1;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --circle-size: 120px;
    mask-image: radial-gradient(
        circle var(--circle-size) at var(--mouse-x) var(--mouse-y),
        transparent 0%,
        transparent 50%,
        black 100%
    );
    -webkit-mask-image: radial-gradient(
        circle var(--circle-size) at var(--mouse-x) var(--mouse-y),
        transparent 0%,
        transparent 50%,
        black 100%
    );
}

[data-theme="dark"] .flashlight-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Idle Animation wird via JavaScript gesteuert */

/* Goldener Schein um den Lichtkegel */
.flashlight-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    --mouse-x: 50%;
    --mouse-y: 50%;
    background: radial-gradient(
        circle 140px at var(--mouse-x) var(--mouse-y),
        rgba(217, 119, 6, 0.25) 0%,
        rgba(217, 119, 6, 0.1) 40%,
        transparent 70%
    );
}

[data-theme="dark"] .flashlight-glow {
    background: radial-gradient(
        circle 140px at var(--mouse-x) var(--mouse-y),
        rgba(251, 191, 36, 0.3) 0%,
        rgba(217, 119, 6, 0.15) 40%,
        transparent 70%
    );
}

/* Referenz-Overlay */
.references-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    padding: 1rem 1.25rem;
    min-height: 80px;
    z-index: 3;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.reference-slide {
    display: none;
    opacity: 0;
    animation: fadeSlide 0.5s ease forwards;
}

.reference-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reference-slide a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.5;
    display: block;
}

.reference-slide a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reference-authors {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reference-title {
    font-style: italic;
    opacity: 0.9;
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.slide-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* Reference URL Display */
.reference-url {
    font-size: 0.6875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    word-break: break-all;
}

/* Reference Navigation Buttons */
.ref-nav {
    position: absolute;
    bottom: 0.85rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.6;
}

.references-overlay:hover .ref-nav {
    opacity: 1;
}

.ref-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.ref-nav:active {
    transform: scale(0.95);
}

.ref-nav-prev {
    right: 3.5rem;
}

.ref-nav-next {
    right: 1.25rem;
}

/* Text-Bereich */
.entry-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.entry-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--text-primary);
}

.entry-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* ========================================
   LIMIT FORM SECTION
   ======================================== */

.limit-form-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.limit-form-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Blurred moving background */
.limit-form-bg {
    position: absolute;
    top: -80px;
    left: -80px;
    right: -80px;
    bottom: -80px;
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .limit-form-bg {
    opacity: 0.12;
}

.limit-form-container:hover .limit-form-bg {
    opacity: 0.22;
}

[data-theme="dark"] .limit-form-container:hover .limit-form-bg {
    opacity: 0.18;
}

/* Image column */
.limit-form-image-column {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
}

.limit-form-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.limit-form-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.limit-form-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.limit-form-video.loaded {
    opacity: 1;
}

.limit-form-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
}

/* Content column */
.limit-form-content-column {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.limit-form-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: left;
}

.limit-form-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.limit-form-intro em {
    color: var(--accent);
    font-style: italic;
}

.limit-form {
    max-width: 100%;
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group input:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: var(--text-muted);
}

.limit-submit-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.limit-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.limit-submit-btn:active {
    transform: translateY(0);
}

.limit-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: none;
}

.form-status:not(:empty) {
    display: block;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.limit-form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: left;
    margin-top: 2rem;
    font-style: italic;
}

/* Responsive für Limit Form */
@media (max-width: 768px) {
    .limit-form-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .limit-form-title {
        text-align: center;
    }

    .limit-form-intro {
        text-align: center;
    }

    .limit-form-note {
        text-align: center;
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.faq-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
}

.faq-header-image {
    position: relative;
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    height: 500px;
    overflow: hidden;
}

.faq-header-image img,
.faq-header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center top;
    display: block;
    will-change: transform;
}

.faq-header-video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.faq-header-video.loaded {
    opacity: 1;
}

.faq-header-video.loaded + img {
    opacity: 0;
}

.faq-header-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-secondary) 70%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.faq-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-style: italic;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.faq-answer {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-container {
        padding: 1.5rem;
    }

    .faq-header-image {
        width: calc(100% + 3rem);
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        height: 200px;
    }

    .faq-header-fade {
        height: 100px;
    }

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

    .faq-item {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
    }
}

/* ========================================
   ALL REFERENCES SECTION
   ======================================== */

.all-references-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.all-references-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
}

.all-references-header-image {
    position: relative;
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    height: 500px;
    overflow: hidden;
}

.all-references-header-image img,
.all-references-header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center top;
    display: block;
    will-change: transform;
}

.all-references-header-video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.all-references-header-video.loaded {
    opacity: 1;
}

.all-references-header-video.loaded + img {
    opacity: 0;
}

.all-references-header-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-secondary) 70%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.all-references-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.all-references-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.all-references-list {
    display: flex;
    flex-direction: column;
}

.all-references-flat-list {
    list-style: decimal;
    padding-left: 2rem;
    margin: 0;
    counter-reset: ref-counter;
}

.all-references-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.all-references-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.all-references-item .ref-authors {
    font-weight: 500;
    color: var(--text-primary);
}

.all-references-item .ref-year {
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.all-references-item .ref-title {
    color: var(--text-primary);
}

.all-references-item .ref-journal {
    font-style: italic;
    color: var(--text-muted);
}

.all-references-item .ref-volume,
.all-references-item .ref-issue,
.all-references-item .ref-pages,
.all-references-item .ref-doi {
    color: var(--text-muted);
}

.all-references-item .ref-link {
    color: var(--accent);
    text-decoration: none;
    margin-left: 0.5rem;
}

.all-references-item .ref-link:hover {
    text-decoration: underline;
}

/* Responsive für All References */
@media (max-width: 768px) {
    .all-references-container {
        padding: 1.5rem;
    }

    .all-references-header-image {
        width: calc(100% + 3rem);
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        height: 200px;
    }

    .all-references-header-fade {
        height: 100px;
    }

    .all-references-title {
        font-size: 1.5rem;
    }

    .all-references-flat-list {
        padding-left: 1.5rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    main {
        padding: 3rem 1.5rem;
    }

    .entry {
        gap: 2.5rem;
        padding: 2rem;
        margin-bottom: 4rem;
    }

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

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

    body {
        margin-left: 0;
    }


    /* Top navigation mobile */
    .top-nav {
        top: 0.75rem;
        right: 1rem;
        padding: 0.375rem;
        gap: 0.375rem;
    }

    .page-stories-toggle {
        padding: 2px;
    }

    .toggle-option {
        padding: 0.3rem 0.5rem;
        font-size: 0.6875rem;
    }

    .top-nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .top-nav.menu-open .top-nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-light);
        padding: 0.5rem;
        min-width: 150px;
    }

    .top-nav.menu-open .top-nav-link {
        display: block;
        width: 100%;
    }

    .top-nav-link.mobile-only {
        display: none;
    }

    .top-nav.menu-open .top-nav-link.mobile-only {
        display: block;
    }

    .hero {
        padding: 3rem 1.25rem 2rem;
    }

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

    .hero-tldr {
        font-size: 0.8125rem;
        line-height: 1.7;
    }

    .manifesto {
        padding: 2rem 1rem;
    }

    .manifesto h2 {
        font-size: 1.25rem;
    }

    .manifesto p {
        font-size: 0.875rem;
        text-align: left;
    }

    main {
        padding: 2rem 1rem;
    }

    .entry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
        margin-bottom: 2rem;
        border-radius: var(--radius-lg);
    }

    /* Reset alternating direction on mobile */
    .entry:nth-child(even) {
        direction: ltr;
    }

    .entry:hover {
        transform: none;
    }

    .entry-content {
        padding: 0.5rem 0;
        gap: 1rem;
    }

    .entry-title {
        font-size: 1.25rem;
    }

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

    .entry-image {
        border-radius: var(--radius-md);
    }

    .references {
        padding-top: 1rem;
    }

    .reference {
        font-size: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    header h1 {
        font-size: 0.875rem;
    }

    main {
        padding: 1.5rem 0.75rem;
    }

    .entry {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .entry-title {
        font-size: 1.125rem;
    }
}

/* ========================================
   PLATZHALTER FÜR FEHLENDE BILDER
   ======================================== */

.entry-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
    padding: 1rem;
}

/* ========================================
   ANIMATIONEN
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry {
    animation: fadeIn 0.6s ease forwards;
}

.entry:nth-child(1) { animation-delay: 0.1s; }
.entry:nth-child(2) { animation-delay: 0.2s; }
.entry:nth-child(3) { animation-delay: 0.3s; }
.entry:nth-child(4) { animation-delay: 0.4s; }
.entry:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
