/* calendar */
.calendar-container.fc {
    width: 100%;
}
.calendar-container.fc.fc-theme-standard .fc-scrollgrid {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--fux-dark);
    border-top: none;       
}
.calendar-container.fc.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid var(--fux-dark);
}
.calendar-container.fc .fc-scrollgrid td:first-child,
.calendar-container.fc .fc-scrollgrid th:first-child {
  border-left: none;
}

.calendar-container.fc .fc-scrollgrid td:last-child,
.calendar-container.fc .fc-scrollgrid th:last-child {
  border-right: none;
}

.calendar-container.fc .fc-scrollgrid tr:last-child td {
  border-bottom: none;
}
.calendar-container.fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk,
.calendar-container.fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}
.calendar-container.fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:first-of-type {
    justify-content: start;
}
.calendar-container.fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:last-of-type {
    justify-content: end;
}
.calendar-container.fc .fc-toolbar.fc-header-toolbar .fc-button-group > .fc-button:not(:last-child),
.calendar-container.fc .fc-toolbar.fc-header-toolbar .fc-button-group > .fc-button:not(:first-child) {
    border-radius: 24px;
}
.calendar-container.fc table th {
    background: var(--fux-dark);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: none;
    height: 56px;
    vertical-align: middle;
}
.calendar-container.fc table:not(.fc-list-table) th {
    height: 64px;
}
.calendar-container.fc thead {
    background: var(--fux-dark);
    border:none;
}
.calendar-container.fc .fc-col-header  thead tr th {
    background: var(--fux-dark);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: none;
    padding: 0;
}
.calendar-container.fc .fc-col-header-cell-cushion,
.calendar-container.fc .fc-col-header-cell-cushion:hover {
    color: #FFFFFF;
    text-decoration: none;
    max-width: 50%;
}
.calendar-container.fc .fc-day-other,
.calendar-container.fc .fc-day-past {
    background: var(--grey-light);
}
.calendar-container.fc .fc-day-other .fc-daygrid-day-number,
.calendar-container.fc .fc-day-past .fc-daygrid-day-number {
    color: var(--grey);
}
.calendar-container.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 1;
}
.calendar-container.fc .fc-daygrid-day-top {
    flex-direction: row;
}
.calendar-container.fc .fc-daygrid-day-number,
.calendar-container.fc .fc-daygrid-day-number:hover {
    text-decoration: none;
}
.calendar-container.fc .fc-daygrid-event {
    padding: 4px;
    border: none;
}
.calendar-container.fc .fc-timeGridDay-view tr:nth-of-type(2n + 1) .fc-timegrid-slot {
    background-color: var(--yellow-light);
}
.calendar-container.fc .fc-timeGridDay-view tr:nth-of-type(2n) .fc-timegrid-slot {
    background-color: #FFFFFF;
}
.calendar-container.fc .fc-timeGridWeek-view tbody tr,
.calendar-container.fc .fc-timeGridDay-view tbody tr {
    height: 55px;
}
.calendar-container.fc .fc-timeGridWeek-view tbody .fc-scrollgrid-section,
.calendar-container.fc .fc-timeGridDay-view tbody .fc-scrollgrid-section {
    height: 0px;
}
.calendar-container.fc .fc-listWeek-view.fc-list {
    border: 1px solid var(--fux-dark);
    border-radius: 30px;
}
.calendar-container.fc .fc-listWeek-view {
    position: unset;
}
.calendar-container.fc .fc-listWeek-view .fc-list-event-title {
    padding: 24px;
}
.calendar-container.fc .fc-listWeek-view .fc-list-event-time {
    padding: 24px 4px;
    text-align: center;
}
.calendar-container.fc .fc-listWeek-view .fc-list-event td.fc-list-event-graphic {
    display: none;
}
.calendar-container.fc .fc-listWeek-view .fc-list-day th,
.calendar-container.fc .fc-listWeek-view .fc-list-day th .fc-list-day-cushion {
    background-color: var(--fux-dark);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.calendar-container.fc .fc-listWeek-view .fc-list-table tbody .fc-list-day:first-child th,
.calendar-container.fc .fc-listWeek-view .fc-list-table tbody .fc-list-day:first-child th .fc-list-day-cushion {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
.calendar-container.fc .fc-listWeek-view .fc-list-day a {
    color: #FFFFFF;
    float: unset;
    text-decoration: none;
}
.calendar-container.fc .fc-listWeek-view .fc-list-empty {
    border-radius: 28px;
}
.calendar-container.fc .fc-listWeek-view .fc-list-day a:not(:last-of-type)::after {
    content: ', ';
}

/* Legende */
.calendar-legend {
    padding: 8px 0;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fux-dark);
}
.legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Event-Detail-Modal */
#calendar-event-modal .modal-header .btn-close {
    filter: invert(1);
}

/* Klickbare Events */
.calendar-container.fc .fc-daygrid-event {
    cursor: pointer;
}

/* Bundesland-Selektor */
.bundesland-selector label {
    color: var(--fux-dark);
    font-size: 14px;
}
.bundesland-selector .form-select {
    border-color: var(--fux-dark);
    font-size: 14px;
}

@media (max-width: 768px) {
    .calendar-legend {
        flex-direction: column;
        gap: 4px;
    }
    .bundesland-selector {
        width: 100%;
    }
    .bundesland-selector .form-select {
        width: 100% !important;
    }
}
