/* SpeedShot Team-Cloud – Oberfläche nach dem freigegebenen Entwurf (/root/marketing/teamcloud/design, 08.10.2026).
   Alle Teamfarben über --tc-* (je Tenant per <style> im Layout gesetzt); Rest neutral. */
@import url("fonts.css");

:root{
  /* Teamfarben (aus SpeedShot-Teamdaten, im Team-Admin änderbar) */
  --tc-primary:#FFD200;      /* Flächen: Buttons, Logo-Platte, Auswahl */
  --tc-on-primary:#0A1A3A;   /* Text auf Primär – Kontrast >= 4.5:1 */
  --tc-secondary:#0A2A5E;    /* Zweitfarbe: Verläufe, Login-Band */
  --tc-accent:#FFD200;       /* Teamfarbe als Text/Icon auf dunklem Grund (aufgehellt, falls nötig) */

  /* Neutral (dunkle Arbeitsoberfläche, Bilder stehen im Vordergrund) */
  --bg:#0C0D10; --surface:#15171C; --surface-2:#1C1F26; --surface-3:#252932;
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.14);
  --text:#F3F4F6; --muted:#9BA1AC; --faint:#6B717C;
  --live:#FF3B3B; --ok:#3DDC97; --warn:#FFB547; --info:#6CB2FF;

  --tc-soft:color-mix(in srgb,var(--tc-primary) 14%,transparent);
  --tc-line:color-mix(in srgb,var(--tc-primary) 45%,transparent);

  --f-display:"Barlow Condensed","Arial Narrow",sans-serif;
  --f-ui:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r-s:8px; --r-m:12px; --r-l:18px;
  --side:248px; --top:60px; --tab:64px;
  --shadow:0 20px 50px -20px rgba(0,0,0,.7);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.5 var(--f-ui);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a{color:inherit;text-decoration:none}
.num{font-family:var(--f-display);font-variant-numeric:tabular-nums lining-nums;font-weight:700;letter-spacing:.01em}
.ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ico.s{width:16px;height:16px}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- App-Schale ---------- */
.app{min-height:100vh}
.stripe{height:3px;background:linear-gradient(90deg,var(--tc-primary),var(--tc-primary) 60%,var(--tc-secondary))}
.side{display:none}
.top{position:sticky;top:0;z-index:50;height:var(--top);display:flex;align-items:center;gap:12px;padding:0 16px;background:rgba(12,13,16,.86);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.top .team-mini{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.top .team-mini strong{font:700 19px/1 var(--f-display);text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search{display:none}
.icon-btn{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--muted);position:relative;flex:none}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn .dot{position:absolute;top:9px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--tc-primary);box-shadow:0 0 0 2px var(--bg)}
/* Schritt 19 (KI-Guthaben): Saldo-Badge in der Kopfzeile, Klick -> Guthaben & Tarif. */
.credits-badge{width:auto;height:32px;padding:0 10px 0 8px;border-radius:999px;gap:6px;background:var(--surface-2);color:var(--text);font:600 13px/1 var(--f-ui)}
.credits-badge .ico{width:16px;height:16px}
.credits-badge:hover{background:var(--surface-3)}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font:600 13px/1 var(--f-ui);background:var(--surface-3);color:var(--text);flex:none}
.avatar.sm{width:26px;height:26px;font-size:11px}
.avatars{display:flex}.avatars .avatar{box-shadow:0 0 0 2px var(--surface);margin-left:-8px}.avatars .avatar:first-child{margin-left:0}

.logo-plate{width:38px;height:38px;border-radius:10px;background:var(--tc-primary);display:grid;place-items:center;flex:none;overflow:hidden}
.logo-plate img{width:84%;height:84%;object-fit:contain}
.logo-plate.lg{width:56px;height:56px;border-radius:14px}
.logo-plate .mono{font:800 16px/1 var(--f-display);color:var(--tc-on-primary);letter-spacing:.02em}
.logo-plate.lg .mono{font-size:22px}

.main{padding:20px 16px calc(var(--tab) + 90px)}
.tabbar{position:fixed;z-index:60;left:0;right:0;bottom:0;height:var(--tab);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(16,17,21,.94);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:500;color:var(--faint)}
.tabbar a.on{color:var(--text)}
.tabbar a.on .ico{color:var(--tc-accent)}

@media (min-width:1024px){
  .app{display:grid;grid-template-columns:var(--side) 1fr}
  .stripe{grid-column:1/-1}
  .side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--line);padding:16px 12px}
  .tabbar{display:none}
  .top{padding:0 28px;gap:16px}
  .top .team-mini{display:none}
  .search{display:flex;align-items:center;gap:10px;flex:1;max-width:520px;height:40px;padding:0 12px;border-radius:10px;background:var(--surface);border:1px solid var(--line);color:var(--faint)}
  .search input{background:none;border:0;outline:0;flex:1;color:var(--text);min-width:0}
  .search kbd{font:500 11px var(--f-ui);padding:2px 6px;border-radius:6px;border:1px solid var(--line-2);color:var(--muted)}
  .top .spacer{flex:1}
  .main{padding:28px 28px 60px;max-width:1440px}
}
.team-switch{display:flex;align-items:center;gap:12px;padding:8px;border-radius:12px;margin-bottom:6px}
.team-switch:hover{background:var(--surface-2)}
.team-switch div{min-width:0;flex:1}
.team-switch strong{display:block;font:700 18px/1.05 var(--f-display);text-transform:uppercase;letter-spacing:.02em}
.team-switch small{color:var(--muted);font-size:12px}
.nav-label{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);padding:18px 12px 6px}
.nav a{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:10px;color:var(--muted);font-weight:500;position:relative}
.nav a:hover{background:var(--surface-2);color:var(--text)}
.nav a.on{background:var(--surface-2);color:var(--text)}
.nav a.on::before{content:"";position:absolute;left:-12px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--tc-primary)}
.nav a.on .ico{color:var(--tc-accent)}
.nav a .count{margin-left:auto;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
.nav a .pill-n{margin-left:auto;font-size:11px;font-weight:700;min-width:20px;height:20px;padding:0 6px;border-radius:10px;display:grid;place-items:center;background:var(--tc-primary);color:var(--tc-on-primary)}
.side .me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border-top:1px solid var(--line)}
.side .me small{display:block;color:var(--muted);font-size:12px}
.side .me strong{font-size:14px;font-weight:600}

/* ---------- Bausteine ---------- */
.h-page{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin-bottom:20px}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--tc-accent)}
h1,h2,h3{margin:0;font-family:var(--f-display);text-transform:uppercase;letter-spacing:.01em;line-height:.95}
h1{font-size:40px;font-weight:800}
h2{font-size:26px;font-weight:700}
h3{font-size:20px;font-weight:700}
@media (min-width:1024px){h1{font-size:56px}h2{font-size:30px}}
.sec{margin-top:36px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.sec-h a{font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.sec-h a:hover{color:var(--text)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;font-weight:600;font-size:14px;white-space:nowrap;background:var(--surface-3);color:var(--text);border:1px solid transparent;transition:transform .15s,background .15s}
.btn:hover{background:#2d323c}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--tc-primary);color:var(--tc-on-primary)}
.btn.primary:hover{filter:brightness(1.07)}
.btn.ghost{background:transparent;border-color:var(--line-2)}
.btn.ghost:hover{background:var(--surface-2)}
.btn.lg{height:48px;padding:0 22px;font-size:15px;border-radius:12px}
.btn.block{width:100%}
.btn.sm{height:32px;padding:0 12px;font-size:13px;border-radius:8px}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l)}
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-3);color:var(--muted);white-space:nowrap}
.pill.tc{background:var(--tc-soft);color:var(--tc-accent)}
.pill.ok{background:rgba(61,220,151,.12);color:var(--ok)}
.pill.warn{background:rgba(255,181,71,.12);color:var(--warn)}
.pill.info{background:rgba(108,178,255,.12);color:var(--info)}
.live{display:inline-flex;align-items:center;gap:7px;height:24px;padding:0 10px;border-radius:999px;background:var(--live);color:#fff;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.live::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:pulse 1.6s infinite}
@keyframes pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.live::before{animation:none}}

