/* Wochenansicht Container */
.events-week-view {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Navigation */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.week-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.week-nav-btn:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    transform: translateY(-2px);
}

.week-nav-btn .arrow {
    font-size: 1.2em;
}

.week-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.week-title h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.today-btn {
    padding: 0.5rem 1rem;
    background: #007cba;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.today-btn:hover {
    background: #005a87;
}

/* Wochengrid */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.week-day {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.week-day:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.week-day.is-today {
    border-color: #007cba;
    background: #f0f8ff;
}

.week-day.is-today .day-header {
    background: #007cba;
    color: #fff;
}

/* Tag-Header */
.day-header {
    padding: 1rem;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

.day-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
}

.is-today .day-name {
    color: #fff;
}

.day-date {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-top: 0.25rem;
}

.is-today .day-date {
    color: #fff;
}

/* Event-Container */
.day-events {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.no-events {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
    font-style: italic;
}

/* Einzelnes Event */
.event-item {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.event-item:hover {
    background: #f9f9f9;
    border-left-width: 6px;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #007cba;
    margin-bottom: 0.25rem;
}

.event-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.event-venue {
    font-size: 0.8rem;
    color: #666;
}

/* Legende */
.events-legend {
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 2rem;
}

.events-legend h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #333;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .week-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .week-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .week-title h3 {
        font-size: 1.2rem;
    }
    
    .week-day {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .week-grid {
        grid-template-columns: 1fr;
    }
    
    .events-week-view {
        padding: 0.5rem;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .week-navigation {
        display: none;
    }
    
    .week-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.5rem;
    }
    
    .event-item:hover {
        transform: none;
    }
}