/* KARALIO V12.274 – weiterer globaler Darkmode-Kontrastpass */

/* Termin- und Trainingsdetails: Metadaten nicht mehr weiß. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .trainer-event-meta span,
  .trainer-content-block,
  .trainer-event-content .empty,
  .trainer-event-attendance .dashboard-response-summary,
  .trainer-event-attendance .dashboard-response-summary>div
){
  background:#182128!important;
  background-color:#182128!important;
  color:#f3f6f8!important;
  border-color:#30404b!important;
  box-shadow:none!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .trainer-event-meta b{
  color:#9eabb4!important;
}

/* Kader-Kennzahlen und Leistungstest-Hinweisflächen. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .roster-toolbar .info,
  .performance-session-form .info,
  .performance-session-form #captureHint,
  .performance-session-form .material-line
){
  background:#182128!important;
  background-color:#182128!important;
  color:#f3f6f8!important;
  border:1px solid #30404b!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .roster-toolbar .info span,
  .performance-session-form .info span,
  .performance-session-form .info small
){
  color:#9eabb4!important;
  -webkit-text-fill-color:#9eabb4!important;
}

/* Spielerakte: Lesefelder und Individualtraining-Kennzahlen. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .profile-read-value,
  .ath-history-summary>div,
  .ath-history-comment
){
  background:#182128!important;
  background-color:#182128!important;
  color:#f3f6f8!important;
  border-color:#30404b!important;
  box-shadow:none!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .ath-history-summary span{
  color:#a8b3bb!important;
  -webkit-text-fill-color:#a8b3bb!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .record-tab.active{
  background:#14351f!important;
  color:#58dd7a!important;
  -webkit-text-fill-color:#58dd7a!important;
  border-color:#1d6b36!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .record-tab.active span{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Persönlicher Kalender: Legende und Wochenchips dunkel. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .staff-personal-calendar-legend,
  .staff-personal-calendar-block-head>span,
  .calendar-week-divider span
){
  background:#182128!important;
  background-color:#182128!important;
  color:#d6dde2!important;
  border-color:#30404b!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .staff-personal-calendar-legend small{
  color:#9eabb4!important;
  -webkit-text-fill-color:#9eabb4!important;
}

/* Individualtrainings-Pläne und Algorithmus-Erklärung. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .individual-plan-rhythm,
  .individual-plan-preview,
  .individual-algorithm-grid>div
){
  background:#182128!important;
  background-color:#182128!important;
  color:#dbe1e5!important;
  border-color:#30404b!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .individual-plan-rhythm,
  .individual-plan-preview span,
  .individual-algorithm-grid span,
  .individual-plan-card p,
  .individual-plan-head p
){
  color:#aeb8c0!important;
  -webkit-text-fill-color:#aeb8c0!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .individual-plan-preview b,
  .individual-algorithm-info summary,
  .individual-algorithm-grid b
){
  color:#f1f4f6!important;
  -webkit-text-fill-color:#f1f4f6!important;
}

/* Übungsbibliothek: Karten dunkel, Bildträger darf neutral bleiben. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .athletic-library-card{
  background:#121a21!important;
  background-color:#121a21!important;
  color:#f3f6f8!important;
  border-color:#30404b!important;
  box-shadow:none!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .athletic-library-card>div:not(:first-child),
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .athletic-library-card details{
  background:#121a21!important;
  color:#f3f6f8!important;
}
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) .athletic-library-card :is(small,p){
  color:#aeb8c0!important;
  -webkit-text-fill-color:#aeb8c0!important;
}

/* Generische ausgeblendete Formular-Hinweiszeilen dürfen keine weißen Balken bilden. */
html[data-resolved-appearance="dark"] body:not(.karalio-public-mode) :is(
  .performance-session-form .span-2.info:empty,
  .scope-audience-field,
  .staff-player-calendar-editor,
  .direct-individual-editor
){
  background:#121a21!important;
  background-color:#121a21!important;
  border-color:#30404b!important;
  color:#f3f6f8!important;
}