.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;margin:0 -16px;padding-left:16px;padding-right:16px}
.chips::-webkit-scrollbar{display:none}
@media (min-width:1024px){.chips{margin:0;padding-left:0;padding-right:0;flex-wrap:wrap}}
.chip{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);font-size:13px;font-weight:500;color:var(--muted);white-space:nowrap;flex:none}
.chip:hover{color:var(--text);border-color:rgba(255,255,255,.25)}
.chip.on{background:var(--text);color:#0c0d10;border-color:var(--text)}
.chip .ico{width:16px;height:16px}
.chip .n{font-variant-numeric:tabular-nums;opacity:.6}

.seg{display:inline-flex;padding:3px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line)}
.seg button{height:32px;padding:0 12px;border-radius:8px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.seg button.on{background:var(--surface-3);color:var(--text);box-shadow:0 1px 0 rgba(255,255,255,.06) inset}

/* Spiel-Kopf mit Teams */
.vs{display:flex;align-items:center;gap:10px}
.badge-team{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);font:800 13px/1 var(--f-display);color:var(--text);flex:none;overflow:hidden}
.badge-team.home{background:var(--tc-primary);color:var(--tc-on-primary)}
.badge-team img{width:80%;height:80%;object-fit:contain}
.badge-team.lg{width:52px;height:52px;font-size:17px}

/* ---------- FEED ---------- */
.feed-hero{position:relative;border-radius:var(--r-l);overflow:hidden;min-height:340px;display:flex;align-items:flex-end;isolation:isolate}
.feed-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.feed-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,0) 20%,rgba(8,9,12,.92) 92%),linear-gradient(90deg,rgba(8,9,12,.55),transparent 60%)}
.feed-hero .in{padding:20px;width:100%}
.feed-hero .meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.feed-hero h2{font-size:38px;line-height:.92;max-width:14ch}
.feed-hero .stats{display:flex;gap:22px;margin:14px 0 18px;color:var(--muted);font-size:13px}
.feed-hero .stats .num{display:block;font-size:30px;color:var(--text);line-height:1}
.feed-hero .acts{display:flex;gap:8px;flex-wrap:wrap}
@media (min-width:1024px){.feed-hero{min-height:440px}.feed-hero .in{padding:36px}.feed-hero h2{font-size:64px}}

.feed-grid{display:grid;gap:24px}
@media (min-width:1024px){.feed-grid{grid-template-columns:minmax(0,1fr) 360px;gap:28px}}
.feed-grid>*,.adm>*,.ev-head>*,.pool-head>*{min-width:0}
@media (min-width:1024px){.feed-grid{grid-template-columns:minmax(0,1fr) 360px;gap:28px}}
.updates{display:flex;flex-direction:column}
.upd{display:grid;grid-template-columns:40px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.upd:first-child{padding-top:4px}
.upd .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);color:var(--muted)}
.upd .ic.tc{background:var(--tc-soft);color:var(--tc-accent)}
.upd .ic.liga{background:rgba(108,178,255,.12);color:var(--info)}
.upd .ic.ok{background:rgba(61,220,151,.12);color:var(--ok)}
.upd .who{font-size:13px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.upd .who b{color:var(--text);font-weight:600}
.upd p{margin:3px 0 0;font-size:15px}
.upd p strong{font-weight:600}
.upd .thumbs{display:flex;gap:6px;margin-top:10px}
.upd .thumbs img{width:72px;height:52px;border-radius:8px;object-fit:cover}
.upd .thumbs .more{width:72px;height:52px;border-radius:8px;background:var(--surface-2);display:grid;place-items:center;font-size:13px;color:var(--muted);font-weight:600}
.upd .row-acts{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.upd.req{background:linear-gradient(90deg,var(--tc-soft),transparent 70%);border-radius:14px;padding:16px 14px;border:1px solid var(--tc-line);margin:8px 0}

.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-radius:var(--r-l);overflow:hidden;border:1px solid var(--line)}
.kpi{background:var(--surface);padding:14px}
.kpi .num{font-size:30px;line-height:1;display:block}
.kpi small{color:var(--muted);font-size:12px;line-height:1.3;display:block;margin-top:6px}
.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quick a{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);font-weight:600;font-size:14px}
.quick a:hover{border-color:var(--line-2);background:var(--surface-2)}
.quick a .ico{color:var(--tc-accent)}
.quick a small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:2px}

.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.game{border-radius:16px;overflow:hidden;background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;transition:border-color .2s,transform .2s}
.game:hover{border-color:var(--line-2);transform:translateY(-2px)}
.game .cover{aspect-ratio:16/9;position:relative;overflow:hidden}
.game .cover img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.game:hover .cover img{transform:scale(1.04)}
.game .cover .tl{position:absolute;left:10px;top:10px;display:flex;gap:6px}
.game .cover .cnt{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:8px;background:rgba(0,0,0,.65);backdrop-filter:blur(6px);font-size:13px;font-weight:600}
.game .body{padding:14px;display:flex;flex-direction:column;gap:6px}
.game .body .t{font:700 20px/1 var(--f-display);text-transform:uppercase}
.game .body .s{font-size:13px;color:var(--muted)}
.game .foot{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
@media (max-width:640px){.games.scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px;scrollbar-width:none}.games.scroll .game{flex:0 0 78%;scroll-snap-align:start}}

