/* ===========================================
   KAFFEE-ALTERNATIVE.INFO - HEALTH PAGES CSS
   Einheitliches, modernes Design für:
   - Gesundheitsseiten
   - Für-wen-Seiten (ADHS, Schwangere, etc.)
   - Bei-Seiten
   =========================================== */

/* Health-specific colors */
:root {
    --health-orange: #e67e22;
    --health-orange-light: #f39c12;
    --health-red: #c0392b;
    --health-green: #27ae60;
    --focus-purple: #8e44ad;
    --sensitivity-purple: #8e44ad;
}

/* ===========================================
   HERO SECTION (Gesundheitsseiten)
   =========================================== */

.hero {
    background: linear-gradient(135deg, var(--health-orange) 0%, var(--health-orange-light) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 320px at -2% -12%, rgba(255,255,255,0.25), transparent 60%),
        radial-gradient(560px 280px at 102% -10%, rgba(255,255,255,0.2), transparent 62%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   BREADCRUMB
   =========================================== */

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 0.9rem;
    color: var(--text-light, #5A4D3A);
    background: var(--cream-dark, #F5EED6);
}

.breadcrumb a {
    color: var(--health-orange);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ===========================================
   ARTICLE META (E-E-A-T) mit Share-Buttons
   =========================================== */

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light, #5A4D3A);
    max-width: 900px;
    margin: 15px auto 15px;
    padding: 15px 20px;
    background: var(--white, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--health-orange);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-separator { color: var(--sand, #E8DCC8); }

/* ===========================================
   CONTENT AREA
   =========================================== */

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.content h2 {
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sand, #E8DCC8);
}

.content h2:first-child { margin-top: 0; }

.content h3 {
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.content p {
    color: var(--text-light, #5A4D3A);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content a {
    color: var(--health-orange);
    text-underline-offset: 0.16em;
}

.content a:hover {
    color: #c86d1e;
}

.content > ul, .content > ol {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px 25px 25px 50px;
    margin: 25px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    color: var(--text-light, #5A4D3A);
}

.content > ul li, .content > ol li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
    line-height: 1.6;
}

.content > ul li:last-child, .content > ol li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ===========================================
   TABLE OF CONTENTS
   =========================================== */

.toc {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 15px 0 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--health-orange);
}

.toc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--health-orange);
    margin-bottom: 15px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    padding: 12px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.toc-list li::before {
    content: counter(toc-counter);
    width: 28px;
    height: 28px;
    background: #fff5f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--health-orange);
    flex-shrink: 0;
}

.toc-list a {
    color: var(--text-dark, #2C2416);
    text-decoration: none;
    font-size: 0.95rem;
}

.toc-list a:hover { color: var(--health-orange); }

/* ===========================================
   SYMPTOM GRID
   =========================================== */

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.symptom-item {
    background: var(--white, #FFFFFF);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    border-left: 4px solid var(--health-orange);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.symptom-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.symptom-item .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    /* Override SVG styles from styles.css */
    width: auto !important;
    height: auto !important;
    stroke: none !important;
    fill: none !important;
    display: block;
    line-height: 1;
}

.symptom-item h4 {
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
    font-size: 1rem;
}

.symptom-item p {
    font-size: 0.85rem;
    color: var(--text-light, #5A4D3A);
    margin: 0;
    line-height: 1.5;
}

/* ===========================================
   CAUSE GRID / CAUSE CARDS
   =========================================== */

.cause-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cause-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 4px solid var(--health-orange);
    transition: all 0.3s ease;
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cause-card h4 {
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.cause-card p {
    color: var(--text-light, #5A4D3A);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ===========================================
   TEST BOX (Selbsttest)
   =========================================== */

.test-box {
    background: var(--white, #FFFFFF);
    border: 2px solid var(--health-orange);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.15);
}

.test-box h3 {
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.test-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
}

.test-item:last-of-type { border-bottom: none; }

.test-item .check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--health-orange);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.test-item p {
    margin: 0;
    color: var(--text-dark, #2C2416);
    line-height: 1.5;
}

.test-result {
    background: linear-gradient(135deg, var(--health-orange), var(--health-orange-light));
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 25px;
    line-height: 1.6;
}

/* ===========================================
   COMPARISON TABLE
   =========================================== */

.compare-table,
.comparison-table,
.caffeine-table,
.pral-table,
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.compare-table th,
.comparison-table th,
.caffeine-table th,
.pral-table th,
.guide-table th {
    background: var(--health-orange);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.compare-table td,
.comparison-table td,
.caffeine-table td,
.pral-table td,
.guide-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--sand, #E8DCC8);
}

.compare-table tr:last-child td,
.comparison-table tr:last-child td,
.caffeine-table tr:last-child td,
.pral-table tr:last-child td,
.guide-table tr:last-child td { border-bottom: none; }

.compare-table tr:hover,
.comparison-table tr:hover,
.caffeine-table tr:hover,
.pral-table tr:hover,
.guide-table tr:hover { background: #fff5f0; }

.compare-table tr.highlight,
.comparison-table tr.highlight,
.caffeine-table tr.highlight,
.pral-table tr.highlight,
.guide-table tr.highlight {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.compare-table .good,
.comparison-table .good,
.caffeine-table .good,
.pral-table .good,
.guide-table .good { color: var(--health-green); font-weight: 600; }

.compare-table .bad,
.comparison-table .bad,
.caffeine-table .bad,
.pral-table .bad,
.guide-table .bad { color: var(--health-red); }

.compare-table .neutral,
.comparison-table .neutral,
.caffeine-table .neutral,
.pral-table .neutral,
.guide-table .neutral { color: var(--health-orange); }

/* ===========================================
   SOLUTION HERO (GUYA Box)
   =========================================== */

.solution-hero {
    background: linear-gradient(135deg, #1a3d0c 0%, var(--forest-green, #2D5016) 50%, #3d6b1c 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 8px 30px rgba(45,80,22,0.3);
}

.solution-hero .badge {
    background: var(--terracotta, #C4723A);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.solution-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white !important;
    border: none !important;
}

.solution-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.7;
}

.solution-hero .benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.benefit {
    display: inline-block;
    background: var(--cream-dark, #F5EED6);
    color: var(--forest-green, #2D5016);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 4px 4px 4px 0;
    border: 1px solid rgba(45, 80, 22, 0.12);
}

.solution-hero .benefit {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.92);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0;
}

.solution-hero .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--terracotta, #C4723A);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.solution-hero .cta-btn:hover {
    background: #D4915E;
    transform: translateY(-2px);
}

/* ===========================================
   INFO BOX
   =========================================== */

.info-box {
    background: var(--white, #FFFFFF);
    border-left: 4px solid var(--health-orange);
    border-radius: 0 16px 16px 0;
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.info-box h3 {
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.info-box p {
    color: var(--text-light, #5A4D3A);
    line-height: 1.7;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    margin: 15px 0 0 20px;
    color: var(--text-light, #5A4D3A);
}

.info-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===========================================
   DISCLAIMER BOX
   =========================================== */

.disclaimer {
    background: #FFF8E6;
    border: 2px solid var(--health-orange);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
}

.disclaimer h4 {
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer h4::before {
    content: "⚠️";
}

.disclaimer p {
    color: var(--text-dark, #2C2416);
    margin: 0;
    line-height: 1.6;
}

/* ===========================================
   OPTIONS GRID / OPTION CARDS
   =========================================== */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.option-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid var(--sand, #E8DCC8);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.option-card.recommended {
    border-top: 4px solid var(--forest-green, #2D5016);
    background: linear-gradient(180deg, #f0f9f0 0%, white 30%);
}

.option-card h4 {
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.option-card p {
    color: var(--text-light, #5A4D3A);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.option-card a {
    color: var(--health-orange);
    font-weight: 600;
}

/* ===========================================
   VISUAL CONTENT MODULES (Tables, Cards, Tips)
   =========================================== */

.card-cta {
    margin-top: 14px;
    margin-bottom: 0;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--health-orange);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(230, 126, 34, 0.35);
    padding-bottom: 2px;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.more-link:hover {
    border-color: currentColor;
    transform: translateX(2px);
}

/* ===========================================
   SCAN-FIRST MODULE (ADHS-freundlich)
   - Erst schnelle Kacheln + Bulletpoints
   - Danach ausführlicher Text (unverändert)
   =========================================== */

.scan-section {
    background: linear-gradient(135deg, #fff7ec 0%, #ffffff 70%);
    border: 1px solid rgba(230, 126, 34, 0.18);
    border-left: 5px solid var(--health-orange);
    border-radius: 18px;
    padding: 22px 24px;
    margin: 22px 0 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.scan-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.scan-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--health-orange);
    background: rgba(230, 126, 34, 0.10);
    border: 1px solid rgba(230, 126, 34, 0.22);
    padding: 6px 10px;
    border-radius: 999px;
    width: fit-content;
}

.scan-header h3 {
    margin: 0;
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.scan-header p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
}

.scan-grid {
    display: grid;
    /* Deterministic layout to avoid "3 tiles + 1 orphan" rows. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

/* Avoid a lonely last tile: if the count is odd, let the last card span the full row. */
.scan-grid > .scan-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.scan-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(232, 220, 200, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.scan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.scan-card h4 {
    margin: 0 0 10px 0;
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.scan-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scan-bullets li {
    position: relative;
    padding: 9px 0 9px 18px;
    border-bottom: 1px solid var(--sand, #E8DCC8);
    color: var(--text-light, #5A4D3A);
    line-height: 1.55;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.scan-bullets li:last-child { border-bottom: none; }

.scan-bullets li::before {
    content: "•";
    color: var(--health-orange);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.95em;
    transform: translateY(-50%);
}

/* Stronger emphasis for the Guayusa card inside scan grids */
.scan-card.is-guayusa {
    background: linear-gradient(180deg, rgba(45, 80, 22, 0.08) 0%, #ffffff 42%);
    border-color: rgba(45, 80, 22, 0.18);
}

/* Long-form blocks that map 1:1 to scan tiles (ADHS-friendly: quick scan first, then depth). */
.scan-details {
    margin-top: 18px;
}

.scan-details-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scan-details-header h3 {
    margin: 0;
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.scan-details-header p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
}

.scan-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.scan-details-grid > .scan-detail:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.scan-detail {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 20px 20px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(232, 220, 200, 0.9);
    position: relative;
}

.scan-detail h4 {
    margin: 0 0 10px 0;
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.scan-detail p {
    margin: 0 0 12px 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
    font-size: 0.95rem;
}

.scan-detail p:last-child { margin-bottom: 0; }

.detail-bullets {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.detail-bullets li {
    position: relative;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid var(--sand, #E8DCC8);
    color: var(--text-light, #5A4D3A);
    line-height: 1.55;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.detail-bullets li:last-child { border-bottom: none; }

.detail-bullets li::before {
    content: "•";
    color: var(--health-orange);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.95em;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .scan-section { padding: 18px 18px; }
    .scan-grid { grid-template-columns: 1fr; }
    .scan-details-grid { grid-template-columns: 1fr; }
}

/* Common grid wrappers that appear across health/for-who pages */
.safe-grid,
.alternatives-grid,
.alternative-grid,
.wachmacher-grid,
.sources-grid,
.topic-grid {
    display: grid;
    /* Deterministic layout to avoid "3 cards + 1 orphan" rows. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.safe-grid > :last-child:nth-child(odd),
.alternatives-grid > :last-child:nth-child(odd),
.alternative-grid > :last-child:nth-child(odd),
.wachmacher-grid > :last-child:nth-child(odd),
.sources-grid > :last-child:nth-child(odd),
.topic-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .safe-grid,
    .alternatives-grid,
    .alternative-grid,
    .wachmacher-grid,
    .sources-grid,
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.level-grid,
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr; }
}

/* Safe cards (e.g. Schwangerschaft, Sodbrennen) */
.safe-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid var(--sand, #E8DCC8);
}

.safe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.safe-card.recommended {
    border-top-color: var(--health-green);
    background: linear-gradient(180deg, #f0f9f0 0%, white 30%);
}

.safe-card.best {
    border-top-color: var(--forest-green, #2D5016);
    background: linear-gradient(180deg, rgba(45, 80, 22, 0.08) 0%, white 32%);
}

.safe-card.caution {
    border-top-color: var(--health-orange);
    background: linear-gradient(180deg, rgba(230, 126, 34, 0.10) 0%, white 35%);
}

.safe-card h4 {
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin: 0 0 12px 0;
}

.safe-card p {
    color: var(--text-light, #5A4D3A);
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.safe-card p:last-child { margin-bottom: 0; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(45, 80, 22, 0.12);
    margin: 0 0 12px 0;
}

.status.safe {
    background: rgba(39, 174, 96, 0.14);
    border-color: rgba(39, 174, 96, 0.22);
    color: var(--health-green);
}

/* Level cards (Koffein-Empfindlichkeit) */
.level-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 2px solid rgba(142, 68, 173, 0.18);
}

.level-card .percent {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--sensitivity-purple);
    margin-bottom: 8px;
}

.level-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.level-card p {
    margin: 0 0 12px 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
    font-size: 0.95rem;
}

.level-card ul {
    margin: 12px 0 0 18px;
    padding: 0;
    color: var(--text-light, #5A4D3A);
}

.level-card li {
    margin-bottom: 8px;
    line-height: 1.55;
}

/* Comparison columns (L-Theanin) */
.comparison-col {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e7dcc8;
}

.comparison-col.good {
    border-top: 4px solid var(--health-green);
    background: linear-gradient(180deg, rgba(39, 174, 96, 0.10) 0%, white 40%);
}

.comparison-col.bad {
    border-top: 4px solid var(--health-red);
    background: linear-gradient(180deg, rgba(192, 57, 43, 0.10) 0%, white 40%);
}

.comparison-col h4 {
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark, #2C2416);
    font-size: 1.05rem;
}

.comparison-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-col li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
    color: var(--text-light, #5A4D3A);
    line-height: 1.5;
}

.comparison-col li:last-child { border-bottom: none; }

.comparison-col.good li::before {
    content: "✓";
    color: var(--health-green);
    font-weight: 800;
    flex-shrink: 0;
}

.comparison-col.bad li::before {
    content: "✕";
    color: var(--health-red);
    font-weight: 800;
    flex-shrink: 0;
}

/* Source cards (Natürliche L-Theanin-Quellen) */
.source-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--focus-purple);
}

.source-card h4 {
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark, #2C2416);
    font-size: 1.1rem;
}

.source-card .amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(142, 68, 173, 0.12);
    border: 1px solid rgba(142, 68, 173, 0.22);
    color: var(--focus-purple);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.source-card p {
    margin: 0 0 12px 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Wachmacher cards (Morgen) */
.wachmacher-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid var(--health-orange);
}

.wachmacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.wachmacher-card.top {
    border-top-color: var(--forest-green, #2D5016);
    background: linear-gradient(180deg, rgba(45, 80, 22, 0.08) 0%, white 32%);
}

.wachmacher-card h4 {
    margin: 0 0 10px 0;
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.wachmacher-card .koffein {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cream-dark, #F5EED6);
    border: 1px solid rgba(45, 80, 22, 0.12);
    color: var(--forest-green, #2D5016);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.wachmacher-card p {
    margin: 0 0 12px 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Trimester tips (Schwangerschaft) */
.trimester-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 25px 0;
    counter-reset: trimester;
}

.trimester {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--health-orange);
    position: relative;
    counter-increment: trimester;
}

.trimester::before {
    content: counter(trimester);
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(230, 126, 34, 0.12);
    border: 1px solid rgba(230, 126, 34, 0.22);
    color: var(--health-orange);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trimester h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.trimester p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tips boxes */
.tips-box,
.tip-box {
    background: linear-gradient(135deg, #fff7ec 0%, #ffffff 70%);
    border-left: 4px solid var(--health-orange);
    border-radius: 0 16px 16px 0;
    padding: 22px 26px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tips-box h3,
.tips-box h4,
.tip-box h4 {
    margin: 0 0 12px 0;
    color: var(--health-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.tips-box ul,
.tip-box ul {
    margin: 12px 0 0 18px;
    padding: 0;
}

.tips-box li,
.tip-box li {
    margin-bottom: 10px;
    line-height: 1.55;
}

/* Intro + guide blocks (Gesundheit-Hub) */
.intro-text,
.quick-guide {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--health-orange);
    margin: 20px 0 30px;
}

.intro-text h2,
.quick-guide h2 {
    margin-top: 0;
}

.quick-guide p {
    margin-bottom: 16px;
}

/* Problem/Solution boxes (bei Magenproblemen) */
.problem-box,
.solution-box {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.problem-box { border-left: 4px solid var(--health-red); }
.solution-box { border-left: 4px solid var(--health-green); }

.problem-box h3,
.solution-box h3 {
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-dark, #2C2416);
}

.problem-box ul,
.solution-box ul {
    margin: 12px 0 0 18px;
    padding: 0;
}

.problem-box li,
.solution-box li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-light, #5A4D3A);
}

/* Avoid list (Reflux/Sodbrennen) */
.avoid-list {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.08) 0%, #ffffff 70%);
    border-left: 4px solid var(--health-red);
    border-radius: 0 16px 16px 0;
    padding: 22px 26px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.avoid-list h4 {
    margin: 0 0 12px 0;
    color: var(--health-red);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.avoid-list ul {
    margin: 12px 0 0 18px;
    padding: 0;
}

.avoid-list li {
    margin-bottom: 10px;
    line-height: 1.55;
}

/* pH scale visual (Basische Alternativen) */
.scale-visual {
    background: linear-gradient(135deg, #f7f3ea 0%, #efe3cf 100%);
    border-radius: 16px;
    padding: 24px 26px;
    margin: 30px 0;
    border: 1px solid rgba(45, 80, 22, 0.14);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.scale-visual h3 {
    margin: 0 0 14px 0;
    font-family: 'Playfair Display', serif;
    color: var(--forest-green, #2D5016);
    font-size: 1.2rem;
}

.ph-scale {
    display: flex;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    margin: 14px 0 10px;
}

.ph-scale .acid {
    flex: 6;
    background: linear-gradient(90deg, #c0392b 0%, #e67e22 100%);
}

.ph-scale .neutral {
    flex: 1;
    background: #f5eed6;
}

.ph-scale .base {
    flex: 6;
    background: linear-gradient(90deg, #27ae60 0%, #2D5016 100%);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-light, #5A4D3A);
    font-size: 0.9rem;
}

.scale-labels span {
    opacity: 0.9;
}

/* Morning routine steps */
.morning-routine {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.routine-step {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--forest-green, #2D5016);
}

.routine-step .time {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 80, 22, 0.10);
    border: 1px solid rgba(45, 80, 22, 0.18);
    color: var(--forest-green, #2D5016);
    font-weight: 900;
    margin-bottom: 12px;
}

.routine-step h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.routine-step p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Prep steps (Instant & Überblicksseiten) */
.prep-steps {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.prep-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--health-orange);
}

.prep-step:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

.prep-step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--health-orange), var(--health-orange-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 10px 22px rgba(230, 126, 34, 0.22);
}

.prep-step-content { flex: 1; }

.prep-step-content h4 {
    margin: 0 0 6px 0;
    color: var(--text-dark, #2C2416);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.prep-step-content p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Table value highlights */
.pral-value {
    font-weight: 800;
    text-align: center;
}

.pral-value.acid {
    color: var(--health-red);
    background: rgba(192, 57, 43, 0.08);
}

.pral-value.base {
    color: var(--health-green);
    background: rgba(39, 174, 96, 0.10);
}

.rating,
.stain-rating {
    font-weight: 800;
    text-align: center;
}

.stain-rating.high {
    color: var(--health-red);
    background: rgba(192, 57, 43, 0.10);
}

.stain-rating.medium {
    color: var(--health-orange);
    background: rgba(230, 126, 34, 0.10);
}

.stain-rating.low {
    color: var(--health-green);
    background: rgba(39, 174, 96, 0.10);
}

/* Info-box list polish (avoid inline margins) */
.info-box ol {
    margin: 15px 0 0 20px;
    color: var(--text-light, #5A4D3A);
}

.info-box ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===========================================
   TAGS
   =========================================== */

.tag,
.keyword-tag {
    display: inline-block;
    background: var(--cream-dark, #F5EED6);
    color: var(--forest-green, #2D5016);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 4px 4px 4px 0;
}

.tag:first-of-type {
    margin-left: 0;
}

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

.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    color: var(--text-dark, #2C2416);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.faq-question:hover { background: #fff5f0; }

.faq-question span {
    color: var(--health-orange);
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-answer {
    padding: 0 25px 25px;
    color: var(--text-light, #5A4D3A);
    display: none;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--health-orange);
    font-weight: 500;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { background: #fff5f0; }

/* ===========================================
   FAQ HUB PAGE (kompaktes Accordion)
   =========================================== */

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white, #FFFFFF);
    color: var(--forest-green, #2D5016);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: var(--forest-green, #2D5016);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.faq-category {
    margin-bottom: 35px;
}

.faq-category h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: var(--forest-green, #2D5016);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sand, #E8DCC8);
}

.category-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--health-orange, #D2691E), var(--health-orange-light, #E8A87C));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Kompaktere FAQ-Items für die Hub-Seite */
.faq-category .faq-item {
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
}

.faq-category .faq-question {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.faq-category .faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #2C2416);
    margin: 0;
    line-height: 1.4;
    font-family: 'Source Sans 3', sans-serif;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-toggle svg {
    width: 16px;
    height: 16px;
    stroke: var(--health-orange, #D2691E);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.faq-category .faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-category .faq-answer {
    padding: 0 20px 16px;
}

.faq-answer-content p {
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ===========================================
   CTA BOX
   =========================================== */

.cta-box {
    background: linear-gradient(135deg, var(--forest-green, #2D5016) 0%, var(--forest-green-light, #4A7C23) 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
}

.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    opacity: 0.95;
    margin-bottom: 25px;
    color: white;
    font-size: 1.05rem;
}

.cta-box .btn,
.btn {
    display: inline-block;
    background: var(--terracotta, #C4723A);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-box .btn:hover,
.btn:hover {
    background: #D4915E;
    transform: translateY(-2px);
    color: white;
}

/* ===========================================
   SOURCES BOX
   =========================================== */

.sources-box {
    background: var(--cream-dark, #F5EED6);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 40px 0;
    border-left: 4px solid var(--earth, #8B7355);
}

.sources-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-dark, #2C2416);
    margin-bottom: 15px;
}

.sources-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.sources-box li {
    padding: 10px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
}

.sources-box li:last-child { border-bottom: none; }

.sources-box a {
    color: var(--forest-green, #2D5016);
    text-decoration: none;
    font-size: 0.95rem;
}

.sources-box a:hover { text-decoration: underline; }

.sources-box a::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

.sources-note {
    font-size: 0.85rem;
    color: var(--text-light, #5A4D3A);
    font-style: italic;
    margin: 0;
}

/* ===========================================
   STUDIES BOX
   =========================================== */

.studies-box {
    background: var(--white, #FFFFFF);
    border: 2px solid var(--sand, #E8DCC8);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
}

.studies-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--health-orange);
    margin-bottom: 20px;
}

.studies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.studies-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.studies-list li::before {
    content: "📄";
    font-size: 0.9rem;
}

.studies-list a {
    color: var(--health-orange);
    text-decoration: none;
    font-weight: 500;
}

.studies-list a:hover { text-decoration: underline; }

.study-source {
    font-size: 0.85rem;
    color: var(--text-light, #5A4D3A);
    opacity: 0.8;
}

/* ===========================================
   BUY BOX
   =========================================== */

.buy-box {
    background: linear-gradient(135deg, var(--forest-green, #2D5016) 0%, var(--forest-green-light, #4A7C23) 100%);
    color: white;
    border-radius: 20px;
    padding: 30px 35px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
}

.buy-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.buy-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.buy-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.12);
    padding: 18px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.buy-link:hover {
    background: rgba(255,255,255,0.22);
    transform: translateX(8px);
    color: white;
}

.buy-name { font-weight: 600; font-size: 1.05rem; flex: 1; }
.buy-desc { font-size: 0.9rem; opacity: 0.85; }
.buy-arrow { font-size: 1.4rem; opacity: 0.8; }

.affiliate-note {
    font-size: 0.8rem;
    opacity: 0.65;
    margin-top: 20px;
    font-style: italic;
}

/* ===========================================
   TOPIC CARDS (für Übersichtsseiten)
   =========================================== */

.topic-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.topic-header {
    background: linear-gradient(135deg, var(--health-orange), var(--health-orange-light));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.topic-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topic-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

/* Hub-Seiten: Benefit-Icons */
.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--health-orange), var(--health-orange-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

/* Hub-Seiten: Product-Card-Icons */
.product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.product-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

/* Product-Header Layout (Hub-Seiten) */
.product-header {
    background: linear-gradient(135deg, var(--health-orange), var(--health-orange-light));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.product-header h3 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 1.2rem;
}
.product-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Benefits Section Grid */
.benefits-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.benefit-card {
    text-align: center;
    padding: 25px 15px;
}
.benefit-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--forest-green, #2D5016);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-light, #5A4D3A);
}

/* Product Grid & Cards (Hub-Seiten) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.product-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-body {
    padding: 20px;
}
.product-link {
    display: inline-block;
    color: var(--health-orange);
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}
.product-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}
.stat-item { text-align: center; }
.stat-value {
    font-weight: 700;
    color: var(--forest-green, #2D5016);
    font-size: 1.1rem;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-light, #5A4D3A);
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--health-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.product-card.featured {
    position: relative;
    border: 2px solid var(--health-orange);
}

.topic-header h3 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 1.2rem;
}

.topic-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* ===========================================
   COMPARISON BOX & TABLE (FAQ-Stil)
   =========================================== */

.comparison-box {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.comparison-box h3, .comparison-box h4 {
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.comparison-table,
.caffeine-table,
.pral-table,
.guide-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td,
.caffeine-table th,
.caffeine-table td,
.pral-table th,
.pral-table td,
.guide-table th,
.guide-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--sand, #E8DCC8);
}

.comparison-table th,
.caffeine-table th,
.pral-table th,
.guide-table th {
    background: var(--cream-dark, #F5EED6);
    color: var(--forest-green, #2D5016);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.comparison-table th:first-child,
.caffeine-table th:first-child,
.pral-table th:first-child,
.guide-table th:first-child {
    border-radius: 10px 0 0 0;
}

.comparison-table th:last-child,
.caffeine-table th:last-child,
.pral-table th:last-child,
.guide-table th:last-child {
    border-radius: 0 10px 0 0;
}

.comparison-table tr:last-child td,
.caffeine-table tr:last-child td,
.pral-table tr:last-child td,
.guide-table tr:last-child td { border-bottom: none; }

.comparison-table td.winner,
.comparison-table td.highlight,
.caffeine-table td.winner,
.caffeine-table td.highlight,
.pral-table td.winner,
.pral-table td.highlight,
.guide-table td.winner,
.guide-table td.highlight {
    color: var(--forest-green, #2D5016);
    font-weight: 600;
    background: rgba(45, 80, 22, 0.08);
}

.comparison-table tbody tr:hover,
.caffeine-table tbody tr:hover,
.pral-table tbody tr:hover,
.guide-table tbody tr:hover {
    background: var(--cream-dark, #F5EED6);
}

.comparison-table tbody tr:nth-child(even),
.caffeine-table tbody tr:nth-child(even),
.pral-table tbody tr:nth-child(even),
.guide-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

/* Guayusa should be immediately identifiable in comparison tables. */
.comparison-table tr.guayusa-row td,
.caffeine-table tr.guayusa-row td,
.pral-table tr.guayusa-row td,
.guide-table tr.guayusa-row td {
    background: linear-gradient(90deg, rgba(45, 80, 22, 0.12) 0%, rgba(45, 80, 22, 0.06) 55%, rgba(255, 255, 255, 0) 100%);
}

.comparison-table tr.guayusa-row td:first-child,
.caffeine-table tr.guayusa-row td:first-child,
.pral-table tr.guayusa-row td:first-child,
.guide-table tr.guayusa-row td:first-child {
    color: var(--forest-green, #2D5016);
    font-weight: 800;
}

.table-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--forest-green, #2D5016), var(--forest-green-light, #4A7C23));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.guide-table th:not(:first-child),
.guide-table td:not(:first-child) {
    text-align: center;
}

/* ===========================================
   HUB FINDER MODULE (Phase 3)
   =========================================== */

.hub-finder {
    background: linear-gradient(135deg, #f7f3ea 0%, #efe3cf 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 35px 0;
    border: 1px solid rgba(45, 80, 22, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.hub-finder h2 {
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    color: var(--forest-green, #2D5016);
    font-size: 1.6rem;
}

.hub-finder-intro {
    margin: 0 0 20px 0;
    font-size: 1rem;
    color: var(--text-light, #5A4D3A);
}

.hub-finder-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.hub-finder-form {
    background: var(--white, #FFFFFF);
    border-radius: 14px;
    border: 1px solid #e4d6bc;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.hub-finder-field {
    margin-bottom: 14px;
}

.hub-finder-field:last-of-type {
    margin-bottom: 20px;
}

.hub-finder-field label {
    display: block;
    font-weight: 600;
    color: var(--forest-green, #2D5016);
    margin-bottom: 6px;
}

.hub-finder-field select {
    width: 100%;
    border: 1px solid #d6c7ab;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text-dark, #2C2416);
    font-size: 1rem;
}

.hub-finder-field select:focus {
    outline: 2px solid rgba(45, 80, 22, 0.25);
    border-color: var(--forest-green, #2D5016);
}

.hub-finder-submit {
    width: 100%;
    border: none;
    border-radius: 30px;
    padding: 13px 20px;
    background: var(--health-orange);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hub-finder-submit:hover {
    background: var(--forest-green, #2D5016);
    transform: translateY(-1px);
}

.hub-finder-result {
    background: var(--white, #FFFFFF);
    border-radius: 14px;
    border: 1px solid #e4d6bc;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 22px;
}

.hub-result-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a7b5d;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hub-finder-result h3 {
    margin: 0 0 10px 0;
    color: var(--forest-green, #2D5016);
    font-size: 1.45rem;
}

.hub-finder-result p {
    margin: 0 0 14px 0;
    color: var(--text-light, #5A4D3A);
    font-size: 0.98rem;
}

.hub-result-link {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--health-orange);
    font-weight: 700;
    text-decoration: none;
}

.hub-result-link:hover {
    text-decoration: underline;
}

.hub-finder-alt {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #efe6d5;
}

.hub-finder-alt-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--forest-green, #2D5016);
}

.hub-finder-alt-list {
    margin: 0;
    padding-left: 18px;
}

.hub-finder-alt-list li {
    margin-bottom: 6px;
}

.hub-finder-empty {
    margin: 0;
    color: var(--text-light, #5A4D3A);
}

/* ===========================================
   HUB PAGE UI CLEANUP
   =========================================== */

.faq-subheading {
    color: var(--health-green);
    margin-bottom: 10px;
}

.faq-answer-block {
    margin-bottom: 25px;
}

.cta-box-with-icon .btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(196, 114, 58, 0.4);
}

.cta-box-with-icon .btn-with-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.related-section {
    background: var(--sand, #E8DCC8);
    padding: 50px 20px;
}

.related-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.related-title {
    font-family: 'Playfair Display', serif;
    color: var(--forest-green, #2D5016);
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    /* Keep related modules balanced and readable (avoid 3+1 orphans). */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.related-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.related-fallback-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.related-fallback-card:hover {
    transform: translateY(-2px);
}

.related-fallback-card h4 {
    color: var(--forest-green, #2D5016);
    margin-bottom: 8px;
    font-size: 1rem;
}

.related-fallback-card p {
    color: var(--text-light, #5A4D3A);
    font-size: 0.9rem;
    margin: 0;
}

.topic-card-highlight {
    border: 2px solid var(--health-orange);
}

.topic-icon-alert {
    background: linear-gradient(135deg, var(--health-red), var(--health-orange));
}

/* ===========================================
   DETAIL PAGE LINK MODULES + LLM BRIEF
   =========================================== */

.next-steps-module {
    background: linear-gradient(135deg, #f7f3ea 0%, #efe3cf 100%);
    border-radius: 18px;
    padding: 24px;
    margin: 35px 0;
    border: 1px solid rgba(45, 80, 22, 0.14);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.next-steps-module h3 {
    margin: 0 0 8px 0;
    color: var(--forest-green, #2D5016);
}

.next-steps-module p {
    margin: 0 0 16px 0;
    color: var(--text-light, #5A4D3A);
}

.next-steps-grid {
    display: grid;
    /* Deterministic grid to avoid "3 cards + 1 orphan" layouts. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.next-steps-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.next-step-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    border: 1px solid #e7dcc8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.next-step-card h4 {
    margin: 0 0 6px 0;
    color: var(--forest-green, #2D5016);
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
}

.next-step-card p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    font-size: 0.9rem;
    line-height: 1.4;
}

.llm-brief {
    background: #fff;
    border-left: 4px solid var(--health-orange);
    border-radius: 0 16px 16px 0;
    padding: 22px 26px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.llm-brief h3 {
    margin: 0 0 12px 0;
    color: var(--forest-green, #2D5016);
    font-size: 1.2rem;
}

.llm-brief-list {
    margin: 0;
    padding-left: 20px;
}

.llm-brief-list li {
    margin-bottom: 8px;
    line-height: 1.55;
    color: var(--text-light, #5A4D3A);
}

.llm-brief-note {
    margin-top: 14px;
    color: var(--text-light, #5A4D3A);
    font-size: 0.95rem;
}

/* ===========================================
   DECISION FRAMEWORK
   =========================================== */

.decision-framework {
    background: linear-gradient(135deg, #f8f4ea 0%, #f0e6d4 100%);
    border: 1px solid rgba(45, 80, 22, 0.14);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 24px;
    margin: 34px 0;
}

.decision-framework h3 {
    margin: 0 0 8px 0;
    color: var(--forest-green, #2D5016);
}

.decision-framework-intro {
    margin: 0 0 16px 0;
    color: var(--text-light, #5A4D3A);
}

.decision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.decision-card {
    background: #fff;
    border: 1px solid #e5d8c1;
    border-radius: 12px;
    padding: 15px;
}

.decision-label {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #7a6a4b;
    margin-bottom: 6px;
}

.decision-card h4 {
    margin: 0 0 6px 0;
    color: var(--forest-green, #2D5016);
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
}

.decision-card p {
    margin: 0;
    color: var(--text-light, #5A4D3A);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* ===========================================
   HIGHLIGHT BOX
   =========================================== */

.highlight-box {
    background: var(--white, #FFFFFF);
    border-left: 4px solid var(--forest-green, #2D5016);
    border-radius: 0 16px 16px 0;
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.highlight-box h3 {
    color: var(--forest-green, #2D5016);
    margin-bottom: 15px;
    font-size: 1.15rem;
    font-family: 'Playfair Display', serif;
}

.highlight-box p {
    margin-bottom: 10px;
}

.topic-body { padding: 20px; }

.topic-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.topic-recommendations { margin-bottom: 15px; }

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sand, #E8DCC8);
}

.recommendation-item:last-child { border-bottom: none; }

.check-icon {
    color: var(--health-green);
    font-weight: bold;
}

.topic-link {
    display: inline-block;
    color: var(--health-orange);
    font-weight: 600;
    text-decoration: none;
}

.topic-link:hover { text-decoration: underline; }

/* ===========================================
   ALT CARDS (Alternative Karten)
   =========================================== */

.alt-card {
    background: var(--white, #FFFFFF);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid var(--health-orange);
}

.alt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.alt-card.recommended {
    /* "Recommended" should stand out, but Guayusa remains the only strong green #1 highlight. */
    border-top-color: rgba(230, 126, 34, 0.85);
    background: linear-gradient(180deg, rgba(230, 126, 34, 0.09) 0%, white 34%);
}

.alt-card.is-guayusa {
    border-top-color: var(--forest-green, #2D5016);
    background: linear-gradient(180deg, rgba(45, 80, 22, 0.08) 0%, white 32%);
}

.alt-card.best,
.alt-card.top-pick {
    border-top-color: var(--forest-green, #2D5016);
    background: linear-gradient(180deg, rgba(45, 80, 22, 0.08) 0%, white 32%);
}

.alt-card h4 {
    color: var(--forest-green, #2D5016);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin: 0 0 12px 0;
}

.alt-card p {
    color: var(--text-light, #5A4D3A);
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.alt-card p:last-child { margin-bottom: 0; }

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

.footer {
    background: var(--health-orange);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer p { opacity: 0.9; }
.footer a { color: white; text-decoration: underline; }

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

@media (max-width: 768px) {
    .hero { padding: 50px 20px; }
    .hero h1 { font-size: 1.8rem; }

    .content { padding: 30px 20px 50px; }
    .content h2 { font-size: 1.4rem; margin-top: 40px; }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 15px 15px;
    }
    .meta-separator { display: none; }

    .toc { padding: 20px; }

    .symptom-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .symptom-item { padding: 20px 15px; }

    .cause-grid { grid-template-columns: 1fr; }
    .options-grid { grid-template-columns: 1fr; }

    .test-box { padding: 25px 20px; }

	    .solution-hero { padding: 30px 20px; }
	    .solution-hero h2 { font-size: 1.5rem; }
	    .solution-hero .benefits { gap: 8px; }
	    .solution-hero .benefit { padding: 8px 14px; font-size: 0.85rem; }
	    .benefit { padding: 6px 12px; font-size: 0.78rem; }

    .compare-table, .comparison-table { font-size: 0.85rem; }
    .compare-table th, .comparison-table th,
    .compare-table td, .comparison-table td { padding: 12px 15px; }

    .faq-question { padding: 15px 20px; font-size: 1rem; }
    .faq-answer { padding: 0 20px 20px; }

    .category-nav { gap: 8px; }
    .category-btn { padding: 6px 14px; font-size: 0.85rem; }
    .faq-category .faq-question { padding: 12px 16px; }
    .faq-category .faq-question h3 { font-size: 0.95rem; }
    .faq-category .faq-answer { padding: 0 16px 14px; }

    .cta-box { padding: 30px 20px; }

    .info-box { padding: 20px; }
    .sources-box { padding: 20px; }

    .comparison-box { padding: 20px; }
    .highlight-box { padding: 20px 25px; }

    .hub-finder {
        padding: 24px 18px;
    }

    .hub-finder h2 {
        font-size: 1.4rem;
    }

    .hub-finder-layout {
        grid-template-columns: 1fr;
    }

    .hub-finder-form,
    .hub-finder-result {
        padding: 18px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .next-steps-module {
        padding: 20px;
    }

    .next-steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .decision-framework {
        padding: 20px;
    }

    .decision-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .llm-brief {
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }

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

    .compare-table th, .comparison-table th,
    .compare-table td, .comparison-table td { padding: 10px 12px; font-size: 0.8rem; }

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

    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    .decision-cards {
        grid-template-columns: 1fr;
    }
}
