* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.14), transparent 35%),
        #020617;
    color: #e5f4ff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.eyebrow {
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: bold;
    margin-bottom: 4px;
}

h1 {
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.05;
}
.nav-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e5f4ff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.14);
    font-weight: bold;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.update-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(155px, 1fr));
    gap: 12px;
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.48);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(56, 189, 248, 0.14);
}

.card.active {
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.35),
        0 0 32px rgba(56, 189, 248, 0.22);
}

.hero-card {
    grid-column: span 1;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.icon {
    font-size: 1.35rem;
}

.label {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: bold;
}

.value {
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f8fafc;
    margin-bottom: 8px;
}

.subvalue {
    color: #94a3b8;
    font-size: 0.9rem;
}

.card.good {
    border-color: rgba(34, 197, 94, 0.55);
}

.card.notice {
    border-color: rgba(250, 204, 21, 0.58);
}

.card.alert {
    border-color: rgba(239, 68, 68, 0.70);
}


footer {
    margin-top: 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 1300px) {
    .dashboard {
        grid-template-columns: repeat(4, minmax(155px, 1fr));
    }
}

@media (max-width: 950px) {
    .dashboard {
        grid-template-columns: repeat(2, minmax(155px, 1fr));
    }
}

@media (max-width: 650px) {
    body {
        padding: 12px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-status {
        justify-content: flex-start;
    }

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

    .card {
        min-height: 120px;
    }

    #temperatureChart {
        height: 230px !important;
    }
}
.clock-box {
    text-align: right;
    padding: 7px 13px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#live_time {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

#live_date {
    font-size: 0.78rem;
    color: #94a3b8;
}
.wind-direction-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wind-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.5s ease;
}

.value-row {
    display: block;
}

.value-row .value {
    display: block;
    min-width: 0;
}

.minmax {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.25;
    text-align: left;
}


.max {
    color: #ff9966;
}

.min {
    color: #66ccff;
}
.subvalue {
    white-space: nowrap;
}
#weather_trend_main {
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
#weather_trend_detail {
    font-size: 0.78rem;
    opacity: 0.85;
}
.sensor-detail {
    padding-left: 18px;
    color: #cbd5e1;
}

/* Dashboard-Erweiterung: DWD-Gefahren + Pegel */
.alarm-warnings-card,
.pegel-card {
    min-height: 300px;
    border-color: rgba(0, 180, 255, 0.35);
    box-shadow: 0 0 22px rgba(0, 180, 255, 0.08);
}

.alarm-warning-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.alarm-warning-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(0, 130, 80, 0.42), rgba(0, 90, 70, 0.28));
    border: 1px solid rgba(40, 220, 130, 0.45);
    border-left: 5px solid #16c96f;
}

.alarm-warning-row.warn-yellow {
    background: linear-gradient(90deg, rgba(130, 95, 0, 0.42), rgba(80, 65, 0, 0.28));
    border-color: rgba(255, 210, 40, 0.5);
    border-left-color: #ffd21f;
}

.alarm-warning-row.warn-orange {
    background: linear-gradient(90deg, rgba(150, 70, 0, 0.55), rgba(80, 35, 0, 0.32));
    border-color: rgba(255, 130, 20, 0.65);
    border-left-color: #ff7a1a;
}

.alarm-warning-row.warn-red {
    background: linear-gradient(90deg, rgba(150, 20, 20, 0.58), rgba(80, 0, 0, 0.34));
    border-color: rgba(255, 70, 70, 0.75);
    border-left-color: #ff3030;
}

.alarm-warning-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.alarm-warning-right {
    text-align: right;
    font-weight: 800;
    color: #4dff88;
}

.alarm-warning-right small {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #a8bdd8;
    font-weight: 600;
}

.warn-yellow .alarm-warning-right {
    color: #ffd21f;
}

.warn-orange .alarm-warning-right {
    color: #ff9b31;
}

.warn-red .alarm-warning-right {
    color: #ff6060;
}

.pegel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pegel-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pegel-source {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(60, 170, 255, 0.45);
    color: #73c9ff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pegel-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 14px;
}

.pegel-value {
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 0.9;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 18px rgba(255,255,255,0.18);
}

.pegel-unit {
    font-size: 1.35rem;
    font-weight: 800;
    color: #d9eeff;
}

.pegel-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.pegel-trend,
.pegel-alert {
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.4px;
}

.pegel-trend {
    font-size: 0.72rem;
    padding: 6px 10px;
    min-width: 145px;
    max-width: 170px;
    text-align: center;
    white-space: nowrap;
}

