:root{--lh-blue: #0069b4;--lh-blue-dark: #004f88;--text: #1a1a1a;--muted: #4a4a4a;--border: #c8d3e0;--bg: #f4f7fb;--surface: #ffffff;--ok: #1b6e2d;--ok-bg: #e8f5ea;--error: #b00020;--error-bg: #fdecee;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:root{--brand-navy: #0b2a5b;--brand-blue: #1e7be0;--brand-cyan: #13d6f0;--brand-teal: #0f9b8e}.app-header{background:#fff;color:var(--brand-navy);padding:.5rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:56px;border-bottom:4px solid transparent;border-image:linear-gradient(90deg,var(--brand-navy),var(--brand-blue) 45%,var(--brand-cyan)) 1}.brand{margin:0;line-height:0}.brand-logo{height:40px;width:auto;display:block}.menu-toggle{display:none;background:#fff;color:var(--brand-navy);border:2px solid var(--brand-blue);border-radius:6px;padding:.4rem .8rem;min-height:44px;font-weight:600}.skip-link{position:absolute;left:-999px;top:0;background:#fff;padding:.5rem 1rem;z-index:10}.skip-link:focus{left:.5rem}.layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 56px)}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:1rem .75rem;display:flex;flex-direction:column;justify-content:space-between;gap:1rem;position:sticky;top:0;align-self:start;height:calc(100vh - 56px);overflow-y:auto}.side-list{list-style:none;margin:0;padding:0;display:grid;gap:.15rem}.side-list .side-list{margin:.15rem 0 .5rem}.side-sections{display:grid;gap:1.25rem}.side-section{display:grid;gap:.35rem}.side-heading{margin:0;padding:.25rem .75rem .5rem;border-bottom:1px solid var(--border);line-height:0;font-size:.85rem;font-weight:700;color:var(--muted)}.side-logo{height:30px;width:auto;max-width:100%}.info-logo{height:64px;width:auto;max-width:100%;margin-bottom:.5rem}.side-link{display:block;width:100%;text-align:left;background:transparent;border:none;border-left:4px solid transparent;border-radius:0 6px 6px 0;padding:.6rem .75rem;min-height:44px;color:var(--lh-blue-dark);font-weight:600}.side-link:hover{background:#eef4fa}.side-link[aria-current=page]{background:#e6f0f8;border-left-color:var(--lh-blue);color:var(--text)}.side-group{display:flex;align-items:center;gap:.5rem;width:100%;text-align:left;background:transparent;border:none;border-left:4px solid transparent;border-radius:0 6px 6px 0;min-height:44px;padding:.6rem .75rem;color:var(--text);font-weight:700}.side-group:hover{background:#eef4fa}.side-group--active{color:var(--lh-blue-dark)}.side-chevron{flex:none;width:.5rem;height:.5rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}.side-group[aria-expanded=true] .side-chevron{transform:rotate(45deg)}.side-sublist{padding-left:1.85rem}.side-sublist[hidden]{display:none}@media (prefers-reduced-motion: reduce){.side-chevron{transition:none}}.side-footer{border-top:1px solid var(--border);padding-top:.75rem;display:grid;gap:.25rem}.side-user{padding:0 .75rem;color:var(--muted);font-size:.95rem;overflow-wrap:anywhere}@media (max-width: 900px){.menu-toggle{display:inline-block}.layout{display:block}.sidebar{display:none;position:static;height:auto;border-right:none;border-bottom:1px solid var(--border)}.sidebar--open{display:flex}}.app-main{width:100%;max-width:1000px;margin:0 auto;padding:1rem;display:grid;gap:1rem;align-content:start}.app-main:focus{outline:none}.app-main.narrow{max-width:420px}.card{background:var(--surface);border-radius:8px;padding:1.25rem;box-shadow:0 1px 3px #0000001f;min-width:0}.card h2{margin-top:0;color:var(--lh-blue-dark);font-size:1.3rem}.card h3{color:var(--lh-blue-dark);font-size:1.05rem;margin:1.5rem 0 .5rem}label{display:block;font-weight:600;margin:.75rem 0 .25rem}input,select{width:100%;font:inherit;padding:.6rem .7rem;min-height:44px;border:1px solid #7a8899;border-radius:6px;background:#fff;color:var(--text)}fieldset{border:1px solid var(--border);border-radius:6px;margin:.75rem 0 0;padding:.5rem .75rem}legend{font-weight:600;padding:0 .25rem}label.checkbox{display:flex;align-items:center;gap:.5rem;font-weight:400;margin:.35rem 0}label.checkbox input{width:1.25rem;height:1.25rem;min-height:0}.form-grid{display:grid}button{font:inherit;cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}button.primary{margin-top:1rem;background:var(--lh-blue);color:#fff;border:none;border-radius:6px;padding:.7rem 1.2rem;min-height:44px;font-weight:600;justify-self:start}button.primary:hover:not(:disabled){background:var(--lh-blue-dark)}button.small{background:#fff;color:var(--lh-blue-dark);border:1px solid var(--lh-blue);border-radius:6px;padding:.3rem .7rem;min-height:36px}button.link{background:none;border:none;padding:.25rem 0;color:var(--lh-blue-dark);text-decoration:underline;min-height:44px}.error,.success,.info{padding:.6rem .8rem;border-radius:6px;margin:.75rem 0 0}.error{color:var(--error);background:var(--error-bg)}.success{color:var(--ok);background:var(--ok-bg)}.info{background:#e6f0f8;color:var(--lh-blue-dark)}.muted{color:var(--muted)}.status{font-weight:600;color:var(--muted)}.status--ok{color:var(--ok)}.status--nicht-erreichbar{color:var(--error)}.client-list,.plain{list-style:none;padding:0;margin:1rem 0 0}.plain li{padding:.35rem 0;border-bottom:1px solid var(--border)}.client-list li+li{border-top:1px solid var(--border)}.client-row{display:flex;flex-direction:column;align-items:flex-start;width:100%;background:none;border:none;text-align:left;padding:.75rem .25rem;min-height:44px;color:var(--text)}.client-row:hover{background:#eef4fa}.client-name{font-weight:600;color:var(--lh-blue-dark)}.client-meta{color:var(--muted);font-size:.95rem}.facts{display:grid;grid-template-columns:max-content 1fr;gap:.4rem 1rem}.facts dt{font-weight:600}.facts dd{margin:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:.5rem;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--muted);font-size:.9rem}.card-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem}.card-head h2{margin-bottom:.5rem}.panel{display:grid;gap:1rem}.badge{display:inline-block;margin-left:.5rem;padding:0 .45rem;border-radius:999px;background:#ececec;color:var(--muted);font-size:.85rem;font-weight:600}.button-link{display:inline-flex;align-items:center;min-height:40px;padding:.3rem .8rem;border:1px solid var(--lh-blue);border-radius:6px;color:var(--lh-blue-dark);text-decoration:none;font-weight:600}.button-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.button-row button.primary{margin-top:.5rem}.spaced{margin-top:.75rem}details summary{cursor:pointer;color:var(--lh-blue-dark);font-weight:600;min-height:32px}code{background:#eef2f7;padding:0 .25rem;border-radius:4px}.hash{word-break:break-all;font-size:.85rem}.warning{padding:.6rem .8rem;border-radius:6px;margin:.75rem 0 0;background:#fff4e0;color:#7a4a00}.row-error{color:var(--error)}.row-warning{color:#7a4a00}tr.row-error td:first-child{border-left:4px solid var(--error)}tr.row-new td:first-child{border-left:4px solid var(--ok)}tr.row-changed td:first-child{border-left:4px solid var(--lh-blue)}del{color:var(--error)}ins{color:var(--ok);text-decoration:none;font-weight:600}ul.compact{margin:0;padding-left:1.1rem}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.5rem;margin:1rem 0}.tile{border:1px solid var(--border);border-radius:8px;padding:.6rem;text-align:center;color:var(--muted)}.tile span{display:block;font-size:1.6rem;font-weight:700;color:var(--text)}.tile-new span{color:var(--ok)}.tile-changed span{color:var(--lh-blue-dark)}.tile-error span{color:var(--error)}.tile-warning span{color:#7a4a00}.confirm-box{margin-top:1.25rem;padding:1rem;border:2px solid var(--lh-blue);border-radius:8px;background:#f5f9fd}.confirm-box h3{margin-top:0}.history{list-style:none;padding:0;margin:0}.history>li{padding:.6rem 0;border-bottom:1px solid var(--border)}.history ul{margin:.25rem 0 0;padding-left:1.1rem}.photo{width:128px;height:128px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.client-head{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.client-head h2{margin:0}input[type=file]{padding:.45rem}textarea{width:100%;font:inherit;padding:.6rem .7rem;border:1px solid #7a8899;border-radius:6px;background:#fff;color:var(--text);resize:vertical}button.secondary{background:#fff;color:var(--lh-blue-dark);border:2px solid var(--lh-blue)}button.secondary:hover:not(:disabled){background:#eef4fa}.search-row{display:flex;gap:.5rem;align-items:end}.search-row input{flex:1}.search-row button.primary{margin-top:0}.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.tile-button{--tile: var(--lh-blue);display:flex;align-items:center;gap:.85rem;min-height:84px;padding:.85rem 1rem;border-radius:10px;border:1px solid var(--border);border-left:5px solid var(--tile);background:#fff;color:var(--brand-navy, #0b2a5b);text-align:left;-webkit-hyphens:manual;hyphens:manual;box-shadow:0 1px 2px #0000000f;transition:box-shadow .15s,transform .15s,border-color .15s}.tile-button:hover{border-color:var(--tile);box-shadow:0 4px 12px #0b2a5b1f;transform:translateY(-1px)}.tile-icon{flex:0 0 auto;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;color:#fff;background:var(--tile)}.tile-text{display:grid;gap:.15rem}.tile-title{font-weight:700;font-size:1.02rem}.tile-sub{color:var(--muted);font-size:.88rem;font-weight:400}.tile--care{--tile: #1e7be0}.tile--group{--tile: #0b8fb3}.tile--measure{--tile: #0f8a7e}.tile--clients{--tile: #0b2a5b}@media (prefers-reduced-motion: reduce){.tile-button{transition:none}.tile-button:hover{transform:none}}.tile--quick{--tile: #6b56c9}.type-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.5rem;margin-top:.4rem}.type-choice{display:flex;align-items:center;gap:.6rem;margin:0;padding:.55rem .7rem;min-height:56px;border:1px solid var(--border);border-radius:8px;font-weight:600;cursor:pointer;background:#fff}.type-choice:has(input:checked){border-color:var(--tile);box-shadow:inset 4px 0 0 var(--tile);background:#f5f9fd}.type-choice>span:last-child{min-width:0;overflow-wrap:break-word}.type-choice input{width:1.1rem;height:1.1rem;min-height:0;flex:0 0 auto}.small-icon{width:38px;height:38px}.block{display:block;font-weight:400;font-size:.85rem}.inline-form{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.inline-form input{width:auto;flex:1 1 160px}td.actions>*{margin:0 .4rem .4rem 0}.doc-list{display:grid;gap:.5rem;margin-top:.75rem}.doc-card{display:grid;gap:.2rem;width:100%;text-align:left;padding:.75rem;background:#fff;border:1px solid var(--border);border-radius:8px;color:var(--text)}.doc-card:hover{border-color:var(--lh-blue);background:#f8fbfe}.doc-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.doc-card-meta{color:var(--muted);font-size:.93rem}.doc-card-excerpt{font-size:.95rem;overflow-wrap:anywhere}.status-badge{display:inline-block;padding:.05rem .5rem;border-radius:999px;font-size:.8rem;font-weight:700;border:1px solid currentColor}.status-badge--draft{color:#7a4a00;background:#fff4e0}.status-badge--final{color:var(--ok);background:var(--ok-bg)}.status-badge--corrected{color:var(--lh-blue-dark);background:#e6f0f8}.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 1rem}.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0 1rem}.participants .selected-list,.candidate-list{list-style:none;margin:.5rem 0 0;padding:0}.selected-list li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;justify-content:space-between;padding:.4rem 0;border-bottom:1px solid var(--border)}.selected-list li>span{flex:1 1 200px;font-weight:600}.selected-list select{width:auto;min-width:140px}.candidate-list{max-height:260px;overflow-y:auto;border:1px solid var(--border);border-radius:6px}.candidate{width:100%;text-align:left;background:none;border:none;padding:.55rem .75rem;min-height:44px;color:var(--lh-blue-dark)}.candidate:hover{background:#eef4fa}.candidate-list li.muted{padding:.55rem .75rem}.doc-content,.pre{white-space:pre-wrap;overflow-wrap:anywhere}.doc-content{background:#fafbfc;border:1px solid var(--border);border-radius:6px;padding:.75rem}.version-box{margin-top:.5rem;padding:.75rem;border-left:4px solid var(--border);background:#fafbfc}.row-between{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}.sticky-actions{position:sticky;bottom:0;background:var(--surface);padding:.5rem 0}.signature-pad{border:2px solid var(--lh-blue);border-radius:8px;padding:.75rem;background:#f5f9fd}.sig-label{font-weight:700;margin-top:0}.sig-canvas{display:block;width:100%;height:200px;background:#fff;border:1px dashed #7a8899;border-radius:6px;touch-action:none;cursor:crosshair}.signature-list{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}.signature-list li{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;border-bottom:1px solid var(--border);padding-bottom:.75rem}.sig-image{width:220px;max-width:100%;height:auto;border:1px solid var(--border);border-radius:6px;background:#fff}.warning-inline{color:#7a4a00;font-weight:600}.field-hint{display:block;font-weight:400;font-size:.88rem;color:var(--muted)}legend .field-hint{display:inline;margin-left:.35rem}.candidate-list.short{max-height:180px}.care-block h3{margin-bottom:.35rem}.care-block--follow .doc-content{border-left:4px solid #c77700;background:#fff8ec}.status-badge--follow{color:#7a4a00;background:#fff4e0}.small-text{font-size:.85rem}.attachment-list{list-style:none;padding:0;margin:0 0 .75rem;display:grid;gap:.5rem}.attachment-list li{display:flex;flex-wrap:wrap;gap:.4rem .75rem;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--border)}.attachment-list a{font-weight:600;color:var(--lh-blue-dark);overflow-wrap:anywhere}.dup-box ul{margin:.4rem 0;padding-left:1.2rem}.dup-box .link{min-height:0;padding:0}.akte-tabs{display:flex;flex-wrap:wrap;gap:.25rem;border-bottom:2px solid var(--border);margin-top:1rem}.akte-tab{background:transparent;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;padding:.55rem .9rem;min-height:44px;color:var(--lh-blue-dark);font-weight:600}.akte-tab[aria-selected=true]{border-bottom-color:var(--lh-blue);color:var(--text)}.akte-panel{padding-top:.75rem}.notes-panel{display:grid;gap:.4rem;margin:.75rem 0 0}.note{display:flex;gap:.6rem;align-items:flex-start;flex-wrap:wrap;padding:.6rem .75rem;border-radius:8px;background:#fff4e0;border-left:5px solid #c77700}.note-icon{flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:#c77700;color:#fff;font-weight:800;display:grid;place-items:center}.note-body{flex:1 1 220px}.note-form{display:grid;gap:.2rem;padding:.6rem .75rem;border:2px solid #c77700;border-radius:8px;background:#fffaf2}.filter-inline{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.filter-inline select{width:auto}tr.row-archived td{opacity:.65}.consent{white-space:nowrap;font-weight:700;padding:.05rem .5rem;border-radius:999px;font-size:.85rem}.consent--granted{color:var(--ok);background:var(--ok-bg)}.consent--refused,.consent--revoked{color:var(--error);background:var(--error-bg)}.consent--expired{color:#7a4a00;background:#fff4e0}.consent--missing{color:var(--muted);background:#eee}.contacts{margin-top:1.25rem}.contacts h3{margin:0}.contact-list{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.contact{border:1px solid var(--border);border-radius:8px;padding:.7rem .8rem;background:#fff;display:grid;gap:.2rem}.contact--ended{opacity:.7;background:#fafafa}.contact-head{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.contact-role{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--lh-blue-dark)}.contact-ways{display:flex;flex-wrap:wrap;gap:.2rem .8rem}.contact-ways a{color:var(--lh-blue-dark);font-weight:600}.contact-edit{display:grid;gap:.2rem;margin-top:.4rem}.add-contact{border:2px solid var(--lh-blue);border-radius:8px;padding:.75rem;margin:.5rem 0;background:#f5f9fd}.report-box{margin-top:1.25rem;padding:.75rem 1rem 1rem;border:1px solid var(--border);border-radius:8px;background:#f8fbfe}.report-box h3{margin-top:.25rem}.org-logo-preview{max-height:80px;max-width:100%;border:1px solid var(--border);border-radius:6px;padding:.5rem;background:#fff}.button-row.tight{gap:.5rem;align-items:center}:focus-visible{outline:3px solid var(--lh-blue);outline-offset:2px}@media (max-width: 600px){.facts{grid-template-columns:1fr}.facts dd{margin-bottom:.5rem}}.changelog{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}.changelog details{border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem}.changelog summary{cursor:pointer;min-height:32px;padding:.25rem 0}.changelog ul{margin:.5rem 0 .25rem;padding-left:1.25rem;display:grid;gap:.25rem}table.grouped .group-row th{background:#f1f5f9;text-align:left;font-weight:700;padding-top:.6rem;border-top:2px solid var(--border)}.pick-list{list-style:none;margin:.25rem 0 0;padding:.25rem .5rem;max-height:320px;overflow-y:auto;border:1px solid var(--border);border-radius:8px;background:#fff;display:grid;gap:.1rem}.bulk-assign fieldset{display:grid;gap:.5rem}.side-icon{flex:none;color:var(--lh-blue)}.side-link--icon{display:flex;align-items:center;gap:.6rem}.side-group .side-chevron{margin-left:auto}.perm-matrix th.perm-col{text-align:center;min-width:7.5rem}.perm-matrix th.perm-label{font-weight:400;text-align:left}.perm-cell{text-align:center;position:relative}.perm-cell input[type=checkbox]{width:22px;height:22px;accent-color:var(--lh-blue)}.perm-cell--dirty{background:#fff4e0}.perm-diff{position:absolute;top:.6rem;left:calc(50% + 15px);width:8px;height:8px;border-radius:50%;background:#c77700}.perm-diff--legend{position:static;display:inline-block;margin-right:.15rem;vertical-align:middle}.side-collapse{display:none;align-items:center;gap:.6rem;width:100%;text-align:left;background:transparent;border:none;border-left:4px solid transparent;border-radius:0 6px 6px 0;min-height:44px;padding:.6rem .75rem;color:var(--muted);font-weight:600}.side-collapse:hover{background:#eef4fa}.side-collapse .side-icon{color:var(--muted)}@media (min-width: 901px){.side-collapse{display:flex}.layout{transition:grid-template-columns .15s}.layout--collapsed{grid-template-columns:68px minmax(0,1fr)}.sidebar--collapsed{padding:1rem .4rem;overflow-x:hidden}.sidebar--collapsed .side-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sidebar--collapsed .side-chevron,.sidebar--collapsed .side-user,.sidebar--collapsed .side-sublist,.sidebar--collapsed .side-logo{display:none}.sidebar--collapsed .side-heading{padding:0;border-bottom:1px solid var(--border)}.sidebar--collapsed .side-link,.sidebar--collapsed .side-group,.sidebar--collapsed .side-collapse{justify-content:center;padding:.6rem 0}.sidebar--collapsed .side-collapse .side-icon svg{transform:scaleX(-1)}.sidebar--collapsed .side-group--active{background:#e6f0f8;border-left-color:var(--lh-blue)}.sidebar--collapsed .side-link:not(.side-link--icon){display:none}}@media (prefers-reduced-motion: reduce){.layout{transition:none}}.dictate{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.35rem}.dictate-button{display:inline-flex;align-items:center;gap:.4rem}button.small.dictate-button--on{background:#b3261e;border-color:#b3261e;color:#fff}button.small.dictate-button--on:hover{background:#8c1d18}.dictate-status{color:var(--muted);font-size:.9rem}.dictate-error{color:#b3261e;font-size:.9rem}
