/* Lokales Dashboard-Layout, angepasst ans globale Dark-Theme */

.dashboard-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 1rem;
}

.left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tile {
    background: #23262B;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 1px solid #292D36;
}

.tile h2, .tile h3, .tile h4, .tile p {
    color: #ECEFF4;
    margin: 0 0 0.5rem 0;
}

.tile ul li {
    color: #D8DEE9;
}

/* Dashboard Kacheln Hover Effekt */
.tile.clickable {
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tile.clickable:hover {
    background: #2D313A;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(94,129,172,0.25);
}

.tile-link {
    text-decoration: none;
    color: inherit;
}

.forecast {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #191B20;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #292D36;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    min-width: 0;
}

.box img {
    width: 36px;
    height: 36px;
}

.box h4 {
    font-size: 14px;
    color: #ECEFF4;
}

.box p {
    font-size: 13px;
    color: #C1C9D6;
}

.chart-container {
    background: #191B20;
    padding: 10px;
    border-radius: 10px;
    height: 200px;
    border: 1px solid #292D36;
}


/* ----- Responsive Dashboard ----- */
@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .left, .right {
        flex: unset;
        width: 100%;
    }

    /* Forecast-Kacheln: nur 2 Spalten auf Handy */
    .forecast {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Chart etwas höher für bessere Lesbarkeit */
    .chart-container {
        height: 250px;
    }

    /* Boxen: Text kleiner und flex-wrap erlauben */
    .box {
        flex-wrap: wrap;
    }
    .box h3, .box h4, .box p {
        font-size: 0.9rem;
    }
}
