/* === Container === */
#sec-calendar {
    max-width: 100%;
    margin: 0 auto;
    font-family: system-ui, sans-serif;
    padding: 0 10px;
}

/* === Navigation === */
.sec-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.sec-nav h3 {
    font-size: 1.4rem;
    margin: 0;
    text-transform: capitalize;
}
.sec-nav button {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.sec-nav button:hover {
    background: #e6e6e6;
}

/* === Kalender-Grid === */
.sec-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.sec-weekday {
    text-align: center;
    font-weight: 600;
    background: #f9f9f9;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

/* === Tageszellen === */
.sec-day, .sec-empty {
    min-height: 110px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}
.sec-day.today {
    border: 2px solid #0073aa;
    background: #eef7ff;
}
.sec-date {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.sec-day.sec-has-events {
    background: #fdfdff;
}

/* === Event-Bubbles === */
.sec-event-badge {
    background: #e8f4ff;
    border: 1px solid #bcdfff;
    font-size: 0.75rem;
    border-radius: 4px;
    padding: 3px 5px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}
.sec-event-badge:hover {
    background: #d8edff;
}

/* === Mehrtägige Events === */
.sec-multi-event {
    background: #bde3ff;
    border: 1px solid #7cc5ff;
    color: #003d66;
    font-weight: 500;
}
.sec-multi-event.continues-left {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.sec-multi-event.continues-right {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* === Modal === */
.sec-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px;
}
.sec-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease;
}
.sec-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* === Responsive === */
@media (max-width: 800px) {
    .sec-weekday { font-size: 0.8rem; }
    .sec-date { font-size: 0.8rem; }
    .sec-event-badge { font-size: 0.7rem; }
}
@media (max-width: 600px) {
    .sec-day, .sec-empty { min-height: 70px; padding: 3px; }
    .sec-event-badge { white-space: normal; word-break: break-word; }
}
