:root {
    --bg-color: #FDFBF7; /* Creme-Weiß / Warm */
    --text-color: #2C2825; /* Dunkles, warmes Braun-Grau */
    --text-light: #6B625B; /* Für Nebentexte / Metadaten */
    --accent: #B25A38; /* Warmes Terracotta / Rostrot für Links und Akzente */
    --divider: #E8E2D9;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Merriweather', serif;
}

[data-theme="dark"] {
    --bg-color: #1A1817; /* Sehr dunkles Braun-Grau */
    --text-color: #FDFBF7;
    --text-light: #A89F98;
    --accent: #E07A57;
    --divider: #3A3532;
}

/* Navigation */
.main-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--divider);
    z-index: 999;
    padding: 0.75rem 2rem;
}

[data-theme="dark"] .main-nav {
    background-color: rgba(26, 24, 23, 0.95);
}

.nav-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.hamburger-btn:hover {
    color: var(--accent);
}

/* Side Menu Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Side Menu Panel */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    max-width: 80vw;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .side-menu {
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
}

.side-menu.open {
    right: 0;
}

.close-menu-btn {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 2rem;
}

.close-menu-btn:hover {
    color: var(--accent);
}

.side-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.side-menu-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.side-menu-links a:hover {
    color: var(--accent);
}

.side-menu-controls {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
}


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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.kicker {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Content Area */
.content-wrapper {
    max-width: 760px; /* Optimal reading width for long text */
    margin: 0 auto;
    padding: 0 5% 5rem;
}

.editorial-article h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
}

.editorial-article h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

/* Blockquotes */
blockquote {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--accent);
    margin: 3.5rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--accent);
    font-style: italic;
}

/* Lists */
ul {
    margin: 1.5rem 0 2.5rem 1.5rem;
}

li {
    margin-bottom: 1rem;
}

li strong {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Dividers */
.section-divider {
    border: 0;
    height: 1px;
    background: var(--divider);
    margin: 4rem 0;
}

/* Sources Section */
.sources-section {
    background-color: #F7F3EA; /* Slightly darker cream for distinction */
    padding: 3rem;
    border-radius: 12px;
    margin-top: 4rem;
}

.sources-section h2 {
    margin-top: 0;
}

.source-list {
    list-style: none;
    margin-left: 0;
}

.source-list li {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.source-list .author {
    font-weight: 700;
    color: var(--text-color);
}

.source-list .title {
    font-style: italic;
    color: var(--primary-color);
}

.source-list .note {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.source-list a {
    color: var(--accent);
    text-decoration: underline;
}
.source-list a:hover {
    color: var(--text-color);
}

/* Network Section (Map + CTA) */
.network-section {
    background-color: var(--divider);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
}

[data-theme="dark"] .network-section {
    background-color: #11100F;
}

.network-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

.network-header h2 {
    margin-bottom: 1rem;
}

.network-header p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.map-container {
    width: 100%;
    line-height: 0;
    margin-bottom: 3rem;
}

.map-container iframe {
    width: 100%;
    border: none;
    filter: grayscale(0.2) contrast(1.1);
}

[data-theme="dark"] .map-container iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(0.5) contrast(1.2);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 5%;
    background-color: var(--bg-color);
    border: 1px solid var(--accent);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="dark"] .cta-content {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-content h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #FDFBF7;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

[data-theme="dark"] .cta-button {
    color: #1A1817;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 5%;
    background-color: #F2EBE1;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* Legal Links (Almost Invisible) */
.legal-links {
    margin-top: 1.5rem;
    font-size: 0.75rem; /* Sehr klein */
    opacity: 0.2; /* Nur 20% Deckkraft */
    transition: opacity 0.3s;
}

.legal-links:hover {
    opacity: 1; /* Sichtbar, wenn man mit der Maus drüber fährt */
}

.legal-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    letter-spacing: 1px;
}

/* FAQ / Akkordeon */
details {
    background-color: transparent;
    border-bottom: 1px solid var(--divider);
    padding: 1rem 0;
}
details summary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default arrow in some browsers */
    position: relative;
    padding-right: 2rem;
    color: var(--text-color);
}
details summary::-webkit-details-marker {
    display: none; /* Hide arrow in Webkit */
}
details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.3s ease;
}
details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}
details p {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--divider);
}

/* Glossar Grid */
.glossar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.glossar-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--divider);
    padding: 1.5rem;
    border-radius: 8px;
}
.glossar-item strong {
    font-family: var(--font-heading);
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
[data-theme="dark"] .glossar-item {
    background: rgba(255,255,255,0.03);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1001;
    width: 100%;
    height: 4px;
    background: transparent;
}
.progress-bar {
    height: 4px;
    background: var(--accent);
    width: 0%;
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: var(--text-color);
    color: var(--bg-color);
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#scrollTopBtn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Highlight Box */
.highlight-box {
    background-color: rgba(178, 90, 56, 0.08);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}
.highlight-box h3 {
    margin-top: 0;
    color: var(--accent);
}
.highlight-box ol {
    margin-bottom: 0;
    padding-left: 1.5rem;
}
.highlight-box li {
    margin-bottom: 0.8rem;
    font-weight: 600;
}
[data-theme="dark"] .highlight-box {
    background-color: rgba(224, 122, 87, 0.1);
}

/* Images */
.article-image-container {
    margin: 3rem 0;
    text-align: center;
}
.article-image-container.float-right {
    float: right;
    margin: 0.5rem 0 1.5rem 2.5rem;
    width: 280px;
    max-width: 100%;
}
.article-image-container.float-left {
    float: left;
    margin: 0.5rem 2.5rem 1.5rem 0;
    width: 280px;
    max-width: 100%;
}
@media (max-width: 768px) {
    .article-image-container.float-right,
    .article-image-container.float-left {
        float: none;
        margin: 2rem auto;
        width: 320px;
    }
}
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: block;
    margin: 0 auto;
}
.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    display: block;
}
.sepia-fx {
    filter: sepia(0.3) contrast(1.1) brightness(0.9);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

/* Print Stylesheet */
@media print {
    .theme-toggle, #scrollTopBtn, .progress-container {
        display: none !important;
    }
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
    .hero, .footer {
        background-color: #fff !important;
    }
    .hero {
        border-bottom: 1px solid #ccc;
    }
    a {
        text-decoration: underline;
        color: #000;
    }
    @page {
        margin: 2cm;
    }
}

/* Tooltip (Will to Track etc.) */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dashed var(--accent);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Position above */
    left: 50%;
    margin-left: -125px; /* Center */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-style: normal;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none;
}

[data-theme="dark"] .tooltip .tooltiptext {
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

/* Tooltip Arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-color) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Captcha Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-color);
    margin: auto;
    padding: 3rem;
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

[data-theme="dark"] .modal-content {
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent);
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.captcha-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 4px solid transparent;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.captcha-img:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.captcha-error {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}

.captcha-success {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.captcha-success p {
    color: #27ae60;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Shake Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #e74c3c !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }
    
    .hero {
        padding: 4rem 5% 3rem;
    }


    
    .hero h1 {
        font-size: 3rem;
    }
    
    .content-wrapper {
        padding: 3rem 5%;
    }
    
    blockquote {
        font-size: 1.4rem;
        padding-left: 1.5rem;
    }
    
    .sources-section {
        padding: 2rem 1.5rem;
    }
    
    .captcha-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        padding: 2rem 1rem;
    }
}
