/* Greenway Software (GWS) – Gestaltung */
@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/manrope-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/manrope-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/manrope-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/manrope-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;src:url(fonts/manrope-latin-800-normal.woff2) format("woff2")}

:root{--bg:#f4f6f3;--card:#fff;--tx:#17201a;--mu:#5d6a61;--ln:#dbe2dc;--pr:#1f6b3a;--ok:#1f6b3a;--wa:#d97706;--rd:#c62828;--dk:#7f1d1d}
*{box-sizing:border-box}body{margin:0;font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--tx)}
header{background:#fff;border-bottom:1px solid var(--ln);position:sticky;top:0;z-index:5}
.top{display:flex;align-items:center;gap:14px;padding:10px 16px;max-width:760px;margin:auto}
.logo{font-weight:800;color:var(--pr);letter-spacing:.5px}.logo small{display:block;font-weight:500;color:var(--mu);font-size:11px;letter-spacing:0}
.beat{margin-left:auto;font-size:12px;color:var(--mu)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ok);margin-right:5px}
nav{display:flex;gap:4px;overflow:auto;padding:0 12px;max-width:760px;margin:auto}
nav button{background:none;border:0;padding:10px 12px;font:inherit;color:var(--mu);border-bottom:3px solid transparent;white-space:nowrap;cursor:pointer}
nav button.on{color:var(--tx);border-color:var(--pr);font-weight:600}
nav b{background:var(--ln);border-radius:10px;padding:0 7px;font-size:12px;margin-left:4px}nav b.hot{background:var(--ok);color:#fff}nav b.red{background:var(--rd);color:#fff}
main{max-width:760px;margin:auto;padding:12px 16px 60px}
.search{width:100%;padding:11px 14px;border:1px solid var(--ln);border-radius:10px;font:inherit;background:#fff}
.chips{display:flex;gap:8px;overflow:auto;padding:10px 0}.chip{border:1px solid var(--tx);border-radius:16px;padding:3px 12px;font-size:13px;background:#fff;white-space:nowrap;cursor:pointer}.chip.on{background:var(--tx);color:#fff}
.card{background:var(--card);border-radius:10px;padding:14px 16px;margin-bottom:10px;box-shadow:0 1px 2px rgba(0,0,0,.06);cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:2px 12px}
.card:hover{box-shadow:0 2px 8px rgba(0,0,0,.12)}
.nm{font-weight:700;font-size:16px}.pr{text-align:right;font-weight:700;font-size:17px}.pr small{display:block;font-weight:400;color:var(--mu);font-size:12px}
.st{font-size:13px;font-weight:600}.st.z{color:var(--ok)}.st.a{color:var(--mu)}.st.g{color:#2b6cb0}.st.o{color:var(--wa)}
.meta{grid-column:1/3;color:var(--mu);font-size:13px}.last{grid-column:1/2;color:#3a4652;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tm{text-align:right;color:var(--mu);font-size:13px}
.btn{background:var(--ok);color:#fff;border:0;border-radius:8px;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}
.btn.sec{background:#fff;color:var(--tx);border:1px solid var(--ln)}
.ch{display:inline-block;font-size:11px;font-weight:700;padding:1px 7px;border-radius:9px;color:#fff;margin-right:6px;vertical-align:1px}
.c24{background:#2b6cb0}.tl{background:#7b3fe4}.wa{background:#1fa855}.ka{background:#86b817}.em{background:#556}
.empty{text-align:center;color:var(--mu);padding:40px 10px}
#dr{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;z-index:9}#dr.on{display:block}
.sheet{position:absolute;right:0;top:0;bottom:0;width:min(520px,100%);background:#fff;overflow:auto;padding:16px}
.sheet h2{margin:0 0 2px}.x{float:right;border:0;background:none;font-size:26px;cursor:pointer}
.kv{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;font-size:14px;margin:10px 0;color:#3a4652}.kv b{color:var(--mu);font-weight:500}
.pdf{border:1px dashed var(--ln);border-radius:8px;padding:22px;text-align:center;color:var(--mu);margin:10px 0;background:#fafbfc}
.th{margin-top:12px}.msg{max-width:88%;padding:9px 12px;border-radius:12px;margin:8px 0;font-size:14px;white-space:pre-wrap}
.msg.kunde{background:#eef1f4}.msg.wir{background:#dcebff;margin-left:auto}.msg.ki{background:#fff6e0;border:1px dashed #e8c870;font-size:13px}.msg.hashmat{background:#e2f6ea;margin-left:auto}
.msg i{display:block;font-style:normal;font-size:11px;color:var(--mu);margin-bottom:2px}
.bar{position:sticky;bottom:-16px;background:#fff;padding:12px 0 6px;display:flex;gap:8px}
.bar .btn{flex:1;padding:12px}
.ai{background:#fff;border-left:4px solid var(--pr);padding:8px 12px;border-radius:6px;font-size:13px;color:#3a4652;margin:10px 0}
.note{margin-top:20px;font-size:12px;color:var(--mu);text-align:center}



.steps{display:flex;gap:6px;margin:12px 0}.step{flex:1;text-align:center;font-size:12px;padding:6px 2px;border-radius:8px;background:#eef1ee;color:var(--mu)}.step.done{background:#dff0e5;color:var(--ok);font-weight:700}.step.now{background:var(--ok);color:#fff;font-weight:700}
.box{border:1px solid var(--ln);border-radius:10px;padding:12px;margin:10px 0}.box h4{margin:0 0 6px;font-size:14px}
.cap{display:flex;gap:8px;align-items:center;font-size:14px}.lamp{width:12px;height:12px;border-radius:50%;background:var(--ok);display:inline-block}.lamp.w{background:var(--wa)}
table.po{width:100%;border-collapse:collapse;font-size:13px}table.po th{text-align:left;color:var(--mu);font-weight:500;border-bottom:1px solid var(--ln);padding:4px}table.po td{padding:4px;border-bottom:1px solid var(--ln)}table.po td.r,table.po th.r{text-align:right}
table.po input{width:100%;border:1px solid var(--ln);border-radius:6px;padding:4px;font:inherit}
.sum{display:grid;grid-template-columns:1fr auto;gap:2px 12px;margin-top:8px;font-size:14px}.sum b{font-size:16px}
.tag{display:inline-block;font-size:12px;padding:1px 8px;border-radius:9px;background:#eef1ee;margin:0 4px 4px 0}.tag.ok{background:#dff0e5;color:var(--ok)}.tag.no{background:#fdeaea;color:var(--rd)}



.fm{background:#0e7490}.badge{display:inline-block;font-size:11px;font-weight:700;padding:1px 8px;border-radius:9px;margin-right:6px;color:#fff}
.b-anwalt{background:#7f1d1d}.b-inkasso{background:#c62828}.b-vers{background:#b45309}.b-rekl{background:#d97706}.b-bew{background:#556}.b-ford{background:#c62828}
.warn{background:#fdeaea;border-left:4px solid var(--rd);padding:8px 12px;border-radius:6px;font-size:13px;margin:10px 0;color:#7f1d1d}
.hint{background:#fff6e0;border-left:4px solid #e8c870;padding:8px 12px;border-radius:6px;font-size:13px;margin:10px 0}
.dir{font-size:11px;color:var(--mu);margin-left:4px}


.b-pr{background:#b45309}.b-an{background:#556}.b-un{background:#8a94a0}.rueck{background:#e2f6ea;border-left:4px solid var(--ok);padding:8px 12px;border-radius:6px;font-size:13px;margin:10px 0}


.kvbox .pdf{margin:8px 0}.sig{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:9px}.sig.ok{background:#dff0e5;color:var(--ok)}.sig.sc{background:#e8f0fb;color:#2b6cb0}.sig.pr{background:#fff6e0;color:var(--wa)}



/* ===== GWS v2: Design ===== */
:root{--ink:#0f1a14;--forest:#0b2e20;--forest2:#08241a;--pr:#1f6b3a;--ok:#1f6b3a;--mint:#e4f0e8;--canvas:#edf1ee;--gold:#b8975a;--line:#e1e7e3;--mu:#66756b;--tx:#0f1a14;--bg:#edf1ee}
html body{font-family:Manrope,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--canvas);color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.005em}
/* Rail */
html body header{position:fixed;left:0;top:0;bottom:0;width:236px;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--forest),var(--forest2));border:0;z-index:30;padding:18px 12px}
html body header .top{padding:0 4px 18px;max-width:none;margin:0;display:block}
html body .logo{background:#fff;border-radius:14px;padding:9px 12px;display:block}
html body .logo small{color:var(--mu);font-weight:600;font-size:11px;margin-top:3px}
html body .beat{display:none}
html body nav{display:flex;flex-direction:column;gap:2px;padding:0;max-width:none;margin:0;overflow:visible}
html body nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 12px;border:0;border-radius:12px;color:#aac3b4;font-weight:600;font-size:14px;border-bottom:0;position:relative;transition:background .15s,color .15s}
html body nav button:hover{background:rgba(255,255,255,.06);color:#fff}
html body nav button.on{background:rgba(255,255,255,.1);color:#fff}
html body nav button.on::before{content:"";position:absolute;left:-12px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:var(--gold)}
html body nav button svg{width:19px;height:19px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body nav button span{flex:1}
html body nav b{margin:0;background:rgba(255,255,255,.14);color:#e5f1ea;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:700}
html body nav b.hot{background:var(--pr);color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.25) inset}html body nav b.red{background:#d64545;color:#fff}
.jorb{margin-top:auto;display:flex;gap:11px;align-items:center;padding:12px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(184,151,90,.45);color:#e5f1ea}
.jorb b{display:block;font-size:14px;color:#fff}.jorb small{display:block;font-size:11.5px;color:#9fbaa9}
.orb{width:38px;height:38px;flex:none;position:relative;border-radius:50%;background:radial-gradient(circle,#d9fff0 0 14%,#58d68d 15% 30%,transparent 31%),conic-gradient(from 0deg,#58d68d,#0f3d27 25%,#58d68d 50%,#0f3d27 75%,#58d68d);box-shadow:0 0 14px 1px rgba(88,214,141,.55),inset 0 0 0 3px #0b2e20;animation:spin 9s linear infinite}
.orb::after{content:"";position:absolute;inset:7px;border-radius:50%;border:2px solid rgba(217,255,240,.85);box-shadow:0 0 8px rgba(88,214,141,.9)}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.orb{animation:none}}
.brief{position:relative;margin:16px 0 0;padding:16px 18px 16px 74px;border-radius:20px;color:#e5f1ea;background:linear-gradient(135deg,#0b2e20,#0f4a30);border:1px solid rgba(184,151,90,.55);overflow:hidden;box-shadow:0 18px 40px -22px rgba(11,46,32,.8)}
.brief::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px) 0 0/100% 22px,linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px) 0 0/22px 100%;mask-image:linear-gradient(90deg,transparent,#000 70%)}
.brief .orb{position:absolute;left:18px;top:50%;margin-top:-19px}
.brief b{position:relative;display:block;font-size:12.5px;font-weight:700;color:var(--gold);letter-spacing:.02em}
.brief p{position:relative;margin:3px 0 0;font-size:15px;font-weight:600;line-height:1.45}
/* Hauptbereich */
html body main{max-width:none;margin:0 0 0 236px;padding:30px 34px 80px}
#top2,#list,.search,.chips,.note{max-width:780px}
.hello h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.03em}.hello p{margin:2px 0 0;color:var(--mu);font-weight:500}
.stories{display:flex;gap:18px;margin:20px 0 6px;overflow:auto;padding:4px 2px 8px}
.story{border:0;background:none;padding:0;cursor:pointer;text-align:center;font:inherit;color:var(--ink);flex:none;width:86px}
.ring{width:68px;height:68px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#1f6b3a 0%,#58d68d 45%,var(--gold) 100%);display:grid;place-items:center;transition:transform .15s}
.story:hover .ring{transform:scale(1.05)}
.ring.red{background:linear-gradient(135deg,#d64545,#f0a35c)}.ring.off{background:#cfd8d2}
.ring i{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#fff;font-style:normal;font-weight:800;font-size:21px;border:3px solid #fff;box-shadow:0 0 0 1px var(--line) inset}
.story span{display:block;font-size:12px;font-weight:600;margin-top:6px;color:#3b4a40}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0 18px}
.kpi{background:#fff;border-radius:18px;padding:15px 17px;border:1px solid var(--line)}
.kpi small{display:block;color:var(--mu);font-weight:600;font-size:12.5px}.kpi b{display:block;font-size:26px;font-weight:800;letter-spacing:-.03em;margin-top:2px}.kpi em{font-style:normal;color:var(--mu);font-size:12.5px;font-weight:600}
.kpi.k1{background:linear-gradient(135deg,#1a5c33,#0f3d27);border:0;color:#fff}.kpi.k1 small,.kpi.k1 em{color:#bfe0cb}
html body .search{border:1px solid var(--line);border-radius:14px;padding:13px 16px 13px 42px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2366756b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px 50% no-repeat;font-weight:500}
html body .search:focus{outline:2px solid var(--pr);outline-offset:1px}
html body .chip{border:1px solid var(--line);border-radius:999px;font-weight:600;color:#3b4a40;padding:5px 14px}html body .chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
/* Karten */
html body .card{display:grid;grid-template-columns:auto 1fr auto;gap:0 14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px 16px;margin-bottom:10px;box-shadow:0 1px 0 rgba(15,26,20,.03);transition:box-shadow .18s,border-color .18s,transform .18s}
html body .card:hover{box-shadow:0 10px 26px -12px rgba(15,61,39,.35);border-color:#c9d6ce;transform:translateY(-1px)}
html body .card.sel{border-color:var(--pr);box-shadow:0 0 0 2px rgba(31,107,58,.18)}
.av{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:16px;color:#fff;background:linear-gradient(135deg,var(--rc),#0f1a14 160%);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--rc)}
.bd{min-width:0}.l1{display:flex;gap:8px;align-items:baseline}.l1 .nm{font-size:16px;font-weight:800;letter-spacing:-.02em}
.l1 .st{font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:#eef2ef}
.l1 .st.z{background:var(--mint);color:var(--pr)}.l1 .st.o{background:#fbf0dc;color:#9a6a0f}.l1 .st.g{background:#e6eefb;color:#2b5aa8}.l1 .st.a{background:#eef2ef;color:var(--mu)}
.l2{font-size:13px;color:var(--mu);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.l3{font-size:13.5px;color:#34443a;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt{text-align:right}.rt .pr{font-size:18px;font-weight:800;letter-spacing:-.02em}.rt .pr small{font-size:12px;color:var(--mu);font-weight:600}.tmx{display:block;font-size:12px;color:var(--mu);font-weight:600;margin-top:4px}
html body .ch{font-weight:700;letter-spacing:0}
/* Detailbereich */
html body .sheet h2{font-size:28px;font-weight:800;letter-spacing:-.03em;margin:4px 0 6px}
html body .x{width:36px;height:36px;border-radius:50%;background:#f0f3f1;font-size:22px;line-height:1;display:grid;place-items:center;color:#3b4a40}
html body .box{border:1px solid var(--line);border-radius:18px;padding:15px;background:#fff}html body .box h4{font-size:15px;font-weight:800;letter-spacing:-.01em}
html body .ai{border-left:0;background:linear-gradient(135deg,#faf5e9,#fff);border:1px solid #ecdcb5;border-radius:16px;padding:12px 14px}
html body .ai b{color:#7a5d1e}
html body .btn{background:linear-gradient(135deg,#238146,#17502d);border-radius:14px;box-shadow:0 8px 18px -10px rgba(15,61,39,.8);font-weight:800;transition:transform .12s,box-shadow .12s}html body .btn:hover{transform:translateY(-1px)}
html body .btn.sec{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}
html body .btn:disabled{opacity:.6;transform:none}
html body .step{border-radius:999px;font-weight:700}html body .step.done{background:var(--mint)}html body .step.now{background:linear-gradient(135deg,#238146,#17502d)}
html body .pdf{border:1px dashed #b9c8be;border-radius:16px;background:repeating-linear-gradient(135deg,#f7faf8,#f7faf8 10px,#f1f6f3 10px,#f1f6f3 20px)}
html body .msg{border-radius:20px;padding:10px 14px;line-height:1.4}
html body .msg.kunde{background:#f0f3f1;border-bottom-left-radius:6px}
html body .msg.wir{background:linear-gradient(135deg,#238146,#17502d);color:#fff;border-bottom-right-radius:6px}html body .msg.wir i{color:#cfe7d8}
html body .msg.ki{background:#faf5e9;border:1px solid #ecdcb5;border-radius:16px}
html body .msg.hashmat{background:var(--mint)}
html body .hint{border-radius:14px}
html body .bar{background:linear-gradient(0deg,#fff 70%,rgba(255,255,255,0))}
html body .note{color:#8a988f}
/* Docked */
#dr::before{display:none}
@media(min-width:1180px){
 html body main{margin-right:560px}
 #dr{display:block;position:fixed;inset:0 0 0 auto;width:560px;background:transparent;pointer-events:none;z-index:4}
 #dr::before{content:"Kunde auswählen, um den ganzen Verlauf zu sehen";display:grid;place-items:center;position:absolute;inset:16px 16px 16px 0;border:2px dashed #cbd6ce;border-radius:26px;color:#7d8d83;font-weight:700;text-align:center;padding:30px}
 #dr.on::before{display:none}
 #dr .sheet{display:none;position:absolute;inset:16px 16px 16px 0;width:auto;border-radius:26px;box-shadow:0 24px 60px -24px rgba(15,61,39,.45);border:1px solid var(--line);padding:26px;pointer-events:auto}
 #dr.on .sheet{display:block}
}
/* Mobil */
@media(max-width:899px){
 html body header{top:auto;left:0;right:0;bottom:0;width:auto;flex-direction:row;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0}
 html body header .top,.jorb{display:none}
 html body nav{flex-direction:row;overflow:auto;width:100%;gap:0}
 html body nav button{flex-direction:column;gap:3px;font-size:10.5px;min-width:66px;padding:7px 6px;text-align:center}
 html body nav button span{flex:none}html body nav button.on::before{display:none}
 html body nav b{position:absolute;top:2px;right:8px;font-size:10px;padding:0 6px}
 html body main{margin:0;padding:18px 14px 100px}
 .kpis{grid-template-columns:repeat(3,1fr);gap:8px}.kpi{padding:11px 12px;border-radius:15px}.kpi b{font-size:18px}.kpi em{display:none}.kpi small{font-size:11px}.hello h1{font-size:24px}
 html body nav button span{white-space:nowrap}
 .l1{flex-wrap:wrap;gap:2px 8px}.av{width:40px;height:40px;font-size:14px}html body .card{gap:0 10px;padding:12px}.rt .pr{font-size:16px}.rt .pr small{display:none}
}
@media(min-width:900px) and (max-width:1179px){#dr .sheet{width:min(560px,100%)}}



.lamp{flex:none}body.kal .search,body.kal .chips{display:none}
body.kal #list{max-width:none}
.cal{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;margin-bottom:14px}
.calh{display:flex;align-items:center;gap:10px;margin-bottom:12px}.calh h3{margin:0;font-size:20px;font-weight:800;letter-spacing:-.02em;flex:1}
.calh button{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:18px;cursor:pointer;color:var(--ink)}
.sync{font-size:12px;font-weight:700;color:var(--pr);background:var(--mint);padding:4px 10px;border-radius:999px}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.dow{font-size:11.5px;font-weight:700;color:var(--mu);text-align:center;padding:2px 0 6px}
.day{min-height:84px;border-radius:12px;background:#f6f8f6;padding:5px;overflow:hidden}.day.o{background:transparent}
.day.today{box-shadow:0 0 0 2px var(--gold) inset;background:#fffaf0}
.day>b{display:block;font-size:12px;font-weight:700;color:#5d6d62;margin-bottom:3px}
.ev{display:block;width:100%;text-align:left;border:0;border-radius:8px;padding:3px 6px;margin-bottom:3px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;background:var(--mint);color:#14502c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev.y{background:#fbf0dc;color:#8a5a06}.ev.g{background:#e9edea;color:#5d6d62}.ev:hover{filter:brightness(.96)}
.ag{background:#fff;border:1px solid var(--line);border-radius:22px;padding:6px 16px 10px}
.ag h4{margin:14px 0 6px;font-size:13px;font-weight:800;color:var(--mu)}
.agr{display:grid;grid-template-columns:54px 1fr auto;gap:2px 12px;align-items:center;padding:10px 6px;border-radius:12px;cursor:pointer;border-top:1px solid var(--line)}.agr:hover{background:#f6f8f6}
.agr .tt{font-weight:800}.agr .nn{font-weight:800}.agr .rr{font-size:13px;color:var(--mu);grid-column:2}
.pill{font-size:12px;font-weight:700;border-radius:999px;padding:2px 10px;background:#fbf0dc;color:#8a5a06;white-space:nowrap}.pill.ok{background:var(--mint);color:var(--pr)}.pill.y{background:#fbe3c2;color:#8a4b06}
.task{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--line);font-size:14px}.task i{flex:none;width:20px;height:20px;border-radius:6px;border:2px solid #b9c8be;display:grid;place-items:center;font-style:normal;font-size:13px;color:#fff;margin-top:1px}.task.d i{background:var(--pr);border-color:var(--pr)}.task.d span{color:var(--mu);text-decoration:line-through}
@media(max-width:899px){.day{min-height:64px;padding:3px}.ev{font-size:10px;padding:2px 4px}}



.jbtn{position:relative;display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.jbtn button{border:1px solid rgba(184,151,90,.8);background:rgba(255,255,255,.06);color:#f3e7c8;border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.jbtn button:hover{background:rgba(184,151,90,.25)}
.jbtn input{flex:1;min-width:150px;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.2);color:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-size:13px}.jbtn input::placeholder{color:#9fbaa9}
.jsay{position:relative;margin-top:10px;font-size:14px;line-height:1.45;color:#d9efe1;min-height:0}.jsay:empty{display:none}.jsay q{display:block;color:var(--gold);font-weight:700;font-size:12.5px;quotes:none;margin-bottom:2px}
.brief.speak .orb{animation:spin 2.5s linear infinite,beat .7s ease-in-out infinite alternate}
@keyframes beat{from{transform:scale(1);box-shadow:0 0 14px 1px rgba(88,214,141,.55)}to{transform:scale(1.18);box-shadow:0 0 28px 6px rgba(88,214,141,.9)}}
.brief.listen .orb{box-shadow:0 0 26px 6px rgba(184,151,90,.9)}



:root{--canvas:#050b0b;--bg:#050b0b}
html{background:#050b0b}
body{background:
 radial-gradient(900px 600px at 12% -8%,rgba(16,185,129,.28),transparent 60%),
 radial-gradient(800px 560px at 96% 8%,rgba(34,211,238,.16),transparent 62%),
 radial-gradient(900px 700px at 70% 112%,rgba(99,102,241,.18),transparent 60%),
 radial-gradient(700px 500px at 0% 100%,rgba(20,184,166,.14),transparent 60%),
 #050b0b!important;background-attachment:fixed!important;color:#e8f1ec}
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
 background-image:linear-gradient(rgba(94,234,212,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(94,234,212,.055) 1px,transparent 1px);
 background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse 85% 75% at 50% 25%,#000 30%,transparent 100%);mask-image:radial-gradient(ellipse 85% 75% at 50% 25%,#000 30%,transparent 100%)}
body>*{position:relative;z-index:1}
.hello h1{color:#f2fbf6;text-shadow:0 0 28px rgba(52,211,153,.35)}
.hello p{color:#8fb3a2}
.story span{color:#b6d2c4}
.empty{color:#8fb3a2}
.ring{box-shadow:0 0 18px rgba(52,211,153,.28)}
.filters .chip,.chips .chip{border-color:rgba(148,210,185,.25)}
.chips .chip{border-color:rgba(148,210,185,.25)}
.chip.on{background:linear-gradient(135deg,#10b981,#14b8a6)!important;color:#03140e!important;border-color:transparent!important;box-shadow:0 0 18px rgba(16,185,129,.45)}
[class*="dock"],[id*="dock"]{border-color:rgba(94,234,212,.35)!important}
/* ===== GWS live: Ergänzungen ===== */
.who{display:flex;align-items:center;gap:8px;margin-top:10px;padding:0 6px;color:#9fbaa9;font-size:12px}
.who span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who button{border:1px solid rgba(255,255,255,.18);background:transparent;color:#cfe3d6;border-radius:999px;padding:4px 10px;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.who button:hover{background:rgba(255,255,255,.08)}
@media(max-width:899px){.who{display:none}}
.mob-out{display:none}
@media(max-width:899px){.mob-out{display:inline-block;float:right;border:1px solid rgba(148,210,185,.35);background:transparent;color:#b6d2c4;border-radius:999px;padding:5px 12px;font:inherit;font-size:12px;font-weight:700;margin-top:4px}}
html body nav button{cursor:pointer;font-family:inherit}
html body nav button:focus-visible,.story:focus-visible,.card:focus-visible,.btn:focus-visible,.chip:focus-visible{outline:2px solid #58d68d;outline-offset:2px}
.chip{cursor:pointer;user-select:none}
#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;z-index:60;background:#0f1a14;color:#e8f1ec;border:1px solid rgba(88,214,141,.45);box-shadow:0 18px 40px -18px rgba(0,0,0,.8);border-radius:14px;padding:11px 16px;font-weight:700;font-size:14px;max-width:min(560px,92vw);transition:opacity .2s,transform .2s}
#toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
#toast.err{border-color:#e06b6b}
@media(max-width:899px){#toast{bottom:96px}}
.sheet .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.sheet .acts .btn{flex:1 1 auto;min-width:150px;padding:12px 14px}
.btn.no{background:#fff;color:#b42323;border:1px solid #f0c6c6;box-shadow:none}
.btn.small{flex:none!important;min-width:0!important;padding:8px 12px!important;font-size:13px}
.sheet textarea{width:100%;min-height:90px;border:1px solid var(--line);border-radius:14px;padding:11px 13px;font:inherit;font-size:14px;resize:vertical;margin-top:8px;background:#fff;color:var(--ink)}
.sheet textarea:focus{outline:2px solid var(--pr);outline-offset:1px}
.qchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.qchips button{border:1px solid var(--line);background:#f6f8f6;border-radius:999px;padding:5px 11px;font:inherit;font-size:12.5px;font-weight:700;color:#2f3f35;cursor:pointer}
.qchips button:hover{background:var(--mint)}
.opts{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.opts button{text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink);cursor:pointer}
.opts button:hover,.opts button.on{border-color:var(--pr);background:var(--mint)}
.notebox{font-size:13px;color:var(--mu);margin-top:8px;line-height:1.45}
.proc{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:#14502c;background:var(--mint);border-radius:12px;padding:9px 12px;margin:10px 0}
.proc.fehler{background:#fdeaea;color:#a12424}.proc.rueckfrage{background:#fbf0dc;color:#8a5a06}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite;flex:none}
.frage{border:1px solid #ecdcb5;background:linear-gradient(135deg,#faf5e9,#fff);border-radius:16px;padding:13px 14px;margin:12px 0}
.frage h4{margin:0 0 6px;font-size:14px;font-weight:800;color:#7a5d1e}
.frage .fq{white-space:pre-wrap;font-size:14px;line-height:1.45}
.prev{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.prev img{width:100%;border-radius:12px;border:1px solid var(--line);background:#f6f8f6;min-height:120px}
.sheet details{margin-top:12px;border:1px solid var(--line);border-radius:14px;padding:10px 13px;background:#fff}
.sheet details summary{cursor:pointer;font-weight:800;font-size:14px}
.sheet details pre{white-space:pre-wrap;font:inherit;font-size:13.5px;line-height:1.45;margin:8px 0 0}
.sheet .sec-h{display:block;margin:16px 0 4px;font-size:14px;font-weight:800}
.sheet .msg{margin-bottom:8px;white-space:pre-wrap;word-break:break-word;font-size:14px}
.sheet .msg i{display:block;font-style:normal;font-size:11.5px;font-weight:700;opacity:.8;margin-bottom:3px}
.sheet .msg.long{max-height:220px;overflow:auto}
.sheet .box{margin-top:12px}
.sheet .kv span{word-break:break-word}
.sheet a.lnk{color:var(--pr);font-weight:700;text-decoration:none}
.sheet a.lnk:hover{text-decoration:underline}
.loading{display:flex;align-items:center;gap:10px;justify-content:center;color:#8fb3a2;padding:40px 10px;font-weight:700}
.empty{color:#8fb3a2!important}
.card .st.r{background:#fdeaea;color:#a12424}
.cat{display:inline-block;font-size:11px;font-weight:800;padding:2px 9px;border-radius:999px;background:#eef2ef;color:#3b4a40;white-space:nowrap}
.cat.umzugsanfrage{background:var(--mint);color:var(--pr)}.cat.kundenantwort{background:#e6eefb;color:#2b5aa8}.cat.schaden{background:#fdeaea;color:#a12424}.cat.bewerbung{background:#efe9fb;color:#5b3ea8}.cat.werbung,.cat.systemmail{background:#eef2ef;color:#66756b}
.konf{display:block;font-size:11.5px;color:var(--mu);font-weight:600;margin-top:4px}
.ev.o{background:#e6eefb;color:#2b5aa8}
.leg{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12px;font-weight:700;color:var(--mu)}
.leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px;background:var(--mint)}
.leg i.o{background:#e6eefb}.leg i.y{background:#fbf0dc}
.note:empty{display:none}
html body .note{max-width:780px;font-size:12.5px;margin-top:10px}

.fehlt{font-style:normal;color:#b45309;font-weight:700}
.eck .kv{grid-template-columns:minmax(150px,auto) 1fr}
.eck .kv b{white-space:nowrap}
@media(max-width:600px){.eck .kv{grid-template-columns:1fr}.eck .kv b{margin-top:6px}}
.kvprev{margin-top:12px;border:1px solid var(--line);border-radius:18px;padding:12px;background:#fff}
.kvh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.kvh b{font-size:15px;font-weight:800}
.pdfview{display:flex;flex-direction:column;gap:8px;max-height:620px;overflow:auto;border-radius:12px;background:#f1f4f2;padding:8px}
.pdfpage{display:block;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.12);background:#fff}

/* Verlauf auf-/zuklappbar */
.sheet .tlbox{margin-top:16px}
.sheet .tlbox>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;margin:0 0 4px}
.sheet .tlbox>summary::-webkit-details-marker,.sheet .older>summary::-webkit-details-marker,.sheet .msgx>summary::-webkit-details-marker{display:none}
.sheet .tlbox>summary::before,.sheet .older>summary::before{content:"\25B8";display:inline-block;transition:transform .15s;font-size:12px}
.sheet .tlbox[open]>summary::before,.sheet .older[open]>summary::before{transform:rotate(90deg)}
.sheet .tlc{font-size:12px;font-weight:600;opacity:.65}
.sheet .tlacts{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 2px}
.sheet .older{margin:6px 0 10px;border-left:2px solid rgba(127,127,127,.25);padding-left:8px}
.sheet .older>summary{cursor:pointer;list-style:none;font-size:13px;font-weight:700;opacity:.8;padding:6px 0}
.sheet .msgx{display:block;max-height:none}
.sheet .msgx>summary{cursor:pointer;list-style:none}
.sheet .msgx .more::after{content:"Mehr anzeigen \25BE";display:block;margin-top:6px;font-size:12px;font-weight:700;text-decoration:underline;opacity:.85}
.sheet .msgx[open] .more::after{content:"Weniger anzeigen \25B4"}
.sheet .msgx[open] .pv{display:none}
.sheet .msgx .full{white-space:pre-wrap}
.sheet .msgx>summary{font-weight:400;padding:0;background:none}
.sheet .msgx>summary .pv{font-weight:400}

/* KV-Vorschau auf-/zuklappbar */
.kvprev .kvh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.kvprev .kvtog{all:unset;cursor:pointer;display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:4px 0}
.kvprev .kvtog:focus-visible{outline:2px solid #2fb36b;outline-offset:3px;border-radius:6px}
.kvprev .kvar{display:inline-block;font-size:12px;transform:rotate(90deg);transition:transform .15s}
.kvprev.zu .kvar{transform:none}
.kvprev .kvst{font-size:12px;font-weight:700;opacity:.7;text-decoration:underline;margin-left:auto}
.kvprev.zu .kvbody{display:none}
.kvprev .kvst{white-space:nowrap}
@media(max-width:899px){#dr .sheet{padding-bottom:calc(110px + env(safe-area-inset-bottom))}}

.jsay .cmdl{margin:6px 0 4px 18px;padding:0}.jsay .cmdl li{margin:2px 0}.jsay .cmdl small{opacity:.7}
.jsay .cmda{display:flex;gap:8px;margin-top:8px}

.kvprev .upl{cursor:pointer;position:relative}.kvprev .upl input{display:none}

.jsay .jtxt{white-space:pre-line}
.jsay{max-height:55vh;overflow:auto}
/* ===== Startseite „Bitte entscheiden“ + verständliche Kundenakte (20.10.2026) ===== */
.sumbar{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:4px 0 6px}
.sumbar div{background:rgba(255,255,255,.06);border:1px solid rgba(148,210,185,.22);border-radius:16px;padding:12px 14px}
.sumbar b{display:block;font-size:26px;line-height:1.1;color:#f2fbf6}
.sumbar span{font-size:12.5px;color:#9fc2b1}
.sumbar div:first-child{background:linear-gradient(135deg,rgba(16,185,129,.28),rgba(20,184,166,.14));border-color:rgba(52,211,153,.5)}
.sec2{margin:22px 0 10px;font-size:15px;font-weight:800;letter-spacing:.02em;color:#d9efe1;text-transform:uppercase}
.dec{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:14px 16px;margin-bottom:12px;box-shadow:0 10px 30px -22px rgba(0,0,0,.6)}
.dec.r0{border-left:6px solid #d99a1e}.dec.r1{border-left:6px solid #10b981}.dec.r2{border-left:6px solid #3b82f6}.dec.r3{border-left:6px solid #94a3b8}
.dec .dh{display:flex;gap:12px;align-items:center;cursor:pointer}
.dec .av{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff;background:var(--rc,#5b6770);flex:none}
.dec .nm{font-size:16.5px;font-weight:800;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dec .mt{font-size:13px;color:var(--mu);margin-top:2px}
.dec .dw{margin:10px 0 0;font-size:14.5px;line-height:1.5}
.dec .dnote{margin-top:6px;font-size:13px;color:#8a5a06;background:#fbf3e2;border-radius:10px;padding:7px 10px}
.dec .dacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.dec .dacts .btn{flex:1 1 120px;padding:12px 14px;font-size:15px;font-weight:800;border-radius:14px}
.btn.warn{background:#d97706!important;color:#fff!important;border-color:#d97706!important;animation:pulse 1s ease-in-out infinite alternate}
@keyframes pulse{from{box-shadow:0 0 0 0 rgba(217,119,6,.5)}to{box-shadow:0 0 0 8px rgba(217,119,6,0)}}
.runs{background:rgba(255,255,255,.05);border:1px solid rgba(148,210,185,.18);border-radius:16px;overflow:hidden}
.run{display:grid;grid-template-columns:14px minmax(120px,auto) 1fr auto;gap:10px;align-items:center;padding:11px 14px;border-top:1px solid rgba(148,210,185,.12);cursor:pointer;color:#dceee4;font-size:14px}
.run:first-child{border-top:0}.run:hover{background:rgba(255,255,255,.05)}
.run b{color:#f2fbf6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.run span{color:#b6d2c4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.run em{font-style:normal;font-size:12.5px;color:#8fb3a2;text-align:right}
.run.lang em{color:#f5b04a}
.dot2{width:10px;height:10px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,.8);animation:beat .9s ease-in-out infinite alternate}
.dot2.g{animation:none;background:#5eead4;box-shadow:none}
.okbox{background:rgba(16,185,129,.12);border:1px solid rgba(52,211,153,.35);color:#d9f5e6;border-radius:16px;padding:14px 16px;font-weight:700}
.okbox.soft{background:rgba(255,255,255,.04);border-color:rgba(148,210,185,.18);color:#9fc2b1;font-weight:600}
.sec2d{margin-top:22px}.sec2d summary{cursor:pointer;font-size:15px;font-weight:800;letter-spacing:.02em;color:#d9efe1;text-transform:uppercase;margin-bottom:10px}
.morehint{margin:22px 0 8px;font-size:13px;color:#8fb3a2}
.what{background:linear-gradient(135deg,#eef8f2,#fff);border:1px solid #cfe7d8;border-radius:16px;padding:12px 14px;margin:12px 0;font-size:14.5px;line-height:1.5;color:var(--ink)}
.what div+div{margin-top:6px}.what b{color:#14502c}
i.soft{font-style:normal;color:var(--mu)}
.kv small{color:var(--mu)}
@media(max-width:899px){
 .sumbar{grid-template-columns:repeat(2,1fr)}.sumbar b{font-size:22px}
 .run{grid-template-columns:12px 1fr auto;grid-template-areas:"d n e" "d s s"}.run .dot2{grid-area:d}.run b{grid-area:n}.run span{grid-area:s;white-space:normal}.run em{grid-area:e}
 .dec .dacts .btn{flex:1 1 calc(50% - 8px)}
}
/* App-Modus am Handy (24.10.2026): feste Größe, kein Auto-Zoom, kein seitliches Scrollen */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:899px){
 html,body{overscroll-behavior:none}
 input,textarea,select{font-size:16px!important}
 main,#list,.card,.box,.brief,.sheet,.dec,.run,.sec2{max-width:100%;min-width:0}
 img,video,canvas,svg,iframe,pre{max-width:100%}
 .sheet{overflow-wrap:anywhere;word-break:break-word}
 table.po{display:block;overflow-x:auto;max-width:100%}
 .pdfview{max-width:100%}
 #dr{position:fixed;inset:0;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:contain}
 #dr .sheet,html body .sheet{position:absolute;inset:0;width:100%;height:100%;max-width:100vw;border-radius:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px 16px calc(28px + env(safe-area-inset-bottom))}
 body.sheet-offen{position:fixed;left:0;right:0;width:100%;overflow:hidden}
 body.sheet-offen header{display:none}
 .sheet .acts .btn{min-width:0;flex:1 1 140px}
}
@media(max-width:899px){html body .sheet h2{font-size:22px;line-height:1.2}}
/* X zum Schließen auf Entscheidungs-Karten (24.10.2026) */
.dec{position:relative}.dec .dh{padding-right:40px}
.card.hasx{position:relative;padding-right:44px}
.decx{position:absolute;top:10px;right:10px;z-index:2;min-width:32px;height:32px;padding:0 9px;border-radius:999px;border:1px solid var(--line);background:#f3f6f4;color:#5b6770;font:inherit;font-size:20px;font-weight:700;line-height:1;cursor:pointer}
.decx:hover{background:#e9eeeb;color:#0f1a14}
.decx.on{background:#fdeaea;border-color:#f3b9b9;color:#b91c1c;font-size:13px;font-weight:800}

/* Kundenunterlagen (v18) */
.kdgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:8px 0}
.kditem{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px;border:1px solid var(--line,#dde3de);border-radius:10px;background:#f6f8f6;cursor:pointer;font:inherit;color:inherit;min-width:0}
.kditem img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px;background:#e7ece8;display:block}
.kditem .kdic{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#e7ece8;font-weight:700;font-size:13px;color:#3a5a45;text-align:center}
.kditem small{font-size:11px;color:#5b6b62}
.kditem .kdplay{position:absolute;top:calc(50% - 22px);left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;pointer-events:none}
.kditem:focus-visible{outline:2px solid #3a8f3d;outline-offset:2px}
