/* SeilerCar Beta – Farben aus seilercar.ch (Logo-Navy #0b1e60, Logo-Grau #65646a, Akzent #2ea3f2) */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
:root{
  --navy:#0b1e60;--navy2:#1a2f7a;--navy-soft:#e7ebf6;--grey:#65646a;--accent:#2ea3f2;--accent-soft:#e3f2fd;
  --bg:#f3f4f7;--line:#e2e4ea;--txt:#1b1d26;--mut:#6b7080;
  --red:#d93a3a;--yel:#f2b705;--gry:#a9aeb8;--grn:#1e9e5a;--org:#d97706;
  --sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);
  --font:"Helvetica Neue",Helvetica,Arial,-apple-system,"Segoe UI",Roboto,sans-serif;
}
html{background:var(--bg)}
body{font-family:var(--font);background:var(--bg);color:var(--txt);max-width:520px;margin:0 auto;min-height:100vh;-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.35;overscroll-behavior-y:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select,textarea{font:inherit;font-size:16px;color:var(--txt)}
img{display:block}
b,strong{font-weight:700}

/* Header */
#hdr{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--line);padding:var(--sat) 12px 0;}
.hrow{height:56px;display:flex;align-items:center;gap:10px}
.logo{height:30px;width:auto}
.beta{font-size:10.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--accent);border:1px solid #b9dffb;background:var(--accent-soft);border-radius:999px;padding:2px 7px}
.sp{flex:1}
.av{width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.uname{font-size:13px;color:var(--mut);text-align:right;line-height:1.15}
.uname b{display:block;color:var(--navy);font-size:14px}
.back{display:flex;align-items:center;gap:2px;color:var(--navy);font-weight:700;font-size:16px;min-height:44px;padding-right:8px}
.htitle{font-weight:700;color:var(--navy);font-size:16px;flex:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hright{min-width:76px;display:flex;justify-content:flex-end}

/* Layout */
#view{padding:12px 14px calc(96px + var(--sab))}
body.sub #view{padding-bottom:calc(110px + var(--sab))}
body.sub #tabs{display:none}
.card{background:#fff;border:1px solid var(--line);border-radius:14px}
.sec{padding:14px;margin-bottom:12px}
.sec h3{font-size:15px;font-weight:700;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--txt)}
.sec h3 small{font-size:12px;font-weight:500;color:var(--mut)}
.muted{color:var(--mut)}.small{font-size:12.5px}
.h2{font-size:13px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.5px;margin:18px 2px 8px}
.row{display:flex;align-items:center;gap:8px}
.note{font-size:12.5px;color:var(--mut);line-height:1.4;display:flex;gap:6px;margin-top:8px}
.note svg{flex:none;margin-top:1px}
.empty{text-align:center;color:var(--mut);padding:26px 10px;font-size:14px}

/* Tabbar */
#tabs{position:fixed;left:0;right:0;bottom:0;z-index:10;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding-bottom:var(--sab)}
#tabs .in{display:flex;width:100%;max-width:520px}
#tabs button{flex:1;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:600;color:#8a8f9c}
#tabs button.on{color:var(--navy)}
#tabs button.on svg{stroke:var(--navy)}

/* Wochenleiste */
.week{background:#eceef3;border-radius:12px;padding:6px 6px 7px;margin-bottom:12px}
.week .wh{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;color:var(--mut);font-weight:600;padding:0 2px 4px}
.week .wh button{width:44px;height:28px;color:var(--grey);font-size:18px;line-height:1}
.wdays{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.wd{background:#f7f8fa;border-radius:8px;padding:5px 5px 6px;min-height:58px;text-align:left;font-size:10.5px;line-height:1.25;color:#4a4f5e;overflow:hidden}
.wd .dl{font-weight:700;font-size:11px;color:var(--grey);margin-bottom:2px}
.wd.today{outline:1.5px solid var(--accent)}
.wd .e{overflow:hidden;text-overflow:ellipsis;margin-top:2px;word-break:normal;overflow-wrap:normal;hyphens:manual}
.wd .e b{color:var(--navy);font-weight:700}
.wd .ok{color:var(--grn);font-weight:600}
.wd.hol{background:#fbe9e9}.wd.bf{background:#dfe3ef}.wd.bt{background:#ddeffc}

/* Scan & Quick */
.scan{width:100%;height:76px;border-radius:16px;background:var(--navy);color:#fff;font-size:19px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 6px 18px rgba(11,30,96,.28);margin-bottom:10px}
.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.quick button{background:#fff;border:1px solid var(--line);border-radius:12px;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:600;color:var(--navy);line-height:1.15;text-align:center;padding:6px 2px}

/* Segment */
.seg{display:grid;grid-template-columns:repeat(4,1fr);background:#e6e8ee;border-radius:12px;padding:3px;margin-bottom:12px}
.seg button{min-height:44px;border-radius:9px;font-size:13px;font-weight:600;color:#4a4f5e;display:flex;align-items:center;justify-content:center;gap:5px}
.seg button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.seg .n{font-size:11px;background:#d5d8e0;border-radius:999px;padding:1px 6px;color:#4a4f5e}
.seg button.on .n{background:var(--navy);color:#fff}

/* Auftragskarte */
.ocard{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-left:7px solid var(--gry);border-radius:14px;padding:12px 14px 12px 13px;margin-bottom:10px}
.ocard.prio-express{border-left-color:var(--red)}.ocard.prio-normal{border-left-color:var(--yel)}.ocard.prio-puffer{border-left-color:var(--gry)}
.ocard .r1{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ocard .car{font-size:17px;font-weight:700;margin-top:9px}
.ocard .car span{font-weight:500;color:var(--mut);font-size:15px}
.ocard .cust{font-size:14px;margin-top:2px;color:#3a3f4e}
.ocard .cust span{color:var(--mut)}
.ocard .work{font-size:14px;margin-top:6px;color:var(--txt)}
.ocard .r3{display:flex;align-items:center;gap:8px;margin-top:9px;font-size:12px;color:var(--mut)}
.ocard .r3 .nr{margin-left:auto}

/* Schweizer Kontrollschild */
.plate{display:inline-flex;align-items:center;gap:6px;background:#fff;border:2px solid #111;border-radius:5px;padding:2px 8px 2px 5px;font-weight:800;font-size:20px;letter-spacing:1px;color:#111;font-family:"DIN Alternate","DIN Condensed","Arial Narrow",Arial,sans-serif;line-height:1.15;white-space:nowrap}
.plate .ch{width:15px;height:15px;background:#e2231a;border-radius:2px;position:relative;flex:none}
.plate .ch:before,.plate .ch:after{content:"";position:absolute;background:#fff}
.plate .ch:before{left:5.5px;top:2.5px;width:4px;height:10px}.plate .ch:after{left:2.5px;top:5.5px;width:10px;height:4px}
.plate.big{font-size:27px;border-width:2.5px;padding:3px 11px 3px 7px;border-radius:7px}
.plate.big .ch{width:19px;height:19px}
.plate.big .ch:before{left:7px;top:3px;width:5px;height:13px}.plate.big .ch:after{left:3px;top:7px;width:13px;height:5px}

/* Etiketten */
.tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap}
.st-arbeit{background:#e3ecff;color:#2350b8}.st-teile{background:#fff0da;color:#b4650a}.st-offen{background:#ecedf1;color:#4a4f5e}.st-offerte{background:var(--accent-soft);color:#13679f}.st-archiv{background:#e3f4ea;color:#17784a}
.p-express{background:#fde4e4;color:var(--red)}.p-normal{background:#fff5cc;color:#8a6a00}.p-puffer{background:#eeeff2;color:#6b7080}
.r-offen{background:#fff5cc;color:#8a6a00}.r-bestaetigt{background:#e3f4ea;color:#17784a}.r-abgelehnt{background:#fde4e4;color:var(--red)}

/* Buttons */
.btn{width:100%;min-height:50px;border-radius:12px;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 12px}
.btn.pri{background:var(--navy);color:#fff}
.btn.sec2{background:#fff;color:var(--navy);border:1.5px solid var(--navy)}
.btn.soft{background:var(--navy-soft);color:var(--navy)}
.btn.ok{background:var(--grn);color:#fff;min-height:56px;font-size:16px}
.btn.danger{background:#fde4e4;color:var(--red)}
.btn:disabled{opacity:.45}
.btns{display:flex;gap:10px}.btns .btn{flex:1}
.mt{margin-top:10px}

/* Formulare */
label.f{display:block;font-size:12.5px;font-weight:700;color:var(--mut);margin:10px 0 5px}
.in,textarea.in,select.in{width:100%;min-height:48px;border:1px solid #cdd1da;border-radius:10px;padding:10px 12px;background:#fff}
textarea.in{min-height:84px;resize:vertical}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.c{min-height:44px;font-size:14px;padding:0 14px;border-radius:999px;background:#eef0f4;color:var(--navy);font-weight:600;display:inline-flex;align-items:center}
.c.on{background:var(--navy);color:#fff}
.c:disabled{opacity:.4}

/* Listen */
.li{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.li:last-child{border-bottom:0}
.li .grow{flex:1;min-width:0}
.li .sub{font-size:12.5px;color:var(--mut);margin-top:1px}
.xbtn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#9aa0ae;flex:none;margin:-8px -10px -8px 0}
.navli{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:8px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:15px;font-weight:600}
.navli:last-child{border-bottom:0}
.navli .ic{width:36px;height:36px;border-radius:10px;background:var(--navy-soft);display:flex;align-items:center;justify-content:center;flex:none}
.navli .grow{flex:1}.navli small{display:block;font-weight:500;color:var(--mut);font-size:12.5px}

/* Auftragskopf */
.ohead{padding:14px 16px;margin-bottom:12px;border-left:7px solid var(--gry)}
.ohead.prio-express{border-left-color:var(--red)}.ohead.prio-normal{border-left-color:var(--yel)}
.ohead .car{font-size:21px;font-weight:800;margin-top:12px}
.ohead .meta{font-size:14px;color:#3a3f4e;margin-top:3px;line-height:1.45}
.ohead .meta span{color:var(--mut)}
.ohead .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.banner{border-radius:12px;padding:12px 14px;margin-bottom:12px;font-size:14px;line-height:1.4}
.banner.info{background:var(--accent-soft);color:#13679f}
.banner.ok{background:#e3f4ea;color:#17784a}
.banner.warn{background:#fff0da;color:#8a4b06}

/* Auto-Schema */
.carwrap{display:flex;justify-content:center;background:#f7f8fa;border-radius:12px;padding:8px 0;margin-bottom:6px}
.carwrap svg{width:100%;max-width:270px;height:auto}
.z{fill:#fff;stroke:#9aa0ae;stroke-width:1.3;cursor:pointer;transition:fill .12s}
.z.has{fill:var(--navy);fill-opacity:.85;stroke:var(--navy)}
.z.sel{fill:var(--accent);fill-opacity:.9;stroke:#0f6fb5;stroke-width:2.2}
.z.glass{fill:#d7dce6}
.z.glass.has{fill:var(--navy)}.z.glass.sel{fill:var(--accent)}
.lb{font-size:9px;fill:#5a5f6e;font-weight:700;text-anchor:middle;dominant-baseline:middle;pointer-events:none;font-family:var(--font)}
.lb.inv{fill:#fff}
.hint{font-size:12px;color:var(--mut);text-align:center;margin-bottom:12px}
.lbl{font-size:12px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.4px;margin:4px 0 8px}
.lbl b{color:var(--navy);text-transform:none;letter-spacing:0;font-size:13.5px}
.pos .li .dot{width:10px;height:10px;border-radius:3px;background:var(--navy);flex:none}
.pos .li .w{font-size:12.5px;color:var(--mut);white-space:nowrap}
.sep{display:flex;align-items:center;gap:10px;margin:26px 2px 12px;color:#8a8f9c;font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.sep:before,.sep:after{content:"";flex:1;height:1px;background:#cdd1da}
.done{border:1.5px solid #bfe5cf;background:#f3fbf6}

/* Fotos */
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.pth{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#e6e8ee}
.pth img{width:100%;height:100%;object-fit:cover}
.pth .sz{position:absolute;left:4px;bottom:4px;background:rgba(11,30,96,.82);color:#fff;font-size:10.5px;font-weight:700;padding:2px 6px;border-radius:6px}
.pth .mk{position:absolute;right:4px;top:4px;background:#22c55e;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px}
.meter{height:8px;border-radius:999px;background:#e6e8ee;overflow:hidden;margin-top:8px}
.meter i{display:block;height:100%;background:var(--accent)}
.fab{position:fixed;left:0;right:0;bottom:0;z-index:9;padding:12px 14px calc(14px + var(--sab));background:linear-gradient(rgba(243,244,247,0),var(--bg) 35%);display:flex;justify-content:center}
.fab button{width:100%;max-width:492px;height:60px;border-radius:16px;background:var(--navy);color:#fff;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 20px rgba(11,30,96,.35)}
.fab .cnt{background:rgba(255,255,255,.2);font-size:12px;padding:2px 8px;border-radius:999px}

/* Ferien */
.big{font-size:34px;font-weight:800;color:var(--navy);line-height:1}
.bar{display:flex;height:14px;border-radius:999px;overflow:hidden;background:#e6e8ee;margin:12px 0 10px}
.bar i{display:block;height:100%}
.k-bf{background:#7b86a8}.k-bez{background:var(--navy)}.k-gep{background:var(--grn)}.k-bea{background:var(--yel)}.k-rest{background:#e6e8ee}
.legend{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;font-size:12.5px;color:#4a4f5e}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:11px;height:11px;border-radius:3px;flex:none;display:inline-block}

/* Kalender */
.cal .ch,.tcal .ch{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal .ch b,.tcal .ch b{font-size:16px;color:var(--navy)}
.cal .ch button,.tcal .ch button{width:44px;height:44px;border-radius:10px;background:#f1f2f6;color:var(--navy);font-size:20px;font-weight:700}
.cal .ch button:disabled,.tcal .ch button:disabled{opacity:.3}
.cgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cgrid .wn{font-size:11px;font-weight:700;color:var(--mut);text-align:center;padding:2px 0 4px}
.cd{aspect-ratio:1;min-height:40px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;position:relative;background:#f7f8fa;color:var(--txt)}
.cd.we{color:#a3a8b5;background:transparent}
.cd.out{visibility:hidden}
.cd.today{outline:2px solid var(--accent);outline-offset:-2px}
.cd.hol{background:var(--red);color:#fff}
.cd.bf{background:#7b86a8;color:#fff}
.cd.bt{background:var(--accent);color:#fff}
.cd.vac{background:var(--grn);color:#fff}
.cd.vacp{background:#fff5cc;color:#8a6a00;box-shadow:inset 0 0 0 1.5px var(--yel)}
.cd.abs:after{content:"";position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:var(--org)}
.cd.pick{box-shadow:inset 0 0 0 2px var(--navy)}
.cinfo{min-height:40px;font-size:13px;color:#3a3f4e;background:#f7f8fa;border-radius:10px;padding:9px 11px;margin-top:10px}
.cleg{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:#4a4f5e;margin-top:10px}
.cleg span{display:flex;align-items:center;gap:5px}
.cleg i{width:12px;height:12px;border-radius:4px;display:inline-block}

/* Overlay / Dialoge */
.ov{position:fixed;inset:0;background:rgba(10,14,40,.5);z-index:30;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade .15s}
.ov.bottom{align-items:flex-end;padding:0}
@keyframes fade{from{opacity:0}}
.box{background:#fff;border-radius:18px;padding:22px 18px 18px;width:100%;max-width:440px;max-height:90vh;overflow:auto}
.ov.bottom .box{border-radius:20px 20px 0 0;max-width:520px;padding-bottom:calc(18px + var(--sab))}
.box h4{font-size:18px;font-weight:800;margin-bottom:8px;text-align:center}
.box p{font-size:14px;color:#4a4f5e;line-height:1.45;margin-bottom:8px}
.box .ctr{text-align:center}
.box .ic0{width:54px;height:54px;border-radius:50%;background:#e3f4ea;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.mail{background:#f7f8fa;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:13px;line-height:1.5;white-space:pre-wrap;font-family:var(--font);color:#2a2e3a}
.mail .mh{border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:8px;white-space:normal}

/* Ziffernblock */
.numdisp{height:62px;border-radius:12px;background:#f1f2f6;font-size:30px;font-weight:800;letter-spacing:3px;color:var(--navy);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.pad button{height:58px;border-radius:12px;background:#f1f2f6;font-size:24px;font-weight:700;color:var(--navy)}

/* Scanner */
.scanner{position:fixed;inset:0;z-index:40;background:#000;display:flex;flex-direction:column;color:#fff}
.scanner video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scanner .frame{position:absolute;left:10%;right:10%;top:32%;height:22%;border:3px solid #fff;border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.45)}
.scanner .frame:after{content:"";position:absolute;left:8px;right:8px;top:50%;height:2px;background:var(--red);animation:scanl 1.6s ease-in-out infinite alternate}
@keyframes scanl{from{transform:translateY(-30px)}to{transform:translateY(30px)}}
.scanner .top{position:relative;padding:calc(14px + var(--sat)) 16px 0;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:17px}
.scanner .top button{color:#fff;font-weight:700;min-height:44px;padding:0 6px;font-size:16px}
.scanner .bot{position:absolute;left:0;right:0;bottom:0;padding:16px 16px calc(20px + var(--sab));display:flex;flex-direction:column;gap:10px}
.scanner .msg{font-size:13.5px;text-align:center;background:rgba(0,0,0,.55);border-radius:10px;padding:10px;line-height:1.4}

/* Markieren */
.annot{position:fixed;inset:0;z-index:45;background:#111;display:flex;flex-direction:column;color:#fff}
.annot .atop{display:flex;align-items:center;justify-content:space-between;padding:calc(8px + var(--sat)) 10px 8px}
.annot .atop button{min-height:44px;padding:0 14px;border-radius:10px;color:#fff;font-weight:700}
.annot .atop .save{background:var(--grn)}
.annot .astage{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6px}
.annot canvas{max-width:100%;max-height:100%;touch-action:none;background:#333}
.annot .atools{display:flex;align-items:center;gap:8px;padding:10px 12px calc(12px + var(--sab));flex-wrap:wrap;justify-content:center}
.annot .atools button{min-height:44px;padding:0 14px;border-radius:999px;background:#2a2a2a;color:#fff;font-weight:600;font-size:14px}
.annot .atools button.on{background:#fff;color:#111}
.annot .sw{width:36px;height:36px;border-radius:50%;border:3px solid transparent;padding:0;min-height:0!important}
.annot .sw.on{border-color:#fff}

/* Viewer */
.viewer img{width:100%;border-radius:10px;background:#eee;margin-bottom:10px}
.kv{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;padding:7px 0;border-bottom:1px solid var(--line)}
.kv span{color:var(--mut)}

/* Toast */
#toast{position:fixed;left:50%;bottom:calc(84px + var(--sab));transform:translateX(-50%) translateY(20px);background:#1b1d26;color:#fff;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:.2s;z-index:60;width:max-content;max-width:calc(100% - 28px);text-align:center;line-height:1.35}
#toast.on{opacity:1;transform:translateX(-50%)}

/* Login */
body.login #hdr,body.login #tabs{display:none}
.login-w{min-height:calc(100vh - 40px);display:flex;flex-direction:column;justify-content:center;padding:calc(20px + var(--sat)) 8px 20px}
.login-w .wings{width:150px;margin:0 auto 18px}
.login-w .word{width:250px;max-width:80%;margin:0 auto 6px}
.login-w .betaline{text-align:center;margin:10px 0 28px}
.ulist .navli{background:#fff}
.foot{text-align:center;font-size:11.5px;color:#9aa0ae;margin-top:18px}

.ocard .who{display:flex;gap:11px;align-items:center;margin-top:9px}.ocard .who .car{margin-top:0}.thumb{width:48px;height:48px;border-radius:11px;object-fit:cover;flex:none;border:1px solid var(--line);background:#eef0f4}.thumb.ph{display:flex;align-items:center;justify-content:center}

.psel button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-top:10px}
.psel b{display:block;font-size:16px;color:var(--navy)}.psel small{display:block;color:var(--mut);font-size:13px;margin-top:3px;line-height:1.35}
.psel .pi{width:48px;height:48px;border-radius:12px;background:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}.psel .pi.soft{background:#e8ecf6}
.cam{position:fixed;inset:0;z-index:40;background:#000;color:#fff}
.cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cam .guide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.cam .flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}.cam .flash.on{animation:flash .35s}
@keyframes flash{0%{opacity:.85}100%{opacity:0}}
.ctop{position:absolute;left:0;right:0;top:0;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,0))}
.cstep{text-align:center}.cstep b{display:inline-block;background:var(--accent);color:#fff;border-radius:999px;padding:2px 10px;font-size:14px}.cstep span{display:block;font-weight:700;font-size:16px;margin-top:4px;text-shadow:0 1px 3px #000}
.cbtn{color:#fff;font-weight:700;font-size:15px;background:rgba(0,0,0,.35);border-radius:999px;padding:8px 14px}.cbtn.ok{background:var(--navy)}
.chint{position:absolute;left:16px;right:16px;bottom:calc(130px + env(safe-area-inset-bottom));text-align:center;background:rgba(0,0,0,.5);border-radius:12px;padding:8px 12px;font-size:14px}
.cbot{position:absolute;left:0;right:0;bottom:0;padding:16px 20px calc(22px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.7))}
.clast{position:relative;width:56px;height:56px;border-radius:12px;border:2px solid rgba(255,255,255,.7);overflow:hidden;background:rgba(255,255,255,.12)}.clast img{width:100%;height:100%;object-fit:cover;display:none}.clast.has img{display:block}
.ccnt{position:absolute;right:2px;bottom:2px;background:var(--accent);font-size:11px;font-weight:700;border-radius:999px;padding:0 6px}
.shutter{width:76px;height:76px;border-radius:50%;background:#fff;border:6px solid rgba(255,255,255,.4);background-clip:padding-box}.shutter:active{transform:scale(.92)}
.pth .b7{position:absolute;left:4px;top:4px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px}
.pth .tacts{position:absolute;right:4px;bottom:4px;display:flex;gap:4px}.pth .tacts span{width:24px;height:24px;border-radius:7px;background:rgba(0,0,0,.55);color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center}

.annot .astage{position:relative}.annot .ahelp{position:absolute;left:12px;right:12px;top:10px;text-align:center;font-size:12.5px;background:rgba(0,0,0,.55);border-radius:10px;padding:6px 8px;pointer-events:none}
.annot .atools .mk{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:64px!important;width:78px;border-radius:14px!important;padding:6px 0!important;touch-action:none;font-size:12px!important}
.annot .atools .adel{display:flex;align-items:center;gap:6px;background:#b42318!important}.annot .atools .adel:disabled{opacity:.35}
.mghost{position:fixed;z-index:60;transform:translate(-50%,-50%) scale(1.6);pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.cmark{position:absolute;left:-2px;right:-2px;top:-26px;font-size:11px;font-weight:700;color:#fff;background:#ef4444;border-radius:8px;padding:3px 0;display:none}
.clast{overflow:visible!important}.clast.has .cmark{display:block}.clast img{border-radius:10px}

.cam .guide{opacity:.9}
.cam.light .guide{filter:invert(1) drop-shadow(0 0 1.5px rgba(0,0,0,.9))}
.cam .klabel{position:absolute;left:0;right:0;bottom:calc(122px + env(safe-area-inset-bottom));text-align:center;font-size:15px;font-weight:600;color:#fff;text-shadow:0 1px 3px #000}
.cam .gtog{position:absolute;right:12px;top:calc(64px + env(safe-area-inset-top));color:#fff;font-size:13px;font-weight:700;background:rgba(0,0,0,.4);border-radius:999px;padding:6px 12px}

/* v10: Auftragskarte mit grossem Vorschaubild + Kontrollschild */
.ocard{display:flex;gap:11px;align-items:stretch}
.ocard>.thumb{width:25%;min-width:80px;max-width:140px;height:auto;min-height:96px;align-self:stretch;border-radius:11px;object-fit:cover}
.ocard .obody{flex:1;min-width:0}
.ocard .r1{align-items:flex-start}
.ocard .hd{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.ocard .onr{font-size:19px;font-weight:800;color:var(--navy)}
.ocard .car{margin-top:7px}
.plate{gap:4px;padding:2px 4px;font-size:17px}
.plate .arm{width:12px;height:14px;flex:none}
.plate.big{font-size:25px;padding:3px 6px;gap:6px}.plate.big .arm{width:17px;height:20px}

/* v10: Kamera – nur ein Fertig (oben links), grösseres Vorschaubild, Querformat Auslöser unten rechts */
.cam .cspace{width:84px;flex:none}
.clast{width:84px!important;height:84px!important}.cmark{font-size:12px!important}
@media (orientation:landscape){
 .cbot{left:0;right:0;justify-content:space-between;padding:12px calc(22px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left))}
 .cbot .cspace{display:none}
 .cam .klabel{bottom:calc(30px + env(safe-area-inset-bottom));left:120px;right:120px}
 .chint{bottom:calc(64px + env(safe-area-inset-bottom));left:120px;right:120px}
}

/* v11: Header mit S-Emblem zentriert, rechts nur Initialen; Login mit Profilfotos */
.hrow{height:64px}
.hmain{justify-content:space-between}.hmain .hsp{width:40px;flex:none}
.emblem{height:38px;width:auto}
.av.pf{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:none;padding:0}
/* v12: Vorschaubild quadratisch, oben links */
.ocard{align-items:flex-start}
.ocard>.thumb{width:clamp(88px,29vw,140px);height:auto;min-width:0;max-width:none;min-height:0;aspect-ratio:1/1;align-self:flex-start;object-fit:cover;border-radius:12px}
.ocard .r1{flex-wrap:wrap;row-gap:4px}.ocard .r1 .hd{flex:0 1 auto}
@media (max-width:359px){.ocard>.thumb{width:84px}.ocard .r1{flex-direction:column-reverse;align-items:flex-start}}
/* v13: Priorität einheitlich blau (Badge + Kartenrand), Schild in Karte gleich gross wie Nummer */
.p-express,.p-normal,.p-puffer{background:var(--navy-soft);color:var(--navy)}
.ocard.prio-express,.ocard.prio-normal,.ocard.prio-puffer,.ohead.prio-express,.ohead.prio-normal,.ohead.prio-puffer{border-left-color:var(--navy2)}
.ocard .hd{flex-wrap:nowrap;align-items:center;gap:8px}
.ocard .onr{font-size:19px;line-height:23px}
.ocard .plate{font-size:15px;line-height:19px;padding:0 4px;border-width:1.5px;border-radius:4px;gap:3px;height:23px;box-sizing:border-box;letter-spacing:.6px}
.ocard .plate .arm{width:11px;height:13px}
@media (max-width:359px){.ocard .hd{flex-wrap:wrap;row-gap:4px}}

/* v14: Detail-Kopf (v16: ohne Foto-Hintergrund), Navigation zwischen Aufträgen */
.ohead{position:relative;overflow:hidden}
.ohead .ohnr{font-size:13px;font-weight:700;color:var(--mut);margin-bottom:8px}.ohead .ohnr span{font-weight:600;opacity:.8;margin-left:4px}
body.sub .back{background:var(--navy);color:#fff;border-radius:999px;padding:0 14px 0 8px;min-height:40px}body.sub .back svg *{stroke:#fff}
.onav{width:38px;height:38px;border-radius:50%;background:var(--navy-soft);color:var(--navy);font-size:24px;font-weight:700;line-height:1;margin-left:6px}.onav:disabled{opacity:.3}
body.sub .back svg{stroke:#fff}

/* v16: Karte so hoch wie das quadratische Foto, Foto bündig ohne Leerraum */
.ocard{--ph:136px;height:var(--ph);padding:0;overflow:hidden;align-items:stretch;gap:0}
.ocard>.thumb{width:var(--ph);height:var(--ph);min-width:var(--ph);aspect-ratio:auto;align-self:stretch;border:0;border-radius:0;object-fit:cover}
.ocard .obody{padding:9px 11px 9px 11px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.ocard .car,.ocard .cust,.ocard .work{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0}
.ocard .car{font-size:16px}.ocard .cust,.ocard .work{font-size:13px}
.ocard .r3{margin-top:0;gap:5px;flex-wrap:nowrap;overflow:hidden}.ocard .r3 .tag{white-space:nowrap}
@media (max-width:359px){.ocard{--ph:112px}.ocard>.thumb{width:var(--ph)}.ocard .r1{flex-direction:row}.ocard .work{display:none}}
/* v16 Detail: Nummer, dann Schild (normal gross), dann Fahrzeug */
.ohead .plate{font-size:19px;height:auto;padding:2px 6px;gap:4px;border-width:2px;border-radius:5px}.ohead .plate .arm{width:14px;height:16px}
.ohead .car{margin-top:8px}

.week .wh .wkcal{flex:1;background:none;border:0;font:inherit;color:inherit;padding:6px 4px;text-align:center}

/* v17 Header-Linien über ganze Breite, schräge Enden */
.hmain{gap:7px}
.hmain .emblem{height:38px;flex:none}
.wing{flex:1;position:relative;height:38px;min-width:20px}
.wing i{position:absolute;left:0;right:0;display:block}
.wing i:nth-child(1){top:14.4px;height:1.5px;background:#1d2a5a}
.wing i:nth-child(2){top:17.9px;height:3.1px;background:#65646a}
.wing i:nth-child(3){top:23.2px;height:1.5px;background:#202951}
.wing.l{margin-left:-12px}
.wing.l i:nth-child(1){clip-path:polygon(0 0,100% 0,100% 100%,.5px 100%)}
.wing.l i:nth-child(2){clip-path:polygon(2.5px 0,100% 0,100% 100%,4.3px 100%)}
.wing.l i:nth-child(3){left:6px;clip-path:polygon(0 0,100% 0,100% 100%,.6px 100%)}
.wing.r{margin-right:3px}
.wing.r i:nth-child(1){clip-path:polygon(0 0,100% 0,calc(100% - .5px) 100%,0 100%)}
.wing.r i:nth-child(2){clip-path:polygon(0 0,calc(100% - 2.5px) 0,calc(100% - 4.3px) 100%,0 100%)}
.wing.r i:nth-child(3){right:6px;clip-path:polygon(0 0,100% 0,calc(100% - .6px) 100%,0 100%)}
/* v17 Liste: Schild dezent kleiner */
.ocard .plate{font-size:13.5px;height:21px;line-height:17px;letter-spacing:.5px}.ocard .plate .arm{width:10px;height:12px}
/* v17 Team-Kalender */
.tgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.tgrid .wn{font-size:11px;font-weight:700;color:var(--mut);text-align:center;padding:2px 0 4px}
.tc{min-height:74px;border-radius:8px;background:#f7f8fa;padding:3px;text-align:left;font-size:9.5px;line-height:1.2;color:#4a4f5e;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
.tc .dn{font-weight:700;font-size:12px;color:var(--txt);margin-bottom:1px}
.tc .e{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:3px;padding:0 2px;margin-top:1px}
.tc .e b{color:var(--navy)}
.tc .e.sick{background:#e03131;color:#fff}.tc .e.sick b{color:#fff}
.tc .e.vac{background:#dff3e6}.tc .e.school{background:#ece6f8}
.tc.we{background:transparent}.tc.we .dn{color:#a3a8b5}.tc.out{visibility:hidden}
.tc.hol{background:#fbe9e9}.tc.bf{background:#dfe3ef}.tc.bt{background:#ddeffc}
.tc.today{outline:2px solid var(--accent);outline-offset:-2px}
.wd .e.sick{color:#c92a2a}.wd .e.sick b{color:#c92a2a}
.cd.sick:after{background:#e03131}
.btn.sickb{background:#fdecec;color:#c92a2a;font-weight:700;margin:4px 0 12px}
.sickc{border-left:6px solid #e03131}.sickdot{width:12px;height:12px;border-radius:50%;background:#e03131;flex:none}

/* v17b: S exakt mittig, Linien absolut */
.hrow.hmain{position:relative;justify-content:flex-end}
.hmain .emblem{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.hmain .wing{position:absolute;top:50%;margin:0;transform:translateY(-50%);min-width:0}
.hmain .wing.l{left:-12px;right:calc(50% + 27px)}
.hmain .wing.r{left:calc(50% + 27px);right:50px}
.hmain .wing.l{left:calc(50% - 50vw)}

/* v17 Kamera-Zoom */
.cam video{transform-origin:50% 50%}
.cam .zoom{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(124px + env(safe-area-inset-bottom));display:flex;gap:6px;padding:4px;border-radius:999px;background:rgba(0,0,0,.35);z-index:3}
.cam .zoom button{min-width:36px;height:36px;border-radius:50%;background:rgba(40,40,40,.75);color:#fff;font-size:12px;font-weight:700;padding:0 4px}
.cam .zoom button.on{color:#ffd60a;min-width:44px;font-size:13px}
@media (orientation:landscape){.cam .zoom{bottom:auto;top:50%;left:auto;right:118px;transform:translateY(-50%);flex-direction:column}}
@media (orientation:portrait){.cam .zoom{bottom:calc(126px + env(safe-area-inset-bottom))}.cam .chint{bottom:calc(178px + env(safe-area-inset-bottom))}.cam .klabel{bottom:calc(178px + env(safe-area-inset-bottom))}}

/* v17 Textbausteine zweispaltig */
.wgrp{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wcol{display:flex;flex-direction:column;gap:6px;min-width:0}
.wgh{font-size:12px;font-weight:800;color:var(--navy);text-transform:uppercase;letter-spacing:.4px;margin-bottom:2px}
.wcol .c{width:100%;text-align:left;padding:9px 10px;border-radius:10px;background:#eef0f5;color:var(--navy);font-weight:600;font-size:13.5px;white-space:normal;line-height:1.2}
.wcol .c.on{background:var(--navy);color:#fff}

/* v18 sonstige Abwesenheit einheitlich */
.tc .e.abs{background:#fff0da}.wd .e.abs b{color:#b4650a}

/* v18: Linien symmetrisch, feste Länge ~90px je Seite (bei schmalen Screens kürzer, kollidiert nie mit MS) */
.hmain .wing{width:min(90px,calc(50% - 75px))}
.hmain .wing.l,.hmain .wing.l{left:auto;right:calc(50% + 27px)}
.hmain .wing.r{left:calc(50% + 27px);right:auto}

/* v19 Arbeiten-Karte */
.wsum{background:#f4f6fb;border-radius:12px;padding:10px 12px;margin:2px 0 4px}
.wsr{padding:6px 0;border-bottom:1px solid #e3e7f0;font-size:15px;line-height:1.35}.wsr:last-of-type{border-bottom:0}
.wsr b{display:block;color:var(--navy);font-size:15px}
.wsr span{color:var(--txt)}.wsr em{font-style:normal;color:var(--mut)}
.wl{font-style:normal;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;border-radius:5px;padding:1px 5px;margin-right:5px;vertical-align:1px}
.wl.sp{background:#e3e9f7;color:#1a2f7a}.wl.lk{background:#e6f4ea;color:#17784a}
.wsx{margin-top:8px;padding-top:8px;border-top:1px dashed #d5dae6;font-size:14px}.wsx span{display:block;font-size:11.5px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px}

/* v20 Teile / Lieferscheine */
.pein{padding:10px 0;border-top:1px solid #e6e9f0}.pein .pn{font-weight:600;margin-bottom:6px}
.ptgs{display:flex;gap:6px}.ptg{flex:1;border:1.5px solid #cfd5e2;background:#fff;border-radius:12px;padding:8px 6px;font-weight:600;font-size:13px;color:#0b1f5c;display:flex;flex-direction:column;align-items:center;gap:2px}
.ptg.on{background:#e6f6ec;border-color:#1e9e5a;color:#1e7a47}.ptg span{font-weight:400;font-size:11px;color:#4b5563}

.arch-link{display:block;margin:18px auto 4px;padding:8px 12px;font-size:13px;color:#8a8f9c;text-decoration:underline;background:none;border:0}

.dmg-btn{display:flex;align-items:center;gap:12px;width:100%;margin:10px 0 12px;padding:12px 14px;background:#fff;border:2px solid var(--navy);border-radius:14px;color:var(--navy);text-align:left}.dmg-btn b{display:block;font-size:16px}.dmg-btn small{display:block;font-size:12px;color:#5a6070;font-weight:500}
/* v23: Teile-Offerte Mac Ident */
.qrow{border:1px solid var(--line);border-radius:12px;padding:8px;margin-bottom:8px;background:#fafbfd}
.qrt{display:flex;align-items:center;gap:6px}.qrt .in{flex:1}.qrt .xbtn{margin:0 -4px 0 0}
.qrs{display:grid;grid-template-columns:1fr 1.2fr 64px;gap:6px;margin-top:6px}.qrs .in{min-height:44px;padding:8px}
.qhead{display:none}
.qsug .c{min-height:36px;font-size:13px;padding:0 11px}
.pth.qph{border:0;padding:0;outline:3px solid transparent;outline-offset:-3px;opacity:.55;transition:opacity .15s}
.pth.qph.on{outline-color:var(--navy);opacity:1}
.pth.qph .qck{position:absolute;right:4px;top:4px;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.85);color:transparent;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.pth.qph.on .qck{background:var(--navy);color:#fff}
.qreq{border:1px solid #f2d9b3;background:#fffaf2;border-radius:12px;padding:10px 12px;margin:4px 0 8px;font-size:14px}
.qreq.ok{border-color:#bfe3cd;background:#f3fbf6}
.qrh{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.qrh b{font-size:14px;color:var(--navy)}
.qreq ul{margin:6px 0 4px 18px;padding:0}.qreq li{margin:2px 0}
.qreq .sub{font-size:12.5px;color:var(--mut);margin-top:2px}
.qra{display:flex;gap:8px;align-items:center;margin-top:8px}.qra .btn{min-height:42px;font-size:14px}
.qlink,.qcopy{background:none;border:0;color:var(--navy);text-decoration:underline;font-size:12.5px;padding:4px}
