/* Accepted brand background across the current shared website.
   No layout, content, interaction or original media is replaced here. */
html:has(>body.joker-dark) {background:#101010}
body.joker-dark:not(.home-reordered) {
  --jk-bg:#101010;--jk-surface:#181818;--jk-raised:#222222;
  --jk-border:#363636;--jk-text:#f5f5f5;--jk-muted:#c3c3c3;
  --brand-background:url("assets/background-brand-panels-20261109.webp");
  background-color:var(--jk-bg);
}
body.joker-dark:not(.home-reordered) .public-page-frame {
  --bg-card-hover:#292929;--border-color-hover:#777;
}
body.joker-dark.subpage-unified:not(.home-reordered) :is(.revamp-footer,.lp-footer,.selected-legal-nav) {
  background-color:var(--jk-bg)!important;
}
/* Full-width outer flows carry the motif; functional cards remain solid. */
body.joker-dark.subpage-unified:not(.home-reordered)[data-page="fuehrerschein-check"] main .public-page-frame section.kostencheck-flow,
body.joker-dark.subpage-unified[data-page^="anmeldung"] main .public-page-frame>div[style*="min-height:100vh"],
body.joker-dark.subpage-unified:not(.home-reordered) main :is(.cs-overlay,.m-overlay) {
  background-color:var(--jk-bg)!important;
  background-image:var(--brand-background)!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}
body.joker-dark.subpage-unified.type-login main,
body.joker-dark.subpage-unified[data-page="vertrag"] main,
body.joker-dark.subpage-unified:has(main.hy-overview) {
  background-color:var(--jk-bg)!important;
  background-image:var(--brand-background)!important;
  background-size:100% clamp(560px,95svh,960px)!important;
  background-position:top center!important;
  background-repeat:no-repeat!important;
}
body.joker-dark.subpage-unified.type-login main .login-layout,
body.joker-dark.subpage-unified main.hy-overview {
  background-color:transparent!important;
}
/* The contract fallback is shorter than a screen; retain the coloured edge. */
body.joker-dark.subpage-unified[data-page="vertrag"] main {
  background-size:cover!important;
  background-position:center bottom!important;
}
@media(max-width:600px) {
  body.joker-dark:not(.home-reordered) {
    --brand-background:url("assets/background-brand-panels-mobile-20261109.webp");
  }
}