/* ---------- GALERIE ---------- */
.ev-head{display:grid;gap:18px;margin-bottom:18px}
.ev-head .match{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ev-head .match .x{font:600 16px var(--f-display);color:var(--faint)}
.ev-head h1{font-size:34px}
.ev-head .facts{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:13px}
.ev-head .facts span{display:inline-flex;align-items:center;gap:6px}
@media (min-width:1024px){.ev-head{grid-template-columns:1fr auto;align-items:end}.ev-head h1{font-size:48px}}
.toolbar{position:sticky;top:var(--top);z-index:30;background:rgba(12,13,16,.9);backdrop-filter:blur(12px);padding:10px 0;margin-bottom:12px;display:flex;flex-direction:column;gap:10px}
@media (min-width:1024px){.toolbar{flex-direction:row;align-items:center;justify-content:space-between}}
.toolbar .right{display:flex;gap:8px;align-items:center}
.grid{columns:2 160px;column-gap:8px}
@media (min-width:1024px){.grid{columns:4 240px;column-gap:10px}.grid.big{columns:3 300px}}
.tile{break-inside:avoid;margin-bottom:8px;position:relative;border-radius:10px;overflow:hidden;background:var(--surface-2);cursor:zoom-in}
@media (min-width:1024px){.tile{margin-bottom:10px}}
.tile img{width:100%;height:auto;transition:transform .4s,opacity .2s}
.tile:hover img{transform:scale(1.025)}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),transparent 30%,transparent 65%,rgba(0,0,0,.6));opacity:.0;transition:opacity .2s;pointer-events:none}
.tile:hover::after,.selecting .tile::after{opacity:1}
.tile .sel{position:absolute;z-index:2;left:8px;top:8px;width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.9);background:rgba(0,0,0,.25);display:grid;place-items:center;opacity:0;transition:opacity .15s,background .15s;cursor:pointer}
.tile .sel .ico{width:16px;height:16px;stroke-width:3;opacity:0;color:var(--tc-on-primary)}
.tile:hover .sel,.selecting .tile .sel{opacity:1}
.tile.on .sel{background:var(--tc-primary);border-color:var(--tc-primary);opacity:1}
.tile.on .sel .ico{opacity:1}
.tile.on{outline:3px solid var(--tc-primary);outline-offset:-3px}
.tile.on img{opacity:.85}
.tile .star{position:absolute;z-index:2;right:8px;top:8px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.45);color:#fff}
.tile .star.dl{background:var(--tc-primary);color:var(--tc-on-primary);opacity:0;transition:opacity .2s}.tile:hover .star.dl{opacity:1}@media (hover:none){.tile .star.dl{opacity:1}}
.tile .star.dl .ico{fill:none;stroke:currentColor}
.tile .star .ico{width:15px;height:15px;fill:var(--tc-primary);stroke:var(--tc-primary)}
.tile .tags{position:absolute;z-index:2;left:8px;right:8px;bottom:8px;display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.tag{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 7px;border-radius:6px;background:rgba(10,11,14,.72);backdrop-filter:blur(6px);font-size:11px;font-weight:600;color:#fff;white-space:nowrap}
.tag .d{width:6px;height:6px;border-radius:50%}
.tag .d.liga{background:var(--info)}.tag .d.presse{background:var(--ok)}.tag .d.sponsor{background:var(--warn)}.tag .d.spieler{background:var(--tc-accent)}.tag .d.pruefen{background:var(--warn)}.tag .d.org{background:var(--info)}
.lb .pill.warn .fix{display:inline-flex;gap:4px;margin-left:4px}
.lb .pill.warn select{background:transparent;border:0;color:inherit;font-size:11px;font-weight:600}
.lb .pill.warn button{background:transparent;border:0;color:inherit;cursor:pointer;display:inline-flex;padding:2px}
.tag.nr{background:var(--tc-primary);color:var(--tc-on-primary);font-family:var(--f-display);font-size:13px}

/* Schritt 14: Video-Kacheln (Dauer/Play-Icon, "wird umgewandelt"-Platzhalter) */
.tile-video-processing{width:100%;aspect-ratio:4/3;display:grid;place-items:center;background:var(--surface-2);color:var(--muted)}
.tile-video-processing .ico{width:28px;height:28px;stroke:currentColor;fill:none;opacity:.6;animation:tc-pulse 1.4s ease-in-out infinite}
@keyframes tc-pulse{0%,100%{opacity:.35}50%{opacity:.75}}
.vbadge{position:absolute;z-index:2;left:8px;top:8px;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:7px;background:rgba(10,11,14,.72);backdrop-filter:blur(6px);color:#fff;font-size:11px;font-weight:700}
.vbadge .ico{width:12px;height:12px;fill:#fff;stroke:none}
.lb video.lbvideo{max-width:100%;max-height:100%;background:#000;border-radius:8px}
/* Schritt 14: "Link teilen" oeffnet sich AUS der Lightbox heraus (.lb hat
   z-index:150, hoeher als das generische .scrim bei 120) — ohne diese
   Ueberschreibung wuerde das Video der Lightbox das Modal optisch verdecken. */
#medialinkSheet{z-index:160}
.tile .ph{position:absolute;z-index:2;right:8px;bottom:8px;font-size:11px;color:rgba(255,255,255,.8);opacity:0;transition:opacity .2s}
.tile:hover .ph{opacity:1}

.selbar{position:fixed;z-index:70;left:12px;right:12px;bottom:calc(var(--tab) + 12px);display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;border-radius:16px;background:#F3F4F6;color:#0C0D10;box-shadow:0 20px 60px -10px rgba(0,0,0,.8);transform:translateY(140%);opacity:0;transition:transform .3s cubic-bezier(.2,.9,.3,1),opacity .2s}
.selbar.show{transform:none;opacity:1}
.selbar .n{font:800 22px/1 var(--f-display);font-variant-numeric:tabular-nums}
.selbar .lbl{font-size:13px;font-weight:600;margin-right:auto;line-height:1.1}
.selbar .btn{background:#E2E4E8;color:#0C0D10}
.selbar .btn:hover{background:#D5D8DD}
.selbar .btn.primary{background:var(--tc-primary);color:var(--tc-on-primary)}
.selbar .hide-m{display:none}
@media (min-width:1024px){.selbar{left:calc(var(--side) + 50%);transform:translate(-50%,140%) ;right:auto;bottom:24px;width:max-content;max-width:calc(100vw - var(--side) - 40px)}.selbar.show{transform:translate(-50%,0)}.selbar .hide-m{display:inline-flex}.selbar .lbl{margin-right:12px}}
@media (min-width:1024px){.selbar{left:calc(var(--side) + (100vw - var(--side))/2)}}

/* Lightbox */
/* grid-template-columns:minmax(0,1fr) statt des impliziten 'auto' — sonst kann
   die Spalte (Fund 09.10. beim Bearbeiten-Formular am Handy) durch breiten
   Inhalt (z. B. das "Korrigieren zu …"-Dropdown bei "Bitte prüfen") über den
   Viewport hinauswachsen, obwohl .lb selbst per inset:0 auf 390px fixiert ist. */
.lb{position:fixed;inset:0;z-index:150;background:rgba(5,6,8,.96);display:none;grid-template-rows:auto 1fr;grid-template-columns:minmax(0,1fr)}
.lb.show{display:grid}
.lb .bar{display:flex;align-items:center;gap:10px;padding:12px 16px}
.lb .bar .t{flex:1;min-width:0;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb .body{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.lb .stage{display:grid;place-items:center;padding:0 8px;min-height:0;flex:1}
.lb .stage img{max-height:100%;max-width:100%;object-fit:contain;border-radius:6px}
/* Bild immer vollständig sichtbar (Max 09.10.): object-fit:contain + feste Stage-Höhe statt max-height:100% im 1fr-Grid */
.lb .info{flex:none;width:100%;max-height:0;overflow:hidden;transition:max-height .25s ease;background:var(--surface);border-top:1px solid var(--line)}
.lb .info.open{max-height:60vh;overflow-y:auto}
.lb .info .wrap{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 16px}
.lb .info .sec{padding:12px 16px;border-top:1px solid var(--line)}
.lb .info .sec:first-child{border-top:0}
.lb .info .sec h4{margin:0 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700}
.lb .info .sec p{margin:0;font-size:13px;line-height:1.5;color:var(--text);white-space:pre-wrap}
.lb .info .sec .muted-hint{font-size:11px;color:var(--faint);margin-top:6px}
.lb .info .pills{display:flex;gap:6px;flex-wrap:wrap}
.lb .info textarea{width:100%;min-height:64px;resize:vertical;background:var(--surface-2);border:1px solid var(--line-2);border-radius:8px;padding:8px;color:var(--text);font:13px/1.5 inherit;margin-bottom:6px}
.lb .info input.lb-head{width:100%;background:var(--surface-2);border:1px solid var(--line-2);border-radius:8px;padding:8px;color:var(--text);font:600 13px inherit;margin-bottom:6px}
.lb .info dl{display:grid;grid-template-columns:auto 1fr;gap:5px 10px;font-size:12.5px;margin:0}
.lb .info dl dt{color:var(--faint)}
.lb .info dl dd{margin:0;color:var(--text);overflow-wrap:anywhere}
.lb .info .edit-row{display:flex;gap:8px;margin-top:4px}
/* Max-Wunsch 09.10.: Keywords als Chips + Fotograf/Credit + Ort im selben
   Bearbeiten-Formular (s. renderKiSection in app.js). */
.lb .info .kw-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;margin:10px 0 6px}
.lb .info .kw-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;min-height:24px}
.lb .info .kw-chip button{background:transparent;border:0;color:inherit;cursor:pointer;display:inline-flex;padding:0;margin-left:2px;opacity:.75}
.lb .info .kw-chip button:hover{opacity:1}
.ico.xs{width:12px;height:12px}
@media (min-width:1024px){
  .lb .body{flex-direction:row}
  .lb .info{width:360px;max-height:none!important;overflow-y:auto;border-top:0;border-left:1px solid var(--line)}
  #lbInfoToggle{display:none}
}

/* ---------- Dialog / Bottom-Sheet ---------- */
.scrim{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.6);backdrop-filter:blur(3px);display:none;align-items:flex-end;justify-content:center}
.scrim.show{display:flex}
.sheet{width:100%;max-height:92vh;overflow:auto;background:var(--surface);border-radius:22px 22px 0 0;border:1px solid var(--line-2);border-bottom:0;animation:up .3s cubic-bezier(.2,.9,.3,1)}
@keyframes up{from{transform:translateY(30px);opacity:0}}
@media (min-width:768px){.scrim{align-items:center}.sheet{width:640px;border-radius:22px;border-bottom:1px solid var(--line-2)}}
.sheet-h{position:sticky;top:0;background:var(--surface);z-index:2;display:flex;gap:14px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}
.sheet-h .strip{display:flex}
.sheet-h .strip img{width:44px;height:44px;border-radius:8px;object-fit:cover;box-shadow:0 0 0 2px var(--surface);margin-left:-14px}
.sheet-h .strip img:first-child{margin-left:0}
.sheet-h h3{font-size:22px}
.sheet-h small{color:var(--muted);font-size:13px}
.sheet-b{padding:6px 20px 8px}
.step{padding:18px 0;border-bottom:1px solid var(--line)}
.step:last-child{border-bottom:0}
.step-t{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-weight:600}
.step-t .k{width:24px;height:24px;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font:700 14px var(--f-display)}
.rcp{display:grid;gap:8px}
@media (min-width:768px){.rcp{grid-template-columns:1fr 1fr}}
.rc{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;border:1px solid var(--line-2);text-align:left;width:100%}
.rc:hover{background:var(--surface-2)}
.rc .ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--surface-3);flex:none}
.rc div{flex:1;min-width:0}
.rc strong{display:block;font-size:14px}
.rc small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.rc .cb{width:22px;height:22px;border-radius:6px;border:2px solid var(--line-2);display:grid;place-items:center;flex:none}
.rc .cb .ico{width:14px;height:14px;stroke-width:3;opacity:0;color:var(--tc-on-primary)}
.rc.on{border-color:var(--tc-primary);background:var(--tc-soft)}
.rc.on .cb{background:var(--tc-primary);border-color:var(--tc-primary)}
.rc.on .cb .ico{opacity:1}
/* Schritt 18 (Freigabe-Dialog feiner): Gruppen bleiben per Klick wählbar,
   .rc-exp klappt zusätzlich einzelne Empfänger auf (.rc-sub), ohne die
   Gruppen-Auswahl selbst zu verändern. */
.rc-row{display:flex;gap:6px;grid-column:span 1}
.rc-row .rc{flex:1;min-width:0}
.rc-exp{flex:none;width:40px;border-radius:12px;border:1px solid var(--line-2);display:grid;place-items:center;background:transparent;color:var(--muted)}
.rc-exp:hover{background:var(--surface-2)}
.rc-exp svg{transition:transform .2s}
.rc-exp[aria-expanded="true"] svg{transform:rotate(180deg)}
.rc-group-h{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--line-2);background:transparent;width:100%;text-align:left;color:var(--text)}
.rc-group-h:hover{background:var(--surface-2)}
.rc-group-h .ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--surface-3);flex:none}
.rc-group-h .n{margin-left:auto;color:var(--muted);font-size:12px}
.rc-group-h[aria-expanded="true"] svg:last-child{transform:rotate(180deg)}
.rc-sub{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;padding:2px 0 2px 14px;border-left:2px solid var(--line-2);margin:-2px 0 2px 6px}
.rc-sub[hidden]{display:none}
.rc.sm{padding:9px 10px}
.rc.sm .ic{width:30px;height:30px;font:800 13px var(--f-display)}
.rc.sm .cb{width:18px;height:18px}
.rc-search{display:flex;gap:6px;margin-top:2px}
.rc-search input{flex:1;height:38px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface-2);padding:0 10px;font-size:13px;color:var(--text)}
.rc-empty{font-size:12px;color:var(--muted);padding:6px 2px}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.opt{padding:12px 10px;border-radius:12px;border:1px solid var(--line-2);text-align:left}
.opt strong{display:block;font-size:14px}
.opt small{display:block;color:var(--muted);font-size:12px;line-height:1.3;margin-top:2px}
.opt.on{border-color:var(--tc-primary);background:var(--tc-soft)}
.opt.on strong{color:var(--tc-accent)}
.field-inline{display:flex;gap:10px;align-items:center;margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--surface-2);font-size:13px;color:var(--muted)}
.field-inline input{background:var(--surface-3);border:0;border-radius:8px;padding:6px 10px;color:var(--text);min-width:0;flex:1}
.formats{display:flex;gap:8px;flex-wrap:wrap}
.fmt{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 12px;border-radius:10px;border:1px solid var(--line-2);font-size:12px;font-weight:600;color:var(--muted);min-width:64px}
.fmt i{display:block;border:2px solid currentColor;border-radius:3px}
.fmt.on{border-color:var(--tc-primary);color:var(--tc-accent);background:var(--tc-soft)}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0}
.toggle-row small{display:block;color:var(--muted);font-size:12px}
.sw-t{width:44px;height:26px;border-radius:13px;background:var(--surface-3);position:relative;flex:none;transition:background .2s}
.sw-t::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s}
.sw-t.on{background:var(--tc-primary)}
.sw-t.on::after{transform:translateX(18px);background:var(--tc-on-primary)}
.sheet-f{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:14px 20px 18px;display:flex;flex-direction:column;gap:12px}
.summary{font-size:14px;color:var(--muted)}
.summary b{color:var(--text)}
.sheet-f .row{display:flex;gap:8px}
.sheet-f .row .btn{flex:1}
@media (min-width:768px){.sheet-f{flex-direction:row;align-items:center}.sheet-f .summary{flex:1}.sheet-f .row .btn{flex:none}}

