
/* ---------- Dunkel: Kalender Monat ---------- */
html[data-theme="dark"] body #adm-shell .cal-month__head {
  background-color: #0D270D !important; color: #B9CBA6 !important;   /* 9,3 : 1 */
  border-color: rgba(181, 226, 107, .14) !important;
}
html[data-theme="dark"] body #adm-shell .cal-day {
  background-color: #14361A !important;
  border-color: rgba(181, 226, 107, .14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
  color: #F1E9DB !important;
}
html[data-theme="dark"] body #adm-shell .cal-day:hover { background-color: #19401F !important; }
html[data-theme="dark"] body #adm-shell .cal-day__num { color: #F1E9DB !important; }            /* 11,1 : 1 */
html[data-theme="dark"] body #adm-shell .cal-day__items,
html[data-theme="dark"] body #adm-shell .cal-day__item { color: #D3E3C2 !important; }         /* 9,9 : 1 */
html[data-theme="dark"] body #adm-shell .cal-day__item .t,
html[data-theme="dark"] body #adm-shell .cal-day__count,
html[data-theme="dark"] body #adm-shell .cal-day__more { color: #B5E26B !important; }         /* 8,9 : 1 */
html[data-theme="dark"] body #adm-shell .cal-day.has-res { background-color: #1B4620 !important; }   /* Eintrag 8,0 : 1 */
html[data-theme="dark"] body #adm-shell .cal-day.is-other { background-color: #0E2810 !important; }
html[data-theme="dark"] body #adm-shell .cal-day.is-other .cal-day__num { color: #93A887 !important; } /* 6,2 : 1 */
html[data-theme="dark"] body #adm-shell .cal-day.is-today {
  border-color: #B5E26B !important; border-width: 2px !important;
  box-shadow: 0 0 0 1px rgba(181, 226, 107, .25), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* ---------- Dunkel: Jahr ---------- */
html[data-theme="dark"] body #adm-shell .cal-year__month {
  background-color: #14361A !important; border-color: rgba(181, 226, 107, .14) !important; color: #F1E9DB !important;
}
html[data-theme="dark"] body #adm-shell .cal-year__month-name { color: #B5E26B !important; }  /* 8,9 : 1 */
html[data-theme="dark"] body #adm-shell .cal-year__mini-day { color: #C9D8BA !important; }    /* 8,9 : 1 */
html[data-theme="dark"] body #adm-shell .cal-year__mini-day.has-res { background-color: #B5E26B !important; color: #17210F !important; }

/* ---------- Dunkel: Tag ---------- */
html[data-theme="dark"] body #adm-shell .cal-day-view {
  background-color: #14361A !important; border-color: rgba(181, 226, 107, .14) !important;
}
html[data-theme="dark"] body #adm-shell .cal-day-view .cal-day-view__date { color: #B5E26B !important; }

/* ---------- Dunkel: Liste ---------- */
html[data-theme="dark"] body #adm-shell #p-content { background-color: transparent !important; border-color: transparent !important; }
html[data-theme="dark"] body #adm-shell .adm-card {
  background-color: #14361A !important; border-color: rgba(181, 226, 107, .18) !important;
}
html[data-theme="dark"] body #adm-shell .adm-card-when,
html[data-theme="dark"] body #adm-shell .adm-card-meta { color: #C9D8BA !important; }
html[data-theme="dark"] body #adm-shell .adm-info .l { color: #B9CBA6 !important; }          /* 7,6 : 1 */
html[data-theme="dark"] body #adm-shell .adm-info a { color: #B5E26B !important; }           /* 8,9 : 1, war 2,1 */
html[data-theme="dark"] body #adm-shell .adm-wishes { background-color: #0F2A12 !important; color: #E3EDD6 !important; }

/* ---------- Dunkel: Hinweise oben rechts ---------- */
html[data-theme="dark"] body #live-popup-stack .live-popup { background-color: #14361A !important; }
html[data-theme="dark"] body #live-popup-stack .live-popup__name { color: #B5E26B !important; }   /* 8,9 : 1, war 4,4 */
html[data-theme="dark"] body #live-popup-stack .live-popup__type,
html[data-theme="dark"] body #live-popup-stack .live-popup__hint { color: #B9CBA6 !important; }   /* war 3,6 */
html[data-theme="dark"] body #live-popup-stack .live-popup__detail { color: #F1E9DB !important; }

