:root {
  --fc-bg-event-opacity: 1;
  --fc-border-color: var(--wp--preset--color--ravenblack);
  --fc-button-active-bg-color: var(--wp--preset--color--darkmode);
  --fc-button-active-border-color: var(--wp--preset--color--darkmode);
  --fc-button-hover-bg-color: var(--wp--preset--color--darkmode);
  --fc-button-hover-border-color: var(--wp--preset--color--darkmode);
  --fc-button-bg-color: var(--wp--preset--color--darkmode);
  --fc-button-border-color: var(--wp--preset--color--darkmode);
  --fc-button-disabled-bg-color: #1b1b1b;
  --fc-button-disabled-border-color: #333;
  --fc-button-text-color: var(--wp--preset--color--pearl);
  --fc-daygrid-event-dot-width: 0px;
}

/* Toolbar */
.cr-sendeplan {
  max-width: var(--wp--style--global--wide-size);
}

.cr-sendeplan .fc-toolbar.fc-header-toolbar {
  margin-bottom: 1rem;
}

.fc .fc-button {
  border-radius: 30px;
  padding-left: 25px;
  padding-right: 25px;
  font-family: 'QuicksandMedium', sans-serif;
  font-size: 0.95rem;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
  color: var(--wp--preset--color--sunshine) !important;

  text-decoration: underline;
}

.fc .fc-button:focus {
  border: 0px;
}

.cr-sendeplan .fc .fc-button-primary:disabled {
  opacity: .6;
}

.fc .fc-titleBtn-button.cr-titleBtn {
  position: relative;
  background: var(--wp--preset--color--darkmode);
  border: 0;
  box-shadow: none;
  padding: 0 4px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
}

.fc .fc-titleBtn-button.cr-titleBtn:hover {
  color: var(--wp--preset--color--sunshine);
}


.fc .fc-titleBtn-button.cr-titleBtn::after {
  content: "▾";
  margin-left: 6px;
  font-size: 18px;
  opacity: .85;
}



@media (max-width: 1000px) {
  .fc-header-toolbar {
    display: flex;
    flex-direction: column;
  }

  .fc-toolbar-chunk {
    width: 100%;
  }

  .fc-toolbar-chunk {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }



  .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-button-group {
    width: 100%;
  }

  .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    display: none;
  }

  .fc-header-toolbar .fc-toolbar-chunk:nth-child(3) {
    display: inline-flex;
    width: 100%;
  }

  .fc-header-toolbar .fc-toolbar-chunk:nth-child(3) .fc-button-group {
    float: right;
  }

}

.fc .fc-scrollgrid-section-sticky > * {
  background-color: var(--wp--preset--color--ravenblack);
}


thead .fc-day-today a {
  background-color: var(--wp--preset--color--eisvogel) !important;
  border-radius: 50px;
  width: 100%;
  color: var(--wp--preset--color--darkmode)
}

.fc th {
  font-weight: normal;
}

.cr-gap-line {
  margin-left: 5px;
  margin-right: 5px;
}

.cr-gap-ic {
  background: var(--wp--preset--color--ravenblack);
  border: none;
  box-shadow: none;
  color: #eceddf !important;
  font-size: 1.2rem;

}


.cr-ev-sep--day .cr-gap-ic svg {
  margin-right: 10px;
}

.cr-ev-sep--day {
  padding-right: 50px;
  padding-left: 50px;
}

.cr-ev-sep--week {
  padding-right: 13px;
  padding-left: 13px;
}

/* Current Show */
.cr-ev {
  position: relative;
  overflow: hidden;
}


.cr-ev--now .cr-ev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--wp--preset--color--eisvogel);
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}


.fc-dayGridWeek-view .cr-ev--now .cr-ev {
  border: 1px solid var(--wp--preset--color--eisvogel) !important;
}

.fc-dayGridDay-view .cr-ev--now .cr-ev-time,
.fc-dayGridDay-view .cr-ev--now .cr-ev-title {
  color: var(--wp--preset--color--eisvogel);
}


