:root{--color-brand-navy:#0a1e3d;--color-brand-slate:#64748b;--color-brand-off-white:#fafbfc;--accent:var(--color-brand-navy);--accent-soft:#e6ecf5;--surface:#fff;--border:#e2e8f0;--text:#0f172a;--danger:#b91c1c;--touch:48px;--radius:14px}*{box-sizing:border-box}body{background:var(--color-brand-off-white);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px}h1{margin:0;font-size:1.6rem}h2{margin:0 0 1rem;font-size:1.15rem}.muted,small{color:var(--color-brand-slate)}.status-text{color:var(--color-brand-slate);padding:1rem 0}.error{color:var(--danger)}.shell{grid-template-columns:240px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:1.5rem;padding:1.25rem 1rem;display:flex}.brand{align-items:center;gap:.6rem;font-weight:700;display:flex}.brand-mark{background:var(--accent);color:#fff;border-radius:10px;place-items:center;width:34px;height:34px;font-weight:700;display:grid}.brand-mark-lg{border-radius:16px;width:56px;height:56px;font-size:1.5rem}.nav-link{min-height:var(--touch);color:var(--color-brand-slate);white-space:nowrap;border-radius:12px;align-items:center;padding:0 .9rem;text-decoration:none;display:flex}.nav-link.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.user{grid-template-columns:auto 1fr;align-items:center;gap:.5rem .6rem;margin-top:auto;display:grid}.user-text{flex-direction:column;display:flex}.user .btn{grid-column:1/-1}.content{width:100%;min-width:0;max-width:1100px;padding:2rem 2.5rem}.avatar{background:var(--accent-soft);color:var(--accent);border-radius:50%;flex:none;place-items:center;width:36px;height:36px;font-size:.85rem;font-weight:700;display:grid}.avatar-lg{width:44px;height:44px}.avatar-xl{width:64px;height:64px;font-size:1.2rem}.btn{min-height:var(--touch);font:inherit;cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;padding:0 1.1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);color:#fff}.btn-secondary{background:var(--accent-soft);color:var(--accent)}.btn-ghost{color:var(--color-brand-slate);background:0 0}.btn-link{color:var(--accent);min-height:var(--touch);background:0 0;justify-content:flex-start;padding:0}.btn-block{width:100%}input,textarea,select{font:inherit;min-height:var(--touch);border:1px solid var(--border);background:var(--surface);border-radius:12px;width:100%;padding:.6rem .8rem}input:focus-visible,textarea:focus-visible,select:focus-visible,.btn:focus-visible,a:focus-visible{outline-offset:2px;outline:3px solid #7aa2e3}.form{flex-direction:column;gap:.9rem;margin-bottom:1rem;display:flex}.form label{flex-direction:column;gap:.35rem;font-weight:600;display:flex}.row{flex-wrap:wrap;gap:.75rem;display:flex}.card{background:var(--surface);border-radius:var(--radius);margin-bottom:1.25rem;padding:1.5rem;box-shadow:0 1px 3px #0f172a0f}.page-head{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.filters{gap:.75rem;margin-bottom:1rem;display:flex}.filters select{max-width:220px}.list{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.list-item{background:var(--surface);border-radius:var(--radius);min-width:0;min-height:64px;color:inherit;align-items:center;gap:.9rem;padding:.75rem 1rem;text-decoration:none;display:flex;box-shadow:0 1px 3px #0f172a0f}.list-text{flex-direction:column;flex:1;min-width:0;display:flex}.list-text small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.badge,.status-select{color:#475569;background:#eef1f5;border-radius:999px;padding:.25rem .75rem;font-size:.85rem;font-weight:600}.status-select{width:auto;min-height:var(--touch);border:0;padding:0 1rem}.badge-lead{color:#475569;background:#eef1f5}.badge-erstgespraech{background:var(--accent-soft);color:var(--accent)}.badge-demo{color:#9a5800;background:#fff0dc}.badge-angebot{color:#1d4ed8;background:#dbe7fb}.badge-abgeschlossen{color:#15803d;background:#dcf5e4}.badge-verloren{color:var(--danger);background:#fde4e4}.back{min-height:var(--touch);color:var(--color-brand-slate);align-items:center;text-decoration:none;display:inline-flex}.detail-head{flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.detail-title{flex:1;min-width:0}.detail-title p{margin:.25rem 0 0}.timeline{flex-direction:column;gap:1.25rem;margin:1rem 0 0;padding:0;list-style:none;display:flex}.timeline li{gap:.9rem;display:flex}.dot{background:var(--accent);width:12px;height:12px;box-shadow:0 0 0 4px var(--accent-soft);border-radius:50%;flex:none;margin-top:.4rem}.timeline-body{flex:1;min-width:0}.timeline-meta{color:var(--color-brand-slate);font-size:.9rem}.timeline-meta strong{color:var(--text)}.note-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:.25rem 0 0}.login{background:var(--accent);place-items:center;min-height:100vh;padding:1rem;display:grid}.login-card{background:var(--surface);text-align:center;border-radius:20px;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:380px;padding:2rem;display:flex}.mock-login{border-top:1px solid var(--border);flex-direction:column;gap:.6rem;width:100%;padding-top:1rem;display:flex}@media (width<=760px){.shell{grid-template-columns:minmax(0,1fr);padding-bottom:76px}.sidebar nav{gap:.25rem;display:flex}.nav-link{padding:0 .6rem}.sidebar{padding:.5rem .75rem calc(.5rem + env(safe-area-inset-bottom));border-top:1px solid var(--border);z-index:10;border-right:0;flex-direction:row;align-items:center;gap:.75rem;position:fixed;bottom:0;left:0;right:0}.brand-name,.user-text{display:none}.sidebar nav{flex:1}.user{grid-template-columns:auto auto;margin:0}.user .btn{grid-column:auto}.content{padding:1rem}.page-head .btn{flex:none}.filters{flex-direction:column}.filters select{max-width:none}.btn-primary{min-height:56px}}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.dropzone{border:2px dashed var(--border);border-radius:var(--radius);flex-direction:column;align-items:flex-start;gap:.6rem;margin-bottom:1rem;padding:1rem;display:flex}.dropzone p{margin:0}.dropzone-aktiv{border-color:var(--accent);background:var(--accent-soft)}.file-btn:focus-within{outline-offset:2px;outline:3px solid #7aa2e3}.plain-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.anlage,.termin{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:.6rem;padding:.5rem 0;display:flex}.anlage .list-text,.termin .list-text{min-width:160px}.termin-abgesagt strong{color:var(--color-brand-slate);text-decoration:line-through}.page-head.tight{margin-bottom:.5rem}.page-head.tight h2{margin:0}.hinweis{background:var(--accent-soft);border-radius:12px;flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1rem;padding:.6rem .9rem;display:flex}.hinweis span{flex:1;min-width:160px}.tag-rot{color:var(--danger);font-weight:600}.list-item-rot{border-left:4px solid var(--danger)}.uhr{min-width:5.5rem;color:var(--accent)}section+section h2{margin-top:1.5rem}.modal{z-index:20;background:#0f172a99;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.modal-box{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:.75rem;width:min(900px,100%);max-height:100%;padding:1rem;display:flex}.modal-head{justify-content:space-between;align-items:center}.vorschau{border:0;width:100%;height:70vh}.vorschau-bild{object-fit:contain;max-width:100%;max-height:70vh}.btn-danger{background:var(--danger);color:#fff}.switch{align-items:center;gap:.75rem;display:flex}.switch input{width:1.5rem;height:1.5rem;min-height:1.5rem}.dubletten-paar{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.dubletten-paar>div{border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:.5rem;padding:1rem;display:flex}@media (width<=700px){.dubletten-paar{grid-template-columns:1fr}}.sub-h{color:var(--color-brand-slate);margin:1rem 0 .25rem;font-size:1rem}.anlage-erledigt strong{color:var(--color-brand-slate);font-weight:500}.termin-notiz{overflow-wrap:anywhere;flex-basis:100%;margin:0}.hinweis-aehnlich{margin:0}.list-item-btn{text-align:left;width:100%;font:inherit;cursor:pointer;border:0}.modal-form{max-width:560px;overflow-y:auto}.modal-form fieldset{border:1px solid var(--border);border-radius:12px;padding:.75rem}@media (width<=640px){.modal{padding:0}.modal-form{border-radius:0;max-width:none;height:100%}}
