:root {
    --bg-light: #f5f5f5;
    --bg-box: #ffffff;
    --border: #dddddd;
    --text-dark: #000000;
    --text-muted: #666666;
    --accent: #4a90e2; /* dezentes Blau */
    --accent-hover: #3b7ac0;
}

/* Grundlayout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #000;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
}

.site-header > div,
.site-header > nav {
    max-width: 1100px;
    margin: 0 auto;
}



.logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.main-nav span {
    font-size: 15px;
    opacity: 0.6;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.main-nav span:hover {
    background: #f0f0f0;
    opacity: 1;
}

/* Hauptbereich */
.site-main {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}


/* Seitenüberschrift */
.page-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
}

/* Live-Kachel */
.live-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.live-card h2 {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 10px;
}

.live-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.live-row:last-child {
    border-bottom: none;
}

.live-label {
    font-weight: bold;
}

.live-value {
    opacity: 0.7;
}

/* Startseiten-Kacheln */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tile {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: normal;
    opacity: 0.6;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Heute interessant – Info-Box */
.highlight-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.highlight-box h2 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
}

.highlight-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.highlight-row:last-child {
    border-bottom: none;
}

.highlight-label {
    font-weight: bold;
}

.highlight-value {
    opacity: 0.7;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #ddd;
    background: #ffffff;
}