/* ---------- LIGA-POOL / EMPFÄNGER ---------- */
.pool-head{border-radius:var(--r-l);padding:22px;background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--info) 22%,transparent),transparent 55%),var(--surface);border:1px solid var(--line);display:grid;gap:18px}
.pool-head .big-search{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-radius:14px;background:var(--bg);border:1px solid var(--line-2)}
.pool-head .big-search input{flex:1;background:none;border:0;outline:0;font-size:16px;min-width:0}
.pool-head .big-search .tok{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:8px;background:var(--surface-3);font-size:13px;font-weight:600;white-space:nowrap}
.pool-stats{display:flex;gap:26px;flex-wrap:wrap}
.pool-stats div{font-size:12px;color:var(--muted)}
.pool-stats .num{font-size:30px;display:block;color:var(--text);line-height:1}
.teamrow{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -22px;padding:0 22px}
.teamrow::-webkit-scrollbar{display:none}
.tchip{display:flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border-radius:999px;border:1px solid var(--line-2);font-size:13px;font-weight:600;white-space:nowrap;flex:none;color:var(--muted)}
.tchip .badge-team{width:26px;height:26px;font-size:10px}
.tchip.on{background:var(--text);color:#0c0d10;border-color:var(--text)}
.day-h{display:flex;align-items:center;gap:12px;margin:26px 0 12px}
.day-h h3{font-size:22px}
.day-h .line{flex:1;height:1px;background:var(--line)}
.tile .team-tag{display:inline-flex;align-items:center;gap:5px}
.tile .team-tag i{width:14px;height:14px;border-radius:50%;display:inline-block}

.rec-top{display:flex;align-items:center;gap:12px;padding:0 16px;height:var(--top);border-bottom:1px solid var(--line);background:var(--surface)}
.rec-top .who{flex:1;min-width:0;font-size:13px;color:var(--muted);line-height:1.2}
.rec-top .who strong{display:block;color:var(--text);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-wrap{max-width:1280px;margin:0 auto;padding:22px 16px 120px}
@media (min-width:1024px){.rec-wrap{padding:36px 28px 80px}.rec-top{padding:0 28px}}
.usage{display:grid;grid-template-columns:auto 1fr;gap:14px;padding:16px;border-radius:14px;background:var(--surface);border:1px solid var(--line);margin:18px 0 22px}
.usage .ic{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:rgba(61,220,151,.12);color:var(--ok)}
.usage ul{margin:6px 0 0;padding-left:18px;color:var(--muted);font-size:13px}
.usage ul li{margin:2px 0}
.usage code{font:500 12px ui-monospace,monospace;background:var(--surface-3);padding:2px 6px;border-radius:5px;color:var(--text)}
@media (min-width:1024px){.usage{grid-template-columns:auto 1fr auto;align-items:center}}

/* ---------- KADER ---------- */
.pgroup{margin-top:26px}
.pgroup h3{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.pgroup h3 .n{font-size:14px;color:var(--faint)}
.players{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media (min-width:700px){.players{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1200px){.players{grid-template-columns:repeat(5,1fr);gap:14px}}
.pc{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:3/4;background:var(--surface-2);isolation:isolate;display:block}
.pc img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .5s}
.pc:hover img{transform:scale(1.05)}
.pc::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 35%,rgba(6,7,10,.95)),linear-gradient(200deg,color-mix(in srgb,var(--tc-secondary) 40%,transparent),transparent 50%)}
.pc.empty{background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--tc-primary) 22%,var(--surface-2)),var(--surface-2) 70%)}
.pc .ini{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font:800 64px/1 var(--f-display);color:rgba(255,255,255,.12)}
.pc .nr{position:absolute;right:10px;top:4px;font:800 54px/1 var(--f-display);color:var(--tc-primary);font-variant-numeric:tabular-nums;text-shadow:0 2px 20px rgba(0,0,0,.5)}
.pc .b{position:absolute;left:12px;right:12px;bottom:12px}
.pc .b strong{display:block;font:700 21px/.95 var(--f-display);text-transform:uppercase;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.pc .b small{display:block;color:rgba(255,255,255,.75);font-size:12px;margin-top:4px}
.pc .b .r{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.pc .b .r .pill{height:22px;font-size:11px;background:rgba(255,255,255,.12);color:#fff}
.pc .b .r .pill.warn{background:rgba(255,181,71,.18);color:var(--warn)}

.ph-hero{position:relative;border-radius:var(--r-l);overflow:hidden;background:var(--surface);border:1px solid var(--line);display:grid;isolation:isolate}
.ph-hero .pic{position:relative;aspect-ratio:4/3;overflow:hidden}
.ph-hero .pic img{width:100%;height:100%;object-fit:cover;object-position:30% 20%}
.ph-hero .pic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,var(--surface))}
.ph-hero .bignr{position:absolute;left:16px;top:16px;font:800 96px/.8 var(--f-display);color:var(--tc-primary);opacity:.9;z-index:1;pointer-events:none;font-variant-numeric:tabular-nums}
.ph-hero .info{padding:0 20px 22px;position:relative;z-index:2;margin-top:-40px}
.ph-hero h1{font-size:46px}
.facts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border-radius:12px;overflow:hidden;margin-top:18px}
.facts-grid div{background:var(--surface-2);padding:12px}
.facts-grid small{display:block;color:var(--muted);font-size:12px}
.facts-grid b{font:700 22px/1.1 var(--f-display);text-transform:uppercase;font-variant-numeric:tabular-nums}
@media (min-width:1024px){.ph-hero{grid-template-columns:1.1fr 1fr}.ph-hero .pic{aspect-ratio:auto;min-height:460px}.ph-hero .pic::after{background:linear-gradient(90deg,transparent 60%,var(--surface))}.ph-hero .info{margin:0;padding:40px 36px;align-self:center}.ph-hero h1{font-size:72px}.ph-hero .bignr{left:auto;right:28px;top:18px;bottom:auto;font-size:240px;opacity:.14}.facts-grid{grid-template-columns:repeat(4,1fr)}}
.recog{display:flex;gap:12px;align-items:center;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);margin-top:14px}
.recog .face{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:35% 15%;box-shadow:0 0 0 2px var(--tc-primary)}
.recog div{flex:1;min-width:0;font-size:13px;color:var(--muted)}
.recog strong{display:block;color:var(--text);font-size:14px}

