/*
 * Wettervorhersage
 *
 * Ausschließlich für die künftige Detailseite /forecast/.
 * Bestehende Belchertown- und Modul-Stile werden nicht überschrieben.
 */

.forecast-page {
    --forecast-border: #d9e2ec;
    --forecast-surface: #f8fafc;
    --forecast-muted: #5f6c7b;
    --forecast-accent: #1976b9;
}

.forecast-page .forecast-section {
    margin: 0 0 28px;
}

.forecast-page .forecast-card {
    padding: 18px;
    border: 1px solid var(--forecast-border);
    border-radius: 8px;
    background: var(--forecast-surface);
}

.forecast-page .forecast-updated,
.forecast-page .forecast-source {
    color: var(--forecast-muted);
    font-size: 0.9em;
}

.forecast-page .forecast-hourly-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.forecast-page .forecast-hourly-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: collapse;
}

.forecast-page .forecast-hourly-table th,
.forecast-page .forecast-hourly-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--forecast-border);
    text-align: center;
    white-space: nowrap;
}

.forecast-page .forecast-daily-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.forecast-page .forecast-day {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--forecast-border);
    border-radius: 6px;
    background: var(--forecast-surface);
}

.forecast-page .forecast-weather-icon {
    color: var(--forecast-accent);
    font-size: 1.6em;
    text-align: center;
}

.forecast-page .forecast-no-data {
    padding: 16px;
    border-left: 4px solid var(--forecast-accent);
    background: var(--forecast-surface);
}

body.dark .forecast-page {
    --forecast-border: #3e4a56;
    --forecast-surface: #26323e;
    --forecast-muted: #c1ccd6;
    --forecast-accent: #75beff;
}

@media (max-width: 600px) {
    .forecast-page .forecast-card {
        padding: 14px;
    }

    .forecast-page .forecast-day {
        min-height: 0;
        padding: 12px 8px;
    }

    .forecast-page .forecast-day-precipitation {
        display: block;
    }
}