.pegel-alert {
    background: #17c964;
    color: #001b0b;
}

.pegel-chart-wrap {
    height: 105px;
    padding: 8px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(0, 170, 255, 0.13), rgba(0, 20, 45, 0.25));
    border: 1px solid rgba(0, 180, 255, 0.18);
}

.pegel-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #a9c3e8;
    font-size: 0.95rem;
}

.pegel-footer strong {
    color: #32d4ff;
}

/* Feinschliff: DWD auf 2 Kacheln + Pegel groß */
.alarm-warnings-card,
.pegel-card {
    min-height: 320px;
}

.alarm-warnings-card .card-header h2,
.pegel-card .card-header h2 {
    font-size: 1.05rem;
}

.alarm-warning-list.compact,
.fire-list {
    gap: 8px;
}

.alarm-warning-list.compact .alarm-warning-row {
    padding: 10px 12px;
    min-height: 50px;
}

.fire-list .alarm-warning-row {
    min-height: 64px;
}

.alarm-source-line {
    margin-top: 18px;
    color: #9eb8d8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.alarm-source-line strong {
    color: #d8ecff;
}

.pegel-card {
    border-color: rgba(0, 180, 255, 0.5);
}

.pegel-main {
    margin-top: 12px;
}

.pegel-value {
    font-size: clamp(4.2rem, 6vw, 6rem);
}

.pegel-chart-wrap {
    height: 120px;
}

.pegel-chart-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.pegel-footer {
    font-size: 1rem;
}

/* Kompakter Kopfbereich */
header,
.header,
.dashboard-header,
.topbar {
    min-height: unset !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

header h1,
.header h1,
.dashboard-header h1 {
    font-size: 1.6rem !important;
    line-height: 1.1 !important;
}

header .subtitle,
.header .subtitle,
.dashboard-header .subtitle {
    font-size: 0.95rem !important;
}

/* Pegel kompakter */
.pegel-card {
    min-height: 300px !important;
}

.pegel-value {
    font-size: clamp(3.4rem, 4.8vw, 5rem) !important;
}

.pegel-unit {
    font-size: 1.1rem !important;
}

.pegel-trend,
.pegel-alert {
    font-size: 0.9rem !important;
    padding: 8px 13px !important;
}

.pegel-chart-wrap {
    height: 90px !important;
}

.pegel-footer {
    font-size: 0.9rem !important;
}

/* DWD-Warntext als breite Kachel unten */
.dwd-text-card {
    grid-column: 1 / -1;
    min-height: 95px;
    padding: 18px 22px;
    border-color: rgba(255, 180, 0, 0.45);
    background: linear-gradient(135deg, rgba(20, 28, 44, 0.96), rgba(10, 20, 34, 0.96));
}

.dwd-text-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
}

.dwd-text-main {
    margin-top: 8px;
    text-align: center;
    color: #27f27b;
    font-size: 1.25rem;
    font-weight: 900;
}

.dwd-text-sub {
    margin-top: 8px;
    text-align: center;
    color: #9fb7d8;
    font-size: 0.9rem;
}
/* Footer Links */
.dashboard-footer-links {
    margin-top: 18px;
    margin-bottom: 18px;
    text-align: center;
    color: #7f9bb8;
    font-size: 0.9rem;
}

.dashboard-footer-links a {
    color: #7fcbff;
    text-decoration: none;
    margin: 0 8px;
}

.dashboard-footer-links a:hover {
    color: #ffffff;
}

/* Rechtliche Seiten */
.legal-page {
    background: #020817;
    color: #e8f1ff;
    font-family: Arial, sans-serif;
    padding: 40px 20px;
}

.legal-container {
    max-width: 850px;
    margin: auto;
    background: rgba(10, 20, 40, 0.92);
    border: 1px solid rgba(0,180,255,0.2);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
}

.legal-container h1 {
    margin-bottom: 24px;
    color: #7fd8ff;
}

.legal-container p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.legal-container a {
    color: #7fd8ff;
    text-decoration: none;
    font-weight: bold;
}

.dwd-text-main {
    white-space: pre-line;
    line-height: 1.45;
}
.dwd-text-main {
    white-space: pre-line;
    line-height: 1.45;

    font-size: 0.92rem;
    color: #fca5a5;
}

.dwd-text-main {
    white-space: pre-line;
    line-height: 1.45;
    font-size: 0.92rem;
}

.dwd-yellow {
    color: #fde047;
}

.dwd-orange {
    color: #fdba74;
}

.dwd-red {
    color: #fca5a5;
}

.dwd-purple {
    color: #e9d5ff;
}

