/* Pétanque24 · Lesbarkeit und erkennbare Aktionen · 2026-09-25
   Nur betroffene Turnierleitungs- und öffentliche Ansichten, keine Spiel-/Ergebnislogik. */

/* "Neues Turnier" war ohne geladenes Produkt-CSS lediglich ein Textlink. */
body.p24-product-ui .tm .p24-page-head a.p24-primary-action{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:11px 18px;border:1px solid #075d8e!important;
  border-radius:11px;background:#086c9f!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;text-decoration:none!important;
  font:850 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  box-shadow:0 3px 10px rgba(6,71,115,.17);cursor:pointer;
}
body.p24-product-ui .tm .p24-page-head a.p24-primary-action:hover{background:#074d78!important}
body.p24-product-ui .tm .p24-page-head a.p24-primary-action:focus-visible{
  outline:3px solid #69b8e4;outline-offset:3px
}

/* Sichtbarer Ansichtswechsel – in Feldansicht UND schlanker Liste geladen. */
body.admin-report-entry .p24-result-views{
  display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0;
  padding:11px 12px;background:#eaf2f7!important;
  border:1px solid #afc5d4;border-radius:14px;color:#173750!important
}
body.admin-report-entry .p24-result-views>span{font-size:13px;font-weight:850}
body.admin-report-entry .p24-result-views>a{
  display:inline-flex!important;flex-direction:column;align-items:flex-start;
  justify-content:center;gap:3px;min-height:48px;padding:9px 16px;
  border-radius:10px;border:2px solid #7599b1!important;
  background:#fff!important;color:#153c55!important;-webkit-text-fill-color:#153c55!important;
  text-decoration:none!important;font-weight:850;line-height:1.25;
  box-shadow:0 2px 4px rgba(13,52,78,.06)
}
body.admin-report-entry .p24-result-views>a small{
  font-size:11px;color:#3e6177!important;-webkit-text-fill-color:#3e6177!important;font-weight:650
}
body.admin-report-entry .p24-result-views>a.active,
body.admin-report-entry .p24-result-views>a[aria-current="page"]{
  background:#123f61!important;border-color:#123f61!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important
}
body.admin-report-entry .p24-result-views>a.active small,
body.admin-report-entry .p24-result-views>a[aria-current="page"] small{
  color:#dceefa!important;-webkit-text-fill-color:#dceefa!important
}
body.admin-report-entry .p24-result-views>a:hover:not(.active){background:#e2f1fa!important}
body.admin-report-entry .p24-result-views>a:focus-visible{outline:3px solid #3e9dd1;outline-offset:3px}

/* Die Korrekturansicht: keine verschobenen Grid-Spalten, Teams stets zugeordnet. */
body.rc-page{color-scheme:light;background:#eef3f7!important;color:#17324a!important}
body.rc-page .rc-wrap{width:min(1260px,calc(100% - 24px));max-width:1260px;color:#17324a}
body.rc-page .rc-wrap *{box-sizing:border-box}
body.rc-page .rc-wrap .panelhead :is(h2,p,.small){color:#17324a!important}
body.rc-page .rc-wrap .appheader{background:#102f49;color:#fff}
body.rc-page .rc-wrap .appheader h1{color:#fff!important}
body.rc-page .rc-wrap .appheader .eyebrow{color:#b4e1f7!important}
body.rc-page .rc-wrap .appheader .navitem{color:#e7f3fa!important}
body.rc-page .rc-wrap .appheader .actorname{color:#e7f3fa}
.rc-note{margin:14px 0;padding:14px 16px;border:1px solid #d7b45c;border-left:5px solid #a97808;border-radius:13px;background:#fff8e7;color:#493807!important;font-size:14px;line-height:1.55}
.rc-note strong{display:block;margin-bottom:4px;color:#302402!important;font-size:15px}
.rc-rounds{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.rc-rounds a{display:inline-flex;align-items:center;min-height:42px;padding:9px 13px;border:1px solid #aebdca;border-radius:10px;text-decoration:none!important;background:#fff;color:#17354b!important;font-weight:850;font-size:13px}
.rc-rounds a.active{background:#173e5e!important;color:#fff!important;border-color:#173e5e}
.rc-rounds a:focus-visible,.rc-save button:focus-visible{outline:3px solid #58a6d2;outline-offset:2px}
.rc-back{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.rc-encounters{display:grid;gap:16px;margin-top:14px}
.rc-card{min-width:0;background:#fff!important;color:#142f45!important;border:1px solid #c4d5df;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(14,53,78,.05)}
.rc-card-head{padding:15px 17px;background:#eaf2f7!important;border-bottom:1px solid #c4d5df;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;color:#142f45!important}
.rc-card-head>div{min-width:0;flex:1}
.rc-card-head h2{margin:0;color:#102d43!important;font-size:clamp(16px,2.3vw,19px);font-weight:900;overflow-wrap:anywhere}
.rc-card-head span{color:#4e6576!important;font-size:12px}
.rc-card-head>strong{color:#102d43!important;font-size:18px;white-space:nowrap}
.rc-games{display:grid}
.rc-game{display:grid;grid-template-columns:minmax(145px,.65fr) minmax(0,2fr) minmax(185px,.65fr);gap:16px;align-items:center;min-width:0;padding:15px 17px;border-bottom:1px solid #dce5ec;background:#fff!important;color:#17324a!important;font-size:14px}
.rc-game:last-child{border-bottom:0}
.rc-game:focus-within{background:#f4f9fc!important}
.rc-game-meta{min-width:0;display:grid;gap:3px}
.rc-type{color:#102e44!important;font-size:14px;font-weight:900}
.rc-field,.rc-current{color:#4c6476!important;font-size:12px;font-weight:700}
.rc-current b{color:#142e43!important;font-size:14px;font-weight:900}
.rc-score-edit{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:end;min-width:0}
.rc-score-side{display:flex;flex-direction:column;gap:6px;min-width:0;color:#17324a!important}
.rc-side-caption{display:block;min-width:0;color:#3c596e!important;font-size:11px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.rc-team{display:block;color:#102d43!important;font-size:14px;font-weight:900;line-height:1.32;overflow-wrap:anywhere;white-space:normal}
body.rc-page .rc-game input[type=number]{
  display:block;width:100%;min-width:0;max-width:150px;height:46px;
  border:2px solid #899fb1!important;border-radius:9px;background:#fff!important;
  color:#102c42!important;-webkit-text-fill-color:#102c42!important;
  text-align:center;font-size:19px;font-weight:900;opacity:1
}
body.rc-page .rc-game input[type=number]:focus{border-color:#096c9d!important;outline:3px solid #a8d8ee}
.rc-colon{align-self:end;padding-bottom:11px;color:#17344b!important;font-size:20px;font-weight:900}
.rc-save{display:flex;flex-direction:column;gap:9px;align-items:stretch;justify-content:center;min-width:0}
.rc-confirm{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:#25475f!important;font-weight:750;line-height:1.35;cursor:pointer}
.rc-confirm input{flex:none;width:18px;height:18px;margin:0;accent-color:#075c88}
body.rc-page .rc-save button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border:1px solid #0f587f!important;border-radius:9px;background:#0f587f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:13px;font-weight:850;cursor:pointer}
body.rc-page .rc-save button:hover{background:#083d5e!important}
.rc-empty{padding:30px;text-align:center;color:#405a70!important}
@media(max-width:1000px){.rc-game{grid-template-columns:minmax(145px,.45fr) minmax(0,1.55fr)}.rc-save{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end}.rc-save button{min-width:150px}}
@media(max-width:620px){body.rc-page .rc-wrap{width:calc(100% - 16px)}.rc-game{grid-template-columns:minmax(0,1fr);gap:11px;padding:14px 12px}.rc-game-meta{grid-template-columns:1fr auto;align-items:center}.rc-current{grid-column:1/-1}.rc-score-edit{gap:8px}.rc-save{grid-column:auto;flex-direction:column;align-items:stretch}.rc-save button{width:100%}.rc-card-head{padding:13px}.rc-team{font-size:13px}}

/* Zuschauer: Feldnummern, Status und Nebentexte auch auf hellen Karten lesbar. */
body.public-product-v4:not(.display-embed) :is(.fieldcard,.encountercard,.resultcard){color:#123149!important}
body.public-product-v4:not(.display-embed) .fieldcard .fieldnumber,
body.p24-spectator-v5:not(.display-embed) .fieldcard .fieldnumber{
  background:#123e5a!important;border:1px solid #123e5a!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:950!important
}
body.public-product-v4:not(.display-embed) .fieldcard .gamekind{color:#345970!important}
body.public-product-v4:not(.display-embed) .fieldcard .teamname{color:#11334d!important}
body.public-product-v4:not(.display-embed) .fieldcard .fieldcard-foot{
  color:#39596f!important;border-top:1px solid #c9d8e3!important
}
body.public-product-v4:not(.display-embed) .fieldcard .cardnote,
body.public-product-v4:not(.display-embed) .reservedfields{color:#3c5b70!important}
body.public-product-v4:not(.display-embed) .fieldcard.free{opacity:1!important;border-color:#cbd9e2!important;background:#f6f9fc!important}
body.public-product-v4:not(.display-embed) .fieldcard.free .fieldnumber{background:#365b73!important;color:#fff!important}
body.public-product-v4:not(.display-embed) :is(.resultstable tr.rowopen,.resultstable tr.rowinactive){opacity:1!important}
body.public-product-v4:not(.display-embed) .resultstable th{background:#173e5b!important;color:#fff!important}
body.public-product-v4:not(.display-embed) .resultstable td{color:#17364d!important}
body.public-product-v4:not(.display-embed) .resultstable .mutedcell,
body.public-product-v4:not(.display-embed) .freefieldtext{color:#435f72!important}
body.public-product-v4:not(.display-embed) .resultcard.free{opacity:1!important;background:#f7fafc!important}
body.public-product-v4:not(.display-embed) .p24-live-view-sub{color:#425f74!important}
body.public-product-v4:not(.display-embed) .fieldcard a:focus-visible{outline:3px solid #1678ae;outline-offset:2px}
/* Die Standard-Turnierbaum-Seite ist bewusst hell; der grafische Baum bleibt dunkel. */
body.p24spectator:not(.gb-page) .tb-match{background:#fff;color:#18364e;border-color:#b9cfdd}
body.p24spectator:not(.gb-page) .tb-match strong,
body.p24spectator:not(.gb-page) .tb-match b{color:#102e44}
body.p24spectator:not(.gb-page) :is(.tb-match small,.tb-updated,.tb-groupmatch>span){color:#4c6679}
body.p24spectator:not(.gb-page) .tb-view-switch a.active{background:#173f60;color:#fff!important}
