:root{--primary: #00549f;--primary-light: #8ebae5;--bg: #f2f2f2;--fg: #444444;--muted: #6b7280;--line: #e2e6ec;--card: #ffffff;--green: #1f9d55;--danger: #c0392b;--radius: 18px;--frame-w: 1040px}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;height:100%}body{background:var(--bg);color:var(--fg);font-family:Source Sans Pro,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}#app{min-height:100%;display:flex}.screen{flex:1;height:100dvh;min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(10px,1.5vw,20px);overflow:hidden}.card{width:min(100%,var(--frame-w));height:100%;max-height:100%;background:var(--card);border-radius:var(--radius);box-shadow:0 8px 30px #10151c1a;padding:clamp(16px,2vw,28px);display:flex;flex-direction:column;justify-content:safe center;gap:clamp(12px,1.6vw,18px);overflow:hidden}.card.start,.card.done,.card.center{overflow-y:auto}.card.start{justify-content:flex-start}.start-top,.start-head{display:flex;flex-direction:column;gap:clamp(12px,1.6vw,18px)}.start-head-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.head-actions{display:flex;gap:8px}.card.login{justify-content:center;max-width:520px;margin:0 auto;overflow-y:auto}.card.login .brand{align-self:center}.card.login h1,.card.login .hint{text-align:center}.login-form{display:flex;flex-direction:column;gap:clamp(12px,1.8vh,18px)}.start-body{display:flex;flex-direction:column;gap:clamp(12px,1.8vh,19px)}.card.start .start-foot{margin-top:auto}.modal-actions.single{grid-template-columns:1fr}.card.center{align-items:center;text-align:center;justify-content:center}.card.done{text-align:center;gap:clamp(16px,2vw,24px)}.card.done .brand{align-self:center;margin:0 auto}h1{margin:0;font-size:clamp(20px,1.1vw + 15px,27px)}p{margin:0;color:var(--muted);font-size:clamp(13px,.3vw + 12px,15px);line-height:1.45}p.error{color:var(--danger);font-weight:600}p.hint{color:var(--muted);font-size:13px}p.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-all}.brand{display:block;height:clamp(38px,4.5vw,54px);width:auto;align-self:flex-start;object-fit:contain}.brand-mini{height:clamp(24px,2.6vw,30px);width:auto;align-self:flex-start;display:block;object-fit:contain}.ico{display:inline-flex;align-items:center;justify-content:center}.ico svg{width:1.5em;height:1.5em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.install-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef4fb;border:1px solid #cfe0f3;color:#24507d;border-radius:12px;padding:10px 12px;font-size:13px}.link{background:none;border:none;color:var(--primary);font:inherit;font-weight:700;cursor:pointer}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.field input,.field select{font:inherit;font-size:16px;padding:12px 14px;border:1px solid #d3d9e1;border-radius:11px;background:#fbfcfe;color:var(--fg);width:100%}.field input:focus,.field select:focus{outline:2px solid var(--primary);border-color:var(--primary)}.field select{-moz-appearance:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:18px 18px;padding-right:44px}.sn-input input::placeholder{color:#b9c2cf;opacity:1}.sn-input{display:flex;align-items:stretch;border:1px solid #d3d9e1;border-radius:11px;background:#fbfcfe;overflow:hidden}.sn-input:focus-within{outline:2px solid var(--primary);border-color:var(--primary)}.sn-prefix{display:flex;align-items:center;padding:0 12px 0 14px;font-weight:700;color:var(--muted);background:#eef1f5}.sn-input input{border:none;background:transparent;outline:none!important;flex:1;min-width:0;font-size:16px;font-weight:700;letter-spacing:.18em;padding:12px 14px}.sn-clear{flex:0 0 auto;border:none;background:transparent;color:var(--muted);cursor:pointer;padding:0 12px;display:inline-flex;align-items:center}.sn-clear:hover{color:var(--fg)}.sn-clear .ico svg{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.btn{font:inherit;font-weight:700;font-size:clamp(15px,.3vw + 14px,17px);border:none;border-radius:13px;padding:clamp(12px,1vh + 8px,17px);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;-webkit-tap-highlight-color:transparent}.btn.primary{background:var(--primary);color:#fff}.btn.soft{background:var(--bg);color:var(--fg)}.btn.danger{background:var(--danger);color:#fff}.btn:disabled{opacity:.45;cursor:default}.btn .ico svg{width:1.2em;height:1.2em}.card.start .start-foot,.card .start-foot{display:flex}.card.start .start-foot .btn,.card .start-foot .btn{width:100%}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.head-left{display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-width:0}.head-params span{display:block;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.head-params b{font-size:clamp(15px,.4vw + 14px,18px);color:var(--fg)}.card.capture>*{flex:0 0 auto}.card.capture .stage-area{flex:1 1 auto;min-height:160px;display:grid;place-items:center}.posline{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.pos-label{font-size:clamp(18px,1.4vw + 13px,26px);font-weight:700;color:var(--fg);line-height:1.15}.pos-count{font-size:clamp(12px,.3vw + 11px,14px);color:var(--muted);white-space:nowrap}.stage{position:relative;max-width:100%;max-height:100%;aspect-ratio:16 / 9;border-radius:14px;overflow:hidden;background:#10151c;touch-action:none}.stage video{position:absolute;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;display:block}.shot-photo{display:block;width:100%;height:100%;object-fit:contain;background:#10151c}.cam-err{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;text-align:center;color:#ffb4b4;font-size:13px;background:#10151cd9}.cam-retry{position:absolute;left:50%;top:62%;transform:translate(-50%);z-index:2}.stage-actions{position:absolute;right:12px;bottom:12px;display:flex;gap:8px}.stage-actions .icon-btn{background:#10151ca6;color:#fff}.stage-actions .btn.primary{background:var(--primary);color:#fff}.bild-tabs{display:flex;justify-content:center;gap:8px;margin:0 0 6px}.bild-tab{width:clamp(72px,9vw,104px);height:clamp(40px,5vw,58px);padding:0;border:2px solid transparent;border-radius:8px;background:#10151c;opacity:.55;overflow:hidden;cursor:pointer;transition:opacity .12s,border-color .12s}.bild-tab img{display:block;width:100%;height:100%;object-fit:cover}.bild-tab[data-aktiv=true]{border-color:var(--primary);opacity:1}.bild-tausch{width:clamp(40px,5vw,56px);height:clamp(40px,5vw,56px);flex:0 0 auto;color:var(--primary);background:#eef1f5}.zusatz-abbrechen{position:absolute;top:12px;left:12px;background:#10151ca6;color:#fff}.pos-right{display:inline-flex;align-items:center;gap:10px}.beispiel-btn{width:clamp(42px,4vw,50px);background:#eef1f5;color:var(--primary);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.beispiel-btn.is-empty{background:#e6e9ee;color:#9aa3ae}.beispiel-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#fff;font-size:clamp(16px,1vw + 12px,22px);font-weight:600;letter-spacing:.01em}.stage-beispiel{position:absolute;top:0;right:0;bottom:0;left:0;background:#10151c}.stage-beispiel img{width:100%;height:100%;object-fit:contain}.beispiel-badge{position:absolute;top:12px;left:14px;z-index:2;background:#10151cc7;color:#fff;font-size:clamp(15px,1vw + 11px,20px);font-weight:700;letter-spacing:.02em;padding:5px 14px;border-radius:8px}.zoom-badge{position:absolute;top:12px;right:14px;z-index:2;background:#10151cc7;color:#fff;font-size:clamp(13px,.5vw + 12px,17px);font-weight:700;letter-spacing:.02em;padding:4px 11px;border-radius:8px;pointer-events:none}.bottom-row{display:flex;gap:10px}.bottom-row .shot{flex:1 1 auto;min-width:0}.icon-btn,.nav-btn{flex:0 0 auto;width:clamp(52px,5vw,64px);padding-inline:0}.nav-row{display:flex;align-items:center;gap:10px}.nav-row .dots{flex:1 1 auto;min-width:0}.dots{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.dot{width:clamp(22px,2vw,30px);aspect-ratio:1;border-radius:6px;border:none;padding:0;background:#dfe4ea;cursor:pointer}.dot[data-done=true]{background:var(--green)}.dot[data-active=true]{background:var(--primary);transform:scale(1.15)}.card.edit>*{flex:0 0 auto}.card.edit .edit-stage{flex:1 1 auto;min-height:0;display:grid;place-items:center;background:#10151c;border-radius:14px;padding:8px;overflow:hidden}.edit-canvas{position:relative;max-width:100%;max-height:100%;line-height:0}.edit-canvas img{display:block;max-width:100%;max-height:100%}.crop-rect{position:absolute;border:2px solid rgba(255,255,255,.95);box-shadow:0 0 0 9999px #00000073;cursor:move;touch-action:none}.crop-handle{position:absolute;right:-12px;bottom:-12px;width:26px;height:26px;border-radius:5px;background:#fff;border:2px solid var(--primary);cursor:nwse-resize;touch-action:none}.edit-tools{display:flex;gap:10px}.edit-tools .btn.soft:not(.icon-btn){flex:1 1 auto}.stand-tip{position:fixed;z-index:30;padding:4px 8px;border-radius:6px;background:#10151ceb;color:#fff;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #10151c40}.card.overview>*{flex:0 0 auto}.overview-hint{color:#b45309;font-weight:600}.card.overview .grid-scroll{flex:1 1 auto;min-height:0;overflow-y:scroll;padding-right:4px;scrollbar-width:auto}.bar{height:8px;border-radius:999px;background:var(--bg);overflow:hidden}.bar i{display:block;height:100%;background:var(--green);width:0;transition:width .2s}.overview-actions{display:flex;gap:10px}.overview-actions .btn.primary{flex:1 1 auto}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-content:start;gap:10px}.tile{position:relative;border-radius:11px;border:1px solid #d3d9e1;background:#f4f6f9;cursor:pointer;overflow:hidden;padding:0;font:inherit}.tile:before{content:"";display:block;padding-top:75%}.tile img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.tile .ph{position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(135deg,#eef1f5,#eef1f5 8px,#e6eaf0 8px,#e6eaf0 16px)}.tile .no{position:absolute;top:6px;left:7px;font-size:11px;font-weight:700;background:#ffffffe0;border-radius:5px;padding:1px 7px}.tile .lbl{position:absolute;left:6px;right:6px;bottom:6px;font-size:11px;line-height:1.15;background:#ffffffe0;border-radius:5px;padding:2px 6px;text-align:left;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tile[data-done=true]{border-color:var(--green)}.tile .check{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center}.tile .check svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.tile .mehr{position:absolute;top:6px;right:32px;font-size:11px;font-weight:700;color:#fff;background:var(--primary);border-radius:5px;padding:1px 6px}.card.sign>*{flex:0 0 auto}.card.sign .sign-pad{flex:1 1 auto;min-height:180px;position:relative;background:#fff;border:1px dashed #c3ccd8;border-radius:14px;overflow:hidden}.sign-pad canvas{display:block;width:100%;height:100%;touch-action:none}.sign-actions{display:flex;gap:10px}.sign-actions .btn.primary{flex:1 1 auto}.busy-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:#10151cc7;color:#fff;text-align:center;font-size:clamp(16px,.6vw + 14px,20px);line-height:1.4}.busy-overlay p{margin:0}.spinner{width:46px;height:46px;border:5px solid rgba(255,255,255,.28);border-top-color:#fff;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.done-actions{display:grid;gap:10px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:20px;background:#10151c80}.modal{width:min(460px,100%);background:var(--card);border-radius:16px;padding:clamp(18px,2vw,26px);display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 60px #10151c4d}.modal h2{margin:0;font-size:clamp(18px,1vw + 14px,22px)}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media (min-width: 700px){.done-actions{grid-template-columns:1fr 1fr}.done-actions #again{grid-column:1 / -1}}@media (orientation: landscape) and (min-width: 820px){.card.capture{gap:10px}.card.capture .stage-area{min-height:200px}}@media (max-height: 560px) and (orientation: landscape){.screen{height:auto;min-height:100dvh;overflow:visible;padding:8px}.card{height:auto;max-height:none;gap:8px;padding:12px}.btn{padding:10px;font-size:14px}.dot{width:20px}.pos-label{font-size:17px}.card.capture .stage-area,.card.edit .edit-stage,.card.sign .sign-pad{min-height:110px}.card.overview .grid-scroll{flex:0 0 auto;overflow:visible}}.entwurf{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 14px;padding:12px 14px;border:1px solid #cfe0f5;border-radius:12px;background:#eef5fd}.entwurf-text{display:flex;flex:1 1 220px;flex-direction:column;gap:2px;min-width:0}.entwurf-text b{font-size:1rem}.entwurf-text span{font-size:.9rem;color:#4a5866}.entwurf .btn{flex:0 0 auto}.entwurf-warnung{margin:6px 0 0;font-size:.9rem;line-height:1.35;color:#b3261e}
