/* Glaseffekt für den Chart-Container */
.card:has(#temperatureChart) {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Glaseffekt für alle Info-Karten */
.card {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Chart selbst transparent halten */
#temperatureChart {
    background: transparent;
    border-radius: 12px;
}

/* Modernes Header-Design */
.temperature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.modern-title {
    font-size: 2rem;
    font-weight: 600;
    color: #343a40 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    letter-spacing: -0.02em;
}

/* Moderne Button-Gruppe */
.modern-btn-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.modern-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(37, 140, 251, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-btn:hover {
    background: rgba(37, 140, 251, 0.1);
    color: #258cfb;
}

.modern-btn.active {
    background: #258cfb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 140, 251, 0.3);
}

/* Dezente Aktualisierungsanzeige */
.last-update-text {
    font-size: 0.75rem;
    color: rgba(108, 117, 125, 0.7) !important;
    font-weight: 400;
    letter-spacing: 0.02em;
}
/* ============ Grundlayout + Sticky Footer ============ */
html, body {
    height: 100%;
    margin: 0;
}

html {
    font-size: 14px;
    color: darkslategray !important;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

/* Body als Flex-Column: Header – Main – Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Die Seite muss auch flex sein */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Der Hauptbereich soll den übrigen Platz füllen */
main[role="main"] {
    flex: 1;
}

/* Footer wird automatisch nach unten gedrückt */
footer {
    margin-top: auto;
    padding: 1rem 0;
}

/* ============ Fokus / Form Styles ============ */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ============ Inhalt / Typo ============ */
.text-center {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    font-size: 1.2em;
}

.text-center .lead {
    margin: 1rem 0 2rem;
    font-size: 1.0em;
}

.text-center .contact {
    margin: 1rem 0 2rem;
    font-size: 0.8em;
}

.text-center blockquote {
    font-style: italic;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.5;
}

.text-center .author {
    display: block;
    margin-top: 0.75rem;
    font-size: 1.0em;
}

/* ============ Navbar / Links ============ */
.nav-link,
.nav-link:hover,
.nav-link:focus {
    color: #556B2F !important;
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    color: #556B2F !important;
    font-weight: 600;
}

/* halbtransparente Navbar */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Links allgemein */
a { color: inherit; font-weight: normal; }
a:hover { color: inherit; }

/* ============ Blazor App Container ============ */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Kompakte Karten */
.compact-card {
    min-height: auto !important;
}

/* ============ Mobile Optimierungen ============ */
@media (max-width: 768px) {
    /* Container mit weniger Padding und näher am oberen Rand */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 0.5rem !important;
    }
    
    /* Mobile Layout für Header */
    .responsive-header {
        flex-direction: column !important;
        gap: 0.3rem;
        align-items: flex-start !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Button-Gruppe zentrieren und näher zum Chart */
    .modern-btn-group {
        justify-content: center;
        margin: 0 auto 0.3rem auto;
        width: fit-content;
        align-self: center;
    }
    
    /* Titel gut lesbar auf Mobile */
    .chart-title {
        font-size: 1.1rem !important;
    }
    
    /* Haupttext gut lesbar auf Mobile */
    .container h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .container p, .container li {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .container ul {
        margin-bottom: 1rem !important;
        padding-left: 1.2rem !important;
    }
    
    /* Statistik-Karten kompakt aber lesbar */
    .compact-card {
        padding: 0.4rem !important;
        margin-bottom: 0 !important;
    }
    
    .compact-card small {
        font-size: 0.75rem !important;
        line-height: 1.2;
    }
    
    .compact-card div {
        font-size: 1rem !important;
        margin-top: 0.2rem !important;
    }
    
    /* Buttons lesbar */
    .modern-btn {
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
    }
    
    /* Chart-Card sehr kompakt auf Mobile */
    .chart-card {
        padding: 0.5rem !important;
    }
    
    .chart-card .position-absolute {
        margin: 0.3rem !important;
    }
    
    /* Chart Container mit angepasstem Abstand auf Mobile */
    .chart-container {
        margin-top: 20px !important;
    }
    
    /* Vollere Höhe für Mobile sicherstellen */
    body, html, #app, .page {
        min-height: 100vh;
        background-attachment: fixed;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* Desktop: Mehr Abstand für Chart Container */
@media (min-width: 769px) {
    .chart-container {
        margin-top: 25px !important;
    }
}

/* Font-Size Utilities */
@media (max-width: 767px) {
    .fs-md-3 { font-size: 1.3rem !important; }
    .fs-5 { font-size: 1.1rem !important; }
}

/* Version Info im Footer */
.version-info {
    color: #6c757d;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.version-info:hover {
    opacity: 1;
    color: #495057;
}