/* VideoART Erfassung (PWA) — schlichtes mobiles Layout mit den VideoART-Tokens (nicht Teil des CRM-Designs). */
@font-face { font-family: "Syne"; src: url(fonts/Syne-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
:root {
  --primary: #e3000b; --primary-strong: #b80009; --primary-soft: #fde8e9;
  --ink: #111; --ink-soft: #666; --line: #e6e6e6; --bg: #f6f6f6; --surface: #fff;
  --ok: #1c8156; --warn: #b26b00;
  --font-display: "Syne", "Trebuchet MS", sans-serif; --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font-body); -webkit-text-size-adjust: 100%; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--ink); color: #fff; }
.brand { font: 700 17px var(--font-display); letter-spacing: -.01em; }
.brand span { color: var(--primary); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.net { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #333; }
.net.online { background: var(--ok); }
.net.offline { background: var(--warn); }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
h1 { font: 700 22px/1.2 var(--font-display); margin: 6px 0 8px; }
h2 { font: 700 16px var(--font-display); margin: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 12.5px; }
label { display: block; margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
label > span:first-child { display: block; margin-bottom: 4px; }
input, textarea, select { width: 100%; font: 16px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; text-transform: none; letter-spacing: 0; }
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
label.target input, label.target textarea { outline: 2px solid var(--primary); background: var(--primary-soft); }
.code-input { font: 700 24px/1 ui-monospace, Menlo, monospace; letter-spacing: .3em; text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 12px; padding: 12px 16px; font: 600 15px var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn.big { width: 100%; padding: 18px; font-size: 16px; justify-content: flex-start; }
.btn[disabled] { opacity: .5; }
.ico { font-size: 20px; width: 26px; text-align: center; }
.icon-btn { border: 0; background: transparent; color: inherit; font-size: 20px; padding: 4px 8px; cursor: pointer; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 22px; }
.event { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 34px 12px 14px; cursor: pointer; }
.event-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.event-name { font: 700 17px var(--font-display); margin-top: 2px; }
.chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ink-soft); }
.queue-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.list { list-style: none; margin: 10px 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list:empty { display: none; }
.list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.tap { cursor: pointer; }
.list .main { flex: 1; min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { font-size: 12.5px; color: var(--ink-soft); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eee; color: #444; white-space: nowrap; }
.pill.ok { background: #e2efe8; color: #14563a; }
.pill.warn { background: #fff3c4; color: #7a5b00; }
.pill.err { background: var(--primary-soft); color: var(--primary-strong); }
.pill.a { background: var(--primary); color: #fff; }
.cap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-shot { background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.card-shot img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.ocr-status { background: var(--surface); padding: 6px 10px; }
.lines { margin: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.used { opacity: .45; }
.note-wrap { display: flex; gap: 6px; align-items: flex-start; }
.mic { background: var(--primary-soft); border-radius: 10px; padding: 10px; }
.mic.on { background: var(--primary); }
.error { background: var(--primary-soft); color: var(--primary-strong); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 6px 0; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 24px auto 8px; }
section[data-view="saved"] { text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; max-width: 92vw; z-index: 20; }