/* Dezente Tiefenwirkung für alle Boxen */
.live-card,
.tile,
.highlight-box {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.live-card {
    border-left: 4px solid #4a90e2; /* dezenter blauer Akzent */
}

.live-card {
    border-left: 4px solid #4a90e2; /* dezenter blauer Akzent */
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 0;
}

/* Einheitliche Abstände zwischen Boxen */
.live-card,
.tile-grid,
.highlight-box {
    margin-bottom: 35px;
}

.tile small {
    margin-top: 6px;
    opacity: 0.55;
}

/* Dezenter Hintergrundverlauf */
body {
    background: linear-gradient(to bottom, #f7f7f7, #ececec);
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
}

.site-header,
.site-footer,
.live-card,
.tile,
.highlight-box {
    background: var(--bg-box);
    border-color: var(--border);
}

.live-value,
.highlight-value {
    color: var(--text-muted);
}

.live-card {
    border-left: 4px solid var(--accent);
}

.main-nav span:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

/* Mobile Navigation */
@media (max-width: 600px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .main-nav span {
        padding: 5px 8px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .live-card {
        padding: 15px;
    }

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

    .live-value {
        margin-top: 3px;
    }
}
@media (max-width: 600px) {
    .tile {
        padding: 15px;
        font-size: 17px;
    }

    .tile small {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .highlight-box {
        padding: 15px;
    }

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

    .highlight-value {
        margin-top: 3px;
    }
}

/* Kopfzeile der Live-Daten */
.live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.live-header h2 {
    margin: 0;
    font-size: 22px;
}

.live-icon {
    font-size: 14px;
    color: var(--accent);
    margin-top: 2px;
}
.live-icon {
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Kopfzeilen für Startkacheln */
.tile-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
}

.tile-content {
    font-size: 14px;
    opacity: 0.7;
}

/* Kopfzeile für "Heute interessant" */
.highlight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.highlight-header h2 {
    margin: 0;
    font-size: 20px;
}

.highlight-icon {
    font-size: 14px;
    color: var(--accent);
    margin-top: 2px;
}

/* Kopfzeile für "Heute interessant" */
.highlight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.highlight-header h2 {
    margin: 0;
    font-size: 20px;
}

.highlight-icon {
    font-size: 14px;
    color: var(--accent);
    margin-top: 2px;
}
/* Sanfter Fade-In beim Laden */
body {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

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

.live-card,
.tile-grid,
.highlight-box {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.live-card { animation-delay: 0.1s; }
.tile-grid { animation-delay: 0.2s; }
.highlight-box { animation-delay: 0.3s; }

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

/* Premium-Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 40px;
    position: relative;
}

/* Dezente Akzentlinie oben */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.8;
}

/* Hover-Effekt für Live-Daten-Zeilen */
.live-row {
    transition: background 0.15s ease, transform 0.15s ease;
}

.live-row:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(3px);
}

.live-row:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(3px);
    border-left: 3px solid var(--accent);
}


/* Premium-Hover für Startkacheln */
.tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.tile:hover {
    box-shadow: 0 0 0 2px rgba(74,144,226,0.15), 
                0 8px 18px rgba(0,0,0,0.12);
}

body {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

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

.live-card,
.tile-grid,
.highlight-box {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.live-card { animation-delay: 0.1s; }
.tile-grid { animation-delay: 0.2s; }
.highlight-box { animation-delay: 0.3s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.live-row {
    transition: background 0.15s ease, transform 0.15s ease;
}

.live-row:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(3px);
    border-left: 3px solid var(--accent);
}

.tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.tile:hover .tile-header {
    color: var(--accent-hover);
}


.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 40px 0;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 40px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.8;
}

.live-card,
.tile-grid,
.highlight-box {
    margin-bottom: 40px;
}

.page-title {
    margin-bottom: 25px;
}

.live-icon,
.highlight-icon {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.live-header:hover .live-icon,
.highlight-header:hover .highlight-icon {
    opacity: 1;
}

/* Vorhersage */
.forecast-section {
    margin-bottom: 40px;
}

.forecast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.forecast-header h2 {
    margin: 0;
    font-size: 22px;
}

.forecast-icon-header {
    font-size: 18px;
    color: var(--accent);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.forecast-day {
    background: #fff;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s ease;
}

.forecast-day:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.forecast-date {
    font-weight: 600;
    margin-bottom: 8px;
}

.forecast-icon {
    font-size: 32px;
    margin: 10px 0;
}

.forecast-temp {
    font-size: 18px;
    margin-bottom: 6px;
}

.short-forecast {
    margin-top: 8px;
    font-size: 15px;
    opacity: 0.85;
}
.short-forecast strong {
    color: var(--accent);
}
.short-forecast-box {
    background: #f8f8f8;
    border-left: 4px solid var(--accent);
    padding: 12px 15px;
    margin: 12px 0;
    border-radius: 6px;
}

.short-forecast-box strong {
    color: var(--accent);
}

.forecast-section {
    margin-bottom: 40px;
}

.forecast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.forecast-header h2 {
    margin: 0;
    font-size: 22px;
}

.forecast-icon-header {
    font-size: 18px;
    color: var(--accent);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.forecast-day {
    background: #fff;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s ease;
}

.forecast-day:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.forecast-date {
    font-weight: 600;
    margin-bottom: 8px;
}

.forecast-icon {
    font-size: 32px;
    margin: 10px 0;
}

.forecast-temp {
    font-size: 18px;
    margin-bottom: 6px;
}

.forecast-day {
    position: relative;
}

.forecast-hover {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    z-index: 10;
}

.forecast-day:hover .forecast-hover {
    display: block;
}

/* Hover-Box */
.forecast-day {
    position: relative;
}

.forecast-hover {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    z-index: 10;
}

.forecast-day:hover .forecast-hover {
    display: block;
}

/* Responsive Grid */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

/* Mobile Optimierung */
@media (max-width: 480px) {
    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .forecast-hover {
        font-size: 13px;
    }

    .forecast-icon {
        font-size: 28px;
    }
}

.legend-box {
    margin-top: 30px;
    padding: 15px;
    background: #f8f8f8;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
}

.legend-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--accent);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.legend-icon {
    font-size: 20px;
}


/* Toggle Button */
.toggle-button {
    display: inline-block;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
    user-select: none;
}

/* Inhalt standardmäßig versteckt */
.toggle-content {
    display: none;
}

/* Wenn Checkbox aktiv → anzeigen */
#toggle7:checked ~ .toggle-content {
    display: block;
}

/* Button-Text ändern */
#toggle7:checked + .toggle-button::after {
    content: " (ausblenden)";
}

/* Animierter Toggle-Button */
.toggle-button {
    display: inline-block;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
    user-select: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.toggle-button:hover {
    background: #d48a00; /* etwas heller */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* Weiches Einblenden des Inhalts */
.toggle-content {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#toggle7:checked ~ .toggle-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.archive-table th {
    background: var(--accent);
    color: #fff;
    padding: 10px;
    text-align: left;
}

.archive-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
}

.archive-table tr:hover {
    background: #f8f8f8;
}


.daybox {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    align-items: center;
}

.daybox-icon {
    font-size: 70px;
}

.daybox-info h2 {
    margin-top: 0;
    color: var(--accent);
}

@media (max-width: 600px) {
    .daybox {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Einheitliche Navigation --- */

.main-nav {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Grundstil für ALLE Buttons */
.nav-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #007bff;   /* blauer Rahmen */
    border-radius: 4px;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

/* Hover nur für klickbare Links */
a.nav-btn:hover {
    background: #007bff;
    color: white;
}

/* Deaktivierte Buttons */
.nav-disabled {
    cursor: default;
    opacity: 0.6;
}

/* Deaktivierte reagieren NICHT auf Hover */
.nav-disabled:hover {
    background: transparent;
    color: #007bff;
}
/* --- Navigation: HARTE ÜBERSCHREIBUNG --- */

.main-nav a,
.main-nav span {
    display: inline-block !important;
    padding: 6px 14px !important;
    border: 1px solid #007bff !important;
    border-radius: 4px !important;
    color: #007bff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    cursor: pointer !important;
    margin-right: 8px !important;
}

/* Hover nur für klickbare Links */
.main-nav a:hover {
    background: #007bff !important;
    color: white !important;
}

/* Deaktivierte Buttons */
.nav-disabled {
    cursor: default !important;
    opacity: 0.6 !important;
}

/* Deaktivierte reagieren NICHT auf Hover */
.nav-disabled:hover {
    background: transparent !important;
    color: #007bff !important;
}


