/* Germania Lich-Steinstraß Calendar Frontend Styles */
.germania-calendar-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.calendar-header {
    background-color: #254796;
    color: white !important;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    justify-items: center;
    align-items: center;
}

.current-month-year {
    font-size: 1.5em;
    font-weight: 600;
}

.calendar-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.calendar-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.calendar-grid {
    background: #fff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.weekday {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
}

.calendar-day {
    min-height: 100px;
    background: #fff;
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.today {
    background-color: #e8f2ff;
}

.calendar-day.today .day-number {
    background-color: #254796;
    color: white;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.has-events {
    background-color: #fff5e6;
}

.day-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.calendar-event {
    background-color: #254796;
    color: white;
    padding: 2px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.75em;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s;
}

.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 71, 150, 0.3);
}

.calendar-event a {
    color: white;
    text-decoration: none;
}

.event-title {
    display: block;
    font-weight: 600;
    margin-bottom: 1px;
}

.event-time {
    display: block;
    opacity: 0.8;
    font-size: 0.9em;
}

/* Modal Styles */
.calendar-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #254796;
}

/* Responsive Design */
@media (max-width: 768px) {
    .germania-calendar-container {
        margin: 10px;
        border-radius: 0;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-header h3 {
        font-size: 1.2em;
    }
    
    .calendar-event {
        font-size: 0.7em;
        padding: 1px 4px;
    }
    
    .weekday {
        padding: 10px 5px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
        padding: 2px;
    }
    
    .day-number {
        width: 20px;
        height: 20px;
        font-size: 0.8em;
    }
    
    .calendar-event {
        font-size: 0.65em;
        margin: 1px 0;
    }
}

/* Loading Animation */
.calendar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1em;
    color: #6c757d;
}

.calendar-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #254796;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}