/* ---------- ADMIN ---------- */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto;scrollbar-width:none}
.tabs button{height:44px;padding:0 14px;font-weight:600;font-size:14px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.tabs button.on{color:var(--text);border-color:var(--tc-primary)}
.adm{display:grid;gap:22px}
@media (min-width:1100px){.adm{grid-template-columns:minmax(0,1fr) 380px}}
.members{display:flex;flex-direction:column}
.mem{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}
.mem:last-child{border-bottom:0}
.mem .nm strong{display:block;font-size:14px;font-weight:600}
.mem .nm small{color:var(--muted);font-size:12px}
.mem .roles{grid-column:2/-1;display:flex;gap:6px;flex-wrap:wrap}
.mem .last{display:none;color:var(--faint);font-size:12px;white-space:nowrap}
@media (min-width:900px){.mem{grid-template-columns:auto 1.3fr 1.6fr 110px minmax(40px,auto)}.mem .roles{grid-column:auto}.mem .last{display:block}}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 12px;border-bottom:1px solid var(--line)}
.card-h h3{font-size:20px}
.vis{display:flex;flex-direction:column}
.vis-row{display:grid;grid-template-columns:1fr;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.vis-row:last-child{border-bottom:0}
.vis-row .what{display:flex;gap:12px;align-items:center;min-width:0}
.vis-row .what img{width:48px;height:36px;border-radius:6px;object-fit:cover;flex:none}
.ph-i{width:36px;height:36px;border-radius:8px;background:var(--surface-3);display:grid;place-items:center;color:var(--muted);flex:none}
.vis-row .what .ph-i{width:48px;height:36px;border-radius:6px}
/* Schritt 18 (Verteilregeln am Handy): Empfänger-Karte einklappbar, FTP-Ziel
   als eigene, noch weiter eingeklappte Zeile. Desktop bleibt unverändert
   immer offen (Inhalt per !important erzwungen sichtbar, überschreibt die
   native <details>-Vorgabe) — nur das Verhalten unter 768px ändert sich. */
.dist-row{border-bottom:1px solid var(--line);padding:14px 0}
.dist-row:last-child{border-bottom:0}
.dist-row > summary{display:flex;align-items:center;gap:10px}
.dist-row .dist-body{padding-top:12px}
.hide-mob-inline{display:none}
.show-mob-inline{display:block}
.dist-ftp-fold{margin-top:10px}
.dist-ftp-fold>summary{display:flex;align-items:center}
@media (min-width:768px){
  .hide-mob-inline{display:inline}
  .show-mob-inline{display:none}
  #empfaenger .dist-row>*:not(summary){display:block!important}
  #empfaenger .dist-ftp-fold>*:not(summary){display:block!important}
}
.vis-row .what strong{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vis-row .what small{color:var(--muted);font-size:12px}
.vis-row .what div{min-width:0}
.vsel{display:grid;grid-template-columns:repeat(4,1fr);padding:3px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line)}
.vsel button{height:32px;border-radius:7px;font-size:12px;font-weight:600;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;padding:0 4px}
.vsel button .ico{width:14px;height:14px}
.vsel button.on{background:var(--surface-3);color:var(--text)}
.vsel button.on.pub{background:rgba(61,220,151,.16);color:var(--ok)}
@media (min-width:900px){.vis-row{grid-template-columns:1fr 400px;align-items:center}}
.limit{padding:16px;border-radius:14px;background:rgba(108,178,255,.08);border:1px solid rgba(108,178,255,.25);font-size:13px;color:var(--muted)}
.limit strong{color:var(--text);display:block;font-size:14px;margin-bottom:4px}
.perm{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);font-size:14px}
.perm:last-child{border-bottom:0}
.perm small{grid-column:1;color:var(--muted);font-size:12px;margin-top:-4px}
.perm .sw-t{grid-row:1/3;grid-column:2}
.perm .sw-t.lock{opacity:.35}
/* Schritt 18 (Mitglieder-Panel übersichtlicher): Rechte-Override je Person
   gruppiert nach Bereich (details.fold), Segment-Schalter statt Dropdown. */