/* ---------- Hell ---------- */
body #adm-shell .cal-day.is-other .cal-day__num { color: #6B716B !important; }   /* 4,7 : 1, war 2,0 */
body #adm-shell .adm-badge.offen { color: #8A4A0F !important; }                 /* 6,3 : 1, war 3,8 */
body #adm-shell .um-note { color: #5E6A58 !important; }                          /* 5,6 : 1, war 2,1 */
html:not([data-theme="dark"]) .live-overlay__type { color: #3F6A12 !important; }         /* 6,4 : 1 */
html:not([data-theme="dark"]) .live-overlay__row b { color: #4F5F44 !important; }        /* 6,9 : 1, war 3,6 */

/* ---------- Reiter mit offenen Anfragen ----------
   Er blinkte bis auf 15 Prozent Deckkraft, die Schrift war dann nicht zu
   lesen (gemessen 1,34 : 1), und Dauerblinken ohne Pause verletzt
   WCAG 2.2.2. Das Pulsieren mit Schein und Groesse bleibt als Signal, die
   Schrift bleibt stehen. Bei "weniger Bewegung" ruht es ganz. */
body #adm-shell .adm-tabs button.live-tab-pending--zimmer,
body #adm-shell .adm-tabs button.live-tab-pending--tisch { animation-name: liveTabPulseZimmer !important; animation-delay: 0s !important; opacity: 1 !important; }
body #adm-shell .adm-tabs button.live-tab-pending--zimmer,
body #adm-shell .adm-tabs button.live-tab-pending--zimmer span { color: #17210F !important; }   /* 6,96 : 1 auf #7CB838 */
@media (prefers-reduced-motion: reduce) {
  body #adm-shell .adm-tabs button.live-tab-pending--zimmer,
  body #adm-shell .adm-tabs button.live-tab-pending--tisch { animation: none !important; }
}

/* ---------- Name im Hinweis ist jetzt ein Knopf ----------
   Vorher war die ganze Karte role="button" und enthielt den Knopf
   Bearbeiten: verschachtelte Bedienelemente (axe nested-interactive).
   Der Name oeffnet jetzt das Fenster, die Karte bleibt klickbar. */
body #live-popup-stack button.live-popup__name,
html[data-theme="dark"] body #live-popup-stack button.live-popup__name {
  display: block; width: 100%; margin: 0; padding: 0; border: 0 !important;
  background: none !important; box-shadow: none !important; text-align: left;
  font: inherit; font-family: var(--vr-font-display, Georgia, serif); cursor: pointer;
  min-height: 0; text-transform: none; letter-spacing: normal;
}
body #live-popup-stack button.live-popup__name:focus-visible { outline: 3px solid #4C761E; outline-offset: 2px; }
html[data-theme="dark"] body #live-popup-stack button.live-popup__name:focus-visible { outline-color: #B5E26B; }

/* ---------- Nachmessung 1 (25 Funde): Wochentage, Nachbartage, Hinweisreiter, Urlaub ---------- */
/* Wochentage: die Farbe sitzt an den einzelnen div, nicht am Kopf. */
html[data-theme="dark"] body #adm-shell .cal-month__head div { color: #B9CBA6 !important; }   /* 9,3 : 1 */
/* Tage aus dem Nachbarmonat waren ueber opacity .35 abgeschwaecht, damit
   erreicht keine Schrift 4,5 : 1. Jetzt volle Deckkraft, leiser Grund. */
body #adm-shell .cal-day.is-other { opacity: 1 !important; }
html:not([data-theme="dark"]) body #adm-shell .cal-day.is-other { background-color: #F4F1EA !important; box-shadow: none !important; }
html:not([data-theme="dark"]) body #adm-shell .cal-day.is-other .cal-day__num { color: #656B65 !important; }   /* 4,8 : 1 */
/* Hinweisreiter im Dunkelmodus: gleiches Gruen wie hell, dunkle Schrift. */
html[data-theme="dark"] body #adm-shell .adm-tabs button.live-tab-pending--zimmer { background: #7CB838 !important; border-color: #7CB838 !important; }
/* Vermerk im Reiter Urlaub: ausgeschaltet 85 statt 50 Prozent Deckkraft. */
body #adm-shell .um-vermerk-bereich:not(.is-offen) { opacity: .85 !important; }
html:not([data-theme="dark"]) body #adm-shell .um-vermerk-bereich .um-note { color: #3E4A37 !important; }      /* 6,0 : 1 */

/* Urlaub im Dunkelmodus: Gruen statt Grau, wie der Kalender. */
html[data-theme="dark"] body #adm-shell .um-field,
html[data-theme="dark"] body #adm-shell .um-anlass,
html[data-theme="dark"] body #adm-shell .um-motiv,
html[data-theme="dark"] body #adm-shell .um-vorschau-rahmen,
html[data-theme="dark"] body #adm-shell .um-zeile,
html[data-theme="dark"] body #adm-shell .um-feld input[type="text"],
html[data-theme="dark"] body #adm-shell .um-feld input[type="date"],
html[data-theme="dark"] body #adm-shell .um-feld textarea {
  background-color: #14361A !important; border-color: rgba(181, 226, 107, .22) !important; color: #F1E9DB !important;
}
html[data-theme="dark"] body #adm-shell .um-vorschau-eyebrow,
html[data-theme="dark"] body #adm-shell .um-heute,
html[data-theme="dark"] body #adm-shell .um-hinweis,
html[data-theme="dark"] body #adm-shell .um-vermerk {
  background-color: #0F2A12 !important; border-color: rgba(181, 226, 107, .18) !important; color: #B9CBA6 !important;
}
html[data-theme="dark"] body #adm-shell .um-note,
html[data-theme="dark"] body #adm-shell .um-motiv-name,
html[data-theme="dark"] body #adm-shell .um-feld label,
html[data-theme="dark"] body #adm-shell .um-pv-phase-label,
html[data-theme="dark"] body #adm-shell .um-pv-nachsatz,
html[data-theme="dark"] body #adm-shell .um-zeile-fuss { color: #B9CBA6 !important; }   /* 7,7 : 1 */
html[data-theme="dark"] body #adm-shell .um-vermerk-bereich .um-note { color: #C9D8BA !important; }   /* 6,9 : 1 bei 85 % */

