/* css/modal-wind.css - SCOPED */

/* --- LAYOUT --- */
#modal_wind .modal-top-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 15px; margin-bottom: 10px; flex-shrink: 0;
}

#modal_wind .detail-card {
    background: #252527; border-radius: 18px; padding: 10px;
    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: 140px;
}

/* Akzentfarbe Türkis für Wind */
#modal_wind .detail-card.wind-accent {
    border-color: rgba(0, 210, 211, 0.4);
}

#modal_wind .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;
    z-index: 10;
}

/* --- KOMPASS VISUALISIERUNG --- */
#modal_wind .compass-container {
    position: relative;
    /* ÄNDERUNG: Kleiner (90px) und mehr Abstand nach oben (35px) */
    width: 90px; height: 90px;
    margin: 35px auto 5px auto;
}

#modal_wind .compass-ring {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 6px solid #3a3a3c; /* Etwas dünnerer Rand passend zur Größe */
    position: absolute; top: 0; left: 0;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Buchstaben Labels */
#modal_wind .compass-label {
    position: absolute; font-size: 0.65rem; font-weight: bold; color: #888;
    background-color: #252527;
    padding: 0 3px;
    z-index: 5;
}
#modal_wind .compass-label.n { top: -7px; left: 50%; transform: translateX(-50%); color: #e74c3c; }
#modal_wind .compass-label.s { bottom: -7px; left: 50%; transform: translateX(-50%); }
#modal_wind .compass-label.e { right: -3px; top: 50%; transform: translateY(-50%); }
#modal_wind .compass-label.w { left: -3px; top: 50%; transform: translateY(-50%); }

/* Der rotierende Pfeil-Container */
#modal_wind .arrow-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transition: transform 1.0s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 20;
    pointer-events: none;
}

/* Die Dreiecks-Nadel */
#modal_wind .compass-arrow {
    width: 0; height: 0;

    /* Geometrie: Zeigt nach OBEN (▲) zum Rand hin */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #00d2d3;
    border-top: none;

    position: absolute;
    /* Position angepasst an kleineren Kreis */
    top: 8px;
    left: 50%;
    transform: translateX(-50%);

    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Text in der Mitte */
#modal_wind .compass-center-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.8rem;
    z-index: 10;
}


/* --- CHART CONTAINER --- */
#modal_wind .chart-container {
    position: relative; width: 100%;
    min-height: 250px;
    background: rgba(0, 210, 211, 0.05);
    border-radius: 15px; padding: 10px; margin-bottom: 5px;
    flex-grow: 1;
    border: 1px solid rgba(0, 210, 211, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    #modal_wind .modal-top-grid { grid-template-columns: 1fr 1fr; }
    #modal_wind .detail-card:nth-child(3) { grid-column: span 2; }
    #modal_wind .chart-container { min-height: 280px; }
}

@media (min-width: 1000px) {
    #modal_wind .chart-container { min-height: 40vh; }
    #modal_wind .modal-top-grid { grid-template-columns: 1fr 1fr 1fr; }
}