/* Pétanque24 Kontraststandard v3.0.0
   Ziel: mindestens klare Hell/Dunkel-Trennung auf allen Produkt-, Admin- und Zuschauerflächen. */
:root{--p24-contrast-dark:#ffffff;--p24-contrast-muted:#d9e7f1;--p24-contrast-light:#17364f;--p24-contrast-link:#075d8f}
/* Dunkle Produktflächen */
.p24-sidebar,.p24-sidebar-context,.p24-event-hero,.admin-shell-v2-context,.capturebar,.capturecard,.admin-bulk-action,.encounter-adminbar,.admin-area-heading-v2,.fieldblock-quick-v1,.yt-diag-v1,.ta-code{color:#fff!important}
.p24-sidebar :where(h1,h2,h3,h4,strong,b,label),.p24-sidebar-context :where(h1,h2,h3,h4,strong,b,label),.p24-event-hero :where(h1,h2,h3,h4,strong,b,label),.admin-shell-v2-context :where(h1,h2,h3,h4,strong,b,label),.capturebar :where(h1,h2,h3,h4,strong,b,label),.capturecard :where(h1,h2,h3,h4,strong,b,label),.admin-bulk-action :where(h1,h2,h3,h4,strong,b,label),.encounter-adminbar :where(h1,h2,h3,h4,strong,b,label),.admin-area-heading-v2 :where(h1,h2,h3,h4,strong,b,label),.fieldblock-quick-v1 :where(h1,h2,h3,h4,strong,b,label),.yt-diag-v1 :where(h1,h2,h3,h4,strong,b,label),.ta-code :where(h1,h2,h3,h4,strong,b,label){color:#fff!important;-webkit-text-fill-color:#fff!important}
.p24-sidebar :where(p,small,.small,.meta),.p24-sidebar-context :where(p,small,.small,.meta),.p24-event-hero :where(p,small,.small,.meta),.admin-shell-v2-context :where(p,small,.small,.meta),.capturebar :where(p,small,.small,.meta),.capturecard :where(p,small,.small,.meta),.admin-bulk-action :where(p,small,.small,.meta),.encounter-adminbar :where(p,small,.small,.meta),.admin-area-heading-v2 :where(p,small,.small,.meta),.fieldblock-quick-v1 :where(p,small,.small,.meta){color:#d9e7f1!important}
.p24-sidebar .p24-nav a,.p24-sidebar .p24-sidebar-manage,.p24-sidebar .p24-sidebar-bottom a{color:#f3f9fd!important;-webkit-text-fill-color:#f3f9fd!important}.p24-sidebar .p24-nav a.active{background:#00689f!important;color:#fff!important}.p24-sidebar .p24-sidebar-status.live,.p24-sidebar .p24-sidebar-status.good,.p24-sidebar .p24-sidebar-status.warn,.p24-sidebar .p24-sidebar-status.closed{-webkit-text-fill-color:currentColor!important}
/* Aktive Navigation und Primäraktionen: Weiß auf ausreichend dunklem Blau */
:where(.p24-product-ui,.public-product-v4) :where(.p24-primary-action,.p24-top-actions a.primary,.p24-subnav a.active,.navitem.active,.viewtab.active,.filterchip.active){background-color:#00689f!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.auth-v314 .auth-card button,.pp-btn:not(.ghost),.p24-consent-btn.accept{color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Helle Karten und Formulare niemals mit geerbter blauer/dunkelblauer Hintergrundfarbe kombinieren */
body.p24-product-ui :where(input,select,textarea),body.public-product-v4 :where(input,select,textarea),body.p24-public :where(input,select,textarea),.auth-v314 .auth-card :where(input,select,textarea){background:#fff!important;color:#17364f!important;-webkit-text-fill-color:#17364f!important;border-color:#bfcfdb!important}
body.p24-product-ui :where(.p24-progress-card,.p24-action-card,.p24-panel,.p24-page-guide,.tm-card,.tm-new,.ta-card,.hv-card),body.public-product-v4 :where(.appheader,.viewerbar,.panel,.fieldcard,.encountercard,.resultcard,.livetablepanel,.lt-explainer,.public-access-entry,.public-access-card),body.p24-public :where(.pp-card,.pp-empty){color:#17364f!important}
/* Zuschauer-Dunkelflächen */
.public-product-v4 .statushero,.p24-public .pp-hero{color:#fff!important}.public-product-v4 .statushero :where(h1,h2,h3,strong,b,p,small,span),.p24-public .pp-hero :where(h1,h2,h3,strong,b){color:#fff!important}.p24-public .pp-hero p{color:#dceaf2!important}.public-product-v4 .lt-table thead th{background:#0e3b60!important;color:#fff!important}.public-product-v4 .mobilenav{background:#0a2b46!important}.public-product-v4 .mobilenav a{color:#d7e5ef!important}.public-product-v4 .mobilenav a.active{background:#00689f!important;color:#fff!important}
/* Status-Chips auf hellen Flächen */
:where(.p24-product-ui,.p24-public) :where(.good,.live,.warn,.closed){-webkit-text-fill-color:currentColor}.p24-context-status.good,.p24-sidebar-status.good{background:#e4f3fc!important;color:#075d8f!important}.p24-context-status.live,.p24-sidebar-status.live{background:#dff5e8!important;color:#075f3b!important}.p24-context-status.warn,.p24-sidebar-status.warn{background:#fff1cf!important;color:#654600!important}.p24-context-status.closed,.p24-sidebar-status.closed{background:#edf1f4!important;color:#3e4f5d!important}
/* Links auf hellen Flächen */
body.p24-product-ui main a:not(.p24-primary-action):not(.btn):not(.navitem):not(.viewtab),body.public-product-v4 main a:not(.navitem):not(.viewtab):not(.filterchip),body.p24-public main a:not(.pp-btn){text-decoration-color:rgba(7,93,143,.42)}
/* Fokus überall klar sichtbar */
:where(body.p24-product-ui,body.public-product-v4,body.p24-public,body.auth-v314) :where(a,button,input,select,textarea):focus-visible{outline:3px solid #66b8ee!important;outline-offset:2px!important}
