/* Frontend-Kalender (Übersicht) */
.calendar-frontend-title-7015b054 {
    font-family: "Georgia", serif;
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: normal;
}

.custom-calendar-frontend-container-7015b054 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-family: Arial, sans-serif;
    position: relative;
    max-width: 600px;
}

.calendar-main-section-7015b054 {
    width: 320px;
    border: 1px solid #eaeaea;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

/* Header & Nav */
.calendar-frontend-header-7015b054 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 15px;
}

.calendar-nav-btn {
    background-color: #e9ecf1;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-nav-btn .nav-arrow {
    color: #3d5675;
    font-size: 14px;
    font-weight: bold;
    font-family: sans-serif;
    visibility: hidden;
    position: relative;
}

.calendar-nav-btn.prev-btn .nav-arrow::before {
    content: '\2039';
    font-size: 20px;
    line-height: 1;
    visibility: visible;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calendar-nav-btn.next-btn .nav-arrow::before {
    content: '\203A';
    font-size: 20px;
    line-height: 1;
    visibility: visible;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calendar-nav-btn:hover:not([disabled]) {
    background-color: #d1d8e0;
}

.calendar-nav-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-select-wrapper-7015b054 select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    color: #334155;
    appearance: auto;
}

/* Grid */
.calendar-grid-header-7015b054 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
}

.grid-header-cell {
    padding: 5px 0;
}

.calendar-grid-7015b054 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #333;
    position: relative;
}

.calendar-day-cell.empty-cell {
    background-color: #f7f7f7;
}

/* Colors */
.calendar-day-cell.is-available {
    background-color: #ddffcc;
}
.calendar-day-cell.is-booked {
    background-color: #ffcccc;
}
.calendar-day-cell.is-unavailable {
    background-color: #f0f0f1;
    color: #8c8f94;
    border: 1px solid #c3c4c7;
    box-sizing: border-box;
}

/* Vergangene Tage ausgrauen */
.calendar-day-cell.is-past-day-7015b054 {
    background-color: #f0f0f1 !important;
    color: #b0b0b0 !important;
    opacity: 0.55;
    filter: grayscale(100%);
}

/* Legend Sidebar */
.calendar-legend-section-7015b054 {
    width: 160px;
    border: 1px solid #eaeaea;
    padding: 15px;
    background: #fff;
    margin-top: 0;
    border-radius: 4px;
}

.calendar-legend-section-7015b054 .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-legend-section-7015b054 .legend-item:last-child {
    margin-bottom: 0;
}

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

.avail-color { background-color: #ddffcc; }
.booked-color { background-color: #ffcccc; }
.unavail-color { 
    background-color: #f0f0f1; 
    border: 1px solid #c3c4c7;
}

.legend-label {
    font-size: 13px;
    color: #333;
}

/* Loading overlay */
.calendar-loader-7015b054 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}

/* LARGE CALENDAR */
.custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 {
    max-width: 960px;
    width: 100%;
}

.custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 .calendar-main-section-7015b054 {
    width: 100%;
    flex-grow: 1;
}

.custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 .calendar-day-cell {
    aspect-ratio: 1.4 / 1;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6px;
    box-sizing: border-box;
}

.custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 .day-number-text {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 {
        flex-direction: column;
        align-items: stretch;
    }
    .custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 .calendar-day-cell {
        aspect-ratio: 1 / 1;
        align-items: center;
        justify-content: center;
        padding: 2px;
    }
    .custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 .calendar-main-section-7015b054 {
        width: 100% !important;
        box-sizing: border-box;
    }
    .custom-calendar-frontend-container-7015b054.is-large-calendar-7015b054 .calendar-legend-section-7015b054 {
        width: 100% !important;
        box-sizing: border-box;
        margin-top: 15px;
    }
}

@media (max-width: 550px) {
    .custom-calendar-frontend-container-7015b054 {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .calendar-main-section-7015b054 {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .calendar-legend-section-7015b054 {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 15px;
    }
    .calendar-day-cell {
        aspect-ratio: 1 / 1;
        font-size: 11px;
    }
}