/* Jahresübersicht Styles */

#jahresuebersicht-container {
    display: none;
    margin-top: 20px;
}

#jahresuebersicht-container.active {
    display: block;
}

.jahresuebersicht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.monat-summary-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.monat-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.monat-summary-card h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.monat-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.monat-summary-row span:first-child {
    color: var(--text-muted);
}

.monat-summary-row span:last-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Jahresdiagramm / Chart */
.jahres-chart-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-header h4 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.chart-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.chart-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 300px;
    gap: 8px;
    padding: 20px 10px 0;
    position: relative;
}

.chart-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bars {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar {
    flex: 1;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.chart-bar-ma {
    background: var(--primary-color);
}

.chart-bar-bereich {
    background: var(--warning-color);
}

.chart-bar-stunden {
    background: var(--success-color);
}

.chart-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.chart-baseline {
    height: 1px;
    background: var(--border-color);
    margin-top: -1px;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Chart */
@media (max-width: 768px) {
    .chart-grid {
        height: 200px;
        gap: 4px;
    }

    .chart-label {
        font-size: 10px;
    }

    .legend-item {
        font-size: 12px;
    }
}