/* ---------- Nachmessung 2: graue Knoepfe und Kartenteile im Dunkelmodus ----------
   demo-patches.css faerbt jeden Knopf #1F251A, und ihre Regel enthaelt
   :not(#dm-toggle-btn). Diese Kennung zaehlt mit, eine einzelne Kennung
   hier verliert. Deshalb #adm-shell#adm-shell (gueltig, zaehlt doppelt).
   Werte: Schrift 11,1 : 1, Hauptknopf 7,6 : 1, Rand 3,5 : 1 zum Seitengrund. */
html[data-theme="dark"] body #adm-shell#adm-shell button {
  background-color: #14361A !important; color: #F1E9DB !important; border-color: #557A39 !important;
}
html[data-theme="dark"] body #adm-shell#adm-shell button:hover:not(:disabled) { background-color: #1B4620 !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .adm-btn--primary,
html[data-theme="dark"] body #adm-shell#adm-shell .adm-mini.confirm,
html[data-theme="dark"] body #adm-shell#adm-shell .um-speichern,
html[data-theme="dark"] body #adm-shell#adm-shell .um-step,
html[data-theme="dark"] body #adm-shell#adm-shell .um-anlass.is-selected,
html[data-theme="dark"] body #adm-shell#adm-shell .um-motiv.is-selected {
  background-color: #2F5F0E !important; color: #FFFFFF !important; border-color: #B5E26B !important;
}
html[data-theme="dark"] body #adm-shell#adm-shell .adm-btn--danger,
html[data-theme="dark"] body #adm-shell#adm-shell .adm-mini.cancel { background-color: #5A1F1A !important; color: #FFD9D2 !important; border-color: #A44B41 !important; }
/* Reiterleiste: Reiter ohne Kasten, der aktive in Limette (9,7 : 1). */
html[data-theme="dark"] body #adm-shell#adm-shell .adm-tabs button { background-color: transparent !important; border-color: transparent !important; color: #D3E3C2 !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .adm-tabs button.is-active { color: #B5E26B !important; border-bottom-color: #B5E26B !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .adm-tabs button.live-tab-pending--zimmer { background-color: #7CB838 !important; border-color: #7CB838 !important; color: #17210F !important; }
/* Ansichtsumschalter und Filter: die gewaehlte Pille in Limette, sonst ohne Kasten. */
html[data-theme="dark"] body #adm-shell#adm-shell .adm-view-switch button,
html[data-theme="dark"] body #adm-shell#adm-shell .adm-filter button { background-color: transparent !important; border-color: transparent !important; color: #D3E3C2 !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .adm-view-switch button.is-active,
html[data-theme="dark"] body #adm-shell#adm-shell .adm-filter button.is-active { background-color: #B5E26B !important; color: #17210F !important; border-color: #B5E26B !important; }
/* Umschalter hell und dunkel */
html[data-theme="dark"] body #adm-shell#adm-shell #dm-toggle-btn { background-color: transparent !important; border-color: #B5E26B !important; color: #B5E26B !important; }
/* Karten in der Liste: nur die Karte ist Flaeche, ihre Teile sind durchsichtig.
   [class*="-card"] faerbte auch adm-card-row, -name, -when, -meta grau. */
