/* css/modal-weather.css - SCOPED & RESPONSIVE */

/* Nur für Wetter-Modal gültig */
#modal_weather .modal-top-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px; /* Weniger Abstand nach unten */
    flex-shrink: 0;
}

#modal_weather .detail-card {
    background: #252527; border-radius: 18px; padding: 12px; /* Etwas weniger Padding */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); min-height: 110px;
}

#modal_weather .detail-title {
    font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px;
    position: absolute; top: 12px; left: 0; width: 100%; text-align: center;
}

/* Gauge */
#modal_weather .samsung-gauge-wrapper {
    position: relative; width: 100%; max-width: 180px; height: 80px;
    display: flex; justify-content: center; align-items: flex-end;
    overflow: hidden; margin: 5px auto 0 auto;
}
#modal_weather .samsung-svg { width: 100%; height: 200%; transform: translateY(25%); }
#modal_weather .gauge-bg-arc { fill: none; stroke: #444; stroke-width: 15; stroke-dasharray: 2 4; }
#modal_weather .gauge-val-arc {
    fill: none; stroke: #3498db; stroke-width: 15;
    stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220;
    transition: stroke-dashoffset 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}
#modal_weather .gauge-text-overlay { position: absolute; bottom: 0; text-align: center; }

/* --- CHART CONTAINER (Dynamisch) --- */
#modal_weather .chart-container {
    position: relative; width: 100%;

    /* HANDY DEFAULT */
    min-height: 250px;

    background: rgba(255,255,255,0.02);
    border-radius: 15px; padding: 10px; margin-bottom: 5px;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 768px) {
    #modal_weather .modal-top-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    #modal_weather .detail-card:nth-child(3) { grid-column: span 2; }
    #modal_weather .chart-container { min-height: 280px; }
}

@media (min-width: 1000px) {
    /* WICHTIG: 40vh heißt "40% der Bildschirmhöhe".
       Bei einem großen Monitor wird das riesig, bei einem Laptop passt es perfekt ohne Scrollbar. */
    #modal_weather .chart-container { min-height: 40vh; }

    #modal_weather .detail-card { min-height: 110px; }
}