.cr-ev--now .cr-ev:hover::before {
  background: var(--wp--preset--color--grey);
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}


.cr-ev:hover {
  border: 2px solid var(--wp--preset--color--grey) !important;
}

.fc-dayGridWeek-view .cr-ev--now .cr-ev:hover {
  border: 1px solid var(--wp--preset--color--grey) !important;
}



.fc-dayGridDay-view .cr-ev--past .cr-ev,
.fc-dayGridDay-view .cr-ev.cr-ev--past {
  color: var(--wp--preset--color--grey);
  background: var(--wp--preset--color--darkmode);
}




/* Day-View vergangene Events  */
.fc-dayGridDay-view .cr-ev--past .cr-ev,
.fc-dayGridDay-view .fc-daygrid-event.cr-ev--past .cr-ev {
  background: rgba(255, 255, 255, .06);
  filter: saturate(.75);
}

/* aktuelles Event */
.fc-dayGridDay-view .cr-ev--now .cr-ev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--wp--preset--color--eisvogel);
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}




/* Grid */
.fc-col-header-cell {
  background-color: var(--wp--preset--color--ravenblack);
}

.fc-col-header {
  border-bottom: 1px solid var(--wp--preset--color--darkmode-2);

}

.fc-col-header-cell-cushion {
  text-decoration: none !important;
  padding: 6px !important;
  margin-bottom: 15px;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 0px;
}


.cr-sendeplan .fc-scrollgrid {
  overflow: hidden;
}

.cr-sendeplan .fc-daygrid-day-frame {
  padding: 7px 2px 7px;
}

.cr-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .75rem;
  opacity: .9;
}

.cr-tag-ic {
  padding: 3px;
  font-size: .9em;
  line-height: 1;
  width: 20px;
  height: 20px;
}

.cr-week-ic img {
  width: 20px;
  height: 20px;
}

.cr-tag--lang {
  opacity: .7;
}

/* Event-Karten (DayGrid DAY)  */

.cr-ev {
  background-color: var(--wp--preset--color--darkmode);
  border-radius: 16px;
  color: var(--wp--preset--color--pearl);
  border: 2px solid transparent;
  transition: border-color .2s ease;
}

.cr-ev--day {
  display: grid;
  grid-template-columns: 170px 1fr minmax(250px, auto);
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  width: 100%;

}

.cr-ev--day .cr-ev-time,
.cr-ev--day .cr-ev-main {
  font-family: 'QuicksandBold', sans-serif;
  font-size: 1.5rem;
  color: #FFFFFF;
}

.cr-ev--day .cr-ev-time {
  margin-left: 20px;
  justify-self: start;
}

.cr-ev--day .cr-ev-main {
  display: flex;
  flex-direction: column;
  justify-self: start;
  align-self: center;
  min-width: 250px;
  width: 100%;
  gap: 7px;
  margin-left: 60px;
}

.cr-ev--day .cr-ev-main .cr-ev-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #FFFFFF;
}

.cr-ev--day .cr-ev-main .cr-ev-host {
  font-family: 'QuicksandMedium', sans-serif;
  font-size: 1rem;
  color: #FFFFFF;
}

.cr-ev--day .cr-ev-tags {
  justify-self: end;

}

.cr-ev--day .cr-tag {
  margin-right: 7px;
}

.cr-ev-right {
  margin-left: 20px;
  justify-self: end;
}