.dwd-warning-detail {
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
}

.dwd-warning-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dwd-warning-time {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.dwd-warning-description,
.dwd-warning-instruction {
    margin-top: 0.45rem;
    font-size: 0.86rem;
}

.dwd-yellow {
    color: #fde047;
}

.dwd-orange {
    color: #fdba74;
}

.dwd-red {
    color: #fca5a5;
}

.dwd-purple {
    color: #e9d5ff;
}

/* Dashboard Warnlogik V1 - Blitzsensor */
.lightning-card {
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.lightning-card.lightning-neutral {
    border-color: rgba(255,255,255,0.08);
}

.lightning-card.lightning-yellow {
    border-color: rgba(255, 214, 80, 0.75);
    box-shadow: 0 0 14px rgba(255, 214, 80, 0.20);
    background: linear-gradient(145deg, rgba(255, 214, 80, 0.10), rgba(20, 28, 45, 0.95));
}

.lightning-card.lightning-orange {
    border-color: rgba(255, 145, 40, 0.95);
    box-shadow: 0 0 20px rgba(255, 145, 40, 0.35);
    background: linear-gradient(145deg, rgba(255, 145, 40, 0.16), rgba(20, 28, 45, 0.95));
    animation: dashboardWarnPulse 2.8s ease-in-out infinite;
}

.lightning-card.lightning-red {
    border-color: rgba(255, 70, 70, 1);
    box-shadow: 0 0 26px rgba(255, 70, 70, 0.45);
    background: linear-gradient(145deg, rgba(255, 70, 70, 0.18), rgba(20, 28, 45, 0.95));
    animation: dashboardWarnBlink 1.6s ease-in-out infinite;
}

.lightning-card.lightning-purple {
    border-color: rgba(190, 90, 255, 1);
    box-shadow: 0 0 32px rgba(190, 90, 255, 0.55);
    background: linear-gradient(145deg, rgba(130, 50, 190, 0.28), rgba(20, 28, 45, 0.95));
    animation: dashboardWarnBlink 1.0s ease-in-out infinite;
}

@keyframes dashboardWarnPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 18px rgba(255, 145, 40, 0.25);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 28px rgba(255, 145, 40, 0.55);
    }
}

@keyframes dashboardWarnBlink {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.25);
    }
}

/* Dashboard Warnlogik V1 - Pegel / Hochwasser */
.pegel-card {
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.pegel-card.pegel-level-0 {
    border-color: rgba(255,255,255,0.08);
}

.pegel-card.pegel-level-1 {
    border-color: rgba(255, 214, 80, 0.75);
    box-shadow: 0 0 14px rgba(255, 214, 80, 0.18);
}

.pegel-card.pegel-level-1 .pegel-alert {
    background: #ffd650;
    color: #1d1600;
}

.pegel-card.pegel-level-2 {
    border-color: rgba(255, 145, 40, 0.95);
    box-shadow: 0 0 20px rgba(255, 145, 40, 0.34);
    animation: dashboardWarnPulse 3.2s ease-in-out infinite;
}

.pegel-card.pegel-level-2 .pegel-alert {
    background: #ff9128;
    color: #1d0b00;
}

.pegel-card.pegel-level-3 {
    border-color: rgba(255, 70, 70, 1);
    box-shadow: 0 0 26px rgba(255, 70, 70, 0.45);
    animation: dashboardWarnBlink 1.8s ease-in-out infinite;
}

.pegel-card.pegel-level-3 .pegel-alert {
    background: #ff4646;
    color: #fff;
}

.pegel-card.pegel-level-4 {
    border-color: rgba(190, 90, 255, 1);
    box-shadow: 0 0 34px rgba(190, 90, 255, 0.55);
    animation: dashboardWarnBlink 1.1s ease-in-out infinite;
}

.pegel-card.pegel-level-4 .pegel-alert {
    background: #be5aff;
    color: #fff;
}

/* Pegel Feinschliff - kompakte Badges */
.pegel-trend {
    font-size: 0.78rem;
    padding: 6px 12px;
    min-width: 96px;
    max-width: 150px;
    text-align: center;
    white-space: nowrap;
}

.pegel-alert {
    font-size: 0.9rem;
    padding: 8px 18px;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
}

.pegel-card.pegel-level-0 .pegel-alert {
    background: #17c964;
    color: #001b0b;
}

/* Dashboard Warnlogik V1 - DWD Gefahren 1/2 */
.alarm-warnings-main .alarm-warning-row {
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, filter 0.35s ease;
}

/* Gelb bleibt bewusst ruhig */
.alarm-warnings-main .alarm-warning-row.warn-yellow {
    box-shadow: 0 0 12px rgba(255, 210, 40, 0.12);
}

/* Orange = dezenter Warn-Glow */
.alarm-warnings-main .alarm-warning-row.warn-orange {
    box-shadow: 0 0 18px rgba(255, 130, 20, 0.32);
    animation: dashboardDwdPulse 3.0s ease-in-out infinite;
}

/* Rot = klare Warnanimation */
.alarm-warnings-main .alarm-warning-row.warn-red {
    box-shadow: 0 0 24px rgba(255, 70, 70, 0.45);
    animation: dashboardDwdBlink 1.7s ease-in-out infinite;
}

/* Falls später violett/extrem als Klasse kommt */
.alarm-warnings-main .alarm-warning-row.warn-purple,
.alarm-warnings-main .alarm-warning-row.warn-violet {
    background: linear-gradient(90deg, rgba(110, 25, 160, 0.70), rgba(60, 0, 90, 0.42));
    border-color: rgba(190, 90, 255, 0.9);
    border-left-color: #be5aff;
    box-shadow: 0 0 30px rgba(190, 90, 255, 0.55);
    animation: dashboardDwdBlink 1.1s ease-in-out infinite;
}

@keyframes dashboardDwdPulse {
    0%, 100% {
        filter: brightness(1);
        transform: translateY(0);
    }
    50% {
        filter: brightness(1.15);
        transform: translateY(-1px);
    }
}

@keyframes dashboardDwdBlink {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.28);
    }
}

