/* KARALIO V12.273 – Darkmode-Konsistenz und sichtbare Kalender-Menüs */

/* Kalender: Wochenwahl vollständig dunkel statt weißer Legacy-Kacheln. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .week .day{
  background:#121a21!important;
  color:#e8edf1!important;
  border:1px solid #2b3842!important;
  box-shadow:none!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .week .day :is(small,b){
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .week .day.today{
  background:#101f17!important;
  color:#fff!important;
  border-color:#178c40!important;
}

/* Kalender-Termine: keine weißen Kopf-/Antwortstreifen im Darkmode. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .calendar-event-entry,
  .calendar-team-event-row,
  .calendar-response-summary,
  .calendar-response-summary>div
){
  background:#121a21!important;
  background-color:#121a21!important;
  border-color:#2b3842!important;
  color:#eef2f4!important;
  box-shadow:none!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .calendar-response-summary span{
  color:#9eabb4!important;
  -webkit-text-fill-color:#9eabb4!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .calendar-response-summary strong{
  color:#f5f7f8!important;
  -webkit-text-fill-color:#f5f7f8!important;
}

/* Drei-Punkte-Menüs: über Folgekarten anzeigen und im Darkmode lesbar halten. */
.calendar-event-entry,
.calendar-week-group,
.calendar-week-items{overflow:visible!important}
.calendar-event-entry:has(.event-row-menu[open]){z-index:900!important}
.event-row-menu[open],.calendar-global-menu[open]{z-index:1000!important}
.event-row-menu[open]>div,.calendar-global-menu[open]>div{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:1001!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(.event-row-menu>div,.calendar-global-menu>div){
  background:#182128!important;
  border:1px solid #35434d!important;
  color:#f5f7f8!important;
  box-shadow:0 16px 42px rgba(0,0,0,.55)!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(.event-row-menu button,.calendar-global-menu button){
  background:transparent!important;
  color:#ff8e94!important;
  -webkit-text-fill-color:#ff8e94!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(.event-row-menu button:hover,.calendar-global-menu button:hover){
  background:#352024!important;
}

/* Mannschaftskarten: Aktionsfuß hat dieselbe Fläche wie die Karte. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .team-lifecycle-card,
  .team-open-button,
  .team-lifecycle-actions
){
  background:#121a21!important;
  background-color:#121a21!important;
  border-color:#2b3842!important;
  color:#eef2f4!important;
}

/* Serientermin-Formular: alle inneren Legacy-Flächen an Darkmode angleichen. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .event-series-fields,
  .series-schedule,
  .series-day-row
){
  background:#121a21!important;
  background-color:#121a21!important;
  border-color:#2b3842!important;
  color:#eef2f4!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .series-schedule-head,
  .series-schedule-head span,
  .series-day-row label,
  .series-day-row span
){
  color:#c8d0d6!important;
  -webkit-text-fill-color:#c8d0d6!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .series-day-row :is(input[type="time"],input[type="date"]){
  background:#0d151b!important;
  color:#f4f6f7!important;
  border-color:#35434d!important;
  color-scheme:dark;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .series-quick-actions button{
  background:#182128!important;
  color:#eef2f4!important;
  border-color:#35434d!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .series-preview{
  background:#102b19!important;
  color:#63df82!important;
}
