/* Arcade Bingo – Handy + Admin. Ein dunkles Arcade-Theme. */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(/fonts/archivo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url(/fonts/archivo-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(/fonts/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url(/fonts/archivo-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(/fonts/archivo-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(/fonts/chakra-petch-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #0E0F1A; --panel: #171828; --panel-2: #1F2135; --line: #2C2F48;
  --fg: #F2F3F8; --muted: #9A9DB5; --blue: #5FA8E4; --blue-deep: #2F7FC0; --green: #A8BA22; --yellow: #F5C400; --red: #F0555E;
  --gold: #E3B53B; --silver: #C4CAD1; --bronze: #C9854A;
  --f-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --f-pixel: "Chakra Petch", "Archivo", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--f-ui); font-size: 15px; line-height: 1.45; margin: 0; padding: 0 16px 48px; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-head); letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.px { font-family: var(--f-pixel); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { color: var(--red); font-size: 13.5px; min-height: 18px; margin-top: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-block: 14px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 24px; width: auto; display: block; }
.brand span { font-family: var(--f-pixel); font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.conn { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.conn.off { background: var(--red); color: #150307; }

/* Buttons + Felder */
.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; background: var(--blue); color: #0B1020; }
.btn.sm { padding: 8px 12px; border-radius: 10px; font-size: 13.5px; }
.btn.alt { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); }
.btn.ghost { background: none; color: var(--muted); padding-inline: 6px; }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); color: #150307; }
.btn.yellow { background: var(--yellow); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.field { display: grid; gap: 6px; margin-top: 12px; min-width: 0; }
.field label, .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field label.btn { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--fg); }
.field input, .field select, .inp { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--panel); color: var(--fg); }

/* ---------------- Handy ---------------- */
.phone { width: 100%; max-width: 460px; margin: 12px auto 0; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.p-team { font-family: var(--f-head); font-weight: 800; font-size: 23px; line-height: 1.1; }
.p-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.clock { font-family: var(--f-pixel); font-weight: 700; font-size: 26px; line-height: 1; color: var(--yellow); text-align: right; white-space: nowrap; }
.clock.low { color: var(--red); }
.clock small { display: block; font-family: var(--f-ui); font-size: 11px; color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 14px; }
.stat { background: var(--panel); border-radius: 12px; padding: 8px 10px; }
.stat b { font-family: var(--f-pixel); font-weight: 700; font-size: 22px; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.card { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.cell { aspect-ratio: 1; border-radius: 9px; border: 0; padding: 0; background: var(--panel-2); position: relative; overflow: hidden; display: flex; flex-direction: column; text-align: left; min-width: 0; }
.cell .band { height: 6px; flex: none; }
.cell .nm { font-size: 10px; font-weight: 700; line-height: 1.12; padding: 5px 5px 0; color: var(--fg); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; -webkit-hyphens: auto; hyphens: auto; }
.cell .st { font-size: 9px; color: var(--muted); padding: 0 5px 4px; margin-top: auto; letter-spacing: 1px; }
.cell.done { background: var(--blue); }
.cell.done .nm, .cell.done .st { color: #0B1020; }
.cell.done::after { content: "✓"; position: absolute; right: 5px; bottom: 2px; font-weight: 800; color: #0B1020; font-size: 15px; }
.cell.active { box-shadow: inset 0 0 0 3px var(--yellow); }
.cell .who { position: absolute; left: 5px; bottom: 16px; font-size: 8.5px; font-weight: 800; color: var(--yellow); max-width: 90%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell.free { background: repeating-linear-gradient(45deg, #2A2D46 0 6px, #22243A 6px 12px); }
.cell.free .nm { color: var(--muted); }
.cell.free::after { content: "✓"; position: absolute; right: 5px; bottom: 2px; font-weight: 800; color: var(--muted); font-size: 15px; }
.cell.joker { background: #26283F; }
.cell.joker .nm { font-family: var(--f-pixel); font-weight: 700; font-size: 11px; color: var(--yellow); }
.cell.joker.done { background: var(--yellow); }
.cell.joker.done .nm, .cell.joker.done .st { color: #0B1020; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.members { margin-top: 14px; font-size: 13px; color: var(--muted); }
.members b { color: var(--fg); }
.rankbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.rpos { font-size: 28px; line-height: 1; color: var(--yellow); }
.rtxt { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.rtxt b { font-size: 14px; }
.rtxt span { color: var(--muted); }
.rtxt span b { color: var(--fg); font-size: 13px; }
.rtxt .rtip { color: var(--green); }
.rtoggle { font-size: 13px; }
.rlist { list-style: none; margin: -4px 0 12px; padding: 0; display: grid; gap: 4px; }
.rlist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; background: var(--panel); border-radius: 9px; padding: 7px 10px; font-size: 13px; }
.rlist li i { font-style: normal; color: var(--muted); }
.rlist li.me { box-shadow: inset 0 0 0 2px var(--blue); }
.rlist li b { font-family: var(--f-pixel); font-weight: 700; font-variant-numeric: tabular-nums; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.pick { display: grid; gap: 6px; margin-top: 10px; }
.pick button { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.pick button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

/* Bottom-Sheet */
.sheet-bg { position: fixed; inset: 0; background: rgb(8 9 16 / .72); display: flex; align-items: flex-end; justify-content: center; z-index: 5; }
.sheet { background: var(--panel-2); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; overflow: auto; }
.sheet .ph { border-radius: 12px; background: #fff; aspect-ratio: 5 / 3; overflow: hidden; }
.sheet .ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sheet h3 { font-size: 20px; margin-top: 12px; }
.sheet .task { font-size: 17px; font-weight: 700; margin-top: 4px; }
.sheet .field select { background: var(--panel); }
.state { margin-top: 12px; background: var(--panel); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.state b { color: var(--yellow); }
.state.ok b { color: var(--green); }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.stack .btn { width: 100%; }

.bingo { position: fixed; inset: 0; display: grid; place-items: center; background: rgb(8 9 16 / .85); z-index: 6; text-align: center; padding: 16px; }
.bingo div { font-family: var(--f-pixel); font-weight: 700; font-size: 64px; color: var(--yellow); text-shadow: 3px 3px 0 var(--green), 6px 6px 0 #000; line-height: 1; }
.bingo p { margin: 12px 0 0; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .bingo div { animation: pop .5s ease-out; } @keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--red); color: #150307; font-weight: 700; padding: 10px 16px; border-radius: 12px; z-index: 9; max-width: calc(100vw - 32px); }
.toast.ok { background: var(--green); color: #0B1020; }
.toast.info { background: var(--yellow); color: #0B1020; }
.tv .tvstat { font-size: 13px; line-height: 1.45; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); min-height: 20px; }
.tv .tvstat:empty { display: none; }
.banner-m { margin-top: 12px; background: var(--yellow); color: #0B1020; font-weight: 800; border-radius: 12px; padding: 10px 12px; }

@media (max-width: 380px) { .cell .nm { font-size: 8.5px; } .cell .st { font-size: 8px; letter-spacing: 0; } }

/* ---------------- Admin ---------------- */
.atabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.atabs button { background: none; border: 0; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.atabs button[aria-selected="true"] { background: var(--blue); color: #0B1020; }
.admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding-top: 16px; align-items: start; }
.admin.one { grid-template-columns: minmax(0, 1fr); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.panel + .panel { margin-top: 0; }
.panel h2 { font-size: 20px; margin-bottom: 4px; }
.panel h3 { font-size: 16px; }
.sec { margin-top: 22px; }
.teamrow { border-bottom: 1px solid var(--line); padding-block: 10px; }
.teamrow:last-child { border-bottom: 0; }
.teamrow .hd { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: none; border: 0; width: 100%; text-align: left; padding: 0; }
.teamrow .px { color: var(--green); font-size: 18px; letter-spacing: 2px; }
.qr { background: #fff; padding: 8px; border-radius: 12px; width: 160px; height: 160px; flex: none; }
.qr img { width: 100%; height: 100%; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 99px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; }
.chips button[data-mode="swap"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.chips button[data-mode="free"] { background: #6B4A12; border-color: #6B4A12; color: #fff; }
.chips button[data-mode="pre"] { background: var(--red); border-color: var(--red); color: #150307; }
.leg2 { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.leg2 i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dialog { margin-top: 14px; background: var(--panel-2); border: 1px solid var(--yellow); border-radius: 14px; padding: 14px; }
.dialog h3 { font-size: 16px; margin-bottom: 6px; }
.badge-st { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); }
.badge-st.run { background: var(--green); color: #0B1020; }
.badge-st.end { background: var(--yellow); color: #0B1020; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #0B1020; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.names input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-width: 0; width: 100%; }
.acard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 10px; max-width: 360px; }
.acard button { aspect-ratio: 1; border: 0; border-radius: 7px; background: var(--panel-2); font-size: 9px; font-weight: 700; padding: 3px; color: var(--fg); overflow: hidden; line-height: 1.1; }
.acard button.d { background: var(--blue); color: #0B1020; }
.acard button.f { background: repeating-linear-gradient(45deg, #2A2D46 0 5px, #22243A 5px 10px); color: var(--muted); }
.acard button.a { box-shadow: inset 0 0 0 2px var(--yellow); }
.mem { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border-radius: 99px; padding: 2px 4px 2px 10px; font-size: 12.5px; margin: 4px 4px 0 0; }
.mem button { border: 0; background: none; color: var(--muted); padding: 0 4px; font-size: 14px; }

.tvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.tv { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.tv h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #444863; display: inline-block; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tv select, .tv input { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; width: 100%; min-width: 0; }
.tv .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tv .res { font-size: 12.5px; margin-top: 8px; color: var(--muted); min-height: 16px; }
.tv .res.ok { color: var(--green); } .tv .res.bad { color: var(--red); }
.tv .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tv a { color: var(--blue); }
details.adv { margin-top: 10px; }
details.adv summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.scenes button { text-align: left; border-radius: 14px; padding: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.scenes button b { display: block; font-size: 16px; font-family: var(--f-head); }
.scenes button span { font-size: 12.5px; color: var(--muted); }
.results { margin-top: 12px; display: grid; gap: 4px; font-size: 13px; }
.results div.ok { color: var(--green); } .results div.bad { color: var(--red); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--panel-2); border-radius: 8px; padding: 2px 6px; word-break: break-all; }
.login { max-width: 360px; margin: 60px auto 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.simple td { padding: 6px 4px; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- Erinnerungen (Bilder) ---------------- */
.memo { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 14px; }
.memo.big { border-color: var(--yellow); background: linear-gradient(135deg, rgb(245 196 0 / .12), var(--panel)); }
.memo h3 { font-size: 17px; }
.memo .row { margin-top: 10px; }
.sv-ov { position: fixed; inset: 0; background: rgb(8 9 16 / .88); z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sv-box { background: var(--panel-2); border-radius: 18px; padding: 14px; width: 100%; max-width: 520px; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.sv-hd { display: flex; justify-content: space-between; align-items: center; }
.sv-img { flex: 1 1 auto; min-height: 120px; overflow: auto; display: grid; place-items: center; background: #05060c; border-radius: 12px; }
.sv-img img { max-width: 100%; max-height: 62vh; display: block; }
.sv-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sv-act a.btn { text-decoration: none; }

/* ---------------- Werbung ---------------- */
.drop { display: block; border: 2px dashed var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; cursor: pointer; margin-top: 12px; background: var(--panel-2); }
.drop.over, .drop:hover { border-color: var(--blue); }
.upl { position: relative; display: flex; justify-content: space-between; gap: 10px; background: var(--panel-2); border-radius: 9px; padding: 8px 10px; font-size: 13px; overflow: hidden; }
.upl span { position: relative; z-index: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl i { position: absolute; left: 0; top: 0; bottom: 0; background: rgb(95 168 228 / .25); }
.ad-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ad-tw { position: relative; }
.ad-thumb { width: 200px; max-width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; object-fit: contain; }
.tvchip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.tvchip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #0B1020; }
.ad-row input[type="date"] { color-scheme: dark; }
@media (max-width: 640px) { .ad-row { grid-template-columns: minmax(0, 1fr); } .ad-thumb { width: 100%; } }

/* ---------------- Mehrere Events ---------------- */
.evbar { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.evbar button { border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 12px; padding: 8px 14px; text-align: left; display: grid; gap: 1px; min-width: 0; }
.evbar button b { font-size: 14.5px; }
.evbar button span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.evbar button[aria-selected="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--panel-2); }
.evbar .evadd { border-style: dashed; color: var(--blue); font-weight: 700; display: block; }

/* ---------- 1.5: Planung, Firmenlogo, Happy Hour, Fotowand ---------- */
.tnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.tname { display: grid; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 0; }
.tname input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; min-width: 0; width: 100%; font-size: 14px; }
.tname input:first-child { font-weight: 700; }
.elogo { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-flex; align-items: center; height: 52px; max-width: 200px; }
.elogo img { max-height: 40px; max-width: 180px; object-fit: contain; display: block; }
.elogo.sm { height: 40px; padding: 4px 8px; max-width: 120px; flex: none; }
.elogo.sm img { max-height: 30px; max-width: 104px; }
.h2logo { height: 28px; max-width: 110px; object-fit: contain; vertical-align: -6px; margin-right: 10px; background: #fff; border-radius: 6px; padding: 2px 5px; }
.evbar .evplan { border: 1px dashed var(--yellow); background: none; }
.evbar .evplan span { color: var(--yellow); }
.plan { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; background: var(--panel-2); overflow: hidden; }
.plan.open { border-color: var(--blue); }
.plan-hd { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 12px 14px; color: var(--fg); }
.plan-hd .elogo.sm { margin: 0; }
.plan-when { display: grid; min-width: 118px; }
.plan-when b { font-size: 13.5px; }
.plan-when .px { font-size: 20px; color: var(--yellow); }
.plan-co { font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .plan-hd { grid-template-columns: auto minmax(0, 1fr) auto; } .plan-hd .elogo.sm { display: none; } }
.hhbox { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.hhbox.on { background: linear-gradient(90deg, #E0457B, #F5C400); color: #1A0B12; border: 0; }
.hhbox.on .btn.alt { background: rgba(255,255,255,.35); border: 0; color: #1A0B12; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.phx { min-width: 0; }
.phimg { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--bg); }
.phimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phcap { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phcap b { color: var(--fg); }
.hofthumb { display: flex !important; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #2A1F05, #0E0F1A); color: #F5C400; text-align: center; }
.hofthumb b { font-family: var(--f-pixel); font-size: 15px; letter-spacing: 1px; }
.hofthumb span { font-size: 11px; color: var(--muted); }
/* Handy: Firmenlogo, Namensliste, Happy Hour, Fotos */
.co-logo { display: block; max-height: 56px; max-width: 70%; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 12px; }
.co-bar { display: flex; justify-content: center; margin-bottom: 10px; }
.co-logo.sm { max-height: 40px; margin: 0; }
.namechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.namechips button { border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); border-radius: 99px; padding: 9px 14px; font-weight: 700; font-size: 15px; }
.namechips button:active { background: var(--blue); color: #0B1020; }
.rgroup { margin-top: 10px; }
.rgroup > span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.hh-band { margin-top: 12px; border-radius: 12px; padding: 10px 12px; font-weight: 700; background: var(--panel-2); border: 1px dashed #E0457B; color: var(--fg); }
.hh-band.on { background: linear-gradient(90deg, #E0457B, #F5C400); color: #1A0B12; border: 0; animation: hhpulse 1.6s ease-in-out infinite; }
.hh-band.on { display: flex; align-items: center; gap: 10px; }
.hh-band .px { font-family: var(--f-pixel); margin-left: auto; white-space: nowrap; font-size: 18px; }
@keyframes hhpulse { 50% { filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .hh-band.on { animation: none; } }
.chip.hhchip { background: linear-gradient(90deg, #E0457B, #F5C400); color: #1A0B12; }
.phstrip { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.phstrip button { flex: none; width: 104px; border: 0; padding: 0; background: none; text-align: left; color: var(--muted); }
.phstrip img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; display: block; background: var(--panel-2); }
.phstrip span { font-size: 11px; display: block; margin-top: 3px; line-height: 1.2; }
/* Datenschutz */
.consent { margin-top: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.consent.need { border-color: var(--red); box-shadow: 0 0 0 2px rgb(240 85 94 / .35); }
.consent-hd { font-size: 14px; margin-bottom: 8px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--fg); text-transform: none; letter-spacing: 0; font-weight: 500; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--blue); }
.pfoot { text-align: center; padding: 18px 0 28px; }
.pfoot .btn { font-size: 13px; }
.sv-box.dsg { max-width: 720px; }
.dsg-body { overflow: auto; max-height: 72vh; font-size: 14.5px; line-height: 1.55; padding-right: 4px; }
.dsg-body h1 { font-size: 22px; margin: 0 0 4px; } .dsg-body h2 { font-size: 16px; margin: 18px 0 6px; }
.dsg-body ul { padding-left: 20px; } .dsg-body li { margin-bottom: 6px; } .dsg-body a { color: var(--blue); }
.dsg-body .warn { background: var(--red); color: #150307; padding: 10px 12px; border-radius: 10px; }
.phopts { display: grid; gap: 6px; }
.badge-st.open { background: var(--blue); color: #0B1020; }
.startbox { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 14px; background: linear-gradient(135deg, rgb(245 196 0 / .14), var(--panel-2)); border: 1px solid var(--yellow); border-radius: 14px; padding: 14px; }
.startbox .btn.yellow { font-size: 16px; padding: 11px 18px; }
.tpic { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: -8px; margin-right: 8px; border: 2px solid var(--line); }
.tpic.off { opacity: .35; }
/* Teamfoto, Start-Countdown */
.tpbig { flex: none; width: 58px; height: 58px; border-radius: 50%; padding: 0; border: 3px solid var(--blue); overflow: hidden; background: var(--panel-2); margin-right: 12px; }
.tpbig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpbig.empty { border-style: dashed; color: var(--blue); font-size: 11px; font-weight: 800; line-height: 1.1; }
.p-head { align-items: center; }
.prestart { margin-top: 12px; border-radius: 12px; padding: 10px 12px; background: rgb(95 168 228 / .15); border: 1px solid var(--blue); font-size: 14px; }
.cdov { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; text-align: center; background: rgb(8 9 16 / .92); color: var(--fg); }
.cdov .cdn { font-size: 42vw; line-height: 1; color: var(--yellow); animation: cdpop .5s ease-out; }
.cdov .cdn.go { font-size: 26vw; color: var(--green); }
.cdov p { font-size: 18px; margin-top: 10px; color: var(--muted); }
@keyframes cdpop { from { transform: scale(1.4); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@media (min-width: 600px) { .cdov .cdn { font-size: 220px; } .cdov .cdn.go { font-size: 160px; } }
.rlist .tpic { width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }
/* Alle zusammen: Stufen */
.stagebar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.stg { font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 99px; border: 2px solid var(--c); color: var(--c); }
.stg.on { background: var(--c); color: #0B1020; }
.stagebox { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stg2 { border: 2px solid var(--c); border-radius: 10px; padding: 6px 8px; text-align: center; color: var(--c); }
.stg2 b { display: block; font-family: var(--f-head); font-size: 16px; }
.stg2 span { font-size: 11px; color: var(--muted); }
.stg2.on { background: var(--c); color: #0B1020; }
.stg2.on span { color: #0B1020; }

/* ---- Konten (ab 2.0) */
.usermenu { position: relative; margin-left: auto; }
.uchip { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); border-radius: 99px; padding: 4px 12px 4px 4px; font: inherit; font-size: 14px; cursor: pointer; }
.uav { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #0B1020; font-weight: 800; display: grid; place-items: center; }
.unm { font-weight: 700; }
.url { font-size: 12px; color: var(--muted); }
.udrop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.udrop button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.udrop button:hover { background: var(--panel-2); }
.loglist { max-height: 520px; overflow-y: auto; font-size: 14px; display: grid; gap: 6px; }
.loglist > div { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .url { display: none; } }
/* Störungen / Hallen-PC */
.tvwarn { background: rgba(240,85,94,.14); border: 1px solid var(--red); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.hstat { font-size: 13px; margin-top: 6px; }
.hstat.bad { color: var(--red); font-weight: 700; }
.hstat.ok { color: var(--green); }
.agentbox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.keybox { font-family: ui-monospace, monospace; background: var(--panel-2); border: 1px dashed var(--yellow); padding: 10px 12px; border-radius: 10px; word-break: break-all; margin-top: 8px; }
.mailst { font-size: 13px; }
.mailst.ok { color: var(--green); }
.mailst.bad { color: var(--red); }
.mailrow { margin-top: 12px; padding: 10px 12px; background: var(--panel-2); border-radius: 12px; }
.mailrow .hint { margin-bottom: 0; }

/* ---- Automaten-Infoseite (/a/<CODE>) */
.ai-wrap { max-width: 720px; }
.ai-lang button { padding: 6px 12px; }
.ai-head { margin: 14px 0 10px; }
.ai-head h1 { font-size: 30px; line-height: 1.15; }
.ai-hero { border-radius: 16px; overflow: hidden; background: var(--panel-2); margin-bottom: 12px; aspect-ratio: 16 / 10; }
.ai-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-off { color: var(--red); font-weight: 700; margin: 6px 0 0; }
.ai-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 12px; }
.ai-card h2 { font-size: 19px; margin-bottom: 8px; }
.ai-card p { margin: 0 0 6px; }
.ai-lead { font-size: 16.5px; }
.ai-steps, .ai-tips { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.ai-steps li::marker { color: var(--blue); font-weight: 800; }
.ai-tips li::marker { color: var(--yellow); }
.ai-mode { padding: 10px 0; border-top: 1px solid var(--line); }
.ai-mode:first-of-type { border-top: 0; padding-top: 0; }
.ai-mode h3 { font-size: 16px; margin-bottom: 4px; color: var(--yellow); }
.ai-fig { margin: 12px 0 0; }
.ai-fig img { width: 100%; border-radius: 12px; display: block; background: var(--panel-2); }
.ai-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ai-video { width: 100%; border-radius: 12px; background: #000; }
.ai-others { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-others a { background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); text-decoration: none; padding: 6px 10px; border-radius: 99px; font-size: 13.5px; }
.ai-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.ai-foot a { color: var(--muted); }
.ai-prev { background: var(--yellow); color: #0B1020; font-weight: 800; border-radius: 10px; padding: 8px 12px; margin-top: 12px; }
.ai-bingo { border-color: var(--blue); }
.ai-task { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.ai-task:first-of-type { border-top: 0; }
.ai-st { font-size: 12px; font-weight: 700; margin-left: 6px; color: var(--muted); }
.ai-st.ok { color: var(--green); }
.ai-st.act { color: var(--yellow); }
.ai-task a.btn { text-decoration: none; flex: none; }
/* Automaten-Infos bearbeiten (Admin) */
.sv-box.mi-box { max-width: 820px; height: 100%; }
.mi-scroll { overflow-y: auto; min-height: 0; flex: 1; padding-right: 4px; }
.mi-check { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mi-check li { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; font-size: 13.5px; }
.mi-check li button { flex: none; }
.mi-fotos { margin-top: 8px; font-size: 13.5px; }
.mi-fotos ul { margin: 6px 0 0; padding-left: 20px; }
.mi-mode { background: var(--panel); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.mi-imgs { display: grid; gap: 10px; margin-top: 8px; }
.mi-img { display: flex; gap: 10px; background: var(--panel); border-radius: 10px; padding: 8px; align-items: flex-start; }
.mi-img img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
@media (max-width: 560px) { .mi-img { flex-direction: column; } .mi-img img { width: 100%; height: auto; } }