/* DWD Vorabinformation Unwetter - rot/weiß schraffiert */
.alarm-warnings-main .alarm-warning-row.warn-preinfo {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(180, 0, 0, 0.95) 0px,
            rgba(180, 0, 0, 0.95) 12px,
            rgba(255, 255, 255, 0.92) 12px,
            rgba(255, 255, 255, 0.92) 20px
        );
    border-color: rgba(255, 255, 255, 0.85);
    border-left-color: #ffffff;
    box-shadow: 0 0 24px rgba(255, 60, 60, 0.45);
    animation: dashboardPreinfoStripe 8s linear infinite;
}

.alarm-warnings-main .alarm-warning-row.warn-preinfo .alarm-warning-left,
.alarm-warnings-main .alarm-warning-row.warn-preinfo .alarm-warning-right,
.alarm-warnings-main .alarm-warning-row.warn-preinfo small {
    color: #111 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}

@keyframes dashboardPreinfoStripe {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 56px 0;
    }
}

/* Fix: Pegel-Trend nicht abschneiden */
.pegel-trend {
    min-width: 150px;
    max-width: none;
    width: auto;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.82rem;
}

.pegel-card {
    overflow: visible;
}

/* Pegel: Trend zwischen Messwert und Chart */
.pegel-card {
    overflow: hidden;
}

.pegel-trend-row {
    margin: 8px 0 8px 0;
    display: flex;
    justify-content: flex-start;
}

.pegel-trend-row .pegel-trend {
    min-width: 0;
    max-width: none;
    width: auto;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.9rem;
    padding: 7px 14px;
}

/* DWD 2/2 kompakter und sauberer */
.alarm-warnings-fire .alarm-warning-left strong {
    white-space: nowrap;
    font-size: 0.95rem;
}

.alarm-warnings-fire .alarm-warning-right {
    min-width: 120px;
    text-align: right;
}

.alarm-warnings-fire .alarm-warning-right span {
    font-size: 1.05rem;
    line-height: 1.15;
    text-transform: uppercase;
}

/* Reset DWD 2/2 */
.alarm-warnings-fire .alarm-warning-right {
    min-width: unset;
    text-align: right;
}

.alarm-warnings-fire .alarm-warning-right span {
    font-size: inherit;
    line-height: inherit;
}

.alarm-warnings-fire .alarm-warning-left strong {
    font-size: inherit;
}

/* Reset DWD 2/2 nach zu breitem Test */
.alarm-warnings-fire .alarm-warning-right {
    min-width: unset;
    text-align: right;
}

.alarm-warnings-fire .alarm-warning-right span {
    font-size: inherit;
    line-height: inherit;
}

.alarm-warnings-fire .alarm-warning-left strong {
    font-size: inherit;
}

/* Top-Gefahrenhinweis */
.top-danger-banner {
    padding: 8px 14px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.18);
}

.top-danger-banner.hidden {
    display: none;
}

