:root{
 --bg:#f7f8fa; --card:#fff; --ink:#171a1f; --muted:#8b94a3; --line:#ecedf1;
 --accent:#2f6bff; --accent-ink:#2f6bff; --rec:#ef4444; --ok:#16a34a; --warn:#d97706;
 --r:14px;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);
 color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased;
 padding-bottom:calc(64px + env(safe-area-inset-bottom))}
.ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;
 stroke-linecap:round;stroke-linejoin:round;display:block}
.ic-fill{fill:currentColor;stroke:none}

/* Topbar */
.topbar{display:flex;align-items:center;gap:18px;padding:12px 20px;background:var(--card);
 border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink)}
.brandimg{width:30px;height:30px;border-radius:8px;display:block}
.brandname{font-weight:800;font-size:19px;letter-spacing:-.03em}
.toptabs{display:flex;gap:4px}
.tab{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:10px;text-decoration:none;
 color:var(--muted);font-weight:600;font-size:14px}
.tab .ic{width:18px;height:18px}
.tab:hover{background:#f2f4f8;color:var(--ink)}
.tab.active{background:#eef3ff;color:var(--accent)}
.topright{margin-left:auto;display:flex;align-items:center;gap:14px}
.who{font-size:13px;color:var(--muted);font-weight:600}
.logout{font-size:13px;color:var(--muted);text-decoration:none;font-weight:600}
.logout:hover{color:var(--ink)}

/* Layout */
.wrap{max-width:680px;margin:0 auto;padding:22px 18px 30px}
.center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:22px;margin-bottom:16px}
.authcard{width:100%;max-width:400px}
h1{font-size:23px;letter-spacing:-.02em;margin-bottom:5px}
h2{font-size:16px;letter-spacing:-.01em}
.sub{color:var(--muted);font-size:14px;margin-bottom:18px}
.cardhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.link{font-size:13px;color:var(--accent);text-decoration:none;font-weight:600}
.empty{text-align:center;color:var(--muted);padding:26px 0;font-size:14px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border:none;
 border-radius:11px;font-size:15px;font-weight:600;cursor:pointer;transition:.14s;text-decoration:none;
 font-family:inherit;color:var(--ink);background:#f1f3f7}
.btn .ic{width:19px;height:19px}
.btn:hover{filter:brightness(.97)}
.btn.primary{background:var(--accent);color:#fff}
.btn.ghost{background:#f1f3f7;color:var(--muted)}
.btn.full{width:100%}
.btn.big{width:100%;padding:16px;font-size:16px;margin-top:4px}
.btn:disabled{opacity:.45;cursor:not-allowed}

/* Round control buttons (Aufnahme) */
.rec-card{display:flex;flex-direction:column;align-items:center;text-align:center}
.ctrls{display:flex;align-items:center;justify-content:center;gap:22px;margin:18px 0 4px}
.rbtn{display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;border-radius:50%;
 transition:.14s;background:#eef0f4;color:var(--muted)}
.rbtn .ic{width:26px;height:26px}
.rbtn.ghost{width:54px;height:54px}
.rbtn.ghost:hover:not(:disabled){background:#e3e6ec;color:var(--ink)}
.rbtn.rec{width:74px;height:74px;background:var(--accent);color:#fff;box-shadow:0 6px 18px rgba(47,107,255,.32)}
.rbtn.rec .ic{width:30px;height:30px}
body.rec-on .rbtn.rec{background:var(--rec);box-shadow:0 6px 18px rgba(239,68,68,.34)}
.rbtn.stopbig{width:74px;height:74px;background:var(--rec);color:#fff;box-shadow:0 6px 18px rgba(239,68,68,.34)}
.rbtn.stopbig .ic{width:30px;height:30px}
.rbtn:disabled{opacity:.4;cursor:not-allowed}
/* Lock: während Aufnahme nichts anderes klickbar */
body.rec-on .botnav a,body.rec-on .toptabs a,body.rec-on .logout,body.rec-on .brand,body.rec-on .fbbtn{pointer-events:none;opacity:.4}

/* Pegel-Bars (ChatGPT-Style) */
.bars{width:100%;display:block}

.timer{font-size:40px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:6px 0}
.status{font-size:13.5px;font-weight:600;color:var(--muted);padding:7px 12px;border-radius:20px;background:#f2f4f8}
.s-idle{color:var(--muted)}.s-rec{color:var(--rec);background:#fde8e8}
.s-proc{color:var(--warn);background:#fdf0e0}

.interim{width:100%;margin-top:18px;padding:14px;background:#f6f8fc;border:1px solid var(--line);
 border-radius:12px;font-size:14px;text-align:left}
.ilabel{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.result{width:100%;margin-top:18px;text-align:left}
.rtitle{font-size:18px;font-weight:800;letter-spacing:-.01em;margin-bottom:8px}
.transcript{padding:16px;background:#f6f8fc;border:1px solid var(--line);border-radius:12px;font-size:14px;
 line-height:1.65;white-space:pre-wrap;max-height:320px;overflow:auto;cursor:pointer}
.transcript:hover{border-color:var(--accent)}
.saved{margin-top:8px;font-size:12px;color:var(--muted);word-break:break-all}

/* Auth */
.brand-c{display:flex;align-items:center;justify-content:center;gap:11px;margin-bottom:18px}
.brandimg-l{width:46px;height:46px;border-radius:12px}.brandname-l{font-size:24px;font-weight:800;letter-spacing:-.03em}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}
.field input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;font-size:15px;
 background:#fbfcfe;font-family:inherit}
.field input:focus{outline:none;border-color:var(--accent);background:#fff}
.err{background:#fde8e8;color:var(--rec);padding:11px 14px;border-radius:11px;font-size:14px;margin-bottom:14px}
.hint{font-size:13px;color:var(--muted);margin-top:14px;text-align:center}
.hint a,.sub a{color:var(--accent);text-decoration:none;font-weight:600}

/* Archiv */
.searchbar{display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--line);
 border-radius:12px;background:#fbfcfe;margin-bottom:14px}
.searchbar .ic{color:var(--muted);flex:0 0 auto}
.searchbar input{flex:1;padding:13px 0;border:none;background:none;font-size:15px;font-family:inherit}
.searchbar input:focus{outline:none}
.listctl{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.selall{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);cursor:pointer}
.selall input{width:17px;height:17px}
.listctl select{padding:8px 11px;border:1px solid var(--line);border-radius:9px;font-size:13px;background:#fff;font-family:inherit}
.rowitem{border:1px solid var(--line);border-radius:11px;margin-bottom:8px;overflow:hidden;background:#fff}
.rhead{display:flex;align-items:center;gap:11px;padding:11px 13px;cursor:pointer}
.rhead:hover{background:#fafbfd}
.rhead input[type=checkbox]{width:17px;height:17px;flex:0 0 auto}
.rwhen{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;flex:0 0 auto;min-width:92px}
.rtit{font-weight:600;font-size:14.5px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcar{color:var(--muted);flex:0 0 auto;transition:.15s}
.rbody{display:none;padding:0 13px 13px;border-top:1px solid var(--line)}
.rbody .snip{font-size:13px;color:var(--muted);margin:9px 0;line-height:1.6}
mark{background:#fff2b0;border-radius:3px;padding:0 2px}
.rbody .ft{font-size:13px;line-height:1.65;white-space:pre-wrap;max-height:260px;overflow:auto;
 background:#f6f8fc;border:1px solid var(--line);border-radius:10px;padding:11px;margin-top:8px}
.racts{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.racts button,.racts a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;font-size:12.5px;
 border:1px solid var(--line);border-radius:9px;background:#f6f8fc;color:var(--muted);font-weight:600;
 cursor:pointer;text-decoration:none}
.racts .ic{width:16px;height:16px}
.racts button:hover,.racts a:hover{color:var(--ink)}
.recent .rowitem .rhead{cursor:default}

.selbar{position:fixed;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));
 background:var(--ink);color:#fff;display:none;align-items:center;justify-content:space-between;
 gap:14px;padding:11px 18px;z-index:45}
.selbar.show{display:flex}
.selbar #selcount{font-weight:600;font-size:14px}
.selbar .btn{background:#fff;color:var(--ink)}

/* DEV */
.segtabs{display:flex;gap:7px;margin-bottom:15px;flex-wrap:wrap}
.seg{padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#f6f8fc;color:var(--muted);
 font-weight:600;font-size:13.5px;cursor:pointer}
.seg.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.md h2{font-size:16px;margin:14px 0 7px}.md h3{font-size:14px;margin:12px 0 5px}
.md h4{font-size:13px;margin:10px 0 5px}.md p{margin:6px 0;font-size:14px}
.md ul{margin:7px 0 7px 18px}.md li{font-size:14px;margin:3px 0}
.md code{background:#eef1f6;padding:1px 5px;border-radius:5px;font-size:13px}
.fbitem{border:1px solid var(--line);border-radius:11px;padding:13px;margin-bottom:9px}
.fbitem .fbm{font-size:12px;color:var(--muted);margin-bottom:5px}
.fbitem .fbt{font-size:14px;line-height:1.55}
.fbitem audio{width:100%;margin-top:9px;height:32px}
.fbitem .fba{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.fbitem .fba button{padding:6px 11px;font-size:12px;border:1px solid var(--line);border-radius:8px;
 background:#f6f8fc;color:var(--muted);font-weight:600;cursor:pointer}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:1px 8px;border-radius:20px}
.b-neu{background:#fde8e8;color:var(--rec)}.b-erledigt{background:#e7f7ec;color:var(--ok)}
.b-roadmap{background:#eef3ff;color:var(--accent)}

/* Bottom nav (mobil) */
.botnav{display:none}
.fbbtn{position:fixed;right:16px;bottom:calc(74px + env(safe-area-inset-bottom));z-index:46;width:48px;height:48px;
 border-radius:50%;border:none;background:var(--ink);color:#fff;cursor:pointer;align-items:center;
 justify-content:center;box-shadow:0 6px 18px rgba(20,25,40,.28);display:flex}
.fbbtn .ic{width:22px;height:22px}

/* Overlay */
.overlay{display:none;position:fixed;inset:0;background:rgba(15,17,21,.55);z-index:100;
 align-items:center;justify-content:center;padding:18px}
.overlay.show{display:flex}
.ovcard{background:#fff;border-radius:16px;padding:22px;width:100%;max-width:420px;text-align:center}
.ovcard h2{margin-bottom:4px}.ovcard .ctrls{margin:14px 0}

/* Toast */
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);
 background:var(--ink);color:#fff;padding:10px 16px;border-radius:22px;font-size:14px;font-weight:600;
 z-index:200;opacity:0;transition:.22s;pointer-events:none}
.toast.show{opacity:1}

@media(max-width:720px){
 .toptabs{display:none}
 .topbar{padding:11px 16px}
 .who{display:none}
 .botnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:46;background:var(--card);
  border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
 .bn{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 0 8px;
  text-decoration:none;color:var(--muted);font-size:10.5px;font-weight:600}
 .bn .ic{width:23px;height:23px}
 .bn.active{color:var(--accent)}
 .timer{font-size:36px}
}
