CSS
/* =========================================================
   ERSTE HILFE ABC - MODERN PWA STYLESHEET
   ========================================================= */

:root {
    --primary-color: #34495e;
    --accent-color: #c0392b;
    --learn-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --border-radius: 16px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--learn-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

/* --- HEADER & NAVIGATION --- */
#mode-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#mode-switcher-container .switch-inner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo {
    height: 38px;
    width: auto;
    margin-left: auto;
}

.switch-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Notfall-Button (ersetzt den früheren Toggle-Switch) */
.emergency-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    background-color: #c0392b;
    box-shadow: 0 3px 8px rgba(192, 57, 43, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.emergency-toggle-btn:active {
    transform: scale(0.96);
}

.emergency-toggle-btn.is-panic {
    background-color: #34495e;
    box-shadow: 0 3px 8px rgba(52, 73, 94, 0.35);
}

/* --- MAIN CONTAINER --- */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 15px 15px 40px 15px;
}

.main-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 5px;
}

#main-title {
    text-align: center;
    font-size: 26px;
    margin: 0 0 4px 0;
    color: #1e293b;
}

#main-subtitle {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px 0;
}

#main-title-kind {
    text-align: center;
    font-size: 22px;
    margin: 0 0 4px 0;
    color: #1e293b;
}

#main-subtitle-kind {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px 0;
}

#main-title-erwachsene {
    text-align: center;
    font-size: 22px;
    margin: 0 0 4px 0;
    color: #1e293b;
}

#main-subtitle-erwachsene {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* --- SEARCH INPUT --- */
#search-input,
#search-input-erwachsene {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 30px;
    background-color: #ffffff;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    outline: none;
    transition: all 0.2s ease;
}

#search-input:focus,
#search-input-erwachsene:focus {
    border-color: #34495e;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.15);
}

/* --- KATEGORIE-AUSWAHL (BABY/KIND vs. ERWACHSENE) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 25px 0 10px 0;
}

.category-card {
    background-color: var(--card-bg);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 28px 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 140px;
    transition: all 0.2s ease;
}

.category-card:active {
    transform: scale(0.97);
    background-color: #f1f5f9;
}

.category-icon {
    font-size: 42px;
    line-height: 1;
}

/* --- PROMINENTER PRÄVENTIONS-BANNER --- */
.promo-banner {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #27ae60;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #e8f8f5 0%, #ffffff 100%);
    color: #1e8449;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.promo-banner:active {
    transform: scale(0.98);
}

/* --- KACHEL-GRID (THEMEN) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

@media (min-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.topic-card {
    background-color: var(--card-bg);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 18px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85px;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.topic-card:active {
    transform: scale(0.97);
    background-color: #f1f5f9;
}

/* --- NOTFALL-MODUS MODIFIKATIONEN --- */
main.mode-panic {
    background-color: #1a0f0f;
}

main.mode-panic .topic-card {
    background-color: #2c1515;
    border-color: #e74c3c;
    color: #ffffff;
}

main.mode-panic .topic-card.special-card {
    display: none;
}

main.mode-panic #main-title,
main.mode-panic #main-subtitle,
main.mode-panic #main-title-kind,
main.mode-panic #main-subtitle-kind,
main.mode-panic #main-title-erwachsene,
main.mode-panic #main-subtitle-erwachsene {
    color: #ffffff;
}

main.mode-panic #search-input,
main.mode-panic #search-input-erwachsene {
    background-color: #2c1515;
    border-color: #e74c3c;
    color: #ffffff;
}

main.mode-panic .learn-content {
    display: none;
}

main.mode-learn .panic-content {
    display: none;
}

/* --- FEEDBACK BUTTON & LEGAL DISCLAIMER --- */
.btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    background-color: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:active {
    background-color: #f1f5f9;
}

.app-disclaimer {
    background-color: #f1f5f9;
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
}

/* --- DETAIL-BILDSCHIRME & UI-ÜBERGÄNGE --- */
.back-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-btn:active {
    transform: scale(0.96);
}

.emergency-step {
    background-color: #2c3e50;
    color: #ffffff;
    border-left: 5px solid #e74c3c;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.step-num {
    display: inline-block;
    background: #e74c3c;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-weight: bold;
    margin-right: 8px;
}

.product-box {
    background: #fff8e7;
    border: 1.5px solid #f39c12;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    font-size: 14px;
    color: #2c3e50;
}

.product-link-btn {
    display: block;
    margin-top: 12px;
    background-color: #ff9900;
    color: #111111 !important;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.product-link-btn:active {
    transform: scale(0.98);
}

/* =========================================================
   NEU: CSS KLASSEN FÜR SANFTE UI-WECHSEL
   ========================================================= */

.screen-hidden {
    display: none !important;
}

.screen-active {
    display: block !important;
    animation: fadeInScreen 0.3s ease-out forwards;
}

@keyframes fadeInScreen {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-hidden {
    display: none !important;
}

.modal-visible {
    display: flex !important;
    animation: fadeInModal 0.25s ease-out forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================================
   AKTUELLE LAGE (Saisonale Hinweise: Pollen, UV, Grippewelle)
   ========================================================= */

.lage-tile {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--border-radius);
    border: 1.5px solid;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    text-align: left;
    margin-top: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.lage-tile:active {
    transform: scale(0.98);
}

.lage-tile-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.lage-tile-text {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 700;
}

.lage-tile-calm {
    background: linear-gradient(135deg, #e8f8f5 0%, #ffffff 100%);
    border-color: #27ae60;
    color: #1e8449;
}

.lage-tile-warning {
    background: linear-gradient(135deg, #fdecea 0%, #ffffff 100%);
    border-color: #c0392b;
    color: #922b21;
}

.lage-tile-neutral {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}

.lage-card {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    border-left: 5px solid;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.lage-card-warnung {
    border-left-color: #c0392b;
}

.lage-card-hinweis {
    border-left-color: #f39c12;
}

.lage-card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.lage-card-wert {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.lage-card-quelle {
    font-size: 12px;
    color: #64748b;
}

.lage-card-quelle a {
    color: #2980b9;
    text-decoration: none;
}

/* =========================================================
   VERBANDKASTEN-CHECK
   ========================================================= */

.vk-eintrag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.vk-eintrag-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vk-loeschen-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
}

/* =========================================================
   NOTFALL-STECKBRIEF
   ========================================================= */

.ns-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    font-family: inherit;
}

textarea.ns-input {
    min-height: 60px;
    resize: vertical;
}

.ns-eintrag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    gap: 10px;
}

.ns-eintrag-info {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ns-eintrag-aktionen {
    display: flex;
    gap: 4px;
}

.ns-eintrag-aktionen button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
}

.ns-badge {
    display: inline-block;
    font-size: 11px;
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 6px;
}

.ns-badge-warn {
    background: #fee2e2;
    color: #b91c1c;
}

.ns-grosskarte {
    background: #1e1b4b;
    color: white;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 10px;
}

.ns-grosskarte h2 {
    margin: 0 0 4px 0;
    font-size: 28px;
    color: white;
}

.ns-karte-alter {
    margin: 0 0 20px 0;
    color: #c7d2fe;
    font-size: 15px;
}

.ns-karte-zeile {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
}

.ns-karte-label {
    display: block;
    font-size: 13px;
    color: #a5b4fc;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ns-karte-wert {
    display: block;
    font-size: 19px;
    line-height: 1.4;
    white-space: pre-wrap;
    color: white;
}

.ns-karte-tel {
    display: block;
    font-size: 19px;
    color: #93c5fd;
    text-decoration: none;
}
