/* Volksschule Oberlaa - Termine Stylesheet */

/* ===== KALENDER ÜBERSICHT ===== */
.calendar-info {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 15px 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.legend-color.event {
    background-color: var(--primary-color);
}

.legend-color.holiday {
    background-color: #ff6b6b;
}

.legend-color.meeting {
    background-color: var(--secondary-color);
}

/* ===== MONATSKALENDER TABS ===== */
.calendar-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 5px;
}

.calendar-tab {
    padding: 10px 15px;
    background-color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.calendar-tab:hover {
    background-color: var(--secondary-color);
    color: white;
}

.calendar-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== MONATSKALENDER INHALT ===== */
.calendar-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.month-calendar {
    display: none;
}

.month-calendar.active {
    display: block;
}

.month-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
}

/* ===== EREIGNISLISTE ===== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    background-color: rgba(0, 80, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.event-item.holiday {
    background-color: rgba(255, 107, 107, 0.1);
}

.event-item.meeting {
    background-color: rgba(140, 198, 63, 0.1);
}

.event-date {
    width: 100px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.event-item.holiday .event-date {
    background-color: #ff6b6b;
}

.event-item.meeting .event-date {
    background-color: var(--secondary-color);
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    margin-top: 5px;
}

.event-details {
    flex: 1;
    padding: 20px;
}

.event-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.event-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ===== FERIENKALENDER ===== */
.holiday-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.holiday-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    border-top: 4px solid #ff6b6b;
    transition: var(--transition);
}

.holiday-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.holiday-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* ===== SCHULAUTONOME TAGE ===== */
.autonomous-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.autonomous-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.autonomous-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.autonomous-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
}

.info-box i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* ===== DOWNLOAD BEREICH ===== */
.download-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.download-buttons .btn i {
    margin-right: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 10px;
        flex-direction: row;
        justify-content: center;
    }
    
    .event-date .day {
        font-size: 1.5rem;
        margin-right: 5px;
    }
    
    .event-date .month {
        font-size: 1rem;
        margin-top: 0;
    }
    
    .calendar-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-tab {
        width: 100%;
        text-align: center;
    }
    
    .holiday-list, .autonomous-list {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .calendar-content {
        padding: 20px 15px;
    }
    
    .month-title {
        font-size: 1.5rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
}