/*
 * health.css - gemeinsames Stylesheet fuer die Gesundheits-Infomodule
 * (Erste Hilfe, Verletzungspraevention, Ernaehrung, Regeneration, Mentale
 * Gesundheit, Extremwetter). Familienfarbe: Teal (#0d9488). CTA bleibt Orange.
 * Bewusst gemeinsam genutzt, damit alle Gesundheits-Module einheitlich sind.
 */

:root {
    --gh-primary: #0d9488;
    --gh-primary-dark: #0f766e;
    --gh-soft: #f0fdfa;
    --gh-accent: #f59e0b;       /* einheitliche CTA-Farbe ueber alle Module */
    --gh-text: #1f2937;
    --gh-text-soft: #6b7280;
    --gh-bg: #f8fafc;
    --gh-border: #e5e7eb;
    --gh-ok: #16a34a;
    --gh-warn: #dc2626;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body.gh { font-family: 'Inter', sans-serif; color: var(--gh-text); background: var(--gh-bg); line-height: 1.65; }

/* Kopf */
.gh-header {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(135deg, var(--gh-primary) 0%, var(--gh-primary-dark) 100%);
    color: #fff; padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gh-header h1 { font-family: 'Poppins', sans-serif; font-size: 1.35rem; font-weight: 600; }
.gh-header .gh-sub { font-size: 0.85rem; opacity: 0.9; font-weight: 300; }
.gh-back {
    background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50px; padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: background 0.2s ease; white-space: nowrap;
}
.gh-back:hover { background: rgba(255,255,255,0.28); }
body.embed .gh-header { display: none; }

/* Themen-Headerbild */
.gh-hero img { display: block; width: 100%; height: 170px; object-fit: cover; }
@media (max-width: 600px) { .gh-hero img { height: 120px; } }

/* Inhalt */
.gh-wrap { max-width: 920px; margin: 0 auto; padding: 1.75rem 1.5rem 4rem; }
.gh-h1 { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--gh-primary-dark); margin-bottom: 0.6rem; }
.gh-lead { font-size: 1.02rem; color: var(--gh-text-soft); margin-bottom: 1.5rem; max-width: 70ch; }

/* Abschnitts-Karten */
.gh-section {
    background: #fff; border: 1px solid var(--gh-border); border-radius: 16px;
    padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
    position: relative; overflow: hidden;
}
.gh-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gh-primary), #5eead4);
}
.gh-section-title { font-family: 'Poppins', sans-serif; font-size: 1.2rem; color: var(--gh-primary-dark); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.gh-section p { color: var(--gh-text-soft); margin-bottom: 0.7rem; }
.gh-section p:last-child { margin-bottom: 0; }

/* Listen mit Symbolen */
.gh-list { list-style: none; margin: 0.4rem 0 0.6rem; }
.gh-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.5rem; color: var(--gh-text-soft); }
.gh-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.gh-list.check li::before { content: '\2713'; color: var(--gh-ok); }
.gh-list.cross li::before { content: '\2715'; color: var(--gh-warn); }
.gh-list.dot li::before { content: '\2022'; color: var(--gh-primary); font-size: 1.2rem; line-height: 1.2; }
.gh-list strong { color: var(--gh-text); }

/* Hervorhebungs-Boxen */
.gh-callout { border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; border: 1px solid; }
.gh-callout-title { font-family: 'Poppins', sans-serif; font-weight: 600; display: block; margin-bottom: 0.3rem; }
.gh-callout p { margin: 0; font-size: 0.95rem; }
.gh-callout.is-info { background: var(--gh-soft); border-color: #99f6e4; color: var(--gh-primary-dark); }
.gh-callout.is-info p { color: #115e59; }
.gh-callout.is-alert { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.gh-callout.is-alert p { color: #991b1b; }
.gh-callout.is-tip { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.gh-callout.is-tip p { color: #92400e; }

/* Kachel-Raster (z. B. Organisationen, Stichpunkte) */
.gh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0; }
.gh-tile { background: #fff; border: 1px solid var(--gh-border); border-radius: 14px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.gh-tile-emoji { font-size: 1.6rem; }
.gh-tile h3 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; color: var(--gh-text); margin: 0.4rem 0 0.3rem; }
.gh-tile p { color: var(--gh-text-soft); font-size: 0.9rem; margin-bottom: 0.8rem; flex: 1; }
.gh-tile-link {
    align-self: flex-start; background: var(--gh-soft); color: var(--gh-primary-dark);
    border: 1px solid #99f6e4; border-radius: 50px; padding: 0.4rem 0.9rem;
    font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.15s ease;
}
.gh-tile-link:hover { background: var(--gh-primary); color: #fff; border-color: var(--gh-primary); }

/* Alters-Tags */
.gh-ages { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.2rem 0 0.6rem; }
.gh-age { background: var(--gh-soft); color: var(--gh-primary-dark); border-radius: 50px; padding: 0.1rem 0.6rem; font-size: 0.72rem; font-weight: 600; }

/* CTA (orange, einheitlich) */
.gh-cta {
    display: inline-block; background: var(--gh-accent); color: #fff; border: none;
    border-radius: 50px; padding: 0.7rem 1.4rem; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; cursor: pointer; transition: all 0.2s ease;
}
.gh-cta:hover { background: #e88100; transform: translateY(-1px); }

.gh-source { font-size: 0.8rem; color: var(--gh-text-soft); margin-top: 0.75rem; }
.gh-source a { color: var(--gh-primary-dark); }

@media (max-width: 600px) {
    .gh-section { padding: 1.25rem 1.25rem; }
    .gh-wrap { padding: 1.25rem 1rem 3rem; }
}

@media print {
    body.gh { background: #fff; }
    .gh-header, .gh-back, .no-print { display: none !important; }
    .gh-wrap { max-width: none; padding: 0; }
    .gh-section, .gh-tile { box-shadow: none; border: 1px solid #d1d5db; break-inside: avoid; page-break-inside: avoid; }
    .gh-section::before { display: none; }
    .gh-tile-link { border: 1px solid #9ca3af; color: #374151; }
}