.perm-group{border-bottom:1px solid var(--tc-line);padding:4px 0}
.perm-group:last-child{border-bottom:0}
.perm-group>summary{padding:8px 2px}
.perm-override-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;flex-wrap:wrap}
.perm-override-row .lbl{font-size:13px;flex:1;min-width:140px}
.perm-override-row .seg{flex:none}
.perm-subhead{padding:12px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}

/* ---------- LOGIN ---------- */
.login{min-height:100vh;background:var(--bg)}
.login{display:grid}
.login .visual{position:relative;min-height:42vh;overflow:hidden;isolation:isolate}
.login .visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;z-index:-2}
.login .visual::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,9,12,.2),rgba(8,9,12,.15) 40%,var(--bg))}
.login .band{position:absolute;left:-10%;right:-10%;bottom:18%;height:64px;background:var(--tc-primary);transform:rotate(-6deg);z-index:-1;opacity:.92;mix-blend-mode:normal}
.login .band.b2{bottom:calc(18% - 30px);height:16px;background:var(--tc-secondary);opacity:1}
.login .v-in{position:absolute;left:20px;right:20px;bottom:24px;display:flex;align-items:center;gap:14px}
.login .v-in .logo-plate{box-shadow:0 10px 30px rgba(0,0,0,.5)}
.login .v-in strong{display:block;font:800 30px/.95 var(--f-display);text-transform:uppercase;text-shadow:0 2px 16px rgba(0,0,0,.5)}
.login .v-in small{font-size:13px;color:rgba(255,255,255,.8)}
.login .panel{padding:8px 20px 40px;display:flex;flex-direction:column;justify-content:center}
.login .form{width:100%;max-width:400px;margin:0 auto}
.login h1{font-size:40px;margin:10px 0 6px}
.login p.lead{color:var(--muted);margin:0 0 24px}
.fld{display:block;margin-bottom:14px}
.fld span{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.fld input{width:100%;height:50px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);padding:0 14px;font-size:16px;outline:0;transition:border-color .15s,box-shadow .15s}
.fld input:focus{border-color:var(--tc-primary);box-shadow:0 0 0 4px var(--tc-soft)}
.login .row2{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted);margin:-2px 0 20px}
.login .row2 a{color:var(--tc-accent);font-weight:600}
.or{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:12px;margin:18px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.login .who-gets{margin-top:28px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.login .who-gets div{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted);padding:10px;border-radius:10px;background:var(--surface)}
.login .who-gets .ico{color:var(--tc-accent);width:16px;height:16px}
.login .powered{margin-top:28px;font-size:12px;color:var(--faint);text-align:center}
@media (min-width:1024px){
  .login{grid-template-columns:1.25fr 1fr}
  .login .visual{min-height:100vh}
  .login .visual::before{background:linear-gradient(90deg,rgba(8,9,12,.1),rgba(8,9,12,.25) 70%,var(--bg)),linear-gradient(0deg,rgba(8,9,12,.75),transparent 45%)}
  .login .band{bottom:16%;height:96px}.login .band.b2{bottom:calc(16% - 40px);height:22px}
  .login .v-in{left:48px;bottom:48px}
  .login .v-in strong{font-size:52px}
  .login .panel{padding:48px}
  .login h1{font-size:54px}
}

/* Seiten-Einblendung */
.main>*{animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}}
.hide-d{}
@media (min-width:1024px){.hide-d{display:none!important}}
.hide-mob{display:none!important}
@media (min-width:1024px){.hide-mob{display:inline-flex!important}}

/* =====================================================================
   Ergänzungen für den Einbau (echte Formulare, Leerzustände, Admin-Listen).
   Gleiche Gestaltungsregeln wie der Entwurf: dunkel, ruhig, Teamfarbe sparsam.
   ===================================================================== */
:focus-visible{outline:2px solid var(--tc-accent);outline-offset:2px}
.btn[disabled],.btn.is-off{opacity:.45;cursor:not-allowed;filter:none}
.btn.danger{background:rgba(255,59,59,.12);color:#FF7A7A}
.btn.danger:hover{background:rgba(255,59,59,.2)}
.btn.ok{background:rgba(61,220,151,.14);color:var(--ok)}
.btn.link{background:none;height:auto;padding:0;color:var(--muted);font-weight:500}
.btn.link:hover{color:var(--text)}
.side .me{color:inherit}
.side .me:hover{background:var(--surface-2);border-radius:12px}
.side .me .ico{margin-left:auto;color:var(--faint)}
.top a.avatar{color:var(--text)}
.ctx-liga{background:linear-gradient(135deg,#2A5BD7,#0E1E4A)!important}
.ctx-liga .mono{color:#fff!important}

/* Meldungen */
.flash{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;margin-bottom:18px;font-size:14px;font-weight:500;background:rgba(61,220,151,.1);border:1px solid rgba(61,220,151,.3);color:var(--ok)}
.flash.err{background:rgba(255,59,59,.08);border-color:rgba(255,59,59,.35);color:#FF8A8A}
.flash ul{margin:0;padding-left:18px}
.notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--tc-soft);border:1px solid var(--tc-line);font-size:13px;color:var(--text)}
.notice .ico{color:var(--tc-accent);margin-top:1px}
.hint{font-size:13px;color:var(--muted);margin:6px 0 0}

/* Leerzustände */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:44px 20px;border-radius:var(--r-l);border:1px dashed var(--line-2);background:radial-gradient(90% 120% at 50% 0%,var(--tc-soft),transparent 60%)}
.empty .ic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:var(--surface-2);color:var(--tc-accent)}
.empty .ic .ico{width:26px;height:26px}
.empty h3{font-size:24px}
.empty p{margin:0;max-width:52ch;color:var(--muted);font-size:14px}
.empty .acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.empty.sm{padding:26px 16px}
.empty.sm h3{font-size:19px}

/* Hero ohne Foto (Rollen ohne Galerie-Zugriff / noch keine Bilder) */
.feed-hero.brand{background:radial-gradient(120% 140% at 85% 10%,color-mix(in srgb,var(--tc-primary) 38%,transparent),transparent 55%),linear-gradient(135deg,var(--tc-secondary),#0C0D10 75%)}
.feed-hero.brand::before{background:linear-gradient(180deg,transparent 30%,rgba(8,9,12,.75))}
.feed-hero .bigmark{position:absolute;right:-30px;top:-20px;width:320px;height:320px;opacity:.16;z-index:-1;display:grid;place-items:center}
.feed-hero .bigmark img{width:100%;height:100%;object-fit:contain}
.feed-hero .bigmark .mono{font:800 180px/1 var(--f-display);color:var(--tc-primary)}
.feed-hero .band{position:absolute;left:-10%;right:-10%;bottom:-20px;height:46px;background:var(--tc-primary);transform:rotate(-5deg);opacity:.85;z-index:-1}
@media (min-width:1024px){.feed-hero .bigmark{width:440px;height:440px;right:30px;top:10px}}
.feed-hero .stats>div{min-width:0}

/* Formulare */
.fld select,.fld textarea{width:100%;min-height:50px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);padding:0 14px;font-size:16px;outline:0;color:var(--text)}
.fld textarea{padding:12px 14px;min-height:96px;resize:vertical}
.fld select:focus,.fld textarea:focus{border-color:var(--tc-primary);box-shadow:0 0 0 4px var(--tc-soft)}
.fld.sm input,.fld.sm select{height:42px;min-height:42px;font-size:15px;border-radius:10px}
.fld input[type=file]{height:auto;padding:12px 14px;font-size:14px;color:var(--muted)}
.fld input[type=file]::file-selector-button{margin-right:12px;height:32px;padding:0 12px;border-radius:8px;border:0;background:var(--surface-3);color:var(--text);font-weight:600;cursor:pointer}
.fld input[type=color]{height:50px;padding:5px;cursor:pointer}
.fld small{display:block;margin-top:6px;color:var(--faint);font-size:12px}
.form-grid{display:grid;gap:0 14px}
@media (min-width:700px){.form-grid.c2{grid-template-columns:1fr 1fr}.form-grid.c3{grid-template-columns:repeat(3,1fr)}.form-grid .span{grid-column:1/-1}}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;cursor:pointer}
.check input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--tc-primary);flex:none}
.check small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.card-b{padding:16px}
.card-f{padding:12px 16px 16px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.stack{display:flex;flex-direction:column;gap:22px}
select.inline{height:34px;border-radius:8px;border:1px solid var(--line-2);background:var(--surface-2);padding:0 10px;font-size:13px;color:var(--text);max-width:100%}

/* Schalter als echtes Formularfeld (Rechte) */
.sw-in{appearance:none;-webkit-appearance:none;width:44px;height:26px;border-radius:13px;background:var(--surface-3);position:relative;flex:none;cursor:pointer;transition:background .2s;margin:0}
.sw-in::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s}
.sw-in:checked{background:var(--tc-primary)}
.sw-in:checked::after{transform:translateX(18px);background:var(--tc-on-primary)}
.sw-in:disabled{opacity:.35;cursor:not-allowed}
.perm .sw-in{grid-row:1/3;grid-column:2}
label.perm{cursor:pointer}