html[data-theme="dark"] body #adm-shell .adm-cards,
html[data-theme="dark"] body #adm-shell .adm-card [class*="-card"],
html[data-theme="dark"] body #adm-shell .adm-card .adm-info,
html[data-theme="dark"] body #adm-shell .adm-card .adm-info > div { background-color: transparent !important; }
/* Urlaub: Hinweise, Verlauf, Schalter */
html[data-theme="dark"] body #adm-shell .um-note,
html[data-theme="dark"] body #adm-shell .um-verlauf { background-color: transparent !important; }
html[data-theme="dark"] body #adm-shell .um-verlauf { border-color: rgba(181, 226, 107, .18) !important; }
html[data-theme="dark"] body #adm-shell .um-schalter { background-color: #14361A !important; border-color: rgba(181, 226, 107, .22) !important; }
html[data-theme="dark"] body #adm-shell .um-schalter-bahn { background-color: #6E8C5A !important; }              /* 3,5 : 1 */
html[data-theme="dark"] body #adm-shell .um-schalter input:checked + .um-schalter-bahn { background-color: #7CB838 !important; }   /* 5,6 : 1 */
/* Name im Hinweis: Knopf ohne Kasten (die Regel weiter oben verliert gegen demo-patches). */
html[data-theme="dark"] body #live-popup-stack#live-popup-stack button.live-popup__name { background: none !important; border: 0 !important; color: #B5E26B !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .adm-view-switch { background-color: #0D270D !important; border-color: rgba(181, 226, 107, .18) !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .um-motiv.is-selected .um-motiv-name,
html[data-theme="dark"] body #adm-shell#adm-shell .um-anlass.is-selected * { color: #FFFFFF !important; }   /* 7,6 : 1 */
html[data-theme="dark"] body #adm-shell#adm-shell .adm-cal-nav .label { color: #B5E26B !important; }   /* 8,9 : 1 */
html[data-theme="dark"] body #adm-shell#adm-shell .adm-sec-head h2 { color: #F1E9DB !important; }
/* Kopf im Dunkelmodus: "Pension Musterhof" stand in #5A6A4E auf dem Verlauf,
   rund 2,4 : 1. axe bewertet Text auf Verlaeufen nicht, deshalb von Hand
   gemessen. Jetzt #B9CBA6, ueber 7 : 1 auf jedem Ton des Verlaufs. */
html[data-theme="dark"] body #adm-shell#adm-shell .adm-header__title small { color: #B9CBA6 !important; }
html[data-theme="dark"] body #adm-shell#adm-shell .adm-header__live,
html[data-theme="dark"] body #adm-shell#adm-shell .adm-header__live span { color: #B9CBA6 !important; }
