/* Spielerrangliste (/rangliste/) – Ergänzung zum V20-Design: dunkles Blau/Schwarz, Limettengrün, kräftige Überschriften. */
:root { --rl-gold: #f4c34d; --rl-silver: #cfd9de; --rl-bronze: #d99a5f; --rl-red: #ff8577; --rl-cyan: #7ed8ff; --rl-card: linear-gradient(150deg, rgba(14,29,38,.92), rgba(4,12,18,.95)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html:not(.ui-enhanced) .rl-js-only { display: none !important; }
.rl-muted { color: var(--copy-soft, #9eabb2); }
.rl-ok { color: var(--lime); font-weight: 700; }
.rl-empty { margin: 8px 0 0; padding: 22px; border: 1px dashed rgba(220,240,248,.14); border-radius: 14px; color: var(--copy-soft, #9eabb2); text-align: center; list-style: none; }
.rl-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.rl-page code { color: #d5ff7a; font-size: .9em; overflow-wrap: anywhere; }

/* ---------- Kopfbereich ---------- */
.rl-hero { padding-block: 56px 40px; }
.rl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 34px; align-items: end; }
.rl-hero-copy p { max-width: 640px; }
.rl-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rl-stat { position: relative; min-width: 0; padding: 14px 16px; border: 1px solid rgba(155,234,0,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(155,234,0,.07), rgba(155,234,0,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.rl-stat strong { display: block; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.1; color: #fff; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rl-stat.is-name strong { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.15; letter-spacing: 0; }
.rl-stat span { display: block; margin-top: 5px; color: var(--copy-soft, #9eabb2); font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.rl-meter { display: block; height: 4px; margin-top: 9px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.rl-meter b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--lime2)); }

/* ---------- Bereichsnavigation ---------- */
.rl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.rl-tabs, .rl-subtabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rl-tabs::-webkit-scrollbar, .rl-subtabs::-webkit-scrollbar { display: none; }
.rl-tabs a, .rl-subtabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; white-space: nowrap; border: 1px solid rgba(155,234,0,.2); border-radius: 12px; background: rgba(155,234,0,.035); color: #d5dce0; font-size: .875rem; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.rl-tabs a:hover, .rl-subtabs a:hover { border-color: rgba(155,234,0,.55); background: rgba(155,234,0,.08); color: #fff; }
.rl-tabs a.is-active, .rl-subtabs a.is-active { border-color: transparent; color: #071000; background: linear-gradient(105deg, #8edf00, #c3fb3c); box-shadow: 0 10px 26px rgba(151,232,0,.18); }
.rl-subtabs { margin-bottom: 4px; }
.rl-subtabs a { min-height: 40px; padding: 8px 14px; font-size: .82rem; }
.rl-userbox { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rl-user { display: inline-flex; align-items: center; gap: 10px; line-height: 1.15; }
.rl-user strong { display: block; color: #fff; font-size: .95rem; }
.rl-user small { display: block; color: var(--copy-soft, #9eabb2); font-size: .75rem; }
.btn.rl-btn-sm { min-height: 40px; padding: 8px 14px; font-size: .74rem; border-radius: 10px; }
.btn.rl-btn-ghost { background: transparent; box-shadow: none; }
.btn.rl-btn-danger { border-color: rgba(255,133,119,.38); color: #ffc0b8; background: rgba(255,133,119,.06); }
.btn.rl-btn-danger:hover { border-color: var(--rl-red); }
.rl-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(220,240,248,.12); border-radius: 10px; background: rgba(255,255,255,.02); color: #c9d3d7; font-size: .85rem; line-height: 1; transition: border-color .2s, color .2s, background .2s; }
.rl-icon-btn:hover { border-color: rgba(155,234,0,.5); color: var(--lime); background: rgba(155,234,0,.06); }

/* ---------- Hinweise ---------- */
.rl-flash-wrap { display: grid; gap: 10px; margin-top: 18px; }
.rl-flash { margin: 0; padding: 14px 18px; border: 1px solid rgba(155,234,0,.35); border-left: 4px solid var(--lime); border-radius: 12px; background: rgba(155,234,0,.06); color: #e7eef0; line-height: 1.55; }
.rl-flash.is-info { border-color: rgba(126,216,255,.32); border-left-color: var(--rl-cyan); background: rgba(126,216,255,.05); }
.rl-flash.is-warn { border-color: rgba(244,195,77,.38); border-left-color: var(--rl-gold); background: rgba(244,195,77,.06); }
.rl-flash.is-error { border-color: rgba(255,133,119,.4); border-left-color: var(--rl-red); background: rgba(255,133,119,.07); }
.rl-flash a { color: var(--lime); text-decoration: underline; }

/* ---------- Karten ---------- */
.rl-content { display: grid; gap: 22px; padding: 26px 0 12px; }
.rl-content > * { min-width: 0; }
.card.rl-card { padding: 28px; }
@media (hover: hover) and (pointer: fine) { .card.rl-card:hover { transform: none; } }
.rl-card.is-focus { border-color: rgba(155,234,0,.45); box-shadow: 0 0 0 1px rgba(155,234,0,.12), 0 26px 70px rgba(0,0,0,.32); }
.rl-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 22px; flex-wrap: wrap; margin-bottom: 16px; }
.rl-card-head > div:first-child { min-width: 0; }
.rl-card h2, .rl-collapse summary h2 { margin: 6px 0 0; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.12; letter-spacing: -.02em; color: transparent; background: linear-gradient(96deg, #ffffff 0%, #f4f8f6 67%, #c8ef87 106%); -webkit-background-clip: text; background-clip: text; width: fit-content; max-width: 100%; }
.rl-card h3 { color: var(--copy-strong, #d5dce0); }
.rl-card-note { margin: 0 0 14px; color: var(--copy, #b9c4ca); line-height: 1.65; max-width: 860px; }
.rl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.rl-two > * { min-width: 0; }

/* ---------- Avatare ---------- */
.rl-avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: rgba(155,234,0,.06); border: 1px solid rgba(155,234,0,.18); }
.rl-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.rl-avatar.is-initials { color: #c8dd9f; font-weight: 800; font-size: .8rem; letter-spacing: .03em; background: radial-gradient(circle at 35% 25%, rgba(155,234,0,.16), rgba(155,234,0,.03) 75%); }
.rl-avatar.is-sm { width: 32px; height: 32px; font-size: .7rem; }
.rl-avatar.is-lg { width: 64px; height: 64px; font-size: 1.15rem; }
.rl-avatar.is-xl { width: 104px; height: 104px; font-size: 1.8rem; border-radius: 26px; border-color: rgba(155,234,0,.3); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.rl-avatar.is-chip { width: 46px; height: 46px; margin: 4px 0 6px; font-size: .85rem; }

/* ---------- Mein Stand ---------- */
.rl-me { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 28px; align-items: center; border-color: rgba(155,234,0,.28); background: linear-gradient(135deg, rgba(155,234,0,.09), transparent 45%), var(--rl-card); }
.rl-me-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rl-me-id h2 { margin-bottom: 2px; }
.rl-me-id p { margin: 4px 0 0; }
.rl-me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rl-me-action { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.rl-me-action .cta-row { margin-top: 14px; }
.rl-status { margin: 0; color: var(--copy-strong, #d5dce0); line-height: 1.6; }
.rl-status.is-busy strong { color: var(--rl-gold); }
.rl-status.is-locked strong { color: #fff; }
.rl-target-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rl-target-chip b { margin-right: 6px; color: var(--lime); font-weight: 800; }
.rl-target-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px dashed rgba(155,234,0,.55); border-radius: 999px; color: #eaffc2; font-size: .85rem; font-weight: 750; background: rgba(155,234,0,.05); }
a.rl-target-chip:hover { border-style: solid; background: rgba(155,234,0,.12); }
.rl-admin-hint { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rl-admin-hint > div { max-width: 760px; }
.rl-admin-hint p { color: var(--copy); line-height: 1.6; }

/* ---------- Ranglistenbaum ---------- */
.rl-tree-card { overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(155,234,0,.08), transparent 55%), var(--rl-card); }
.rl-pyramid-scroll { overflow-x: auto; margin: 6px -10px 0; padding: 8px 10px 14px; scrollbar-width: thin; }
.rl-pyramid, .rl-row-list { list-style: none; margin: 0; padding: 0; }
.rl-pyramid { --slot-min: 76px; --gap: 10px; display: grid; gap: var(--gap); min-width: min-content; }
/* Der Baum ist mindestens so breit wie seine unterste Reihe. So ragt nichts links aus dem Scrollbereich heraus
   (sonst wären die Namen links abgeschnitten und nicht erreichbar – vor allem in Safari auf dem iPhone). */
@supports (width: calc(1px * 2)) {
  .rl-pyramid { min-width: calc(var(--rows) * var(--slot-min) + (var(--rows) - 1) * var(--gap)); }
}
.rl-row-list { display: flex; justify-content: center; justify-content: safe center; gap: var(--gap); }
.rl-slot { flex: 0 1 132px; min-width: 76px; }
.rl-chip { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 12px 8px 10px; border: 1px solid rgba(220,240,248,.1); border-radius: 16px; background: linear-gradient(160deg, rgba(17,33,43,.95), rgba(5,13,19,.96)); text-align: center; color: inherit; transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s, opacity .2s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a.rl-chip:hover { transform: translateY(-3px); border-color: rgba(155,234,0,.45); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.rl-chip-pos { position: absolute; top: 7px; left: 9px; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-size: .78rem; color: var(--copy-soft, #9eabb2); }
.rl-chip-name { display: flex; flex-direction: column; align-items: center; max-width: 100%; margin-top: 3px; line-height: 1.18; }
.rl-chip-first, .rl-chip-last { display: block; max-width: 100%; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.rl-chip-first { color: var(--copy-strong, #d5dce0); font-size: .74rem; font-weight: 600; }
.rl-chip-last { color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: .005em; }
.rl-chip-free { margin-top: 14px; color: rgba(220,240,248,.25); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rl-chip-rec { margin-top: 4px; color: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.rl-chip.is-top1 { border-color: rgba(244,195,77,.6); background: radial-gradient(circle at 50% 0%, rgba(244,195,77,.2), transparent 70%), linear-gradient(160deg, rgba(29,27,14,.96), rgba(6,12,16,.97)); box-shadow: 0 0 0 1px rgba(244,195,77,.12), 0 16px 40px rgba(244,195,77,.1); }
.rl-chip.is-top1 .rl-chip-pos { color: var(--rl-gold); }
.rl-chip.is-top1::before { content: "♛"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); color: var(--rl-gold); font-size: 1.1rem; text-shadow: 0 0 14px rgba(244,195,77,.6); }
.rl-chip.is-top2 { border-color: rgba(207,217,222,.45); }
.rl-chip.is-top2 .rl-chip-pos { color: var(--rl-silver); }
.rl-chip.is-top3 { border-color: rgba(217,154,95,.5); }
.rl-chip.is-top3 .rl-chip-pos { color: var(--rl-bronze); }
.rl-chip.is-busy::after { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--rl-gold); box-shadow: 0 0 0 3px rgba(244,195,77,.18); }
.rl-chip.is-inactive { opacity: .55; }
.rl-chip.is-empty { cursor: default; justify-content: center; min-height: 100%; border-style: dashed; border-color: rgba(220,240,248,.1); background: transparent; }
/* Interaktive Zustände (rangliste.js) */
.rl-pyramid.has-selection .rl-chip:not(.is-empty) { opacity: .42; }
.rl-pyramid .rl-chip.is-selected, .rl-pyramid .rl-chip.is-target, .rl-pyramid .rl-chip.is-me { opacity: 1; }
.rl-chip.is-me { border-color: rgba(155,234,0,.7); box-shadow: 0 0 0 2px rgba(155,234,0,.22), 0 16px 36px rgba(0,0,0,.35); }
.rl-chip.is-selected { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(155,234,0,.28), 0 18px 40px rgba(0,0,0,.4); transform: translateY(-3px); }
.rl-chip.is-target { border: 1px dashed var(--lime); background: radial-gradient(circle at 50% 30%, rgba(155,234,0,.16), transparent 70%), linear-gradient(160deg, rgba(17,33,43,.95), rgba(5,13,19,.96)); }
.rl-chip.is-target .rl-chip-last { color: #eaffc2; }
.rl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--copy-soft, #9eabb2); font-size: .8rem; }
.rl-legend li { display: inline-flex; align-items: center; gap: 8px; }
.rl-legend i { width: 14px; height: 14px; border-radius: 5px; border: 1px solid rgba(220,240,248,.2); }
.rl-legend .lg-top { border-color: var(--rl-gold); background: rgba(244,195,77,.25); }
.rl-legend .lg-busy { border-radius: 50%; border: 0; width: 10px; height: 10px; background: var(--rl-gold); }
.rl-legend .lg-target { border: 1px dashed var(--lime); background: rgba(155,234,0,.12); }
.rl-legend .lg-me { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(155,234,0,.3); }
.rl-pyramid-info { margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(155,234,0,.28); border-radius: 16px; background: rgba(155,234,0,.04); }
.rl-pyramid-info[hidden] { display: none; }
.rl-pi-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rl-pi-head h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.rl-pi-head p { margin: 2px 0 0; color: var(--copy-soft); font-size: .88rem; }
.rl-pi-body { margin: 12px 0 0; color: var(--copy); line-height: 1.6; }
.rl-pi-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rl-card-note .rl-js-only { color: var(--copy-soft); }

/* ---------- Aushang & Ergebnisse ---------- */
.rl-challenges, .rl-results, .rl-unranked, .rl-pick-list, .rl-events { list-style: none; margin: 0; padding: 0; }
.rl-challenges { display: grid; gap: 12px; }
.rl-challenge { padding: 16px 18px; border: 1px solid rgba(220,240,248,.09); border-radius: 16px; background: rgba(255,255,255,.018); }
.rl-challenge.is-overdue { border-color: rgba(244,195,77,.45); background: rgba(244,195,77,.04); }
.rl-vs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.rl-vs > span:not(.rl-avatar) { display: inline-flex; flex-direction: column; line-height: 1.2; }
.rl-vs small { color: var(--copy-soft); font-size: .75rem; }
.rl-vs-word { padding: 3px 9px; border-radius: 999px; background: rgba(155,234,0,.1); color: var(--lime); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.rl-vs.is-big { justify-content: center; gap: 12px 18px; margin: 4px 0 22px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.02); border: 1px solid rgba(220,240,248,.07); }
.rl-vs.is-big .rl-plink strong { font-size: 1.15rem; }
.rl-challenge-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--copy-soft); font-size: .82rem; }
.rl-challenge-meta .is-soon { color: var(--rl-gold); font-weight: 700; }
.rl-challenge-meta .is-warn { color: var(--rl-red); font-weight: 700; }
.rl-deadline { height: 4px; margin-top: 10px; border-radius: 9px; background: rgba(255,255,255,.07); overflow: hidden; }
.rl-deadline span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--rl-gold)); }
.rl-challenge.is-overdue .rl-deadline span { background: var(--rl-red); }
.rl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rl-plink { color: #fff; }
.rl-plink strong { font-weight: 800; letter-spacing: .02em; }
.rl-plink span { color: var(--copy-soft); }
.rl-plink:hover strong { color: var(--lime); }
.rl-results { display: grid; }
.rl-result { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.065); }
.rl-result:first-child { border-top: 0; }
.rl-result time { display: grid; place-items: center; height: 52px; border: 1px solid rgba(155,234,0,.25); border-radius: 12px; background: linear-gradient(145deg, rgba(155,234,0,.09), rgba(155,234,0,.015)); color: var(--copy-soft); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.rl-result time b { color: #fff; font-size: .82rem; letter-spacing: .01em; }
.rl-result-line { color: var(--copy-strong); line-height: 1.45; }
.rl-beats { color: var(--copy-soft); font-size: .88rem; }
.rl-score { display: inline-flex; margin-left: 4px; padding: 2px 9px; border-radius: 8px; background: rgba(155,234,0,.14); color: #eaffc2; font-weight: 800; font-size: .85rem; }
.rl-score.is-wo { background: rgba(244,195,77,.12); color: var(--rl-gold); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.rl-result-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; color: var(--copy-soft); font-size: .78rem; }
.rl-move.is-up, .is-up { color: var(--lime); }
.is-down { color: var(--rl-red); }
.rl-move { font-weight: 700; }
.rl-month { margin: 22px 0 4px; color: var(--copy-soft); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.rl-unranked { display: flex; flex-wrap: wrap; gap: 10px; }
.rl-unranked a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid rgba(220,240,248,.1); border-radius: 999px; color: var(--copy-strong); }
.rl-unranked a:hover { border-color: rgba(155,234,0,.45); }
.rl-rules-teaser { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.rl-rules-teaser > div { max-width: 760px; }
.rl-rules-teaser p { margin: 8px 0 0; color: var(--copy); line-height: 1.65; }

/* ---------- Tabelle ---------- */
.rl-search input { width: min(260px, 100%); min-height: 44px; padding: 10px 14px; border: 1px solid rgba(223,239,246,.13); border-radius: 11px; background: rgba(2,9,14,.72); color: #fff; font-size: 1rem; }
.rl-search input:focus { outline: none; border-color: rgba(151,232,0,.62); box-shadow: 0 0 0 4px rgba(151,232,0,.075); }
.rl-table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.rl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rl-table th { padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,.09); color: var(--copy-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.rl-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.055); color: var(--copy-strong); vertical-align: middle; }
.rl-table tbody tr { transition: background .15s; }
.rl-table tbody tr:hover { background: rgba(155,234,0,.035); }
.rl-table .num { text-align: right; white-space: nowrap; }
.rl-table .num, .rl-table .num strong, .rl-pos, .rl-stat strong, .rl-score, .rl-formdots, .rl-class, .rl-pill { overflow-wrap: normal; }
.rl-table tr.is-deleted td { opacity: .5; text-decoration: line-through; }
.rl-table tr.is-deleted td.rl-row-actions { opacity: 1; text-decoration: none; }
.rl-table tr.is-warn td { background: rgba(244,195,77,.04); }
.rl-table tr[hidden] { display: none; }
.rl-pos { white-space: nowrap; }
.rl-pos > span:first-child { display: inline-block; min-width: 2.2ch; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-size: 1.05rem; color: #fff; }
.rl-table tr.is-top1 .rl-pos > span:first-child { color: var(--rl-gold); }
.rl-table tr.is-top2 .rl-pos > span:first-child { color: var(--rl-silver); }
.rl-table tr.is-top3 .rl-pos > span:first-child { color: var(--rl-bronze); }
.rl-table tr.is-top1 td:first-child { box-shadow: inset 3px 0 0 var(--rl-gold); }
.rl-trend { display: inline-block; margin-left: 6px; color: rgba(220,240,248,.3); font-size: .72rem; font-weight: 800; }
.rl-trend.is-up { color: var(--lime); }
.rl-trend.is-down { color: var(--rl-red); }
.rl-trend.is-new { padding: 1px 6px; border-radius: 6px; background: rgba(126,216,255,.12); color: var(--rl-cyan); text-transform: uppercase; font-size: .62rem; letter-spacing: .06em; }
.rl-player { display: inline-flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.rl-player > span:not(.rl-avatar) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rl-player strong { color: #fff; font-weight: 700; }
.rl-player small { color: var(--copy-soft); font-size: .78rem; }
a.rl-player:hover strong { color: var(--lime); }
.rl-class { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid; font-size: .72rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.rl-class.is-neuling { color: var(--rl-cyan); border-color: rgba(126,216,255,.35); background: rgba(126,216,255,.06); }
.rl-class.is-amateur { color: var(--lime); border-color: rgba(155,234,0,.38); background: rgba(155,234,0,.06); }
.rl-class.is-master { color: var(--rl-gold); border-color: rgba(244,195,77,.4); background: rgba(244,195,77,.07); }
.rl-class.is-elite { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgba(155,234,0,.5), rgba(244,195,77,.55)); }
.rl-formdots { display: inline-flex; gap: 4px; }
.rl-formdots span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: .68rem; font-weight: 900; }
.rl-formdots .is-win { background: rgba(155,234,0,.85); color: #071000; }
.rl-formdots .is-loss { border: 1px solid rgba(255,133,119,.55); color: var(--rl-red); }
.rl-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(220,240,248,.14); color: var(--copy-soft); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.rl-pill.is-busy, .rl-pill.is-open { border-color: rgba(244,195,77,.45); color: var(--rl-gold); }
.rl-pill.is-locked { border-color: rgba(220,240,248,.18); color: #c3cdd2; }
.rl-pill.is-ok, .rl-pill.is-played { border-color: rgba(155,234,0,.4); color: var(--lime); }
.rl-pill.is-walkover { border-color: rgba(126,216,255,.4); color: var(--rl-cyan); }
.rl-pill.is-cancelled, .rl-pill.is-deleted { border-color: rgba(255,133,119,.35); color: var(--rl-red); }
.rl-table-foot { margin: 14px 0 0; color: var(--copy-soft); font-size: .8rem; line-height: 1.55; }
.rl-row-actions { white-space: nowrap; text-align: right; }
.rl-row-actions > * + * { margin-left: 6px; }

/* ---------- Formulare ---------- */
.rl-form { display: grid; gap: 18px; }
form.rl-inline { display: inline-flex; }
.rl-form .field-grid { margin: 0; }
.rl-label, .rl-fieldset legend { font-size: .875rem; text-transform: uppercase; letter-spacing: .055em; color: #c3cbd0; font-weight: 800; }
.field label small, .rl-label small, .rl-fieldset legend small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--copy-soft); }
.rl-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rl-fieldset legend { padding: 0; margin-bottom: 9px; }
.rl-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: end; }
.rl-duel-vs { padding-bottom: 14px; color: var(--lime); font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-size: .95rem; text-transform: uppercase; }
.rl-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rl-seg label { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 64px; padding: 10px 16px; border: 1px solid rgba(223,239,246,.14); border-radius: 12px; background: rgba(2,9,14,.72); color: #dfe6e9; font-weight: 800; cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.rl-seg label:hover { border-color: rgba(155,234,0,.5); }
.rl-seg input:checked + label { border-color: transparent; color: #071000; background: linear-gradient(105deg, #8edf00, #c3fb3c); box-shadow: 0 10px 24px rgba(151,232,0,.18); }
.rl-seg input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 3px; }
.rl-seg.is-wide label { flex: 1 1 220px; }
.rl-check { display: flex; align-items: flex-start; gap: 10px; color: var(--copy-strong); line-height: 1.5; cursor: pointer; }
.rl-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #9bea00; flex: 0 0 auto; }
.rl-override { padding: 12px 14px; border: 1px dashed rgba(244,195,77,.4); border-radius: 12px; color: #f3dfaa; }
.rl-radio-list { display: grid; gap: 10px; }
.rl-radio-list label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--copy-strong); line-height: 1.5; cursor: pointer; }
.rl-radio-list input[type="radio"] { width: 20px; height: 20px; accent-color: #9bea00; margin: 0; }
.rl-num { width: 88px !important; min-height: 40px !important; padding: 6px 10px !important; display: inline-block; border: 1px solid rgba(223,239,246,.14); border-radius: 9px; background: rgba(2,9,14,.72); color: #fff; font-size: 1rem; }
.rl-rulecheck { margin: -4px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.rl-rulecheck.is-ok { border: 1px solid rgba(155,234,0,.3); background: rgba(155,234,0,.05); color: #dff7b5; }
.rl-rulecheck.is-bad { border: 1px solid rgba(255,133,119,.4); background: rgba(255,133,119,.06); color: #ffd2cc; }
.rl-switch { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 22px; border: 1px solid rgba(220,240,248,.1); border-radius: 14px; background: rgba(2,9,14,.5); max-width: 100%; overflow-x: auto; }
.rl-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 10px; color: #cfd8dc; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.rl-switch a.is-active { color: #071000; background: linear-gradient(105deg, #8edf00, #c3fb3c); }
/* Sprung zu #forderung (Klick auf einen Namen bei „Du kannst jetzt fordern“): die Reiter darüber bleiben sichtbar */
.rl-entry-panel { scroll-margin-top: 92px; }
.rl-entry-panel[hidden] { display: none; }
.rl-pick-list { display: grid; gap: 10px; }
.rl-pick-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(244,195,77,.3); border-radius: 14px; background: rgba(244,195,77,.035); color: var(--copy-strong); }
.rl-pick-list a:hover { border-color: rgba(244,195,77,.6); }
.rl-pick-list b { color: var(--rl-gold); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.rl-pick-list small { grid-column: 1; color: var(--copy-soft); }
.rl-pick-list i { grid-column: 2; grid-row: 1 / span 2; color: var(--lime); font-style: normal; font-weight: 800; font-size: .85rem; }
.rl-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rl-presets button { min-height: 32px; padding: 4px 10px; border: 1px solid rgba(220,240,248,.14); border-radius: 8px; background: transparent; color: var(--copy-soft); font-size: .75rem; font-weight: 700; }
.rl-presets button:hover { border-color: var(--lime); color: var(--lime); }
.rl-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rl-filter .field { gap: 5px; }
.rl-filter .field > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--copy-soft); font-weight: 800; }
.rl-filter select, .rl-filter input { min-height: 44px !important; padding: 8px 12px !important; font-size: .95rem !important; }
.rl-filter.is-wide { margin-bottom: 18px; }
.rl-checklist { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rl-checklist li { position: relative; padding-left: 28px; color: var(--copy); line-height: 1.6; }
.rl-checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.rl-collapse > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.rl-collapse > summary::-webkit-details-marker { display: none; }
.rl-collapse > summary h2::after { content: " +"; color: var(--lime); -webkit-text-fill-color: var(--lime); }
.rl-collapse[open] > summary h2::after { content: " −"; }
.rl-collapse[open] > summary { margin-bottom: 18px; }
.rl-danger { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255,133,119,.25); }

/* ---------- Änderungshistorie ---------- */
.rl-log { list-style: none; margin: 0; padding: 0; position: relative; }
.rl-log-day { margin: 18px 0 8px; color: var(--lime); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rl-log-day:first-child { margin-top: 0; }
.rl-log-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.055); }
.rl-log-time { color: var(--copy-soft); font-size: .85rem; font-weight: 800; padding-top: 2px; }
.rl-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rl-log-head strong { color: #fff; letter-spacing: .03em; }
.rl-log-id { margin-left: auto; color: rgba(220,240,248,.3); font-size: .75rem; }
.rl-log-body p { margin: 6px 0 0; color: var(--copy-strong); line-height: 1.6; overflow-wrap: anywhere; }
.rl-badge { display: inline-flex; padding: 2px 9px; border-radius: 7px; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; border: 1px solid; }
.rl-badge.cat-ergebnis { color: var(--lime); border-color: rgba(155,234,0,.4); background: rgba(155,234,0,.07); }
.rl-badge.cat-forderung { color: var(--rl-gold); border-color: rgba(244,195,77,.4); background: rgba(244,195,77,.07); }
.rl-badge.cat-rangliste { color: var(--rl-cyan); border-color: rgba(126,216,255,.38); background: rgba(126,216,255,.06); }
.rl-badge.cat-mitglied { color: #d7c4ff; border-color: rgba(215,196,255,.35); background: rgba(215,196,255,.06); }
.rl-badge.cat-einstellung, .rl-badge.cat-system { color: #c9d3d7; border-color: rgba(220,240,248,.2); }
.rl-badge.cat-admin { color: var(--rl-red); border-color: rgba(255,133,119,.4); background: rgba(255,133,119,.06); }
.rl-log-details { margin-top: 8px; }
.rl-log-details summary { cursor: pointer; color: var(--lime); font-size: .85rem; font-weight: 750; }
.rl-log-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.02); }
.rl-log-grid h4 { margin: 0 0 6px; color: var(--copy-soft); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.rl-log-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .88rem; color: var(--copy-strong); }
.rl-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.rl-pager a, .rl-pager span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid rgba(220,240,248,.12); border-radius: 10px; color: var(--copy-strong); }
.rl-pager a.is-active { border-color: var(--lime); color: var(--lime); }
.rl-pager span { border: 0; color: var(--copy-soft); }

/* ---------- Spielerprofil ---------- */
.rl-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 30px; align-items: center; background: radial-gradient(ellipse at 0% 0%, rgba(155,234,0,.1), transparent 50%), var(--rl-card); }
.rl-profile-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.rl-profile-id p { margin: 6px 0 10px; }
.rl-profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } /* 6 Kennzahlen: 3 × 2 */
.rl-chart { margin: 0; }
.rl-chart svg { display: block; width: 100%; height: auto; }
.rl-chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--copy-soft); font-size: .8rem; }
.rl-chart figcaption strong { color: var(--lime); }

/* ---------- Login ---------- */
.rl-login-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: stretch; }
.rl-login { border-color: rgba(155,234,0,.3); }
.rl-login form { margin-top: 16px; }
.rl-message { max-width: 820px; }
.rl-message p { color: var(--copy); line-height: 1.7; }

/* ---------- Regeln ---------- */
.rl-rules { display: grid; gap: 22px; }
.rl-doc h3 { margin: 30px 0 12px; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; font-size: 1.15rem; color: #fff; letter-spacing: -.01em; }
.rl-doc p { color: var(--copy); line-height: 1.75; max-width: 900px; }
.rl-paras { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.rl-paras li { position: relative; padding-left: 52px; color: var(--copy); line-height: 1.7; }
.rl-paras li::before { content: attr(data-n); position: absolute; left: 0; top: 1px; min-width: 40px; color: var(--lime); font-weight: 900; font-size: .9rem; }
.rl-example { display: block; margin-top: 8px; padding: 12px 14px; border-left: 3px solid rgba(155,234,0,.45); border-radius: 0 10px 10px 0; background: rgba(155,234,0,.04); color: var(--copy-strong); }
.rl-note { display: inline-block; margin-left: 4px; color: var(--rl-cyan); font-style: normal; font-weight: 700; font-size: .9em; }
.rl-rule-with-tree { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.rl-demo-tree { display: grid; gap: 6px; padding: 16px; border: 1px solid rgba(220,240,248,.08); border-radius: 16px; background: rgba(255,255,255,.015); }
.rl-demo-tree div { display: flex; justify-content: center; gap: 6px; }
.rl-demo-tree span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(220,240,248,.12); border-radius: 9px; color: var(--copy-soft); font-size: .78rem; font-weight: 800; }
.rl-demo-tree .is-me { border-color: var(--lime); color: #071000; background: var(--lime); }
.rl-demo-tree .is-target { border: 1px dashed var(--lime); color: #eaffc2; background: rgba(155,234,0,.1); }
.rl-classes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.rl-classes .rl-class { font-size: .8rem; padding: 6px 12px; }
.rl-formula { display: grid; gap: 4px; margin: 6px 0 14px; padding: 18px 20px; border: 1px solid rgba(155,234,0,.25); border-radius: 14px; background: rgba(155,234,0,.04); max-width: 520px; }
.rl-formula p { margin: 0; color: #fff; font-size: 1.15rem; font-family: "Source Sans 3", Georgia, serif; }
.rl-defs { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px 14px; max-width: 900px; margin: 0 0 12px; }
.rl-defs dt { color: var(--lime); font-weight: 800; }
.rl-defs dd { margin: 0; color: var(--copy); line-height: 1.55; }
.rl-online-note { border-color: rgba(126,216,255,.25); background: radial-gradient(ellipse at 100% 0%, rgba(126,216,255,.08), transparent 50%), var(--rl-card); }

/* ---------- Verwaltung ---------- */
.rl-sortable { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.rl-sort-item { display: grid; grid-template-columns: 20px 34px 32px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(220,240,248,.08); border-radius: 12px; background: rgba(255,255,255,.018); }
.rl-sort-item.is-dragging { opacity: .5; border-color: var(--lime); }
.rl-sort-item.is-moved { border-color: rgba(155,234,0,.45); background: rgba(155,234,0,.05); }
.rl-sortable[data-disabled] .rl-handle { visibility: hidden; }
.rl-handle { color: rgba(220,240,248,.35); cursor: grab; font-size: .9rem; letter-spacing: -2px; user-select: none; }
.rl-sort-pos { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; color: #fff; text-align: right; }
.rl-sort-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; color: var(--copy-strong); }
.rl-sort-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-sort-name strong { color: #fff; margin-right: 4px; }
.rl-sort-name small { color: var(--copy-soft); font-size: .76rem; }
.rl-sort-btns { display: inline-flex; gap: 4px; }
.rl-sortable[data-disabled] .rl-sort-btns { display: none; }
.rl-more { position: relative; }
.rl-more > summary { list-style: none; }
.rl-more > summary::-webkit-details-marker { display: none; }
.rl-more-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 10px; width: max-content; max-width: min(360px, 80vw); padding: 14px; border: 1px solid rgba(155,234,0,.3); border-radius: 14px; background: #061118; box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.rl-more-panel label { display: inline-flex; align-items: center; gap: 8px; color: var(--copy-strong); font-size: .85rem; }
.rl-events li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.055); color: var(--copy-strong); font-size: .92rem; }
.rl-events li:first-child { border-top: 0; }
.rl-events li.is-revoked > span:nth-child(2) { text-decoration: line-through; opacity: .55; }

/* ---------- Bestätigungsdialog ---------- */
.rl-dialog { max-width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(155,234,0,.35); border-radius: 18px; background: #071118; color: #e8eef0; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.rl-dialog::backdrop { background: rgba(1,5,8,.72); backdrop-filter: blur(3px); }
.rl-dialog form { padding: 24px; display: grid; gap: 18px; }
.rl-dialog p { margin: 0; line-height: 1.6; font-size: 1.02rem; }
.rl-dialog .cta-row { margin: 0; justify-content: flex-end; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .rl-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .rl-hero-grid, .rl-me, .rl-profile, .rl-login-grid { grid-template-columns: minmax(0, 1fr); }
  .rl-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rl-two { grid-template-columns: minmax(0, 1fr); }
  .rl-toolbar { flex-direction: column; align-items: stretch; }
  .rl-userbox { justify-content: space-between; }
  .rl-tabs { flex-wrap: nowrap; }
  .rl-rule-with-tree { grid-template-columns: minmax(0, 1fr); }
  .rl-demo-tree { justify-self: start; }
  .hide-md { display: none; }
  .rl-slot { flex-basis: 108px; min-width: 72px; }
  .rl-pyramid { --slot-min: 72px; }
  .rl-chip { padding-inline: 5px; }
}
@media (max-width: 720px) {
  .card.rl-card { padding: 20px 16px; }
  .rl-hero { padding-block: 40px 30px; }
  .rl-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Unterseiten: Kennzahlen ausblenden, damit Formular/Inhalt direkt sichtbar ist */
  .rl-hero.is-sub .rl-hero-stats { display: none; }
  /* Alle Reiter sichtbar (Umbruch statt verstecktem Seitwärts-Scrollen) */
  .rl-tabs, .rl-subtabs { flex-wrap: wrap; overflow: visible; }
  .rl-me-stats, .rl-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Kompakter Baum mit vollständigen Namen: Platz, Vorname, Nachname. Breiter als das Display → seitlich verschiebbar, startet zentriert. */
  .rl-tree-card { padding-inline: 10px; }
  .rl-tree-card > .rl-card-head, .rl-tree-card > .rl-legend, .rl-tree-card > .rl-pyramid-info, .rl-tree-card > .rl-scroll-hint { margin-inline: 6px; }
  .rl-pyramid-scroll { margin-inline: 0; padding: 14px 4px 12px; -webkit-overflow-scrolling: touch; }
  .rl-pyramid-scroll.is-scrollable { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
  .rl-pyramid { --slot-min: 66px; --gap: 5px; }
  .rl-slot { flex: 0 0 66px; min-width: 0; }
  .rl-chip { padding: 16px 3px 7px; border-radius: 11px; min-height: 62px; justify-content: flex-start; }
  .rl-chip .rl-avatar { display: none; }
  .rl-chip-rec { margin-top: 3px; font-size: .6rem; letter-spacing: 0; }
  .rl-chip-pos { top: 3px; left: 0; right: 0; font-size: .6rem; text-align: center; font-family: inherit; font-weight: 800; }
  .rl-chip-name { margin-top: 0; }
  .rl-chip-first { font-size: .64rem; }
  .rl-chip-last { font-size: .68rem; letter-spacing: 0; }
  .rl-chip.is-top1::before { top: -12px; font-size: .9rem; }
  .rl-chip.is-busy::after { top: 4px; right: 4px; width: 6px; height: 6px; box-shadow: none; }
  .rl-chip-free { margin-top: 6px; font-size: .58rem; }
  .rl-duel { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rl-duel-vs { padding: 0; text-align: center; }
  .rl-result { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; }
  .rl-log-item { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .rl-events li { grid-template-columns: minmax(0, 1fr); }
  .rl-sort-item { grid-template-columns: 12px 24px minmax(0, 1fr) auto auto; gap: 8px; padding: 8px; }
  .rl-sort-item > .rl-avatar { display: none; }
  .rl-sort-btns .rl-icon-btn { width: 34px; height: 34px; }
  .rl-table th, .rl-table td { padding-inline: 7px; }
  .rl-defs { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rl-defs dd { margin-bottom: 8px; }
  .rl-paras li { padding-left: 44px; }
}
@media (max-width: 620px) {
  .hide-sm { display: none; }
  .rl-card-head { align-items: flex-start; }
  .rl-search, .rl-search input { width: 100%; }
  .rl-filter { width: 100%; }
  .rl-filter .field { flex: 1 1 140px; }
  .rl-tabs a { padding: 8px 13px; font-size: .82rem; }
  .rl-vs.is-big { justify-content: flex-start; }
  .rl-avatar.is-xl { width: 80px; height: 80px; border-radius: 20px; }
  .rl-player { gap: 9px; }
}
@media (max-width: 380px) {
  .rl-slot { flex-basis: 62px; }
  .rl-pyramid { --slot-min: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-chip, a.rl-chip:hover, .rl-chip.is-selected { transition: none; transform: none; }
}
/* Formular-Feinschliff */
.rl-form .field, .rl-filter .field { align-content: start; }
.rl-radio-list label, .rl-check, .rl-more-panel label { text-transform: none; letter-spacing: 0; font-size: .98rem; font-weight: 500; color: var(--copy-strong, #d5dce0); }
.rl-radio-list label strong { color: #fff; }
/* Lange deutsche Wörter auch bei großer Schrift sauber umbrechen */
.rl-page p, .rl-page li, .rl-page dd, .rl-stat span, .rl-card-note { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }

/* Vollständige Namen statt Kürzel */
.rl-scroll-hint { display: none; margin: 4px 0 0; color: var(--copy-soft, #9eabb2); font-size: .8rem; text-align: center; }
@media (max-width: 720px) {
  .rl-pyramid-scroll.is-scrollable + .rl-scroll-hint { display: block; }
}
.rl-result-line .rl-plink strong { font-weight: 750; }
.rl-hero h1 { overflow-wrap: anywhere; }
.rl-log-head strong { color: #fff; }
.rl-pw-admin { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(220,240,248,.08); }
.rl-pw-admin h3 { margin: 0 0 6px; color: #fff; font-size: 1rem; }
.rl-pw-hint { margin: 12px 0 0; font-size: .9rem; }
.rl-pw-hint a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }

/* Oktober 2026: Rangliste nur für Mitglieder, Bilanz statt ELO, eigene Fotos */
.rl-members-note { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 22px; border-color: rgba(155,234,0,.28); background: radial-gradient(circle at 0% 0%, rgba(155,234,0,.1), transparent 55%), linear-gradient(160deg, rgba(14,28,36,.96), rgba(4,12,17,.97)); }
.rl-members-note > div { max-width: 760px; }
.rl-members-note h2 { margin: 6px 0 0; }
.rl-members-note p { margin: 10px 0 0; color: var(--copy); line-height: 1.7; }
.rl-login-grid .rl-members-note { flex-direction: column; align-items: flex-start; justify-content: center; margin-bottom: 0; }
.rl-legend .rl-legend-rec b { color: var(--lime); font-weight: 800; font-variant-numeric: tabular-nums; }
.rl-table th.num, .rl-table td.num { white-space: nowrap; }
.rl-form-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 14px; }
.rl-bilanz { margin-top: 4px; }
.rl-avatar.is-photo { width: 100%; height: 100%; border-radius: 0; border: 0; background: rgba(155,234,0,.05); font-size: 2.2rem; }
.rl-avatar.is-photo img { object-position: center; }
.rl-photo-editor { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 18px 24px; align-items: start; margin-top: 12px; }
.rl-photo-frame { position: relative; width: 216px; aspect-ratio: 144 / 156; overflow: hidden; border-radius: 14px; border: 1px solid rgba(155,234,0,.3); background: #071117; box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.rl-photo-frame.is-editing { cursor: grab; touch-action: none; }
.rl-photo-frame.is-editing:active { cursor: grabbing; }
.rl-photo-frame:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.rl-photo-view { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.rl-photo-controls { display: grid; gap: 12px; }
.rl-photo-controls .field { margin: 0; }
.rl-photo-zoom input[type="range"] { width: 100%; accent-color: var(--lime); }
.rl-photo-form [hidden] { display: none !important; } /* Zoom und Hinweis erst nach der Bildauswahl */
.rl-photo-remove { margin-top: 12px; }
.rl-photo-admin .rl-photo-editor { grid-template-columns: 160px minmax(0, 1fr); }
.rl-photo-admin .rl-photo-frame { width: 160px; }
@media (max-width: 620px) {
  .rl-photo-editor, .rl-photo-admin .rl-photo-editor { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  /* „Ergebnis eintragen | Forderung aussprechen“: beide Reiter immer ganz sichtbar (statt seitlich verschoben) */
  .rl-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .rl-switch a { justify-content: center; padding: 8px 10px; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ---------- Handy: Tabelle und Ranglistenbaum (Oktober 2026) ---------- */
/* Kurzformen für schmale Bildschirme, z. B. „S:N“ statt „Siege:Niederlagen“ */
.rl-short { display: none; }
abbr.rl-short { text-decoration: none; cursor: help; }
/* Namen in Tabellen nur zwischen Vor- und Nachname umbrechen, nie mitten im Wort.
   (Sonst schrumpft die Namensspalte am Handy auf wenige Pixel und die Namen stehen Buchstabe für Buchstabe untereinander.) */
.rl-table :where(a, strong, small) { overflow-wrap: normal; }
/* Namen nie mit Bindestrich trennen („An-dreas“), sondern nur zwischen Vor- und Nachname umbrechen */
.rl-page strong, .rl-page .rl-move, .rl-page .rl-vs { -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 620px) {
  .rl-long { display: none; }
  .rl-short { display: inline; }
  /* Trendpfeil unter die Platzzahl – so bleibt mehr Platz für die Namen */
  .rl-table .rl-pos .rl-trend { display: block; width: max-content; margin: 2px 0 0; font-size: .62rem; }
}
/* Handy: Der ganze Baum passt auf den Bildschirm. Kästchen und Schrift wachsen mit der verfügbaren Breite
   (--cols = breiteste Reihe; vom Rest der untersten Reihe wird nur der erste freie Platz gezeigt).
   Erst unter 42 px pro Kästchen (sehr schmale Geräte) wird wieder seitlich gewischt. */
@media (max-width: 720px) {
  .rl-slot.is-extra-free { display: none; }
}
@media (max-width: 430px) {
  .rl-table .rl-avatar.is-sm { width: 26px; height: 26px; font-size: .6rem; }
  .rl-table .rl-player { gap: 7px; }
  .rl-table .rl-player strong { font-size: .94rem; }
}
@media (max-width: 380px) {
  .rl-table th, .rl-table td { padding-inline: 5px; }
}
@supports (width: 1cqi) {
  @media (max-width: 720px) {
    .rl-tree-card > .rl-card-head, .rl-tree-card > .rl-legend, .rl-tree-card > .rl-pyramid-info, .rl-tree-card > .rl-scroll-hint { margin-inline: 6px; }
    .rl-pyramid-scroll { container-type: inline-size; margin-inline: -6px; padding: 18px 0 12px; }
    .rl-pyramid { --gap: 3px; --slot: clamp(42px, calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols)), 66px); min-width: calc(var(--cols) * var(--slot) + (var(--cols) - 1) * var(--gap)); }
    .rl-slot { flex: 0 0 var(--slot); }
    .rl-chip { padding: calc(var(--slot) * .26) 2px calc(var(--slot) * .1); min-height: 0; border-radius: calc(var(--slot) * .17); }
    .rl-chip-pos { top: calc(var(--slot) * .04); font-size: calc(var(--slot) * .14); }
    .rl-chip-first { font-size: calc(var(--slot) * .155); }
    .rl-chip-last { font-size: calc(var(--slot) * .165); }
    .rl-chip-rec { margin-top: 2px; font-size: calc(var(--slot) * .14); }
    .rl-chip-free { margin-top: 2px; font-size: calc(var(--slot) * .13); }
    .rl-chip.is-top1::before { top: calc(var(--slot) * -.22); font-size: calc(var(--slot) * .21); }
    .rl-chip.is-busy::after { top: 3px; right: 3px; width: 5px; height: 5px; }
  }
}
/* Handy und Tablet mit Touch: Der Baum nutzt die volle Bildschirmbreite (größere Schrift im Baum).
   Die Karte reicht bis an den Rand, ihr Text bleibt bündig mit den anderen Karten. Nur bei Touch-Geräten,
   weil 100vw am Desktop die Bildlaufleiste einschließt. */
@supports (width: 1cqi) {
  @media (max-width: 720px) and (hover: none) and (pointer: coarse) {
    .rl-tree-card { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50% + 16px); border-radius: 0; border-inline-width: 0; }
    .rl-tree-card > .rl-card-head, .rl-tree-card > .rl-legend, .rl-tree-card > .rl-pyramid-info, .rl-tree-card > .rl-scroll-hint { margin-inline: 0; }
    .rl-tree-card .rl-pyramid-scroll { margin-inline: calc(50% - 50vw + 4px); }
  }
}

/* ---------- Fotos erst nach Freigabe durch den Admin (26.10.2026) ---------- */
/* Zähler am Reiter, z. B. „Verwaltung 2“ = zwei Fotos warten auf Freigabe */
.rl-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px; border-radius: 999px; background: var(--rl-gold); color: #1d1500; font-size: .7rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.rl-tabs a.is-active .rl-count, .rl-subtabs a.is-active .rl-count { background: #071000; color: var(--rl-gold); }
/* „Mein Konto“: eingereichtes Foto wartet auf Freigabe */
.rl-photo-status { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px 20px; align-items: start; margin: 14px 0 6px; padding: 16px; border: 1px solid rgba(244,195,77,.32); border-radius: 14px; background: rgba(244,195,77,.05); }
.rl-photo-thumb { display: block; width: 96px; aspect-ratio: 144 / 156; overflow: hidden; border-radius: 10px; border: 1px solid rgba(220,240,248,.16); background: #071117; }
.rl-photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-photo-status-text p { margin: 0 0 10px; color: var(--copy, #d5dce0); line-height: 1.6; }
.rl-photo-status-text p:first-child { margin-bottom: 8px; }
/* Verwaltung → Fotos: bisher | neu eingereicht, Freigeben / Ablehnen */
.rl-review-list { display: grid; gap: 14px; margin-top: 14px; }
.rl-review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 24px; align-items: start; padding: 18px; border: 1px solid rgba(220,240,248,.1); border-radius: 16px; background: rgba(255,255,255,.02); }
.rl-review-pics { display: flex; align-items: center; gap: 10px; }
.rl-review-pics figure { display: grid; gap: 6px; justify-items: center; margin: 0; }
.rl-review-pics figcaption { color: var(--copy-soft, #9eabb2); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rl-review-pics .is-new figcaption { color: var(--rl-gold); }
.rl-review-frame { display: grid; place-items: center; width: 120px; aspect-ratio: 144 / 156; overflow: hidden; border-radius: 12px; border: 1px solid rgba(220,240,248,.14); background: #071117; }
.rl-review-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-review-pics .is-new .rl-review-frame { border-color: rgba(244,195,77,.55); box-shadow: 0 0 0 3px rgba(244,195,77,.1); }
.rl-review-arrow { color: var(--copy-soft, #9eabb2); font-size: 1.3rem; }
.rl-review-body { min-width: 0; }
.rl-review-body h3 { margin: 0 0 4px; color: #fff; font-size: 1.15rem; }
.rl-review-body > p { margin: 0 0 14px; }
.rl-review-approve { margin-bottom: 12px; }
.rl-review-reject { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin: 0; }
.rl-review-reject .field { flex: 1 1 260px; gap: 5px; margin: 0; }
.rl-review-reject .field > span { color: var(--copy-soft, #9eabb2); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rl-review-reject .field > span small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.rl-review-reject input { min-height: 44px; padding: 10px 13px; }
/* Freigegebene Fotos */
.rl-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; margin-top: 14px; }
.rl-photo-tile { display: grid; gap: 8px; justify-items: start; align-content: start; margin: 0; }
.rl-photo-tile .rl-review-frame { width: 100%; max-width: 160px; }
.rl-photo-tile figcaption strong { display: block; color: #fff; line-height: 1.3; }
.rl-photo-tile figcaption small { color: var(--copy-soft, #9eabb2); }
@media (max-width: 620px) {
  .rl-review { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .rl-review-frame { width: 104px; }
  .rl-photo-status { grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
  .rl-photo-thumb { width: 76px; }
  .rl-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Forderungen als Text für die WhatsApp-Gruppe (26.10.2026) ---------- */
.rl-share { display: grid; gap: 8px; margin-top: 16px; padding: 12px 14px 14px; border: 1px dashed rgba(155,234,0,.32); border-radius: 12px; background: rgba(155,234,0,.035); }
.rl-share-label { color: var(--copy-soft, #9eabb2); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rl-share-text { display: block; width: 100%; min-height: 0; max-height: 22em; margin: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #050e14; color: #e7eef0; font: inherit; font-size: .9rem; line-height: 1.5; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; field-sizing: content; }
.rl-share-text:focus { outline: none; border-color: rgba(151,232,0,.65); box-shadow: 0 0 0 3px rgba(151,232,0,.07); }
.rl-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rl-share-actions [hidden] { display: none !important; }
.rl-share-done { color: var(--lime); font-size: .84rem; font-weight: 700; }
.rl-me-action .rl-share { margin-top: 14px; }
.rl-share + .rl-card-note { margin-top: 14px; }

/* ---------- Forderungsphase 2026: jeder gegen jeden, ELO sichtbar, Baum als Vorschau (27.10.2026) ---------- */
.rl-phase-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; border-color: rgba(126,216,255,.38); background: radial-gradient(ellipse at 0% 0%, rgba(126,216,255,.13), transparent 55%), var(--rl-card); }
.rl-phase-banner .kicker, .rl-phase-rules .kicker, .rl-tree-card.is-preview .kicker { color: var(--rl-cyan); }
.rl-phase-banner .rl-checklist { max-width: 900px; }
.rl-phase-banner .rl-checklist li::before, .rl-phase-rules .rl-checklist li::before { border-color: var(--rl-cyan); }
.rl-phase-banner .rl-checklist strong, .rl-phase-rules .rl-checklist strong { color: #fff; }
.rl-phase-banner .cta-row { margin: 0; }
.rl-phase-rules { border-color: rgba(126,216,255,.4); scroll-margin-top: 92px; }
.rl-tree-card.is-preview { border-style: dashed; border-color: rgba(126,216,255,.32); }
/* Noch ohne Spiel in der Forderungsphase: steigt am Ende ein */
.rl-chip.is-nogame { border-style: dashed; background: rgba(5,13,19,.55); }
.rl-chip.is-nogame .rl-chip-first, .rl-chip.is-nogame .rl-chip-last { opacity: .72; }
.rl-chip.is-nogame .rl-chip-rec { color: var(--copy-soft, #9eabb2); }
.rl-legend .lg-nogame { border-style: dashed; background: transparent; }
.rl-table tr.rl-sep td { padding: 18px 10px 8px; border-bottom-color: rgba(126,216,255,.25); color: var(--rl-cyan); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rl-table tbody tr.rl-sep:hover { background: transparent; }
.rl-table tr.is-nogame td { color: var(--copy-soft, #9eabb2); }
.rl-table tr.is-nogame .rl-pos > span:first-child, .rl-table tr.is-nogame .rl-player strong { color: var(--copy-strong, #d5dce0); }
.rl-table td.rl-elo { color: #fff; font-weight: 800; }
.rl-pill.is-declined { border-color: rgba(220,240,248,.25); color: #c3cdd2; }
.rl-pill.is-test { border-color: rgba(126,216,255,.4); color: var(--rl-cyan); }
.rl-result.is-test .rl-result-line, .rl-result.is-test time { opacity: .6; }
@media (max-width: 720px) {
  .rl-phase-banner { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- Verwaltung → Teams (27.10.2026) ---------- */
.rl-team-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 8px; }
.rl-team-summary a { display: block; padding: 12px 14px; border: 1px solid rgba(155,234,0,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(155,234,0,.07), rgba(155,234,0,.015)); color: inherit; transition: border-color .2s; }
.rl-team-summary a:hover { border-color: rgba(155,234,0,.5); }
.rl-team-summary strong { display: block; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; font-size: 1.4rem; line-height: 1.1; color: #fff; }
.rl-team-summary span { display: block; margin-top: 4px; color: var(--copy-soft, #9eabb2); font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.rl-team-head { margin: 18px 0 10px; color: #fff; font-size: 1.05rem; scroll-margin-top: 92px; }
.rl-team-head small { margin-left: 8px; color: var(--copy-soft, #9eabb2); font-size: .8rem; font-weight: 700; }
.rl-team-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rl-team-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 8px 10px; border: 1px solid rgba(220,240,248,.08); border-radius: 12px; background: rgba(255,255,255,.018); }
.rl-team-list .rl-player small { color: var(--rl-gold); }
.rl-seg.rl-team-seg { flex-wrap: nowrap; gap: 6px; }
.rl-team-seg label { min-height: 40px; min-width: 52px; padding: 6px 12px; font-size: .9rem; }
@media (max-width: 620px) {
  .rl-team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-team-list li { padding: 8px; }
  .rl-team-seg label { min-width: 46px; padding: 6px 8px; }
}
/* Handy: „Ablehnen“/„Zurückziehen“ neben „Ergebnis eintragen“ ebenfalls in voller Breite */
@media (max-width: 620px) {
  .rl-me-action .cta-row > form.rl-inline { flex: 1 1 100%; }
  .rl-me-action .cta-row > form.rl-inline .btn { width: 100%; }
}
/* Verwaltung → Teams: Speichern bleibt beim Scrollen durch die lange Liste sichtbar */
.rl-sticky-save { position: sticky; bottom: 12px; z-index: 5; margin-top: 18px; padding: 10px; border: 1px solid rgba(155,234,0,.22); border-radius: 14px; background: rgba(4,12,17,.92); box-shadow: 0 14px 34px rgba(0,0,0,.4); backdrop-filter: blur(6px); }
/* Sehr schmale Handys (320 px): Spalte „Spiele“ ausblenden – die Zahl steckt in Siege:Niederlagen, so passt die Tabelle mit ELO */
@media (max-width: 359px) {
  .rl-table .rl-col-games { display: none; }
}