/* Kader-Verwaltung (Liste unter den Karten) */
.rows{display:flex;flex-direction:column}
.row{display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row .nm{min-width:0}
.row .nm strong{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .nm small{color:var(--muted);font-size:12px}
.row .acts{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media (min-width:800px){.row{grid-template-columns:auto 1fr auto}.row .acts{grid-column:auto;justify-content:flex-end}}
.nr-badge{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--tc-soft);color:var(--tc-accent);font:800 18px/1 var(--f-display)}
.qr{background:#fff;border-radius:12px;padding:10px;width:132px;height:132px;flex:none}
.qr svg{width:100%;height:100%;display:block}
.copy{display:flex;gap:8px;align-items:center;min-width:0}
.copy input{flex:1;min-width:0;height:40px;border-radius:10px;border:1px solid var(--line-2);background:var(--bg);padding:0 12px;font:500 12px ui-monospace,monospace;color:var(--muted)}
.invite{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.invite>div{flex:1;min-width:220px}
a.pc{color:#fff}
.pc .b .r .pill.ok{background:rgba(61,220,151,.18);color:var(--ok)}
.pc .st{position:absolute;left:10px;top:10px}

/* Spiele-Liste */
.game .cover.ph{display:grid;place-items:center;background:radial-gradient(120% 120% at 80% 0%,var(--tc-soft),transparent 60%),var(--surface-2)}
.game .cover.ph .mono{font:800 46px/1 var(--f-display);color:var(--tc-accent);opacity:.5}
.game .foot .pill .ico{width:14px;height:14px}
.game-admin{display:flex;flex-direction:column;gap:12px;padding:14px;border-top:1px solid var(--line)}
.ph-list{display:flex;flex-wrap:wrap;gap:6px}
.ph-chip{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 6px 0 4px;border-radius:999px;background:var(--surface-2);font-size:13px}
.ph-chip .avatar{width:24px;height:24px;font-size:10px}
.ph-chip .n{color:var(--muted);font-variant-numeric:tabular-nums}
.ph-chip button{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:var(--faint)}
.ph-chip button:hover{background:var(--surface-3);color:#FF7A7A}
.inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* Galerie: Filter-Menüs */
.dd{position:relative;flex:none}
.dd>.chip .ico:last-child{width:14px;height:14px}
.dd .menu{position:absolute;z-index:40;top:42px;left:0;min-width:220px;max-height:320px;overflow:auto;padding:6px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-2);box-shadow:var(--shadow);display:none}
.dd.open .menu{display:block}
.dd .menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;font-size:14px;text-align:left;color:var(--text)}
.dd .menu button:hover,.dd .menu button.on{background:var(--surface-3)}
.dd .menu button .n{margin-left:auto;color:var(--faint);font-size:12px}
.dd .menu .nrb{min-width:26px;height:22px;border-radius:6px;background:var(--tc-primary);color:var(--tc-on-primary);font:800 13px/22px var(--f-display);text-align:center}
.chips.dd-host{overflow:visible}
.menu.sheet-menu{display:block;position:fixed;z-index:130;left:12px;right:12px;top:auto;bottom:calc(var(--tab) + 12px);max-height:60vh;overflow:auto;padding:6px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line-2);box-shadow:var(--shadow)}
.menu.sheet-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;border-radius:8px;font-size:15px;text-align:left;color:var(--text)}
.menu.sheet-menu button.on{background:var(--surface-3)}
.menu.sheet-menu .n{margin-left:auto;color:var(--faint);font-size:12px}
.menu.sheet-menu .nrb{min-width:26px;height:22px;border-radius:6px;background:var(--tc-primary);color:var(--tc-on-primary);font:800 13px/22px var(--f-display);text-align:center}
@media (max-width:1023px){.chips.dd-host{overflow-x:auto}}
.grid-empty{display:none}
.lb .stage{position:relative}
.lb .nav-b{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#fff}
.lb .nav-b:hover{background:rgba(255,255,255,.16)}
.lb .nav-b.prev{left:12px}.lb .nav-b.next{right:12px}
@media (max-width:640px){.lb .nav-b{display:none}}
.sheet .notice{margin:4px 0 0}
.selbar .btn.primary.is-off{opacity:1}

/* Spielerprofil */
.ph-hero .pic.noimg{background:radial-gradient(120% 120% at 30% 10%,color-mix(in srgb,var(--tc-primary) 30%,transparent),transparent 60%),linear-gradient(160deg,var(--tc-secondary),var(--surface) 80%);display:grid;place-items:center}
.ph-hero .pic.noimg .ini{font:800 120px/1 var(--f-display);color:rgba(255,255,255,.14)}
.recog.off{border-style:dashed}
.recog .face.ph{display:grid;place-items:center;background:var(--surface-3);color:var(--muted)}

/* Liga */
.teams-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.team-card{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);position:relative;overflow:hidden}
.team-card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--c,var(--tc-primary))}
.team-card .hd{display:flex;align-items:center;gap:12px}
.team-card .hd strong{font:700 20px/1 var(--f-display);text-transform:uppercase}
.team-card .hd small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.team-card .nums{display:flex;gap:22px;font-size:12px;color:var(--muted)}
.team-card .nums .num{display:block;font-size:24px;color:var(--text);line-height:1}

/* Empfänger-Schale (Presse/Partner) */
.rec-top .icon-btn,.rec-top .avatar{flex:none}
.rec-top a.avatar{color:var(--text)}
.rec-body{min-height:100vh}

