/* fc_webpanel v2 (2026-10-28). Website statt iPad: volle Seitenleiste, Kopfzeile mit Suche, flache Flächen.
   Farben aus fc_ui/tokens.css (Logo-Blau, Navy), Reiter wie im Admin-iPad (Unterstrich). */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(fonts/montserrat-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(fonts/montserrat-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --fc: #1359F8; --fc-2: #0B3FB8; --fc-t: #4D86FF; --fc-rgb: 19, 89, 248;
    --bg: #0A101D;          /* Seite */
    --side: #0C1322;        /* Seitenleiste + Kopfzeile */
    --panel: #101929;       /* Boxen */
    --panel-2: #152034;     /* Hover, Unterflächen */
    --line: #1D2A42;
    --line-2: #26365a;
    --text: #E7EEF5; --muted: #8AA0B4; --dim: #62778d; --icon: #C9D6E4;
    --good: #2ECC71; --warn: #F5A524; --bad: #E74C3C;
    --grad: linear-gradient(145deg, #1359F8, #0B3FB8);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(input) { font: inherit; color: inherit; }
html { background: var(--bg); }
body { min-height: 100vh; font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif; font-size: 14px; line-height: 1.5;
    color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--fc-t); text-decoration: none; }
a:hover { text-decoration: underline; }
img { -webkit-user-drag: none; }
svg { flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--fc-t); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 9px;
    font-weight: 700; font-size: 13.5px; border: 1px solid transparent; text-decoration: none !important; white-space: nowrap; transition: filter .15s, border-color .15s, background .15s; }
.btn svg { width: 18px; height: 18px; }
.btn.big { height: 48px; font-size: 14.5px; width: 100%; }
.btn.primary { background: var(--grad); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.discord { background: #5865F2; color: #fff; }
.btn.discord:hover { filter: brightness(1.08); }
.btn.discord svg { width: 22px; height: 22px; }
.btn.ghost { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: #36507d; }
.btn.danger { background: rgba(231, 76, 60, .1); border-color: rgba(231, 76, 60, .4); color: #ff8b7e; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn.disabled { opacity: .45; cursor: not-allowed; filter: none !important; }
.iconbtn { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-2); background: var(--panel-2); }
.iconbtn:hover { color: var(--text); border-color: #36507d; }
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn.copied, .btn.copied { color: var(--good); border-color: rgba(46, 204, 113, .5); }
.link { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .otp-alt { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0B1322; outline: none; font-size: 15px; }
.field input:focus, .otp-alt:focus, .otp-cell:focus { border-color: var(--fc); box-shadow: 0 0 0 3px rgba(var(--fc-rgb), .22); }
.msg { color: #ffb4ab; background: rgba(231, 76, 60, .09); border: 1px solid rgba(231, 76, 60, .35); padding: 10px 12px; border-radius: 9px; font-size: 13.5px; }

/* Status als farbiger Text mit Punkt statt Kasten (2026-10-28, Gabriel: zu viele Pills) */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.tag svg { width: 15px; height: 15px; }
.tag.ok, .tag.warn, .tag.bad { }
.tag.ok::before, .tag.warn::before, .tag.bad::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.tag.ok { color: var(--good); }
.tag.warn { color: var(--warn); }
.tag.bad { color: #ff8b7e; }
.tag.blue { color: var(--fc-t); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: 1px; }

/* ---------- Anmeldung (v3: Skyline-Banner unten, Karte darüber) ---------- */
.authpage { background: #0a0f1c; min-height: 100vh; display: flex; flex-direction: column; }
.ahero { position: fixed; left: 0; right: 0; bottom: 0; height: min(46vw, 62vh); z-index: 0; pointer-events: none;
    background: url(skyline.webp) 88% 100% / cover no-repeat; }
.ahero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0a0f1c 0%, rgba(10, 15, 28, .55) 30%, rgba(10, 15, 28, 0) 55%, rgba(10, 15, 28, .55) 85%, rgba(10, 15, 28, .9) 100%); }
.atop, .amain, .afoot { position: relative; z-index: 1; }
.atop { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 36px; }
.abrand { display: flex; align-items: center; gap: 12px; }
.abrand img { width: 38px; height: 38px; }
.abrand b { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.abrand span { color: var(--muted); font-size: 12px; font-weight: 600; }
.asteps { list-style: none; display: flex; align-items: center; gap: 10px; }
.asteps li { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; font-weight: 600; }
.asteps li + li::before { content: ''; width: 28px; height: 1px; background: var(--line-2); margin-right: 2px; }
.asteps .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; border: 1px solid var(--line-2); background: rgba(10, 15, 28, .7); }
.asteps .num svg { width: 13px; height: 13px; }
.asteps li.done { color: var(--muted); }
.asteps li.done .num { background: rgba(var(--fc-rgb), .2); border-color: rgba(var(--fc-rgb), .5); color: var(--fc-t); }
.asteps li.now { color: var(--text); }
.asteps li.now .num { background: var(--grad); border-color: transparent; color: #fff; }

.amain { display: flex; justify-content: center; align-items: flex-start; padding: 5vh 20px 0; }
.acard { width: min(460px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 16px;
    background: rgba(13, 20, 36, .86); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.acard.wide { width: min(520px, 100%); }
.acard h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.acard .lead { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.acard .hint { color: var(--dim); font-size: 13px; text-align: center; padding-top: 16px; border-top: 1px solid var(--line); }
.afoot { display: flex; justify-content: center; align-items: center; gap: 8px; color: rgba(231, 238, 245, .75); font-size: 12px; padding: 16px 20px 24px; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 12px rgba(0, 0, 0, .8); }
.afoot svg { width: 14px; height: 14px; }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.alt { display: flex; justify-content: center; }

.stage { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.stage h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.sn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(var(--fc-rgb), .16); color: var(--fc-t); flex: 0 0 auto; }
.enroll { display: flex; gap: 20px; align-items: center; }
.qrwrap { flex: 0 0 auto; padding: 8px; background: #fff; border-radius: 12px; }
.qr { display: block; width: 164px; height: 164px; image-rendering: pixelated; }
.enroll-side { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 13.5px; }
.enroll-side b { color: var(--text); }
.reveal summary { list-style: none; cursor: pointer; color: var(--fc-t); font-size: 13px; font-weight: 600; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal[open] summary { margin-bottom: 8px; }
.keyrow { display: flex; align-items: center; gap: 8px; }
.keyrow code { flex: 1; min-width: 0; font: 600 13px/1.4 'Montserrat', sans-serif; letter-spacing: .06em; color: var(--text); background: #0B1322; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; user-select: all; }

/* App-Auswahl auf dem Handy */
.apppick { flex-direction: column; gap: 14px; }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.is-android .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none !important; }
.appbtn .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transition: box-shadow .15s, transform .15s; }
.appbtn .ico svg { width: 28px; height: 28px; }
.appbtn:active .ico { transform: scale(.94); }
.appbtn.on { color: var(--text); }
.appbtn.on .ico { box-shadow: 0 0 0 2px #0d1424, 0 0 0 4px var(--fc); }
.apphint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.apphint b { color: var(--text); font-weight: 600; }
.ico.apple { background: linear-gradient(160deg, #2D9CFF, #0A6CF0); color: #fff; }
.ico.google { background: #fff; }
.ico.ms { background: #0F6CBD; color: #fff; }
.ico.authy { background: #EC1C24; color: #fff; }
.android-only { display: none !important; }
.is-android .android-only { display: inline-flex !important; }
.is-android .ios-only { display: none !important; }
.only-touch { display: none !important; }
@media (pointer: coarse), (max-width: 640px) {
    .only-touch { display: flex !important; }
    .only-desk { display: none !important; }
}

.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cell { width: 100%; height: 56px; text-align: center; font-size: 22px; font-weight: 700; border-radius: 10px; border: 1px solid var(--line-2); background: #0B1322; outline: none; caret-color: var(--fc-t); }
.otp-alt { width: 100%; letter-spacing: .08em; font-weight: 600; }
.otp-toggle { align-self: flex-start; margin-top: -6px; }

.codes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes li { background: #0B1322; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px; text-align: center; font-weight: 700; letter-spacing: .1em; user-select: all; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.checkline input { width: 18px; height: 18px; accent-color: var(--fc); }
.kv { display: flex; align-items: center; gap: 12px; background: #0B1322; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.kv span { color: var(--muted); font-size: 13px; }
.kv b { flex: 1; }

@media (max-width: 760px) {
    .atop { flex-direction: column; align-items: center; gap: 18px; padding: 22px 16px 8px; }
    .asteps { width: 100%; justify-content: center; gap: 8px; }
    .asteps li { flex: 0 0 auto; gap: 7px; }
    .asteps li + li::before { width: 14px; margin-right: 1px; }
    .ahero { height: 46vh; background-image: url(skyline-m.webp); background-position: 70% 100%; }
    .amain { padding: 14px 12px 0; }
    .acard { padding: 22px 18px; border-radius: 14px; }
    .acard h1 { font-size: 23px; }
    .enroll { flex-direction: column; }
    .afoot { flex-direction: column-reverse; gap: 8px; padding-top: 18px; }
    .afoot svg { width: 16px; height: 16px; opacity: .85; }
}

/* ---------- Panel ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--line); }
.side .abrand { height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.side .abrand img { width: 32px; height: 32px; }
.side .abrand b { font-size: 15px; }
.side .abrand span { font-size: 11.5px; }
.navs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.navgroup { font-size: 11.5px; font-weight: 700; color: var(--dim); padding: 16px 12px 6px; }
.navgroup:first-child { padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.nav svg { width: 18px; height: 18px; color: var(--dim); }
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav.on { background: rgba(var(--fc-rgb), .12); color: var(--text); }
.nav.on svg { color: var(--fc-t); }
.nav .cnt { margin-left: auto; font-size: 11.5px; font-weight: 700; }
.side-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }

.col { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 28px; background: rgba(12, 19, 34, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .ttl { min-width: 0; }
.topbar .ttl b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.topbar .ttl span { color: var(--dim); font-size: 12.5px; }
.search { position: relative; flex: 0 1 460px; margin-left: auto; }
.search input { width: 100%; height: 38px; padding: 0 64px 0 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); outline: none; font-size: 13.5px; }
.search input:focus { border-color: var(--fc); box-shadow: 0 0 0 3px rgba(var(--fc-rgb), .2); }
.search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); pointer-events: none; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 11px/1 'Montserrat', sans-serif; color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 6px; }
.user { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.user img, .user .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user b { display: block; font-size: 13px; line-height: 1.2; }
.user small { color: var(--dim); font-size: 11.5px; }
.user button { margin-left: 4px; }

.content { padding: 24px 28px 64px; display: flex; flex-direction: column; gap: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; align-self: flex-start; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--text); text-decoration: none; }

.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.box > h2 { font-size: 14px; font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.box > h2 small { color: var(--dim); font-weight: 600; font-size: 12px; }
.empty { padding: 22px 18px; color: var(--muted); font-size: 13.5px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.band > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.band > div:first-child { border-left: 0; }
.band b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.band span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.band .ok b { color: var(--good); } .band .warn b { color: var(--warn); } .band .bad b { color: #ff7a6b; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--dim); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .012); }
.tbl td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.go { cursor: pointer; }
.tbl tr.go:hover td { background: var(--panel-2); }
.tbl .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .nw { white-space: nowrap; }
.wrap-x { overflow-x: auto; }

/* Akte */
.phead { display: flex; gap: 18px; align-items: center; padding: 20px; }
.pava { width: 60px; height: 60px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--grad); }
.pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pname { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pname h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 12.5px; }
.pmeta span { display: inline-flex; align-items: center; gap: 6px; }
.pmeta svg { width: 14px; height: 14px; color: var(--dim); }
.copy { color: var(--muted); border-bottom: 1px dashed var(--line-2); text-align: left; word-break: break-all; font-size: 12.5px; }
.copy:hover { color: var(--text); }

.ftabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ftabs button:hover { color: var(--text); }
.ftabs button.on { color: var(--text); font-weight: 700; }
.ftabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--fc), var(--fc-t)); }
.ftabs .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.ftabs button.on .n { background: rgba(var(--fc-rgb), .18); color: var(--fc-t); }

.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px; }
.char { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.char b { font-size: 14.5px; }
.char dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; }
.char dt { color: var(--muted); }
.char dd { text-align: right; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 10px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 30; }
.modal { position: fixed; inset: 0; background: rgba(4, 8, 16, .7); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal form { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.modal h1 { font-size: 18px; font-weight: 800; }
.modal p { color: var(--muted); font-size: 13.5px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 1100px) { .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .side { position: static; height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .side .abrand { height: 56px; padding: 0 14px; border: 0; }
    .side .abrand div { display: none; }
    .navs { flex-direction: row; padding: 0 8px 0 0; overflow-x: auto; gap: 2px; }
    .navgroup, .side-foot, .nav span { display: none; }
    .nav { height: 38px; padding: 0 11px; }
    .topbar { position: static; height: auto; flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
    .topbar .ttl { flex: 1; }
    .user { padding-left: 0; border: 0; }
    .user div { display: none; }
    .search { flex: 1 1 100%; order: 3; margin: 0; }
    .search kbd { display: none; }
    .content { padding: 16px 16px 48px; }
    .phead { align-items: flex-start; padding: 16px; }
    .pava { width: 48px; height: 48px; font-size: 18px; }
    .tbl th, .tbl td { padding-left: 12px; padding-right: 12px; }
}

/* ---------- Admin: Online, Live-Werte, Aufnahmen, Live-Wand (2026-10-28) ---------- */
.muted { color: var(--dim); font-size: 12.5px; }
.grow { flex: 1; }
.notice { background: rgba(245, 165, 36, .07); border: 1px solid rgba(245, 165, 36, .3); color: #f3c77a; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.band > a { padding: 16px 20px; border-left: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.band > a:first-child { border-left: 0; border-radius: 12px 0 0 12px; }
.band > a:hover { background: var(--panel-2); }
.nav .cnt { font-style: normal; color: var(--good); background: rgba(46, 204, 113, .1); border-radius: 6px; padding: 1px 7px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter { position: relative; width: min(320px, 100%); }
.filter input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); outline: none; font-size: 13px; }
.filter input:focus { border-color: var(--fc); box-shadow: 0 0 0 3px rgba(var(--fc-rgb), .2); }
.filter svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); }

.tbl.online td { vertical-align: middle; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th.sortable.on { color: var(--fc-t); }
.idc { font-weight: 800; color: var(--muted); font-size: 13px; }
.pn { font-weight: 700; }
.warnc { color: var(--warn); }
.tbl .sub .tag { font-size: 11.5px; margin-left: 6px; }
.tbl .sub .tag svg { width: 13px; height: 13px; }
.bar { display: inline-block; width: 52px; height: 6px; border-radius: 4px; background: #1a2740; overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--good); }
.bar.warn i { background: var(--warn); } .bar.bad i { background: var(--bad); } .bar.blue i { background: var(--fc-t); }
.barn { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.show-sm { display: none; }

.pact { margin-left: auto; align-self: flex-start; }
.livecard { margin: 0 20px 16px; padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.livecard .notice { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; }
.stats > div { display: flex; flex-direction: column; gap: 5px; }
.stats span:first-child { color: var(--dim); font-size: 12px; font-weight: 600; }
.stats b { font-size: 15px; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 16px; }
.item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.item span { color: var(--muted); font-weight: 600; }

.recwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 16px; align-items: start; }
.player { background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.plabel { padding: 8px 12px; font-size: 12.5px; color: var(--muted); background: var(--bg); }
.vempty { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--dim); text-align: center; padding: 20px; font-size: 13px; background: var(--bg); }
.vempty svg { width: 34px; height: 34px; }
.reclist { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
.reclist h3 { font-size: 12.5px; color: var(--dim); font-weight: 700; padding: 8px 4px 4px; }
.reclist h3:first-child { padding-top: 0; }
.recday { font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 4px 2px; }
.recrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; text-align: left; width: 100%; }
.recrow:hover { background: var(--panel-2); }
.recrow.on { background: rgba(var(--fc-rgb), .12); border-color: rgba(var(--fc-rgb), .4); }
.recrow.dis { opacity: .55; }
.recrow svg { width: 16px; height: 16px; color: var(--muted); }
.recrow > span:not(.tag) { flex: 1; display: flex; flex-direction: column; }
.recrow b { font-size: 13px; }
.recrow small { color: var(--dim); font-size: 12px; }

.livegrid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.livepick { position: sticky; top: 84px; max-height: calc(100vh - 108px); display: flex; flex-direction: column; }
.livepick #lvrows { overflow-y: auto; padding: 6px; }
.lvrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; text-align: left; }
.lvrow:hover { background: var(--panel-2); }
.lvrow.on { background: rgba(var(--fc-rgb), .12); border-color: rgba(var(--fc-rgb), .4); }
.lvrow .idc { width: 26px; }
.lvrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lvrow b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvrow small { color: var(--dim); font-size: 11.5px; }
.lvrow .muted { display: inline-flex; align-items: center; gap: 3px; }
.lvrow .muted svg { width: 14px; height: 14px; }
.wall { display: grid; gap: 12px; grid-template-columns: 1fr; }
.wall .vempty { border: 1px dashed var(--line-2); border-radius: 12px; }
.wall[data-n="2"], .wall[data-n="3"], .wall[data-n="4"] { grid-template-columns: 1fr 1fr; }
.wall[data-n="5"], .wall[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.wall.focused { grid-template-columns: repeat(4, 1fr); }
.wall.focused .tile.big { grid-column: 1 / -1; order: -1; }
.tile { position: relative; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile .tstate { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; pointer-events: none; text-align: center; padding: 20px; }
.tile[data-state="live"] .tstate { display: none; }
.tile[data-state="error"] .tstate, .tile[data-state="gone"] .tstate { color: #ff8b7e; }
.tbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12.5px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); }
.tbar .iconbtn { width: 28px; height: 28px; background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .15); }

@media (max-width: 1200px) { .hide-md { display: none; } }
@media (max-width: 1000px) {
    .recwrap { grid-template-columns: 1fr; }
    .reclist { max-height: none; }
    .livegrid { grid-template-columns: 1fr; }
    .livepick { position: static; max-height: 300px; }
}
@media (max-width: 860px) {
    .hide-sm { display: none; }
    .show-sm { display: inline; }
    .livecard { margin: 0 12px 12px; }
    .phead { flex-wrap: wrap; }
    .pact { margin-left: 0; width: 100%; }
    .pact .btn { width: 100%; }
    .wall[data-n] { grid-template-columns: 1fr; }
    .wall.focused { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .hide-xs { display: none; } }

/* Handy: Tabellen werden Karten (erste Zelle oben links, rechtsbündige Zelle oben rechts, Rest darunter mit Beschriftung) */
@media (max-width: 640px) {
    .tbl, .tbl tbody { display: block; }
    .tbl tr:has(> th) { display: none; }
    .tbl tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
    .tbl tr:last-child { border-bottom: 0; }
    .tbl td { display: block; padding: 0; border: 0; font-size: 13px; }
    .tbl td:first-child { flex: 1 1 55%; min-width: 0; font-size: 14px; }
    .tbl td.r { margin-left: auto; }
    .tbl td.hide-sm, .tbl td.hide-md { display: block; }
    .tbl td.hide-xs { display: none; }
    .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; color: var(--dim); margin-bottom: 2px; }
    .tbl tr.go:hover td { background: none; }
    .tbl tr.go:active { background: var(--panel-2); }
    .tbl.online td.idc { flex: 0 0 auto; font-size: 13px; }
    .tbl.online td:nth-child(2) { flex: 1 1 50%; min-width: 0; font-size: 14px; }
}

/* Handy: Online-Karte mit festem Raster (ID | Name, Job, Werte | Live) */
@media (max-width: 640px) {
    .tbl.online tr:has(> th) { display: none; }
    .tbl.online tr:not(:has(> th)) { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; align-items: center; }
    .tbl.online td:nth-child(1) { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding-top: 2px; }
    .tbl.online td:nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
    .tbl.online td:nth-child(3) { grid-column: 2; grid-row: 2; }
    .tbl.online td:nth-child(4) { grid-column: 2; grid-row: 3; }
    .tbl.online td:nth-child(5) { grid-column: 3; grid-row: 3; }
    .tbl.online td:nth-child(6) { grid-column: 3 / span 2; grid-row: 2; text-align: right; }
    .tbl.online td:nth-child(7) { grid-column: 2; grid-row: 4; }
    .tbl.online td:nth-child(8) { grid-column: 3; grid-row: 4; margin: 0; text-align: left; }
    .tbl.online td:nth-child(9) { grid-column: 4; grid-row: 3 / span 2; justify-self: end; }
    .tbl.online td:nth-child(10) { grid-column: 4; grid-row: 1; justify-self: end; }
}
@media (max-width: 860px) { .app { grid-template-rows: auto 1fr; } }

/* Abmelden leicht rot, damit man es nicht aus Versehen für ein Menü hält */
#logout { color: #ff8b7e; border-color: rgba(231, 76, 60, .4); background: rgba(231, 76, 60, .1); }
#logout:hover { color: #fff; border-color: rgba(231, 76, 60, .7); background: rgba(231, 76, 60, .25); }

/* ---------- Support: Leitstand, Tickets, Team-Chat, Erstattungen, Aktionen (2026-10-28) ---------- */
.pad { padding: 14px 18px; }
.box > h2 .more { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.seg .n { color: var(--fc-t); font-weight: 700; }
.toast.ok { border-color: rgba(46, 204, 113, .5); }
.toast.bad { border-color: rgba(231, 76, 60, .55); color: #ffb4ab; }
.btn.danger.solid { background: #c0392b; border-color: #c0392b; color: #fff; }
.field textarea, .field select, .treply textarea {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0B1322; color: var(--text);
    outline: none; font: inherit; font-size: 14px; resize: vertical; }
.field select { height: 44px; padding: 0 10px; }
.field textarea:focus, .field select:focus, .treply textarea:focus { border-color: var(--fc); box-shadow: 0 0 0 3px rgba(var(--fc-rgb), .22); }
.modal .field input { height: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg.wide { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg.wide label { position: relative; }
.seg.wide input { position: absolute; opacity: 0; }
.seg.wide span { display: grid; place-items: center; height: 36px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg.wide input:checked + span { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.wide input:focus-visible + span { outline: 2px solid var(--fc-t); }
.modal form { max-height: calc(100vh - 32px); overflow-y: auto; }

/* Team-Chat */
.chatlog { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; max-height: 60vh; overflow-y: auto; }
.chatlog.compact { max-height: 340px; }
.chatbox .chatlog { max-height: calc(100vh - 290px); min-height: 240px; }
.cmsg { display: flex; gap: 10px; align-items: flex-start; }
.cmsg img, .cmsg .ava { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; background: var(--panel-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cmsg > div { min-width: 0; }
.cmeta { font-size: 12px; color: var(--dim); }
.cmeta b { color: var(--text); font-size: 13px; margin-right: 4px; }
.cmsg p { margin-top: 2px; font-size: 13.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cmsg p em { font-style: normal; color: var(--fc-t); font-weight: 600; }
.cmsg.mine .cmeta b { color: var(--fc-t); }
.chatform { display: flex; gap: 8px; }
.chatform input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0B1322; outline: none; }
.chatform input:focus { border-color: var(--fc); box-shadow: 0 0 0 3px rgba(var(--fc-rgb), .22); }
.chatform .btn { width: 42px; height: 42px; padding: 0; }

/* Ticket */
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.tmain { display: flex; flex-direction: column; }
.thead { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.thead h2 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.thead .pmeta { margin-top: 8px; align-items: center; }
.tacts { display: flex; gap: 8px; flex: 0 0 auto; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 18px; max-height: 58vh; overflow-y: auto; }
.tmsg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.tmsg p { margin-top: 3px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tmsg.staff { align-self: flex-end; background: rgba(var(--fc-rgb), .12); border-color: rgba(var(--fc-rgb), .3); }
.tmsg.note { align-self: flex-end; background: rgba(245, 165, 36, .07); border-color: rgba(245, 165, 36, .3); }
.tsys { align-self: center; font-size: 12px; color: var(--dim); text-align: center; }
.tsys span { margin-left: 4px; }
.treply { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.trow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tside .box > h2 { font-size: 13px; }
.kvlist { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.tclip { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.shot { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.modal.imgview { cursor: zoom-out; }
.modal.imgview img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* Erstattungen */
.picks { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; background: #0B1322; border: 1px solid var(--line); cursor: pointer; }
.pick input { width: 18px; height: 18px; accent-color: var(--fc); }
.pick span { flex: 1; display: flex; flex-direction: column; }
.pick small { color: var(--dim); font-size: 12px; }
.pick em { font-style: normal; color: var(--muted); font-weight: 700; }
.pick.dis { opacity: .55; cursor: default; }

/* Aktionen in der Akte */
.actbar { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.itempick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; }
.itempick button { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: #0B1322; border: 1px solid var(--line); text-align: left; }
.itempick button.on { border-color: var(--fc); box-shadow: 0 0 0 2px rgba(var(--fc-rgb), .25); }
.itempick b { font-size: 13px; }
.itempick small { color: var(--dim); font-size: 11px; }
.licchar { padding: 4px 0 16px; }
.licchar + .licchar { border-top: 1px solid var(--line); padding-top: 16px; }
.licchar h3 { font-size: 14px; margin-bottom: 10px; }
.licchar h3 small { color: var(--dim); font-weight: 600; margin-left: 6px; }
.licchar h4 { font-size: 12.5px; color: var(--dim); margin: 14px 0 0; }
.licchar .inv { padding: 8px 0 0; }
.licchar .muted { margin-top: 8px; }
.lics { display: flex; flex-wrap: wrap; gap: 8px; }
.lic { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #0B1322; color: var(--muted); font-weight: 600; font-size: 13px; }
.lic svg { width: 15px; height: 15px; }
.lic.on { color: var(--good); border-color: rgba(46, 204, 113, .35); }
.lic:not([disabled]):hover { border-color: #36507d; }
.lic[disabled] { cursor: default; }

@media (max-width: 1100px) { .tgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .thead { flex-direction: column; }
    .tmsg { max-width: 94%; }
    .two { grid-template-columns: 1fr; }
    .actbar .btn { flex: 1 1 calc(50% - 8px); }
}

/* Handy: Leiste unten statt Icons oben (2026-10-28) */
.mnav { display: none; }
.tag + .tag { margin-left: 10px; }
@media (max-width: 860px) {
    .side .navs { display: none; }
    .side { justify-content: flex-start; }
    .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
        background: rgba(12, 19, 34, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .mnav > a, .mnav > button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--dim); text-decoration: none !important; }
    .mnav svg { width: 22px; height: 22px; }
    .mnav .on { color: var(--fc-t); }
    .mnav em { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--fc); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
    .msheet { position: absolute; right: 8px; bottom: calc(100% + 8px); width: min(260px, calc(100vw - 16px)); padding: 6px; border-radius: 14px;
        background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); display: flex; flex-direction: column; }
    .msheet a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none !important; }
    .msheet a.on { color: var(--fc-t); background: rgba(var(--fc-rgb), .1); }
    .msheet svg { width: 19px; height: 19px; color: var(--muted); }
    .content { padding-bottom: 96px; }
    .side .abrand div { display: block; }
    .side .abrand { padding: 0 16px; }
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .livecard { padding: 12px; } }

/* Ziffern in Kreisen: Montserrat sitzt etwas zu hoch, optisch mittig setzen */
.asteps .num, .sn { line-height: 1; padding-top: 2px; font-variant-numeric: lining-nums tabular-nums; }
.asteps .num svg { margin-top: -2px; }
