/* Beauftragten-App der Evakuierung (ab 1.141.0) – dunkel, große Flächen, für das iPhone am Sammelplatz */
:root { --signal: #3b82f6; --st-erledigt: #3fb37f; --r-l: 16px; --r-m: 10px; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #19212b; color: #e8edf3; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.ev-app { max-width: 720px; margin: 0 auto; min-height: 100vh; }
.ev-load { padding: 40px 20px; text-align: center; color: #9aa8b8; }
.ev-box { padding: 48px 22px; text-align: center; }
.ev-box h1 { font-size: 24px; margin: 0 0 12px; }
.ev-box p { color: #c4ced9; }
.ev-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: #10161d; flex-wrap: wrap; }
.ev-site { font-size: 13px; color: #9aa8b8; display: flex; align-items: center; gap: 6px; }
.ev-site select { font: inherit; font-size: 15px; padding: 6px 8px; border-radius: 8px; background: #232d39; color: #fff; border: 1px solid #34445a; }
.ev-net { padding: 6px 16px; font-size: 13px; font-weight: 600; }
.ev-net.on { background: #12372a; color: #7fe0b0; }
.ev-net.wait { background: #3a3417; color: #f5d978; }
.ev-net.off { background: #4a1e21; color: #ffb3b5; }
.ev-alarm { background: #c62828; color: #fff; text-align: center; font-weight: 800; letter-spacing: .06em; padding: 10px; font-size: 18px; }
.ev-alarm.drill { background: #1d5fd0; }
.ev-alarm.end { background: #1d6b45; letter-spacing: 0; font-size: 15px; font-weight: 700; }
.ev-main { padding: 10px 16px; background: #222c38; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ev-red { color: #ff8a8d; font-weight: 700; }
.ev-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: #f0a43c; color: #1b1300; vertical-align: middle; }
.ev-tag.grey { background: #5b6878; color: #fff; }
.ev-body { padding: 14px 16px 40px; }
.ev-muted { color: #9aa8b8; }
.small { font-size: 13px; }
.ev-btn { display: block; width: 100%; font: inherit; font-weight: 700; text-align: center; text-decoration: none; padding: 12px 14px; margin: 10px 0; border-radius: 12px; border: 1px solid #34445a; background: #232d39; color: #fff; cursor: pointer; }
.ev-btn.big { padding: 18px; font-size: 18px; }
.ev-btn.red { background: #c62828; border-color: #e5484d; }
.ev-btn.green { background: #1d6b45; border-color: #3fb37f; }
.ev-btn.sm { display: inline-block; width: auto; margin: 0; padding: 8px 12px; font-size: 14px; }
.ev-btn.xs { display: inline-block; width: auto; margin: 0 0 0 6px; padding: 4px 10px; font-size: 13px; vertical-align: middle; }
.ev-btn.on { background: #3b82f6; border-color: #3b82f6; }
.ev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ev-stats > div { background: #222c38; border-radius: 12px; padding: 10px; text-align: center; font-size: 12px; color: #9aa8b8; }
.ev-stats b { display: block; font-size: 28px; line-height: 1.1; }
.ev-stats .ok { color: #3fb37f; } .ev-stats .open { color: #f0a43c; } .ev-stats .miss { color: #e5484d; }
.ev-tabs, .ev-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ev-chips .ev-btn.xs { margin: 0; }
.ev-sp { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #9aa8b8; margin: 20px 0 8px; }
.ev-grp { margin-bottom: 14px; }
.ev-grp h4 { margin: 0 0 6px; font-size: 16px; }
.ev-anw { margin: -2px 0 6px; font-size: 13px; color: #ffb3b5; }
.ev-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ev-tile { font: inherit; text-align: left; padding: 14px 12px; min-height: 84px; border-radius: 12px; border: 2px solid transparent; color: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ev-tile b { font-size: 16px; }
.ev-tile small { font-size: 11px; opacity: .85; }
.ev-tile.open { background: #5a3e12; border-color: #f0a43c; }
.ev-tile.ok { background: #1d5a3e; border-color: #3fb37f; }
.ev-tile.miss { background: #6b1f22; border-color: #e5484d; animation: ev-pulse 1.2s ease-in-out infinite alternate; }
.ev-tile.free { background: #333d4a; border-color: #5b6878; cursor: default; }
.ev-wait { color: #f5d978; }
@keyframes ev-pulse { to { background: #8f2a2e; } }
@media (prefers-reduced-motion: reduce) { .ev-tile.miss { animation: none; } }
.ev-plan { position: relative; border-radius: 12px; overflow: hidden; background: #fff; }
.ev-plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.ev-plan svg { position: relative; display: block; width: 100%; height: auto; }
.ev-plan polygon, .ev-plan [data-goplan] { cursor: pointer; }
.ev-al { font-size: 30px; font-weight: 800; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 6px; pointer-events: none; }
.ev-al2 { font-size: 22px; font-weight: 700; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 5px; pointer-events: none; }
.ev-fw { padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; background: #222c38; border-left: 5px solid #f0a43c; font-size: 14px; }
.ev-fw.miss { border-left-color: #e5484d; background: #3d1c1f; }
.ev-fw.ok { border-left-color: #3fb37f; }
.ev-fw small { color: #ffb3b5; }
.ev-tel { display: grid; gap: 6px; }
.ev-tel a { color: #9cc4ff; text-decoration: none; padding: 10px 12px; background: #222c38; border-radius: 10px; }
.ev-log { font-size: 13px; color: #c4ced9; }
.ev-log div { padding: 4px 0; border-bottom: 1px solid #2a3542; }
.ev-log span { color: #9aa8b8; font-variant-numeric: tabular-nums; margin-right: 6px; }
#ev-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; background: #0d1218; color: #fff; padding: 12px 16px; border-radius: 12px; max-width: 90vw; transition: .25s; pointer-events: none; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#ev-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* QR-Scanner (gleich wie im Leitstand) */
.btn { font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 10px; border: 1px solid #34445a; cursor: pointer; }
.btn-block { display: block; width: 100%; }
.qr-dialog { padding: 0; border: 0; width: min(520px, 100vw); max-width: 100vw; max-height: 100dvh; background: #000; color: #fff; border-radius: var(--r-l); overflow: hidden; }
.qr-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.qr-stage { position: relative; aspect-ratio: 3 / 4; max-height: 70dvh; width: 100%; background: #000; overflow: hidden; }
.qr-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-frame { position: absolute; left: 50%; top: 50%; width: min(64%, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); border-radius: 14px; }
.qr-frame i { position: absolute; width: 28px; height: 28px; border: 4px solid var(--signal); }
.qr-frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.qr-frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.qr-frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.qr-frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.qr-laser { position: absolute; left: 8%; right: 8%; height: 2px; background: var(--signal); box-shadow: 0 0 10px var(--signal); top: 10%; animation: qr-scan 2s ease-in-out infinite alternate; }
@keyframes qr-scan { to { top: 90%; } }
@media (prefers-reduced-motion: reduce) { .qr-laser { animation: none; top: 50%; } }
.qr-hit .qr-frame i { border-color: var(--st-erledigt); }
.qr-hit .qr-laser, .qr-failed .qr-laser, .qr-failed .qr-frame { display: none; }
.qr-bar { padding: 14px 16px 16px; background: #10161d; }
.qr-bar strong { display: block; font-size: 17px; }
.qr-msg { margin: 4px 0 12px; color: #c4ced9; font-size: 14px; }
.qr-failed .qr-msg { color: #ffb35c; }
.qr-bar .btn { background: #232d39; color: #fff; border-color: #34445a; }
.qr-bar .qr-photo { margin-bottom: 8px; background: #1d3a5c; border-color: #2f5f93; }
@media (max-width: 560px) { .qr-dialog { width: 100vw; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; } .qr-dialog[open] { display: flex; } .qr-stage { flex: 1; aspect-ratio: auto; max-height: none; } }
.ev-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 4px; background: #e0a530; } .ev-dot.ok { background: #3fb37f; } .ev-dot.miss { background: #e5484d; }
