/* Zweierkette v24870 – precise, non-destructive UX corrections. */
/* Discover: seven balanced actions, last All-In card across both columns. */
body[data-zk24860-page=entdecken] .zk248-discover{max-width:840px!important;margin-inline:auto!important}
body[data-zk24860-page=entdecken] .zk248-discover-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body[data-zk24860-page=entdecken] .zk248-discover .zk870-allin-tile{grid-column:1/-1!important;justify-self:stretch!important;max-width:none!important;border-color:#a9cbb7!important;background:#f5faf6!important}
body[data-zk24860-page=entdecken] .zk248-discover .zk870-depart-tile,body[data-zk24860-page=entdecken] .zk248-discover .zk870-trip-tile{max-width:none!important;grid-column:auto!important}
body[data-zk24860-page=entdecken] .zk248-discover .zk248-tile{box-shadow:none!important;transition:background .15s,border-color .15s}
body[data-zk24860-page=entdecken] .zk248-discover .zk248-tile:focus-visible{outline:3px solid #176b4a;outline-offset:3px}
/* Startseite: accessible, expandable public-vote table. */
.zk870-vote-results{margin-top:12px;border:1px solid #dce6df;border-radius:10px;overflow:hidden}
.zk870-vote-results>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:750;font-size:13px;padding:12px 13px;color:inherit}
.zk870-vote-results>summary::-webkit-details-marker{display:none}
.zk870-vote-results>summary::after{content:'⌄';margin-left:auto;color:#176b4a;font-size:17px}
.zk870-vote-results[open]>summary::after{content:'⌃'}
.zk870-vote-body{border-top:1px solid #dce6df;padding:10px 12px 14px}
.zk870-vote-count{font-size:11px;color:#176b4a;white-space:nowrap;font-weight:700}
.zk870-vote-source,.zk870-vote-empty{font-size:12px!important;color:#607067!important;margin:0 0 8px!important}
.zk870-vote-results table{width:100%;border-collapse:collapse;font-size:12px}
.zk870-vote-results th,.zk870-vote-results td{padding:9px 6px;border-bottom:1px solid #e4ece7;text-align:left}
.zk870-vote-results td:last-child,.zk870-vote-results th:last-child{text-align:right}
.zk870-vote-results td:first-child,.zk870-vote-results th:first-child{width:32px;color:#176b4a;font-weight:800}
/* Rankings: fixed outer geometry and identical row rhythm across all 3 views. */
body[data-zk24860-page^=ranking] main.max{max-width:1030px!important;width:min(100%,1030px)!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
body[data-zk24860-page^=ranking] .zk50-ranking-tabs{max-width:980px!important;margin-inline:auto!important}
body[data-zk24860-page^=ranking] .zk30-ranklist,body[data-zk24860-page=ranking] #zk23129-root{max-width:980px!important;width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}
body[data-zk24860-page^=ranking] .zk30-rankentry{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:12px 14px!important;min-height:57px!important;border:1px solid #dce6df!important;border-radius:10px!important;background:var(--zk10-panel,#fff)!important;box-shadow:none!important;margin:0!important;text-decoration:none!important;color:inherit!important}
body[data-zk24860-page^=ranking] .zk30-ranklist{display:grid!important;gap:7px!important}
body[data-zk24860-page^=ranking] .zk30-rankentry .zk30-pos{font-size:17px!important;font-weight:850!important;color:#176b4a!important;text-align:center!important}
body[data-zk24860-page^=ranking] .zk30-rankentry strong{font-size:14px!important;font-weight:760!important;line-height:1.3!important}
body[data-zk24860-page^=ranking] .zk30-rankentry small{font-size:11px!important;line-height:1.3!important;color:#5d7164!important;display:block!important;margin-top:3px!important}
body[data-zk24860-page^=ranking] .zk30-rankentry .zk30-score{font-size:13px!important;font-weight:800!important;white-space:normal!important;text-align:right}
body[data-zk24860-page^=ranking] main.max>h1{font-size:clamp(18px,2.4vw,24px)!important;margin:8px auto 12px!important;max-width:980px!important}
body[data-zk24860-page^=ranking] main.max>.zk30-simpleintro{max-width:980px!important;margin:0 auto 14px!important;display:block!important}
/* Community table first, rating form second, only real voters in the list. */
body[data-zk24860-page=ranking] #zk23129-root{display:flex!important;flex-direction:column!important;gap:12px}
body[data-zk24860-page=ranking] #zk23129-root .zk29-list{order:1!important;margin:0!important}
body[data-zk24860-page=ranking] #zk23129-root .zk60-rating-section{order:2!important;margin:0!important}
body[data-zk24860-page=ranking] #zk23129-root .zk29-filters{order:0!important}
body[data-zk24860-page=ranking] .zk870-community-table{display:grid;gap:7px;border:0;background:transparent}
body[data-zk24860-page=ranking] .zk870-community-th{display:grid;grid-template-columns:54px minmax(0,1fr) 90px 88px;gap:10px;align-items:center;padding:11px 14px;border:1px solid #dce6df;background:#f3f8f4;border-radius:9px;font-size:12px;font-weight:800;color:#385547}
body[data-zk24860-page=ranking] .zk870-community-empty{margin:0!important;padding:24px 15px!important;text-align:center;font-size:13px;color:#617268;border:1px dashed #d3e2d6;border-radius:9px}
body[data-zk24860-page=ranking] .zk870-vote-badge{font-size:11px!important;color:#587264;white-space:nowrap}
body[data-zk24860-page=ranking] .zk870-community-table .zk29-rank-card{margin:0!important}
/* Kette: center the entire main content area, including its Games and footer. */
body[data-zk24860-page=kette] main.max.zk40-kette{display:block!important;box-sizing:border-box!important;width:min(100% - 36px,880px)!important;max-width:880px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;float:none!important}
body[data-zk24860-page=kette] main.zk40-kette>.zk40-kette-list,body[data-zk24860-page=kette] main.zk40-kette>.zk40-games,body[data-zk24860-page=kette] main.zk40-kette>.zk40-more{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
@media(max-width:650px){
 body[data-zk24860-page=entdecken] .zk248-discover-grid{gap:9px!important}
 body[data-zk24860-page=entdecken] .zk248-discover .zk248-tile{min-height:96px!important;padding:12px!important}
 body[data-zk24860-page=entdecken] .zk248-discover .zk870-allin-tile{min-height:62px!important;flex-direction:row!important;align-items:center!important}
 body[data-zk24860-page^=ranking] .zk30-rankentry{grid-template-columns:28px minmax(0,1fr) auto!important;gap:8px!important;padding:10px!important;min-height:55px!important}
 body[data-zk24860-page^=ranking] .zk30-rankentry .zk30-pos{font-size:14px!important}
 body[data-zk24860-page^=ranking] .zk30-rankentry strong{font-size:12px!important}
 body[data-zk24860-page^=ranking] .zk30-rankentry .zk30-score{font-size:11px!important}
 body[data-zk24860-page=ranking] .zk870-community-th{grid-template-columns:42px minmax(0,1fr) 65px 63px;gap:5px;padding:10px 7px;font-size:10px!important}
 body[data-zk24860-page=ranking] .zk870-vote-badge{font-size:10px!important;grid-column:2/-1}
 body[data-zk24860-page=kette] main.max.zk40-kette{width:calc(100% - 26px)!important}
}
/* Four aligned community-table columns: place, name, points, counted votes. */
body[data-zk24860-page=ranking] .zk870-community-table .zk29-rank-top{display:grid!important;grid-template-columns:42px minmax(0,1fr) 90px 88px!important;gap:10px!important;align-items:center!important}
body[data-zk24860-page=ranking] .zk870-community-table .zk29-meta{display:none!important}
body[data-zk24860-page=ranking] .zk870-community-table .zk870-vote-badge{text-align:right!important;grid-column:auto!important}
@media(max-width:650px){
 body[data-zk24860-page=ranking] .zk870-community-table .zk29-rank-top{grid-template-columns:28px minmax(0,1fr) 65px 63px!important;gap:5px!important}
 body[data-zk24860-page=ranking] .zk870-community-table .zk870-vote-badge{grid-column:auto!important;white-space:normal!important}
}
/* The legacy ranking shell uses a higher-specificity 1180px rule on the personal page.
   Override that exact shell so its left edge matches Ultras and Auswärtsfahrer. */
html body.zk80-app[data-zk24860-page^=ranking] main.max{box-sizing:border-box!important;width:min(100%,1030px)!important;max-width:1030px!important;margin-left:auto!important;margin-right:auto!important}
/* Desktop's fixed 218px sidebar is outside normal document flow.
   Center Kette in the usable viewport to its right, not in the full window. */
@media(min-width:851px){
  body[data-zk24860-page=kette] main.max.zk40-kette{position:relative!important;left:109px!important;width:min(880px,calc(100vw - 250px))!important;max-width:880px!important}
}
