/* der Container zum ausklappen */
.calendar { 
    position: fixed;
    height: calc(100dvh - 2.3rem);
    top: 2.3rem;
    width: 30rem;
    max-width: 100vw;
    right: -30rem;
    padding: 1.5rem;
    background: var(--calendarBg);
    backdrop-filter: blur(.5rem);
    overflow-y: scroll;
    z-index: 9000;
}
#calendar {
    padding: 2rem .8rem .8rem;
}
#calendar h3 {
    padding: 0 1rem 0 0;
    transform: translateX(0);
    width: fit-content;
    background: transparent;
    color: var(--neutralDark);
}
#calendar a:hover{
    color:white;
}
.fc .fc-view-harness {
    box-shadow: .0625rem .0625rem 1rem rgba(0, 68, 100, .2);
}
.fc .fc-toolbar-title {
    font-size: 1.2rem;
}
.fc .fc-button {
    line-height: 1;
    padding: .3rem;
}
.fc .fc-button .fc-icon {
    font-size: 1rem;
}
.fc-button-primary {
    transition: var(--transition);
}
.fc-button-primary:disabled {
    opacity: .85;
    cursor: no-drop;
}
.fc-list-day-cushion.fc-cell-shaded,
.fc-button.fc-button-primary:active,
.fc-button.fc-button-primary {
    background: var(--calendarButton);
}
.fc-button.fc-button-primary,
.fc-button.fc-button-primary:active:focus,
.fc-button.fc-button-primary:focus {
    border: none;
    outline: none;
    box-shadow: none;
    z-index: 1;
}
.fc-button.fc-today-button {
    box-shadow: .0635rem 0 white inset, -0.125rem 0 white inset;
}
.fc-list-event-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.fc .fc-list-event.fc-event-forced-url {
    cursor: default;
}
.fc .fc-list-event.fc-event-forced-url:hover a {
    text-decoration: none;
}
.fc .fc-list-event td,
.fc .fc-list-event td:has(.holidays) {
    background: transparent;
    transition: var(--transition);
}
.fc .fc-list-event td:has(a) {
    cursor: pointer;
}
.fc .fc-list-event:hover td {
    background: var(--eventColor);
    color: white;
}
/* Farben für die verschiedenen Termine */
.oezRoss {
    --eventColor: var(--clrRoss);
}
.oezRadio {
    --eventColor: var(--clrRadio);
}
.oezGorbitz {
    --eventColor: var(--clrGorbitz);
}
.esf,
.flickwerke1-1,
.ross1-1 {
    --eventColor: var(--clrESF);
}
.holidays {
    --eventColor: var(--clrHolidays);
}
.event {
    --eventColor: var(--clrEvent);
}
.screw {
    --eventColor: var(--clrScrew);
}
/* Urlaub, Schließtag etc */
.holidays .fc-title-datum > div { 
    height: 100%;
    background: url(/assets/images/allday.png);
    background-position: center;
    background-size: cover;
}
/* Feiertage */
.holidays.public .fc-title-datum > div { 
    background: url(/assets/images/public.png);
    background-position: center;
    background-size: cover;
}
/* doppelte Zeitanzeige und Dot ausblenden */
.fc-list-event-graphic,
.fc-list-event-time {
    display: none;
}
#calendar .fc-list-day>th {
    position: relative;
}
.fc-list-day-text,
.fc-list-day-side-text {
    color: white;
}
.fc .fc-list-table td {
    padding: .5rem .875rem;
}
.fc .fc-list-table td.fc-list-event-time {
    padding: .5rem .5rem .5rem .875rem;
}
.calendar .fc .fc-list-table td.fc-list-event-time {
    white-space: normal;
}
.fc .fc-list-table td.fc-list-event-graphic {
    padding: .5rem 0 0;
}
.fc .fc-list-table td.fc-list-event-title {
    padding: .5rem .875rem .5rem .5rem;
    padding: 0;
}
.fc-title-datum {
  background: var(--eventColor);
  min-width: 3rem;
  height: 3rem;
  text-align: center;
  border-right: .1875rem solid rgba(255, 255, 255, .7);
}
.fc-title-datum.en-time {
  min-width: 4.3rem;
}
.fc-title-datum p {
  padding: .0625rem 0 0;
  margin: 0;
  transform: scaleY(1.3);
  color:white;
  font-family: var(--monoFont);
}
.fc-title-datum p:nth-child(1) {
  padding-top: .1875rem;
}
.fc-title {
    padding: 0 .5rem;
}
.legend,
.fc .fc-list-event.changeHours .fc-list-event-title {
    position: relative;
}
.legend::after,
.fc .fc-list-event.changeHours .fc-list-event-title::before {
    content: '!';
    position: absolute;
    right: 0;
    height: 100%;
    padding:.1rem .2rem;
    background: rgb(255, 1, 1);
    color:rgb(240, 248, 255);
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--monoFont);
}
.legend {
    height: 2rem;
    padding-left: 1.3rem;
    display: flex;
    align-items: center;
    display: none;
}
.legend:not(.home .legend){
    margin-left: .85rem;
}
.home .legend{
    margin-top: 1rem;
}
.legend::after {
    left: 0;
    width: .9rem;
    font-size: 1.5rem;
}
#calendar:has(.changeHours) ~ .legend {
    display: flex;
}