:root {
  /* Club-Farben 89ers Alpen: Schwarz, Rot, Weiß – Grün/Creme vom Board als Akzent */
  --bg: #09090b; --bg2: #160608; --flaeche: #16161a; --flaeche2: #222227; --rand: #33333b;
  --text: #f5f5f7; --leise: #9d9da8; --akzent: #e3262f; --akzentHell: #ff4a52; --aufAkzent: #fff;
  --blau: #4d8dff; --orange: #ff8a3d; --gelb: #f2c94c; --rot: #ff4d5e; --gruen: #2fbf71; --creme: #f0e1be;
  --schrift-titel: "Arial Black", "Helvetica Neue", Impact, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh;
  background: radial-gradient(900px 500px at 85% -10%, #e3262f2e, transparent), radial-gradient(700px 400px at -10% 110%, #2fbf7114, transparent), linear-gradient(180deg, var(--bg2), var(--bg) 60%); background-attachment: fixed; }
/* Kopf: Logo immer mittig, links das Scheiben-Schild, rechts Status; Menü darunter (einklappbar) */
header { padding: 6px 16px 0; background: #050506ee; border-bottom: 3px solid var(--akzent); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.kopfZeile { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.kopfLinks { justify-self: start; display: flex; align-items: center; gap: 8px; }
.kopfRechts { justify-self: end; display: flex; align-items: center; gap: 8px; }
header h1 { margin: 0; display: flex; align-items: center; gap: 10px; line-height: 1; justify-self: center; }
header h1 img { width: 54px; height: 54px; filter: drop-shadow(0 2px 6px #000); transition: width .2s, height .2s; }
header h1 .clubname { font-family: var(--schrift-titel); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
header h1 .clubname small { display: block; font-family: system-ui, sans-serif; font-size: 11px; letter-spacing: 3px; color: var(--akzentHell); font-weight: 700; margin-top: 3px; }
nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; padding: 6px 0 8px; }
.menueKlappe { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--rand); background: var(--flaeche2); color: var(--text); cursor: pointer; font-size: 14px; }
body.menueZu nav { display: none; }
body.menueZu header { padding-bottom: 6px; }
body.menueZu header h1 img { width: 38px; height: 38px; }
body.menueZu header h1 .clubname small { display: none; }
@media (max-width: 760px) { .kopfZeile { grid-template-columns: auto 1fr auto; } header h1 .clubname { display: none; } .status span { display: none; } }
nav button { background: none; border: 0; color: var(--leise); padding: 8px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }
nav button.an { background: var(--akzent); color: var(--aufAkzent); }
nav button#navSpiel { color: var(--gruen); }
nav button#navSpiel.an { color: var(--aufAkzent); }
main { padding: 16px; max-width: 1500px; margin: 0 auto; }
h2 { font-size: 19px; margin: 0 0 10px; font-family: var(--schrift-titel); letter-spacing: .3px; }
h3 { font-size: 15px; margin: 0 0 8px; color: #cfd8e8; }
h3 small, .leise { color: var(--leise); font-weight: 400; font-size: 13px; }
.seite { display: none; } .seite.an { display: block; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 16px; }
.karte.klein { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.kopf h2, .kopf h3 { margin: 0; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .raster2 { grid-template-columns: 1fr; } }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trenner { width: 1px; height: 26px; background: var(--rand); margin: 0 4px; }
.hinweis { color: var(--leise); font-size: 13px; margin-top: 6px; }
code { background: var(--flaeche2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

button.knopf, label.knopf { background: var(--flaeche2); color: var(--text); border: 1px solid var(--rand); border-radius: 9px; padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 600; display: inline-block; }
button.knopf:hover, label.knopf:hover { border-color: var(--leise); }
button.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--aufAkzent); }
button.knopf.gross { padding: 12px 26px; font-size: 17px; }
button.knopf.klein { padding: 5px 10px; font-size: 13px; }
button.knopf.an { background: var(--akzent); color: var(--aufAkzent); border-color: var(--akzent); }
button.knopf.gefahr { color: var(--rot); }
button:disabled { opacity: .4; cursor: default; }
input[type=text], input[type=number], select { background: var(--flaeche2); color: var(--text); border: 1px solid var(--rand); border-radius: 8px; padding: 7px 9px; font: inherit; }
label { color: #c7d0df; font-size: 14px; }
.umschalter { display: inline-flex; background: var(--flaeche2); border-radius: 9px; padding: 3px; gap: 2px; }
.umschalter button { background: none; border: 0; color: var(--leise); padding: 5px 11px; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 600; font-size: 13px; }
.umschalter button.an { background: var(--akzent); color: var(--aufAkzent); }
.regler { display: grid; grid-template-columns: 170px 1fr 64px; gap: 8px; align-items: center; margin: 4px 0; }
.regler output { text-align: right; font-variant-numeric: tabular-nums; color: var(--leise); }
input[type=range] { width: 100%; accent-color: var(--akzent); }

/* ---------- Lobby ---------- */
.kategorie { font-family: var(--schrift-titel); font-style: italic; font-size: 26px; letter-spacing: 1px; margin: 26px 0 12px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.kategorie::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--akzent), transparent); border-radius: 2px; }
.modusKarte { border-left: 4px solid var(--rand); }
.modusKarte:hover { border-left-color: var(--akzent); }
.modusRaster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.modusKarte { background: linear-gradient(160deg, #1d1d22, var(--flaeche)); border: 1px solid var(--rand); border-radius: 14px; padding: 18px 20px; cursor: pointer; transition: border-color .15s, transform .15s; min-height: 120px; }
.modusKarte:hover { border-color: var(--leise); transform: translateY(-2px); }
.modusKarte .titel { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 800; margin-bottom: 8px; gap: 8px; }
.modusKarte p { margin: 0; color: #b4bfd2; }
.badge { flex: none; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.badge.x01 { background: #e3262f2e; color: var(--akzentHell); }
.badge.cricket { background: #3d8bfd26; color: var(--blau); }
.badge.training { background: #ff8a3d22; color: var(--orange); }
.badge.party { background: #e6d23c22; color: var(--gelb); }
.optionen { display: grid; gap: 10px; margin-bottom: 12px; }
.optionen label { display: grid; gap: 4px; }
.optionen label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 8px; }
.optionWahl { display: flex; flex-wrap: wrap; gap: 4px; }
.optionWahl button { background: var(--flaeche2); border: 1px solid var(--rand); color: var(--text); padding: 5px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; }
.optionWahl button.an { background: var(--akzent); color: var(--aufAkzent); border-color: var(--akzent); font-weight: 700; }
.optionen .name { font-size: 13px; color: var(--leise); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rand); background: var(--flaeche2); color: var(--text); padding: 6px 12px; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip.an { background: #e3262f2e; border-color: var(--akzent); }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.reihenfolge { margin: 0; padding-left: 22px; }
.reihenfolge li { padding: 4px 0; }
.reihenfolge button { margin-left: 6px; }

/* ---------- Spiel ---------- */
.spielLeiste { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.spielInfo { color: var(--leise); font-weight: 600; }
.spielInfo b { color: var(--text); }
/* Bühne: Spieler links | Board Mitte | Spieler rechts */
.buehne { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(340px, 1.35fr) minmax(230px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .buehne { grid-template-columns: 1fr 1fr; } .buehne .mitte { grid-column: 1 / -1; grid-row: 1; } }
@media (max-width: 560px) { .buehne { grid-template-columns: 1fr; } }
.spielerSeite { display: grid; gap: 12px; }
.spielerKarte { background: var(--flaeche); border: 2px solid var(--rand); border-radius: 16px; padding: 14px; position: relative; }
.spielerKarte.dran { border-color: var(--akzent); box-shadow: 0 0 0 4px #e3262f2e, 0 10px 30px #e3262f22; background: linear-gradient(180deg, #2a1215, var(--flaeche) 60%); }
.spielerKarte.raus { opacity: .45; }
.spielerKarte .kopfzeileSpieler { display: flex; align-items: center; gap: 10px; }
.spielerKarte .name { font-weight: 800; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spielerKarte .legs { background: var(--flaeche2); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.spielerKarte .haupt { font-family: var(--schrift-titel); font-size: clamp(56px, 6.5vw, 96px); line-height: 1; margin: 10px 0 4px; font-variant-numeric: tabular-nums; text-align: center; }
.spielerKarte .neben { color: var(--leise); font-size: 13px; text-align: center; min-height: 18px; }
.spielerKarte .werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.spielerKarte .werte div { background: var(--flaeche2); border-radius: 8px; padding: 5px 2px; }
.spielerKarte .werte b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.spielerKarte .werte span { font-size: 11px; color: var(--leise); }
.spielerKarte .finish { margin-top: 10px; text-align: center; font-weight: 800; color: var(--gelb); background: #f2c94c14; border-radius: 8px; padding: 5px; }
.verlauf { margin-top: 10px; max-height: 260px; overflow: auto; border-top: 1px solid var(--rand); padding-top: 6px; }
.verlauf table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.verlauf th { font-size: 11px; color: var(--leise); font-weight: 600; text-align: right; padding: 2px 6px; }
.verlauf th:first-child, .verlauf td:first-child { text-align: left; color: var(--leise); }
.verlauf td { text-align: right; padding: 3px 6px; font-size: 15px; border-bottom: 1px solid #ffffff08; }
.verlauf td.alt { color: var(--leise); text-decoration: line-through; }
.verlauf .ton { color: var(--gelb); font-weight: 800; }
.verlauf .bust { color: var(--rot); font-weight: 700; }
.mitte { display: grid; gap: 10px; }
#aufnahme { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 8px; }
.slot { background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 12px; text-align: center; padding: 10px 4px; font-size: 30px; font-weight: 900; cursor: pointer; min-height: 70px; font-family: var(--schrift-titel); }
.slot.leer { color: var(--rand); cursor: default; }
.slot.korr { outline: 2px dashed var(--gelb); }
.slot.summe { cursor: default; background: var(--akzent); border-color: var(--akzent); color: #fff; }
.slot small { display: block; font-size: 11px; color: var(--leise); font-weight: 600; font-family: system-ui, sans-serif; }
.slot.summe small { color: #ffffffcc; }
#meldung { font-family: var(--schrift-titel); font-size: 28px; text-align: center; color: var(--gelb); letter-spacing: 1px; min-height: 0; }
#meldung:empty { display: none; }
#meldung.bust { color: var(--rot); }
#checkout:empty { display: none; }
.checkoutBox { background: linear-gradient(90deg, #f2c94c1f, #f2c94c08); border: 1px solid #f2c94c55; border-radius: 12px; padding: 10px 12px; }
.checkoutBox .titel { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gelb); font-weight: 800; }
.checkoutBox .weg { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.checkoutBox .weg.erster .feld { font-size: 22px; padding: 6px 12px; background: var(--gelb); color: #1b1400; }
.checkoutBox .feld { font-weight: 900; border-radius: 8px; padding: 3px 9px; background: #ffffff14; font-family: var(--schrift-titel); }
.checkoutBox .feld.geworfen { opacity: .35; text-decoration: line-through; }
.checkoutBox .alt { color: var(--leise); font-size: 13px; }
.zielBox { text-align: center; color: var(--gelb); font-weight: 800; }
.ansichtKarte { padding: 12px; }
.ansicht canvas { width: 100%; height: auto; display: block; border-radius: 10px; }
#boardCanvas { aspect-ratio: 1; cursor: crosshair; }
#liveCanvas { background: #000; }
.steuerung { justify-content: center; }
.tastatur { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.tastatur button { padding: 14px 0; font-size: 18px; font-weight: 700; background: var(--flaeche2); color: var(--text); border: 1px solid var(--rand); border-radius: 9px; cursor: pointer; }
.tastatur button:hover { border-color: var(--leise); }
.tastatur button.breit { grid-column: span 2; }
.faktorWahl button.an { background: var(--orange); border-color: var(--orange); color: #1d0d00; }
.simLeiste { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rand); }
body.sim .simLeiste { display: block; }
.cricketTab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--flaeche); border-radius: 12px; overflow: hidden; }
.cricketTab th, .cricketTab td { text-align: center; padding: 4px; border-bottom: 1px solid var(--rand); font-size: 20px; }
.cricketTab th { font-size: 14px; color: var(--leise); }
.cricketTab td.zahl { font-weight: 800; color: var(--leise); }
.cricketTab td.zu { color: var(--gruen); }
.cricketTab td.alleZu { opacity: .35; }

/* Status */
.scheibeChip { font: italic 900 14px var(--schrift-titel); text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 8px; background: var(--akzent); color: #fff; border: 0; cursor: pointer; line-height: 1.15; text-align: left; }
.scheibeChip small { display: block; font: 700 10px system-ui, sans-serif; letter-spacing: 1px; opacity: .85; }
.farbe0 { background: var(--akzent) !important; } .farbe1 { background: var(--blau) !important; } .farbe2 { background: var(--gruen) !important; } .farbe3 { background: var(--orange) !important; }
.laeuftAuf { font-size: 12px; color: var(--gelb); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--flaeche2); font-weight: 700; font-size: 13px; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--leise); }
.status.bereit i { background: var(--gruen); box-shadow: 0 0 8px var(--gruen); }
.status.ziehen i { background: var(--orange); }
.status.takeout i { background: var(--gelb); animation: puls .8s infinite alternate; }
.status.stopp i { background: var(--rot); }
@keyframes puls { to { opacity: .3; } }
.statusLeiste { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.statusLeiste span { color: var(--leise); }
.statusLeiste b { color: var(--text); }

/* Board Manager */
#kameraListe { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 500px) { #kameraListe { grid-template-columns: 1fr; } }
.kamKarte canvas { width: 100%; height: auto; display: block; border-radius: 8px; background: #000; cursor: crosshair; }
.kamKarte .kopf { margin-bottom: 8px; }
.kamKarte .kamHinweis { color: var(--gelb); font-size: 13px; min-height: 20px; margin: 6px 0; }
.kamKarte .ereignis { color: var(--leise); font-size: 12px; font-family: ui-monospace, monospace; }
.zustand { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--flaeche2); }
.zustand.Pfeil { background: #2fbf7133; color: var(--gruen); }
.zustand.Hand, .zustand.Teil-Takeout, .zustand.Takeout { background: #e6d23c33; color: var(--gelb); }
.zustand.Bewegung { background: #3d8bfd33; color: var(--blau); }

/* Statistik */
.raster-spieler { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .raster-spieler { grid-template-columns: 1fr; } }
.liste { display: grid; gap: 4px; }
.listeEintrag { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.listeEintrag:hover { background: var(--flaeche2); }
.listeEintrag.an { background: var(--flaeche2); outline: 1px solid var(--akzent); }
.listeEintrag i { width: 12px; height: 12px; border-radius: 50%; }
.listeEintrag .name { flex: 1; font-weight: 600; }
.listeEintrag button { opacity: 0; }
.listeEintrag:hover button { opacity: 1; }
.zeitText { min-width: 200px; text-align: center; font-weight: 600; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.kennzahl { background: var(--flaeche2); border-radius: 10px; padding: 10px 12px; }
.kennzahl b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.kennzahl span { color: var(--leise); font-size: 12px; }
#heatCanvas { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.rekordliste { font-size: 14px; display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.rekordliste div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.rekordliste div:nth-child(odd) { background: #ffffff08; }
.rekordliste b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rekordliste span { color: var(--leise); font-size: 12px; }
table.tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
table.tab th { text-align: left; color: var(--leise); font-weight: 600; font-size: 12px; padding: 6px; border-bottom: 1px solid var(--rand); }
table.tab td { padding: 7px 6px; border-bottom: 1px solid #ffffff0d; }
table.tab td.zahl, table.tab th.zahl { text-align: right; }
table.tab tr.sieger td { color: var(--gruen); }
.siegerName { color: var(--gruen); font-weight: 700; }
.pokal { color: var(--gelb); }

/* Turniere */
.turnierKarte { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; background: var(--flaeche2); margin-top: 8px; cursor: pointer; gap: 10px; }
.spieltag { margin-top: 14px; }
.spieltag h3 { font-size: 13px; color: var(--leise); text-transform: uppercase; letter-spacing: .5px; }
.paarung { display: grid; grid-template-columns: 1fr 80px 1fr minmax(160px, 1.4fr); gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.paarung:nth-child(odd) { background: #ffffff06; }
.paarung .heim { text-align: right; }
.paarung .erg { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.paarung .gewonnen { color: var(--gruen); font-weight: 700; }
.baum { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; }
.baumRunde { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 210px; }
.baumSpiel { background: var(--flaeche2); border-radius: 10px; padding: 8px 10px; border: 1px solid var(--rand); }
.baumSpiel div { display: flex; justify-content: space-between; padding: 2px 0; }
.baumSpiel .gewonnen { color: var(--gruen); font-weight: 700; }

/* Dialoge */
dialog { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-radius: 16px; padding: 20px; max-width: 640px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.65); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--flaeche2); border: 1px solid var(--rand); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
#toast.an { opacity: 1; }

/* ---------- Club-Kopf in der Spielauswahl ---------- */
.clubKopf { display: flex; align-items: center; gap: 24px; padding: 18px 22px; border-radius: 18px; margin-top: 4px;
  background: linear-gradient(110deg, #e3262f 0%, #9b1117 45%, #16161a 46%, #16161a 100%); border: 1px solid #3a1416; overflow: hidden; position: relative; }
.clubKopf img { width: 150px; height: 150px; filter: drop-shadow(0 6px 18px #000a); flex: none; }
.clubKopf h2 { font-size: 34px; margin: 0; text-transform: uppercase; font-style: italic; line-height: 1; text-shadow: 0 3px 0 #000; }
.clubKopf p { margin: 8px 0 0; color: #e8e8ec; }
.clubKopf .zahlen { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.clubKopf .zahlen b { display: block; font-family: var(--schrift-titel); font-size: 24px; }
.clubKopf .zahlen span { font-size: 12px; color: var(--leise); text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 700px) { .clubKopf { flex-direction: column; text-align: center; background: linear-gradient(180deg, #9b1117, #16161a 55%); } .clubKopf .zahlen { justify-content: center; } }

/* ---------- Spielerbilder ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--flaeche2); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; overflow: hidden; vertical-align: middle; border: 2px solid #ffffff22; }
.spielerKarte .kopfzeileSpieler { display: flex; align-items: center; gap: 10px; }
.spielerKarte.dran .avatar { border-color: var(--akzent); }
.bildBox { display: flex; align-items: center; gap: 16px; }
.bildBox .knoepfe { display: flex; flex-direction: column; gap: 6px; }
.chip .avatar { margin-left: -6px; }

/* ---------- Lobby (Spieleinstellungen) ---------- */
.lobbyKopf { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(100deg, #2a0d10, var(--flaeche) 60%); border: 1px solid var(--rand); border-left: 5px solid var(--akzent); }
.lobbyKopf .titelBlock { flex: 1; }
.lobbyKopf h2 { margin: 0; font-size: 28px; text-transform: uppercase; font-style: italic; }
.lobbyKopf p { margin: 2px 0 0; }
.lobbyRaster { display: grid; grid-template-columns: 1.15fr 1fr 0.9fr; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .lobbyRaster { grid-template-columns: 1fr 1fr; } .lobbyRaster .aufstellung { grid-column: 1 / -1; } }
@media (max-width: 700px) { .lobbyRaster { grid-template-columns: 1fr; } }
h3.abschnitt { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--akzentHell); margin: 4px 0 10px; }
h3.abschnitt + * { margin-bottom: 16px; }
.optionenRaster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.optionenRaster .name { font-size: 12px; color: var(--leise); margin-bottom: 4px; }
.optionWahl.segment { display: inline-flex; background: var(--flaeche2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.optionWahl.segment button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; }
.optionWahl.segment button.an { background: var(--akzent); color: #fff; }
.stepper { display: inline-flex; align-items: center; background: var(--flaeche2); border-radius: 10px; padding: 3px; }
.stepper button { width: 34px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 18px; cursor: pointer; }
.stepper button:hover { background: #ffffff12; }
.stepper b { min-width: 46px; text-align: center; font-size: 18px; font-family: var(--schrift-titel); }
.spielerKacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.spielerKachel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px;
  background: var(--flaeche2); border: 2px solid transparent; cursor: pointer; font: inherit; color: var(--text); font-weight: 700; }
.spielerKachel:hover { border-color: var(--rand); }
.spielerKachel.an { border-color: var(--akzent); background: #e3262f1f; }
.spielerKachel .nr { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--akzent); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.gastBot { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.lineup { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; counter-reset: platz; }
.lineup li { display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--flaeche2); counter-increment: platz; }
.lineup li::before { content: counter(platz); font-family: var(--schrift-titel); color: var(--akzentHell); text-align: center; }
.lineup li .wer b { display: block; }
.lineup li .wer span { font-size: 12px; color: var(--leise); }
.lineup li .aktionen { display: flex; gap: 4px; }
.lineup li .aktionen button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rand); background: none; color: var(--text); cursor: pointer; }
.lineup li .aktionen button:disabled { opacity: .25; cursor: default; }
.lineup .leerHinweis { display: block; background: none; color: var(--leise); text-align: center; padding: 18px 0; border: 2px dashed var(--rand); }
.lineup .leerHinweis::before { content: none; }
.zusammenfassung { color: var(--leise); font-size: 13px; margin: 6px 0 12px; line-height: 1.6; }
.zusammenfassung b { color: var(--text); }
button.knopf.breit { width: 100%; }

/* ---------- Effekte (Vollbild-Animation) ---------- */
.effekt { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--fx) 45%, transparent), #000000d9 65%); cursor: pointer; animation: fxRein .25s ease-out; }
.effekt.wackeln { animation: fxRein .25s ease-out, fxWackeln .5s .25s; }
.effekt .konfetti { position: absolute; inset: 0; pointer-events: none; }
.effektEmoji { font-size: clamp(110px, 20vw, 220px); line-height: 1; animation: fxHuepf 1.2s cubic-bezier(.3,1.6,.5,1) both; filter: drop-shadow(0 10px 30px #000); }
.effektGif { max-width: min(80vw, 640px); max-height: 55vh; border-radius: 16px; box-shadow: 0 20px 60px #000; animation: fxHuepf .9s cubic-bezier(.3,1.6,.5,1) both; }
.effektTitel { font: italic 900 clamp(40px, 8vw, 96px) var(--schrift-titel); text-transform: uppercase; color: #fff; text-align: center; letter-spacing: 1px;
  text-shadow: 0 4px 0 var(--fx), 0 8px 30px #000; animation: fxTitel .6s .15s cubic-bezier(.2,1.4,.4,1) both; padding: 0 16px; }
.effektUnter { font-size: clamp(18px, 2.4vw, 28px); color: #ddd; font-weight: 700; animation: fxTitel .5s .35s both; }
.effektName { font-size: 18px; color: var(--fx); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; animation: fxTitel .5s .45s both; }
@keyframes fxRein { from { opacity: 0; } }
@keyframes fxHuepf { 0% { transform: scale(0) rotate(-25deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes fxTitel { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes fxWackeln { 20%, 60% { transform: translateX(-14px); } 40%, 80% { transform: translateX(14px); } }
.fxListe { display: grid; gap: 6px; margin-top: 8px; }
.fxZeile { display: grid; grid-template-columns: 46px 1fr auto auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--flaeche2); }
.fxZeile .em { font-size: 20px; text-align: center; white-space: nowrap; letter-spacing: -2px; }
.fxZeile img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }

/* ---------- Aufstellung: Drag & Drop ---------- */
.lineup li .griff { cursor: grab; color: var(--leise); font-size: 18px; padding: 4px 2px; touch-action: none; user-select: none; }
.lineup li.zieht { opacity: .9; box-shadow: 0 10px 30px #000a; position: relative; z-index: 5; background: #2a1215; outline: 2px solid var(--akzent); }
.lineup li.zieht .griff { cursor: grabbing; }
.lineup li { transition: transform .15s; }
.lineup li.zieht { transition: none; }

/* ---------- Online-Abgleich ---------- */
.wolke { font-size: 18px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--flaeche2); cursor: pointer; }
.wolke.aus { opacity: .35; }
.wolke.ok { color: var(--gruen); }
.wolke.laeuft { color: var(--gelb); animation: puls .8s infinite alternate; }
.wolke.fehler, .wolke.einrichten { color: var(--rot); }
.syncRaster { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.syncRaster label { display: grid; gap: 4px; }
@media (max-width: 800px) { .syncRaster { grid-template-columns: 1fr; } }
.syncStatus { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--flaeche2); }
.syncStatus.ok { color: var(--gruen); } .syncStatus.fehler, .syncStatus.einrichten { color: var(--rot); } .syncStatus.laeuft { color: var(--gelb); }

/* ---------- Standorte & Scheiben ---------- */
.ortGruppe { margin: 12px 0; }
.ortGruppe h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--leise); }
.scheibenKnoepfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.scheibenKnopf { padding: 14px 10px; border-radius: 12px; border: 2px solid transparent; color: #fff; cursor: pointer; font: inherit; text-align: center; }
.scheibenKnopf b { display: block; font: italic 900 18px var(--schrift-titel); text-transform: uppercase; }
.scheibenKnopf small { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.scheibenKnopf.an { border-color: #fff; }
.scheibenKnopf.neu { background: var(--flaeche2) !important; border: 2px dashed var(--rand); color: var(--leise); }
.neuForm { margin-top: 10px; background: var(--flaeche2); border-radius: 10px; padding: 10px 12px; }
.neuForm summary { cursor: pointer; font-weight: 700; }
.ortListe { display: grid; gap: 10px; }
.ortZeile { background: var(--flaeche2); border-radius: 12px; padding: 10px 12px; }
.ortZeile.aus { opacity: .5; }
.ortZeile .kopf { margin-bottom: 6px; }
.ortZeile .scheibenChips { display: flex; flex-wrap: wrap; gap: 6px; }
.ortZeile .sChip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; color: #fff; font-weight: 700; font-size: 13px; }
.ortZeile .sChip.aus { opacity: .45; text-decoration: line-through; }
.ortZeile .sChip button { background: #0004; border: 0; color: #fff; border-radius: 99px; width: 22px; height: 22px; cursor: pointer; font-size: 12px; }

/* LIVE-Anzeige */
.liveZahl { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; background: #ff4d5e22; color: #ff6b78; border-radius: 99px; padding: 1px 8px 1px 6px; font-size: 11px; font-weight: 800; }
.liveZahl::before, .livePunkt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff2d3d; box-shadow: 0 0 8px #ff2d3d; animation: puls .9s infinite alternate; }
.livePunkt { display: inline-flex; align-items: center; gap: 6px; color: #ff6b78; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

.liveKarte { margin: 0 0 12px; border-color: #ff2d3d66; background: linear-gradient(90deg, #2a0d10, var(--flaeche)); }
.liveKarte h3 { margin-bottom: 8px; }
.liveZeile { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #ffffff10; flex-wrap: wrap; }
.spielZeit { font-size: 12px; color: var(--leise); }
.naechstesLeiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; padding: 10px 12px; border-radius: 12px; background: #e3262f1f; border: 1px solid #e3262f55; }
.naechstesLeiste > .leise:first-child { text-transform: uppercase; font-size: 11px; letter-spacing: 1px; font-weight: 800; color: var(--akzentHell); }
.endeNaechstes { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #e3262f1f; border: 1px solid #e3262f55; }
.naechstesTitel { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--akzentHell); margin-bottom: 8px; }
.paarungGross { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; }
.paarungGross .gegen { color: var(--leise); font-size: 14px; }
nav button.an .liveZahl { background: #fff; color: #c8102e; }
nav button.an .liveZahl::before { background: #c8102e; box-shadow: none; }

/* ---------- Anmeldung ---------- */
.anmeldung { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(800px 500px at 50% 20%, #e3262f40, transparent), linear-gradient(180deg, #160608, #09090b); }
body.gesperrt > header, body.gesperrt > main { display: none; }
.anmeldeKarte { width: min(420px, 100%); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 18px; padding: 28px 24px; text-align: center; box-shadow: 0 20px 60px #000a; }
.anmeldeKarte img { width: 150px; filter: drop-shadow(0 8px 20px #000); }
.anmeldeKarte h1 { font: italic 900 30px var(--schrift-titel); text-transform: uppercase; margin: 6px 0 4px; }
.anmeldeKarte form { display: grid; gap: 12px; text-align: left; margin-top: 16px; }
.anmeldeKarte label { display: grid; gap: 4px; }
.anmeldeKarte input { padding: 11px 12px; font-size: 16px; }
.anmeldeFehler { color: var(--rot); font-weight: 700; min-height: 22px; margin-top: 10px; }
.anmeldeWarnung { margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: #f2c94c1f; color: var(--gelb); font-size: 13px; text-align: left; }

/* Kamerasuche */
.kameraSuche { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rand); background: var(--flaeche2); line-height: 1.5; }
.kameraSuche.fehler { border-color: #c0392b; background: rgba(192, 57, 43, .12); }
.kameraSuche.warnung { border-color: #e0a100; background: rgba(224, 161, 0, .12); }
.kameraSuche.ok { border-color: #2e9e5b; }
.kameraSuche .sucheZeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rand); margin-top: 6px; }
.kameraSuche .ok { color: #2e9e5b; font-weight: 600; }
.kameraSuche .leise { color: var(--leise); }
.knopf.klein { padding: 4px 12px; font-size: 13px; }
