/* =========================================
   MODUL: LICHT (WETTER DASHBOARD)
   ========================================= */

/* --- CONTAINER & CARD --- */
#dashboard-container { 
    position: fixed; top: 80px; right: 20px; z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.92); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    width: 340px; 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    font-family: var(--font-stack, system-ui, sans-serif);
    color: #2d3436;
}

/* MINIMIERUNG LOGIK */
.dashboard-card.minimized { height: 52px !important; width: 260px !important; }

/* Inhalte ausblenden wenn minimiert */
.dashboard-card.minimized .regio-day-scroll,
.dashboard-card.minimized .regio-limit-box,
.dashboard-card.minimized .db-grid, 
.dashboard-card.minimized .db-details-panel, 
.dashboard-card.minimized .db-footer { display: none !important; }


/* --- HEADER --- */
.db-header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 15px; border-bottom: 1px solid rgba(0,0,0,0.05); 
    background: rgba(0,0,0,0.02); cursor: pointer; transition: background 0.2s;
}
.db-header:hover { background: rgba(0,0,0,0.04); }

.db-title-text { 
    font-weight: 800; font-size: 14px; white-space: nowrap; 
    overflow: hidden; text-overflow: ellipsis; color: #2d3436;
}

.min-btn { 
    background: #f1f2f6; border: none; border-radius: 8px; width: 26px; height: 26px; 
    font-size: 16px; cursor: pointer; font-weight: 900; color: #636e72; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; flex-shrink: 0; pointer-events: none; 
}
.db-header:hover .min-btn { background: #dfe6e9; color: #d63031; }

.db-close-btn { 
    background: none; border: none; font-size: 18px; color: #a4b0be; 
    cursor: pointer; padding: 0; width: 26px; height: 26px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 8px; transition: color 0.2s; font-weight: bold;
}
.db-close-btn:hover { color: #d63031; }


/* --- SCROLLBARE TAGE --- */
.regio-day-scroll {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; padding: 15px;
    -webkit-overflow-scrolling: touch; background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.regio-day-scroll::-webkit-scrollbar { height: 6px; }
.regio-day-scroll::-webkit-scrollbar-track { background: transparent; margin: 0 10px; }
.regio-day-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.regio-day-scroll::-webkit-scrollbar-thumb:hover { background: #a4b0be; }

.day-card {
    flex: 0 0 135px; background: #f8f9fa; border: 2px solid transparent;
    border-radius: 12px; padding: 12px 10px; cursor: pointer;
    transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    display: flex; flex-direction: column; gap: 8px;
}
.day-card:hover { background: #fff; border-color: #dfe6e9; }
.day-card.row-active {
    background: #ffffff; border-color: #d63031;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.15);
}


/* --- PILLS & DETAILS --- */
.event-pill { 
    display: flex; flex-direction: column; align-items: center; 
    justify-content: center; width: 60px; height: 40px; 
    border-radius: 12px; padding: 4px; 
}
.pill-time { font-size: 10px; font-weight: 600; opacity: 0.8; margin-bottom: 2px; }
.pill-score { font-size: 12px; font-weight: 800; }

.pill-burn { background: #ffeaa7; color: #d63031; border: 1px solid #fdcb6e; }
.pill-gold { background: #fff3e0; color: #f39c12; border: 1px solid #ffe0b2; }
.pill-gray { background: #f1f2f6; color: #636e72; border: 1px solid #dfe6e9; }
.pill-aurora { background: #e8f5e9; color: #2ecc71; border: 1px solid #a5d6a7; }
.pill-active { background: #e3f2fd; color: #0984e3; border: 1px solid #bbdefb; }
.pill-empty { background: transparent; color: #ccc; border: 1px dashed #dfe6e9; }

.regio-limit-box {
    background: rgba(253, 203, 110, 0.15); color: #fdcb6e; 
    padding: 12px 15px; border-bottom: 1px solid rgba(253, 203, 110, 0.4); 
    font-size: 12px; font-weight: bold; line-height: 1.4;
}

.regio-db-wrapper { padding: 0 !important; overflow: hidden; }
.regio-db-section { padding: 15px; }

.db-details-panel { background: transparent; padding: 15px 20px 0 20px; }
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;}
.det-box { display: flex; flex-direction: column; gap: 4px; }
.det-icon { font-size: 11px; font-weight: 700; color: #636e72; text-transform: uppercase; margin: 0; }
.det-val { font-size: 13px; font-weight: 600; margin: 0; }