.top-danger-banner.yellow {
    background: linear-gradient(135deg, #ffd000, #c99700);
    color: #111;
}

.top-danger-banner.orange {
    background: linear-gradient(135deg, #ff9d00, #ff5c00);
}

.top-danger-banner.red {
    background: linear-gradient(135deg, #ff1f1f, #990000);
    animation: dangerPulse 1.1s infinite;
}

.top-danger-banner.purple {
    background: linear-gradient(135deg, #b000ff, #4b007d);
    animation: dangerPulse 0.75s infinite;
}

@keyframes dangerPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,255,255,.18);
    }
    50% {
        box-shadow: 0 0 26px rgba(255,255,255,.75);
    }
}

/* Topbar Warnbanner mittig */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#top-danger-banner {
    flex: 0 0 auto;
    margin: 0 auto;
    text-align: center;
    min-width: 320px;
}


/* DWD 1/2 Mehrzeilen-Layout wie Alarmmonitor */
.alarm-warnings-main .alarm-warning-row {
    align-items: flex-start !important;
    min-height: 92px !important;
}

.alarm-warnings-main .alarm-warning-left {
    align-items: flex-start !important;
    padding-top: 2px;
}

.alarm-warnings-main .alarm-warning-left strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.1;
}

.alarm-warnings-main .alarm-warning-right {
    text-align: right;
    min-width: 52%;
}

.alarm-warnings-main .alarm-warning-right span {
    display: block;
    white-space: pre-line;
    line-height: 1.18;
    font-size: 0.98rem;
}

.alarm-warnings-main .alarm-warning-right small {
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.1;
}

/* DWD 1/2 vertikales Warnkarten-Layout */
.alarm-warnings-main .alarm-warning-row.dwd-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 118px !important;
    gap: 3px !important;
    padding: 11px 13px !important;
}

.alarm-warnings-main .dwd-vertical .alarm-warning-title {
    display: flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    font-weight: 950;
    color: #eaf6ff;
    font-size: 1rem;
    line-height: 1.1;
}

.alarm-warnings-main .dwd-vertical .alarm-warning-state {
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 950;
    color: #4dff88;
}

.alarm-warnings-main .dwd-vertical.warn-yellow .alarm-warning-state {
    color: #ffe45c;
}

.alarm-warnings-main .dwd-vertical.warn-orange .alarm-warning-state {
    color: #ffae38;
}

.alarm-warnings-main .dwd-vertical.warn-red .alarm-warning-state {
    color: #ff5555;
}

.alarm-warnings-main .dwd-vertical.warn-purple .alarm-warning-state,
.alarm-warnings-main .dwd-vertical.warn-violet .alarm-warning-state {
    color: #d494ff;
}

.alarm-warnings-main .dwd-vertical .alarm-warning-detailtext {
    white-space: pre-line;
    font-size: 0.95rem;
    line-height: 1.12;
    font-weight: 850;
    color: #fff;
    min-height: 34px;
}

.alarm-warnings-main .dwd-vertical small {
    display: block;
    margin-top: auto;
    font-size: 0.78rem;
    line-height: 1.1;
    font-weight: 800;
    color: #b9cce6;
}
.sensor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 1rem;
}

.sensor-detail {
    margin-left: 14px;
    font-size: 0.9rem;
    color: #cfe7ff;
    line-height: 1.35;
}

.sensor-sep {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 0;
}
.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.signal-bars span {
    width: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
}

.signal-bars span:nth-child(1) { height: 5px; }
.signal-bars span:nth-child(2) { height: 9px; }
.signal-bars span:nth-child(3) { height: 13px; }
.signal-bars span:nth-child(4) { height: 17px; }

.signal-green span {
    background: #4caf50;
}

.signal-yellow span:nth-child(-n+3) {
    background: #ffd54f;
}

.signal-orange span:nth-child(-n+2) {
    background: #ff9800;
}

.signal-red span:nth-child(1) {
    background: #f44336;
}

.signal-none span {
    background: rgba(255,255,255,0.08);
}
.sun-info {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(120, 190, 255, 0.16);
    text-align: center;
}

#sun-times {
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
    font-size: 1.05rem;
    color: #eaf6ff;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

#sun-times span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.14);
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.05);
}

#sun-state {
    font-size: 0.95rem;
    color: #9fd8ff;
    font-weight: 600;
}
.camera-card {
    overflow: hidden;
}

.weather-camera-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    display: block;
    margin-top: 16px;
}

.camera-time {
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.55;
    text-align: right;
}

.camera-status {
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8fd3ff;
}

.sun-info {
    margin-top: 8px;
}
.dry-days-line {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #d8eaff;
    opacity: 0.9;
    text-align: center;
    white-space: pre-line;
}