/* Login-Ergänzungen */
.login .visual.noimg{background:radial-gradient(110% 120% at 80% 10%,color-mix(in srgb,var(--tc-primary) 35%,transparent),transparent 55%),linear-gradient(150deg,var(--tc-secondary),#0C0D10 80%)}
.login .visual .bigmark{position:absolute;right:-40px;top:-30px;width:70%;max-width:520px;aspect-ratio:1;opacity:.12;z-index:-1;display:grid;place-items:center}
.login .visual .bigmark img{width:100%;height:100%;object-fit:contain}
.login .visual .bigmark .mono{font:800 220px/1 var(--f-display);color:var(--tc-primary)}
.login .row2 label{cursor:pointer}
.login .row2 input{accent-color:var(--tc-primary);width:16px;height:16px}
.reg-wrap{max-width:560px;margin:0 auto;padding:0 20px 60px}
.reg-head{display:flex;align-items:center;gap:14px;padding:22px 20px;max-width:560px;margin:0 auto}
.reg-head strong{font:800 24px/1 var(--f-display);text-transform:uppercase;display:block}
.reg-head small{color:var(--muted);font-size:13px}

/* Kennzahlen mit 3 oder 4 Kacheln */
.kpis.k4{grid-template-columns:repeat(2,1fr)}
@media (min-width:700px){.kpis.k4{grid-template-columns:repeat(4,1fr)}}

/* Schmale Handys (360px): nichts darf überlaufen */
@media (max-width:380px){
  h1{font-size:34px}
  .feed-hero h2{font-size:32px}
  .feed-hero .stats{gap:16px}
  .feed-hero .stats .num{font-size:26px}
  .kpi{padding:12px 10px}
  .kpi .num{font-size:26px}
  .opts{grid-template-columns:1fr}
}
.tabs a{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px;font-weight:600;font-size:14px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.tabs a.on,.tabs a:hover{color:var(--text)}
.tabs a.on{border-color:var(--tc-primary)}
.vsel label{height:32px;border-radius:7px;font-size:12px;font-weight:600;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;padding:0 4px;cursor:pointer;min-width:0}
.vsel label .ico{width:14px;height:14px}
.vsel label.on{background:var(--surface-3);color:var(--text)}
.vsel label.on.pub{background:rgba(61,220,151,.16);color:var(--ok)}
.vsel label:focus-within{outline:2px solid var(--tc-accent);outline-offset:-2px}
@media (max-width:420px){.vsel label{font-size:11px;gap:3px}.vsel label .ico{display:none}}
[hidden]{display:none!important}
details.fold>summary{list-style:none;cursor:pointer}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin:-4px 4px 0 6px;transition:transform .2s;flex:none}
details.fold[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
details.fold>summary .pill{margin-left:auto}
details.fold:not([open])>summary{border-bottom:0}
.row .nm .pill{display:inline-flex}
.game .cover.ph .ph-logo{width:34%;height:auto;object-fit:contain;opacity:.22;filter:grayscale(.2)}.game:hover .cover.ph .ph-logo{transform:none}
.card-h{flex-wrap:wrap}.card-h .pill{white-space:normal;height:auto;min-height:24px;padding-top:3px;padding-bottom:3px}
.ph-hero{grid-template-columns:minmax(0,1fr)}
@media (min-width:1024px){.ph-hero{grid-template-columns:1.1fr 1fr}}
@media (max-width:640px){.recog{flex-wrap:wrap}.recog div{flex:1 1 180px}.recog .pill{margin-left:64px}}
details.fold>summary{flex-wrap:nowrap}details.fold>summary h3{min-width:0;overflow-wrap:anywhere}

/* 09.10.2026 Max „paar Sachen überlappen“: Mannschafts-Umschalter im Kopf nur am Handy (Desktop hat ihn in der Sidebar), Links/Pills nicht umbrechen */
.mannschaft-all{white-space:nowrap}
.mem details summary.pill{white-space:nowrap}
@media (min-width:1024px){.top .mannschaft-switch,.top .mannschaft-all{display:none}}
.quick a{min-width:0;overflow-wrap:anywhere}.quick a small{white-space:normal}
/* 09.10.2026 Max: Bild passte in der Lightbox nicht rein (max-height:100% greift im Grid-1fr nicht) */
.lb .stage{overflow:hidden}
.lb .stage img{max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);width:auto;height:auto}
/* Handy-Kopf zu voll: „Alle Mannschaften“ dort ausblenden (Link ist in der Mannschaften-Seite/Sidebar) */
.top .mannschaft-all{display:none}
/* Ansicht wechseln (Superadmin) */
.ansicht-bar{position:sticky;top:0;z-index:200;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 16px;background:#3b2a00;color:#ffd666;font-size:13px;border-bottom:1px solid rgba(255,214,102,.3)}
.ansicht-bar .ab-l{font-weight:700;white-space:nowrap}
.ansicht-bar select{background:#1a1300;color:#fff;border:1px solid rgba(255,214,102,.4);border-radius:8px;padding:5px 8px;max-width:100%}
.ansicht-bar .ab-back{background:#ffd666;color:#1a1300;border-radius:8px;padding:5px 10px;font-weight:700}
/* Mit „Ansicht als“-Balken: Sidebar um die Balkenhöhe kürzen, sonst ist unten das Konto abgeschnitten (Max 09.10.) */
@media (min-width:1024px){body:has(.ansicht-bar) .side{top:58px;height:calc(100vh - 58px)}.side{overflow:hidden}.side .nav{flex:1 1 auto;min-height:0;overflow-y:auto}.side .me{flex-shrink:0}}
.ansicht-bar{min-height:58px;box-sizing:border-box}
@media (min-width:1024px){.app{position:relative}.app>.stripe{position:absolute;top:0;left:0;right:0;z-index:5}}
/* Scrollbars im dunklen Look (Max 09.10.: „Scrollbar sieht scheiße aus“) – dünn, dezent, in der Sidebar nur beim Hover */
html,.tc *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.tc ::-webkit-scrollbar{width:8px;height:8px}
.tc ::-webkit-scrollbar-track{background:transparent}
.tc ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
.tc ::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3);background-clip:padding-box}
.tc ::-webkit-scrollbar-button{display:none;height:0;width:0}
.side .nav{scrollbar-color:transparent transparent}
.side .nav:hover{scrollbar-color:rgba(255,255,255,.18) transparent}
.side .nav::-webkit-scrollbar-thumb{background:transparent}
.side .nav:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);background-clip:padding-box}

/* ======================= Schritt 15: Globale Suche (Command-Palette) ======================= */
.cmdk{position:fixed;inset:0;z-index:200;background:rgba(5,6,8,.72);backdrop-filter:blur(6px);display:none;align-items:flex-start;justify-content:center;padding:10vh 16px 16px}
.cmdk.show{display:flex}
.cmdk-box{width:100%;max-width:640px;background:var(--surface);border:1px solid var(--line-2);border-radius:16px;box-shadow:0 30px 80px -10px rgba(0,0,0,.8);overflow:hidden;display:flex;flex-direction:column;max-height:76vh}
.cmdk-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);flex:none}
.cmdk-head .ico{color:var(--faint);flex:none}
.cmdk-head input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--text);font-size:16px}
.cmdk-close{background:transparent;border:0;color:var(--faint);cursor:pointer;display:flex;padding:4px;border-radius:8px}
.cmdk-close:hover{background:var(--surface-2)}
.cmdk-list{overflow-y:auto;padding:8px}
.cmdk-group{margin-bottom:6px}
.cmdk-group h5{margin:10px 10px 4px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;display:flex;align-items:center;justify-content:space-between}
.cmdk-group h5 a{color:var(--tc-accent);font-weight:600;text-transform:none;text-decoration:none;font-size:11.5px}
.cmdk-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;color:var(--text);text-decoration:none}
.cmdk-item:hover,.cmdk-item.active{background:var(--surface-2)}
.cmdk-item .ico{flex:none;color:var(--faint)}
.cmdk-item img{width:36px;height:36px;border-radius:8px;object-fit:cover;flex:none;background:var(--surface-2)}
.cmdk-item .t{flex:1;min-width:0}
.cmdk-item .t b{display:block;font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmdk-item .t small{display:block;font-size:11.5px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmdk-empty{padding:30px 16px;text-align:center;color:var(--faint);font-size:13px}
@media (max-width:767px){.cmdk{padding:0}.cmdk-box{max-width:none;height:100%;max-height:none;border-radius:0}}

/* Schritt 24 (Spielerwechsel): kleines Popover am "Verein verlassen"-Knopf in der Kader-Tabelle. */
.inline-popover{position:relative;display:inline-block}
.inline-popover summary{list-style:none}
.inline-popover summary::-webkit-details-marker{display:none}
.inline-popover .popover-card{position:absolute;right:0;top:calc(100% + 6px);z-index:40;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow);padding:12px;min-width:220px;display:flex;flex-direction:column;gap:8px}
@media (max-width:767px){.inline-popover .popover-card{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto}}