@media (max-width: 1000px) {
  .cr-ev--day {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .cr-ev--day .cr-ev-time {
    margin-left: 10px;
    font-size: 1rem;
  }

  .cr-ev-right {
    margin-left: 10px;
    justify-self: start;
  }

  .cr-ev--day .cr-ev-main {
    min-width: 170px;
    width: 100%;
    justify-self: start;
    margin-left: 10px;
    margin-bottom: 5px;
    gap: 0px;
  }
}



.cr-sendeplan .fc-dayGridDay-view .fc-scrollgrid {
  border-bottom: 0 !important;
}


.cr-sendeplan .fc-day-today .fc-daygrid-day-frame {
  background: var(--wp--preset--color--ravenblack);
}

.fc .fc-daygrid-day.fc-day-today {
  background: var(--wp--preset--color--ravenblack);
}


.fc-dayGridDay-view .cr-ev {
  padding: .6rem .7rem;
}

.cr-sendeplan .fc-daygrid-more-link {
  display: inline-block;
  margin-top: .35rem;
  padding: .3rem .5rem;
  background: #1b1b1b;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

/* Event-Karten (DayGrid WEEK) */




.fc-dayGridWeek-view .cr-ev {
  padding: 20px;
}

.cr-ev--week {
  display: flex;
  width: 100%;
}

.cr-ev--week .cr-ev-main {
  display: flex;
  flex-direction: column;
}

.cr-ev--week .cr-week-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.cr-ev--week .cr-ev-title {
  font-family: "QuicksandBold";
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2em;
  max-height: 3.6em;
  overflow: hidden;
  position: relative;
  color: #FFFFFF;
}

.cr-ev--week .cr-ev-time {
  color: #FFFFFF;
}

@media (max-width: 1300px) {
  .cr-ev--week{
    /* display: none; */
    flex-direction: column;
  }

  .cr-ev--week .cr-week-ic {
    margin-bottom: 10px;
    margin-right: 0;
}

}

/* Musik Trenner */
.cr-ev-sep {
  display: flex;
  align-items: center;
  margin: .4rem 0;
  opacity: .8;
}

.cr-ev-sep--day {
  justify-content: flex-end;
}

.cr-ev-sep--week {
  justify-content: center;
}

.cr-gap-line {
  flex: 1;
  height: 1px;
  background: var(--cr-sep-line, rgba(255, 255, 255, .25));
}

.cr-gap-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .4rem;
  border-radius: 999px;
  font-size: .95rem;
  line-height: 1.2;
}

/* Wochentags-Navigation für Mobile */
.cr-weekday-nav {
  display: none;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
}

.cr-weekday-nav button {
  flex: 1;
  padding: 10px 10px;
  background: var(--wp--preset--color--darkmode);
  color: var(--wp--preset--color--pearl);
  border: 1px solid var(--wp--preset--color--darkmode-2);
  border-radius: 50px;
  font-family: 'QuicksandMedium', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cr-weekday-nav button:hover {
  background: var(--wp--preset--color--darkmode-2);
  border-color: var(--wp--preset--color--grey);
}

.cr-weekday-nav button.active {
  background: var(--wp--preset--color--darkmode);
  color: var(--wp--preset--color--pearl);
  border: 2px solid var(--wp--preset--color--pearl);
  font-family: 'QuicksandBold', sans-serif;
}

.cr-weekday-nav button.today {
  background: var(--wp--preset--color--eisvogel);
  color: var(--wp--preset--color--darkmode);
  font-family: 'QuicksandBold', sans-serif;
}

.cr-weekday-nav button.today .active {
  border-color: var(--wp--preset--color--pearl);
}

@media (max-width: 1000px) {
  .cr-weekday-nav {
    display:flex;
  }

   .fc-today-button,
  .fc-toolbar-chunk:nth-child(3) {
    display: none !important;
  }

  .fc-dayGridDay-view .fc-toolbar-chunk:nth-child(1) {
    width: 100%;
    justify-content: space-between;
  }
}

/* Extra-small screens: keep weekday buttons within viewport */
@media (max-width: 400px) {
  .cr-weekday-nav {
    gap: 4px;
    margin: 12px 0;
    flex-wrap: wrap;
  }

  .cr-weekday-nav button {
    padding: 7px 6px;
    font-size: 0.8rem;
    border-radius: 999px;
  }
}
