/*
 * fakten.css – Zahlen & Fakten Unterseite
 */

/* ===== HERO ===== */
.fakten-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 60%, #3a9c45 100%);
    padding: 80px 0 60px;
    color: var(--white);
}

.fakten-hero-content {
    text-align: center;
}

.fakten-hero-content .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.fakten-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.fakten-hero-content h1 sup {
    font-size: 0.6em;
}

.fakten-hero-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
}

.fakten-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-md);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.3;
}

/* ===== INTRO ===== */
.fakten-intro {
    background: var(--light-gray);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.intro-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.intro-card-highlight {
    background: var(--primary-color);
    color: var(--white);
}

.intro-card-highlight h3,
.intro-card-highlight p {
    color: var(--white);
}

.intro-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.intro-card-highlight .intro-icon {
    color: rgba(255,255,255,0.85);
}

.intro-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.intro-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin: 0;
}

/* ===== TAB SYSTEM ===== */
.fakten-tabs-section {
    padding: 60px 0 80px;
}

.tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(42,124,52,0.06);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(42,124,52,0.05);
}

.tab-btn i {
    font-size: 0.95rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 36px;
}

.tab-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-header h2 i {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.tab-header p {
    font-size: 1.05rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0;
}

/* ===== FACTS GRID ===== */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.fact-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
}

.fact-card-wide {
    grid-column: 1 / -1;
}

.fact-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.fact-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.fact-card p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 12px;
    line-height: 1.6;
}

.fact-source {
    font-size: 0.78rem !important;
    color: #999 !important;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
}

/* ===== FACT TABLE ===== */
.fact-table {
    margin: 12px 0;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.88rem;
    gap: 12px;
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    color: var(--medium-gray);
    flex: 1;
}

.fact-value {
    font-weight: 600;
    color: var(--dark-gray);
    text-align: right;
    white-space: nowrap;
}

.highlight-row .fact-label,
.highlight-row .fact-value {
    color: var(--primary-dark);
    font-weight: 700;
}

.highlight-green {
    color: var(--primary-color) !important;
}

/* ===== FACT LIST ===== */
.fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fact-list li {
    font-size: 0.9rem;
    color: var(--medium-gray);
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.5;
}

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

.fact-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== INFO BOXES ===== */
.info-box {
    display: flex;
    gap: 12px;
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.info-box i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.95rem;
}

.info-box p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
}

.info-box-orange {
    background: #fff8f0;
    border-left: 3px solid var(--secondary-color);
    color: #7a3500;
}

.info-box-orange i { color: var(--secondary-color); }

.info-box-green {
    background: #f0faf2;
    border-left: 3px solid var(--primary-color);
    color: #1a4d20;
}

.info-box-green i { color: var(--primary-color); }

/* ===== EXAMPLE BOX ===== */
.example-box {
    background: #f8fdf9;
    border: 1px solid #c8e6cb;
    border-radius: var(--border-radius-md);
    padding: 14px;
    margin: 12px 0;
}

.example-box h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

/* ===== TREND BARS ===== */
.trend-bar-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
}

.trend-bar {
    height: 30px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.trend-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    transition: width 0.8s ease;
}

/* ===== BAR CHART ===== */
.bar-chart {
    margin: 14px 0;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bar-label {
    font-size: 0.82rem;
    color: var(--medium-gray);
    width: 180px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    transition: width 0.8s ease;
}

.bar-fill-primary { background: var(--primary-color); }
.bar-fill-secondary { background: var(--medium-gray); }
.bar-fill-medium { background: #5a9e60; }

/* ===== HIGHLIGHT STATS ===== */
.highlight-stat {
    background: #f8fdf9;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: 14px 18px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.big-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.big-label {
    font-size: 0.88rem;
    color: var(--medium-gray);
    line-height: 1.4;
}

/* ===== POTENTIAL BOX ===== */
.potential-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.potential-item {
    background: linear-gradient(135deg, #f0faf2, #e8f5e9);
    border: 1px solid #c8e6cb;
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.potential-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.potential-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.potential-source {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* ===== TWO COL ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 12px;
}

.col-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.col-green { color: var(--primary-dark); }
.col-orange { color: #b84500; }

/* ===== CALCULATOR ===== */
.calculator-box {
    background: linear-gradient(135deg, #f9fdf9, #f0f7f1);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: 10px;
}

.calc-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 24px 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.calc-header i {
    font-size: 1.6rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.calc-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.calc-header p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.calc-inputs {
    padding: 28px 30px;
    border-right: 1px solid #d0e8d2;
}

.calc-field {
    margin-bottom: 22px;
}

.calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.calc-hint {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

.calc-field input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c8e0ca;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    background: var(--white);
    transition: var(--transition);
}

.calc-field input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42,124,52,0.12);
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider-group input[type="range"] {
    flex: 1;
    accent-color: var(--primary-color);
    height: 6px;
    cursor: pointer;
}

.slider-group span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 48px;
    text-align: right;
}

/* ===== RESULTS ===== */
.calc-results {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-card {
    background: var(--white);
    border: 1px solid #e0ece2;
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.result-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: right;
    white-space: nowrap;
}

.result-card-highlight {
    background: #f0faf2;
    border-color: var(--primary-color);
}

.result-card-highlight .result-label { color: var(--primary-dark); }
.result-card-highlight .result-value { color: var(--primary-color); font-size: 1.05rem; }

.result-card-total {
    background: var(--primary-color);
    border-color: var(--primary-dark);
}

.result-card-total .result-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 600; }
.result-card-total .result-value { color: var(--white); font-size: 1.2rem; }

.calc-disclaimer {
    padding: 12px 30px;
    font-size: 0.78rem;
    color: #888;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid #d0e8d2;
    margin: 0 !important;
}

/* ===== SOURCES ===== */
.sources-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
}

.source-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.source-item a {
    color: var(--dark-gray);
    line-height: 1.4;
}

.source-item a:hover {
    color: var(--primary-color);
}

/* ===== CTA section btn-outline dark background fix ===== */
.cta-section .btn-outline {
    color: var(--white);
}

.cta-section .btn-outline:hover {
    color: var(--primary-color);
}

/* ===== ACTIVE NAV LINK ===== */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .fakten-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fact-card-wide {
        grid-column: 1 / -1;
    }
    .potential-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fakten-hero-content h1 {
        font-size: 1.7rem;
    }
    .fakten-hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .tab-btn span {
        display: none;
    }
    .tab-btn {
        padding: 12px 16px;
        font-size: 1.2rem;
    }
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .calc-body {
        grid-template-columns: 1fr;
    }
    .calc-inputs {
        border-right: none;
        border-bottom: 1px solid #d0e8d2;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .sources-grid {
        grid-template-columns: 1fr;
    }
    .bar-label {
        width: 120px;
        font-size: 0.75rem;
    }
    .big-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .fakten-hero-stats {
        grid-template-columns: 1fr;
    }
    .tab-nav {
        gap: 4px;
    }
}
