/* Wrapper states (wichtig: nicht display:none, damit FullCalendar nicht falsch misst) */
#nc-calendar-wrapper.is-hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
#nc-calendar-wrapper.is-visible {
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
    transition: opacity .15s ease;
}
/* Placeholder */
#nc-calendar-placeholder {
    border: 1px dashed rgba(0, 0, 0, .15);
    border-radius: .5rem;
}
/* Kalender-Container: FullCalendar braucht eine echte Höhe.
   Mit dem Ratio-Wrapper im HTML bekommt er eine stabile Höhe.
   Falls du später ohne Ratio arbeiten willst, siehe Kommentar unten. */
#nc-calendar {
    min-height: 520px; /* fallback */
}
.fc-license-message {
    display: none;
}
/* FullCalendar: optisch besser in Bootstrap Card */
.fc {
    font-size: 0.95rem;
}
/* Kopfzeile/Buttons etwas kompakter */
.fc .fc-toolbar-title {
    font-size: 1.05rem;
}
/* Background blocked events (busy/fixed/global) */
.fc .fc-bg-event {
    opacity: 0.25;
}
/* Past styling: deutlicher ausgegraut */
.fc .fc-timegrid-slot.fc-timegrid-slot-lane.fc-timegrid-slot-past {
    background-color: rgba(0, 0, 0, 0.035);
}
.fc .fc-daygrid-day.fc-day-past,
.fc .fc-timegrid-col.fc-day-past {
    background-color: rgba(0, 0, 0, 0.02);
}
/* „Heute“ etwas hervorheben (Bootstrap-like) */
.fc .fc-daygrid-day.fc-day-today,
.fc .fc-timegrid-col.fc-day-today {
    background-color: rgb(255 255 255)
}
/* Default background events (falls ohne Klasse) */
.fc .fc-bg-event {
    opacity: 0.25;
}
/* Gesperrte Slots (fixed/global) = Grau */
.fc .fc-bg-event.nc-bg-blocked {
    background-color: rgba(108, 117, 125, 0.45) !important; /* Bootstrap secondary-ish */
    opacity: 0.45 !important;
}
/* Vergebene Termine (CalDAV busy) = Rot */
.fc .fc-bg-event.nc-bg-caldav {
    background-color: rgba(220, 53, 69, 0.45) !important; /* Bootstrap danger */
    opacity: 0.45 !important;
}
/* Feiertage = Blau */
.fc .fc-bg-event.nc-bg-holiday {
    background-color: rgba(13, 110, 253, 0.35) !important; /* Bootstrap primary */
    opacity: 0.35 !important;
}
/* Modal: Statusausgabe schön */
#nc-msg:empty {
    display: none;
}
#nc-msg {
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: rgba(0, 0, 0, 0.03);
}
/* Kleine UX-Verbesserung: Inputs im Modal */
#nc-modal .form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}
/**
 * MODAL
 */
.modal {
    right: 0;
}


/**
 * overrides
 */

.has-global-padding {
    padding-right: 0!important;
    padding-left:  0!important;
}
@media (max-width: 1999px) {
    .container, .container-md, .container-sm {
        max-width: 100% !important;
    }
}

@media (max-width: 512px) {
    .fc .fc-toolbar {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap:1rem
    }
    .fc .fc-toolbar .fc-toolbar-chunk{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .fc .fc-toolbar .fc-toolbar-chunk .btn-group {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .fc .fc-toolbar .fc-toolbar-chunk .fc-toolbar-title {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}



#nc-calendar-wrapper {
    /*min-height: 520px;*/
}

.nc-calendar-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    border-radius: 0.375rem;
}

.nc-calendar-loading.d-none {
    display: none !important;
}

.nc-calendar-loading-box {
    min-width: 220px;
    padding: 1.5rem 1.75rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

.nc-calendar-loading .spinner-border {
    width: 2.25rem;
    height: 2.25rem;
}
