/* Gesundheits-Faktencheck Website - Dark Mode Style */

/* Language system — hide non-active languages before JS runs */
body:not(.js-ready) [lang="en"] { display: none !important; }
body:not(.js-ready) [lang="es"] { display: none !important; }
body.js-ready [hidden] { display: none !important; }

/* Language Toggle */
.lang-toggle {
    position: fixed; top: 1rem; right: 1rem; z-index: 100;
    display: flex; gap: 0;
    border: 1px solid #2d3748; border-radius: 8px;
    overflow: hidden; background: #16213e;
}
.lang-btn {
    padding: 0.6rem 1rem; min-width: 44px; min-height: 44px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    border: none; background: transparent; color: #9ca3af;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.lang-btn:hover { background: #2d3748; }
.lang-btn[aria-pressed="true"] { background: #0f7fa8; color: white; }

@media print {
    .lang-toggle { display: none !important; }
}

/* CSS Reset und Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1a1a2e;
    color: #e4e4e7;
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #f8f9fa;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f7fa8;
}

h2 {
    font-size: 2rem;
    color: #0f7fa8;
    border-bottom: 2px solid #0f7fa8;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: #d1d5db;
}

a {
    color: #0f7fa8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #14b8e6;
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(15, 127, 168, 0.2);
    margin-bottom: 2rem;
}

.header h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
}

.header .subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

.main-content {
    margin-bottom: 3rem;
}

/* Navigation */
.nav {
    background: #16213e;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav li {
    margin: 0 1rem;
}

.nav a {
    color: #d1d5db;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: #0f7fa8;
    color: white;
    text-decoration: none;
}

/* Cards */
.card {
    background: #16213e;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3748;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(15, 127, 168, 0.2);
}

.card h3 {
    color: #0f7fa8;
    margin-bottom: 1rem;
}

/* Themen-Grid */
.themen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.thema-card {
    background: #16213e;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3748;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.thema-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(15, 127, 168, 0.4);
    border-color: #0f7fa8;
}

.thema-card:hover .thema-icon {
    transform: scale(1.15);
}

.thema-card:hover h3 {
    color: #14b8e6;
}

.thema-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* Progress Bar */
.progress-container {
    background: #2d3748;
    border-radius: 10px;
    padding: 4px;
    margin: 1.5rem 0;
}

.progress-bar {
    height: 30px;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.progress-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
}

.progress-segment.stimmt {
    background-color: #10b981; /* Grün */
}

.progress-segment.uebertrieben {
    background-color: #f59e0b; /* Gelb/Orange */
}

.progress-segment.vorlaeufig {
    background-color: #f97316; /* Orange */
}

.progress-segment.falsch {
    background-color: #ef4444; /* Rot */
}

.progress-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Bewertungs-Icons */
.bewertung {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin: 0.5rem 0;
}

.bewertung.stimmt {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.bewertung.uebertrieben {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.bewertung.vorlaeufig {
    background-color: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.bewertung.falsch {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Cluster/Themen-Blöcke */
.cluster {
    background: #16213e;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #2d3748;
    position: relative;
}

.cluster h3 {
    color: #0f7fa8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cluster-content {
    display: grid;
    gap: 1.5rem;
}

.was-arzt-sagt {
    background: rgba(31, 41, 55, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6b7280;
}

.was-forschung-sagt {
    background: rgba(16, 185, 129, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.was-er-verschweigt {
    background: rgba(239, 68, 68, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

/* Listen */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #d1d5db;
}

li {
    margin-bottom: 0.5rem;
}

/* Tabellen */
.table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: #16213e;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: #0f7fa8;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-top: 1px solid #2d3748;
    color: #d1d5db;
}

.table tr:hover {
    background: rgba(15, 127, 168, 0.1);
}

/* Quote/Blockquote */
blockquote {
    background: rgba(15, 127, 168, 0.1);
    border-left: 4px solid #0f7fa8;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #e4e4e7;
}

/* Methodik Box */
.methodik {
    background: linear-gradient(135deg, rgba(15, 127, 168, 0.1) 0%, rgba(22, 33, 62, 0.5) 100%);
    border: 1px solid #0f7fa8;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.methodik h3 {
    color: #0f7fa8;
    margin-bottom: 1rem;
}

/* Pattern-Analyse */
.pattern-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.pattern-box h4 {
    color: #ef4444;
}

/* Footer */
.footer {
    background: #0f1419;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #2d3748;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        margin: 0.5rem 0;
    }
    
    .themen-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .cluster {
        padding: 1.5rem;
    }
    
    .progress-legend {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.p-1 {
    padding: 1rem;
}

.bold {
    font-weight: bold;
}

/* Scroll Animation für Navigation */
.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

/* Anchor Links */
.anchor-link {
    color: #6b7280;
    text-decoration: none;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

h2:hover .anchor-link,
h3:hover .anchor-link {
    opacity: 1;
}