/* Aurora Ladepaket 4 */
/* lib/komfort/komfort.css */
/* Aurora – Komfort-Paket (08.11.2026): Ladeplatzhalter, Übergänge, Entwürfe, Leer-Zustände, Diktat, Rückgängig, Zählen/Wachsen, Dunkelmodus */
.kf-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 2 Ladeplatzhalter */
.kf-skel{display:flex;flex-direction:column;gap:14px;padding:4px 0 24px;max-width:1100px}
.kf-sk{position:relative;overflow:hidden;background:var(--line,#e3e8ef);border-radius:10px}
.kf-sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:kf-schimmer 1.3s ease-in-out infinite}
@keyframes kf-schimmer{to{transform:translateX(100%)}}
.kf-sk-titel{height:22px;width:38%;max-width:260px}
.kf-sk-reihe{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kf-sk-kpi{height:92px;border-radius:var(--r-lg,16px);background:var(--surface,#fff);border:1px solid var(--line,#e3e8ef);display:flex;flex-direction:column;justify-content:center;gap:12px;padding:0 16px}
.kf-sk-kpi i,.kf-sk-kpi b{display:block;border-radius:6px;background:var(--line,#e3e8ef)}
.kf-sk-kpi i{height:11px;width:55%}.kf-sk-kpi b{height:22px;width:70%}
.kf-sk-karte{background:var(--surface,#fff);border:1px solid var(--line,#e3e8ef);border-radius:var(--r-lg,16px);padding:8px 16px}
.kf-sk-zeile{display:flex;align-items:center;gap:12px;min-height:52px;border-bottom:1px solid var(--line,#e3e8ef)}
.kf-sk-zeile:last-child{border-bottom:0}
.kf-sk-punkt{width:28px;height:28px;border-radius:9px;flex:none}
.kf-sk-text{height:12px;flex:0 1 auto}
.kf-sk-wert{height:12px;width:64px;margin-left:auto;flex:none}
@media (max-width:600px){.kf-sk-reihe{grid-template-columns:repeat(2,minmax(0,1fr))}.kf-sk-reihe>:nth-child(3){display:none}.kf-sk-titel{width:55%}}
.kf-skel{animation:kf-auf .35s ease both .12s}
@keyframes kf-auf{from{opacity:0}}

/* 3 Seitenwechsel: Karten blenden gestaffelt ein */
.kf-ein{animation:kf-rein .34s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--kf-i,0) * 35ms)}
@keyframes kf-rein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 9 Diagramme bauen sich auf */
rect.kf-balken{transform-box:fill-box;transform-origin:50% 100%;animation:kf-wachs .6s cubic-bezier(.2,.7,.2,1) both}
@keyframes kf-wachs{from{transform:scaleY(0)}}
.kf-linie{stroke-dasharray:var(--kf-l);stroke-dashoffset:var(--kf-l);animation:kf-zieh .9s ease-out .1s forwards}
@keyframes kf-zieh{to{stroke-dashoffset:0}}
.kpi .v[data-kf-zahl]{font-variant-numeric:tabular-nums}

/* 6 Leer-Zustände mit Illustration */
.empty.kf-leer{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 16px 22px}
.empty.kf-leer::before{content:"";width:64px;height:64px;border-radius:20px;flex:none;margin-bottom:6px;
  background:var(--kf-leer-i) center/30px 30px no-repeat;background-color:color-mix(in srgb,var(--kf-leer-f) 12%,transparent);
  -webkit-mask:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--kf-leer-f) 18%,transparent)}
.empty.kf-leer-neu{--kf-leer-f:var(--brand,#046bd2);--kf-leer-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046bd2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 12 4l8.5 4.5v7L12 20l-8.5-4.5z'/%3E%3Cpath d='M3.5 8.5 12 13l8.5-4.5M12 13v7'/%3E%3C/svg%3E")}
.empty.kf-leer-ok{--kf-leer-f:var(--ok,#1f8a5b);--kf-leer-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='m8 12.4 2.7 2.6L16.2 9.4'/%3E%3C/svg%3E")}
.empty.kf-leer-suche{--kf-leer-f:var(--muted,#5a6b80);--kf-leer-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5M8.5 10.5h4'/%3E%3C/svg%3E")}
.empty.kf-leer-netz{--kf-leer-f:var(--attention,#b7791f);--kf-leer-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7791f' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M2.5 9a14 14 0 0 1 19 0M5.5 12.5a9.5 9.5 0 0 1 13 0M9 16a4.5 4.5 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19.2' r='.6' fill='%23b7791f'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E")}
.empty.kf-leer>h2{margin:2px 0 0}
.empty.kf-leer .btn{margin-top:10px}

/* 4 Entwurf-Hinweis im Dialog */
.kf-entwurf{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 12px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--attention,#b7791f) 10%,var(--surface,#fff));box-shadow:inset 3px 0 0 var(--attention,#b7791f);font:400 14px/1.35 var(--f-body,inherit);color:var(--fg,inherit)}
.kf-entwurf-i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;color:var(--attention,#b7791f);background:color-mix(in srgb,var(--attention,#b7791f) 14%,transparent)}
.kf-entwurf-i svg{width:19px;height:19px}
.kf-entwurf-t{flex:1 1 160px;min-width:0;display:flex;flex-direction:column}
.kf-entwurf-t small{color:var(--muted,#5a6b80);font-size:12.5px}
.kf-entwurf button{min-height:38px;padding:0 14px;border-radius:999px;font:650 14px/1 var(--f-body,inherit);cursor:pointer;border:1px solid var(--line-2,#c9d3de);background:var(--surface,#fff);color:var(--fg,inherit)}
.kf-entwurf .kf-entwurf-ja{background:var(--brand,#046bd2);border-color:var(--brand,#046bd2);color:#fff}
@media (max-width:600px){.kf-entwurf button{flex:1 1 40%}}

/* 7 Diktat-Mikrofon im Textfeld */
.kf-ta{position:relative;display:flex;flex-direction:column;min-width:0}
.kf-ta>textarea{width:100%;box-sizing:border-box;padding-right:48px}
.kf-ta::after{content:none!important}
button.kf-mic{position:absolute;right:6px;bottom:6px;width:36px;height:36px;display:grid;place-items:center;padding:0;margin:0;min-height:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--brand,#046bd2) 10%,var(--surface,#fff));color:var(--brand,#046bd2);cursor:pointer;box-shadow:none;-webkit-tap-highlight-color:transparent;transition:background-color .15s,transform .15s}
button.kf-mic svg{width:19px;height:19px;pointer-events:none}
button.kf-mic:hover{background:color-mix(in srgb,var(--brand,#046bd2) 18%,var(--surface,#fff))}
button.kf-mic.an{background:var(--brand,#046bd2);color:#fff;animation:kf-puls 1.4s ease-in-out infinite}
@keyframes kf-puls{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--brand,#046bd2) 45%,transparent)}50%{box-shadow:0 0 0 8px transparent}}
@media (pointer:coarse){button.kf-mic{width:40px;height:40px}}

/* 8 Rückgängig-Leiste */
.kf-toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translate(-50%,24px);opacity:0;pointer-events:none;z-index:100000;display:flex;align-items:center;gap:6px;max-width:min(520px,calc(100vw - 24px));padding:6px 6px 6px 16px;border-radius:16px;background:var(--hero,#0f2338);color:#fff;box-shadow:0 12px 32px rgba(10,26,44,.32);font:500 15px/1.3 var(--f-body,"Hanken Grotesk",system-ui,sans-serif);overflow:hidden;transition:opacity .2s,transform .25s cubic-bezier(.2,.7,.2,1)}
.kf-toast.auf{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.kf-toast-t{flex:1;min-width:0;padding:8px 6px 8px 0}
.kf-toast-k{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:#9cc9ff;font:650 15px/1 inherit;font-family:inherit;cursor:pointer;flex:none}
.kf-toast-k:hover{background:rgba(255,255,255,.2)}
.kf-toast-k svg{width:18px;height:18px}
.kf-toast-uhr{position:absolute;left:0;bottom:0;height:2px;width:100%;background:#9cc9ff;transform-origin:left;animation:kf-uhr linear forwards}
.kf-toast:not(:has(.kf-toast-k)) .kf-toast-uhr{display:none}
@keyframes kf-uhr{to{transform:scaleX(0)}}
@media (max-width:860px){.kf-toast{bottom:calc(84px + env(safe-area-inset-bottom))}}

@media (prefers-reduced-motion:reduce){.kf-sk::after,.kf-ein,rect.kf-balken,.kf-linie,.kf-skel,button.kf-mic.an,.kf-toast-uhr{animation:none!important}.kf-linie{stroke-dashoffset:0}}
@media print{.kf-mic,.kf-toast,.kf-entwurf{display:none!important}}

/* Dunkelmodus */
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .kf-sk::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent)}
  html:not([data-theme=light]) .kf-toast{background:#1d3550;box-shadow:0 12px 32px rgba(0,0,0,.5)}}
html[data-theme=dark] .kf-sk::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent)}
html[data-theme=dark] .kf-toast{background:#1d3550}

/* 10 Dunkelmodus vereinheitlichen: Module nutzen teils Farbnamen, die das Portal nicht kennt (--paper, --card, --ink …).
   Ohne Definition fielen sie auf festes Weiß zurück (z. B. Lastschrift-Bereitschaft: weiße Karten mit heller Schrift im Dunkelmodus). */
:root{--paper:var(--surface);--card:var(--surface);--ink:var(--fg);--ink-2:var(--muted);--surface-2:var(--bg)}

/* Beschriftung bleibt über dem Feld, auch wenn Auge (lib/passauge) oder Mikrofon das Feld umhüllen */
:where(#view,dialog) label:has(>.kf-ta,>.pa-h):not(.tools *):not(.src){display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:560px}
/* Vorschlagslisten ohne Systempfeil */
input[list^="kf-dl"]::-webkit-calendar-picker-indicator{opacity:0;display:none!important}

/* lib/datenschutz/datenschutz.css */
/* Aurora – Datenschutz (Einstellungen › Sicherheit & Vertretung › Datenschutz), Designlinie 12.10.2026 */
.ds-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 16px;padding:2px 1px 4px;-webkit-overflow-scrolling:touch}
.ds-tabs::-webkit-scrollbar{display:none}
.ds-tabs button{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border-radius:var(--r-pill,999px);border:1px solid var(--line);background:var(--surface);color:var(--muted);font:600 13.5px/1 var(--f-body);cursor:pointer;white-space:nowrap}
.ds-tabs button[aria-selected="true"]{background:var(--fg);border-color:var(--fg);color:var(--surface)}
.ds-tabs button:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.ds-tabs .bk-n{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--attention);color:#fff;font:700 11px/18px var(--f-body);text-align:center}
.ds{display:flex;flex-direction:column;gap:14px}
.ds>.lead{max-width:80ch}
.ds-held{flex-direction:row;align-items:center;gap:22px}
.ds-ring{--p:0;flex:none;width:108px;height:108px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(closest-side,var(--surface) 78%,transparent 79% 100%),conic-gradient(var(--ok) calc(var(--p)*1%),var(--line) 0)}
.ds-ring b{font:800 30px/1 var(--f-display);letter-spacing:-.02em}
.ds-ring span{font:600 12px/1.2 var(--f-body);color:var(--muted)}
.ds-held-t{display:flex;flex-direction:column;gap:6px;min-width:0}
.ds-akt{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ds-pp{gap:0;padding:6px 18px}
.ds-p,.ds-d{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.ds-p:last-child,.ds-d:last-child{border-bottom:0}
.ds-pi{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--attention-soft);color:var(--attention)}
.ds-p.ok .ds-pi{background:var(--ok-soft);color:var(--ok)}
.ds-pi svg{width:16px;height:16px}
.ds-pt,.ds-dn{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ds-pt b,.ds-dn b{font-weight:650}
.ds-pt small,.ds-dn small{color:var(--muted);font-size:13px;line-height:1.4}
.ds-dn small.ds-todo{color:var(--fg)}
.ds-da{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ds-zeile{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ds-zeile .src{flex:1;min-width:220px}
.ds-liste{display:flex;flex-direction:column;gap:8px}
details.ds-vt{padding:0;gap:0}
.ds-vt summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 44px 14px 18px;position:relative}
.ds-vt summary::-webkit-details-marker{display:none}
.ds-vt summary::after{content:"";position:absolute;right:20px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.ds-vt[open] summary::after{transform:rotate(-135deg);margin-top:-2px}
.ds-vt summary>span:first-child{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ds-vt summary small{color:var(--muted);font-size:13px}
.ds-vt dl{margin:0;padding:2px 18px 16px;display:grid;grid-template-columns:150px 1fr;gap:8px 16px;font-size:14.5px}
.ds-vt dt{color:var(--muted);font:600 13px/1.5 var(--f-body)}
.ds-vt dd{margin:0}
.ds-go{padding:0;min-height:0}
.ds-tom{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.ds-tom ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.ds-link{all:unset;color:var(--brand);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ds-such{display:flex;flex-direction:column;gap:6px}
.ds-such input{min-height:46px;padding:0 14px;border:1px solid var(--line-2,var(--line));border-radius:14px;font:inherit;background:var(--surface);color:inherit;max-width:520px}
#ds-qe{display:flex;flex-wrap:wrap;gap:8px}
.ds-k{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:inherit;font:inherit;cursor:pointer;text-align:left;min-height:48px}
.ds-k:hover{border-color:var(--brand)}
.ds-k small{color:var(--muted);font-size:12.5px}
.ds-ns{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:12px 0}
.ds-n{display:flex;flex-direction:column;padding:10px 12px;border-radius:12px;border:1px solid var(--line)}
.ds-n b{font:800 20px/1.1 var(--f-display)}
.ds-n span{font-size:12.5px;color:var(--muted)}
.ds-imp{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 16px;margin:8px 0 12px}
.ds-imp>div{display:flex;flex-direction:column;gap:1px}
.ds-ul{margin:4px 0 10px;padding-left:18px;font-size:14.5px}
.ds-vs{display:flex;flex-direction:column;gap:12px;margin:4px 0 6px}
.ds-vs-k{display:flex;gap:12px;align-items:flex-start}
.ds-vs-k>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ds-vs-k small{color:var(--muted);font-size:13px;line-height:1.4}
.ds-vs-n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--brand-soft);color:var(--brand-strong);font:700 13px/26px var(--f-body);text-align:center}
.ds-vs-a{margin-top:6px}
@media (max-width:860px){
 .ds-held{flex-direction:column;align-items:flex-start;gap:14px}
 .ds-ring{width:92px;height:92px}
 .ds-p,.ds-d{flex-wrap:wrap}
 .ds-da{width:100%;justify-content:flex-start}
 .ds-p .btn.ghost{margin-left:40px;padding-left:0}
 .ds-vt dl{grid-template-columns:1fr;gap:2px}
 .ds-vt dd{margin-bottom:8px}
 .ds-akt .btn{flex:1 1 auto}
}
/* Härtung 23.10.2026: Sicherheitslage, Tresor, Zugriffswächter, Risikoprüfung, Vorlagen */
.ds-lage{gap:12px}
.ds-lage-k{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ds-lage-k h3{margin:0}
.ds-lage-g{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start}
.ds-sv{display:block;width:100%;height:auto}
.ds-sb{fill:color-mix(in srgb,var(--brand) 26%,var(--line))}
.ds-sb-a{fill:color-mix(in srgb,var(--attention) 55%,var(--line))}
.ds-sp{fill:var(--attention);stroke:var(--surface);stroke-width:1.2}
.ds-sl{stroke:var(--line);stroke-width:.6}
.ds-sx{display:flex;justify-content:space-between;gap:8px;font:600 11px/1.3 var(--f-body);color:var(--muted);margin-top:4px}
.ds-sx span:nth-child(2){text-align:center}
.ds-lage-t{display:flex;flex-direction:column;gap:6px;min-width:0}
.ds-lage-t>b{font:700 14.5px/1.3 var(--f-body)}
.ds-lage-t>small{color:var(--muted);font-size:12.5px;line-height:1.4}
.ds-lage-t .btn{align-self:flex-start;margin-top:4px}
.ds-tb{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.ds-tb span{display:block;height:100%;border-radius:inherit;background:var(--ok);transition:width .4s}
.ds-tb-g{height:10px;margin-bottom:10px}
.ds-bf{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--line)}
.ds-bf .chip{flex:none}
.ds-bf>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ds-bf small{color:var(--muted);font-size:12.5px;line-height:1.4;overflow-wrap:anywhere}
.ds-bfl{max-height:56vh;overflow:auto;margin:10px 0}
.ds-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:10px 0 0;font-size:13.5px}
.ds-dl dt{color:var(--muted);font-weight:600}
.ds-dl dd{margin:0;overflow-wrap:anywhere}
.ds-rg{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.ds-rg li{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.ds-rg small{color:var(--muted);font-size:12.5px;line-height:1.4}
.ds-df{gap:12px}
.ds-df-k{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ds-df-k h3{margin:0}
.ds-df-k small{color:var(--muted)}
.ds-df-g{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start}
.ds-df-g p{margin:0;max-width:75ch}
.ds-mx{width:100%;max-width:230px;height:auto}
.ds-mx .ds-r1{fill:color-mix(in srgb,var(--ok) 22%,var(--surface))}
.ds-mx .ds-r2{fill:color-mix(in srgb,var(--attention) 26%,var(--surface))}
.ds-mx .ds-r3{fill:color-mix(in srgb,var(--crit) 24%,var(--surface))}
.ds-mp{stroke:var(--fg);stroke-width:1;stroke-dasharray:2 2;opacity:.55}
.ds-mv{fill:var(--surface);stroke:var(--fg);stroke-width:1.4}
.ds-mn{fill:var(--fg)}
.ds-mt{font:700 8.5px var(--f-body);text-anchor:middle;fill:var(--fg)}
.ds-mtn{fill:var(--surface)}
.ds-ma{font:600 9px var(--f-body);fill:var(--muted);text-anchor:middle}
.ds-rl{display:flex;flex-direction:column}
.ds-ri{border-top:1px solid var(--line)}
.ds-ri summary{display:flex;align-items:center;gap:12px;padding:10px 2px;cursor:pointer;list-style:none}
.ds-ri summary::-webkit-details-marker{display:none}
.ds-ri summary i{flex:none;width:22px;height:22px;border-radius:50%;background:var(--fg);color:var(--surface);font:700 11.5px/22px var(--f-body);font-style:normal;text-align:center}
.ds-ri summary>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ds-ri summary small{color:var(--muted);font-size:12.5px}
.ds-ri ul{margin:0 0 12px 34px;padding:0 0 0 16px;font-size:13.5px;line-height:1.5}
.ds-rv{flex:none;display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.ds-rv em{font-style:normal;font-weight:700;padding:3px 8px;border-radius:99px}
.ds-rv .ds-r1{background:color-mix(in srgb,var(--ok) 18%,var(--surface));color:var(--fg)}
.ds-rv .ds-r2{background:color-mix(in srgb,var(--attention) 22%,var(--surface));color:var(--fg)}
.ds-rv .ds-r3{background:color-mix(in srgb,var(--crit) 20%,var(--surface));color:var(--fg)}
.ds-erg{margin:4px 0 0;padding:12px 14px;border-radius:10px;background:color-mix(in srgb,var(--ok) 10%,var(--surface));font-size:13.5px;line-height:1.5}
.ds-st{margin:12px 0;padding-left:20px;line-height:1.55;font-size:14px}
.ds-f{display:flex;flex-direction:column;gap:5px;margin:10px 0;font:600 12.5px/1.3 var(--f-body);color:var(--muted)}
.ds-f input,.ds-f textarea{font:400 14.5px/1.45 var(--f-body);color:var(--fg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface);width:100%;box-sizing:border-box}
@media (max-width:760px){
 .ds-lage-g,.ds-df-g{grid-template-columns:1fr}
 .ds-mx{max-width:240px}
 .ds-rv{flex-direction:column;gap:3px}
 .ds-ri summary{align-items:flex-start}
}

/* lib/termine/termine.css */
/* ===== Termine & Fristen bedienbar (25.10.2026) ===== */
.tf-w{position:relative;overflow:hidden;border-top:1px solid var(--hair,var(--line))}
.tf-w .t5-kz{border-top:0}
.t5-kwt>div .tf-w:first-child{border-top:0}
.t5-kwt>div .tf-w:first-child .t5-kz{padding-top:4px}
.tf-z{position:relative;z-index:1;background:var(--surface);cursor:pointer;transition:transform .22s var(--ease,ease);touch-action:pan-y;padding-left:2px;padding-right:2px;border-radius:10px}
.tf-z:hover .t5-kt>b{color:var(--brand)}
.tf-z:focus-visible{outline:2px solid var(--focus,var(--brand));outline-offset:-2px}
.tf-r{display:flex;align-items:center;gap:8px;align-self:center}
.tf-pf{font:600 20px/1 var(--f-body,inherit);color:var(--muted);padding:0 2px}
.tf-ok{min-height:32px;padding:0 12px;font-size:13px;color:var(--ok);border-color:var(--line);background:var(--surface)}
.tf-ok:hover{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}
.tf-was{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tf-hinter{visibility:hidden;position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;padding-right:18px;background:var(--ok-soft);color:var(--ok);font:700 14px/1 var(--f-body,inherit);letter-spacing:.02em}
.tf-zieht .tf-hinter,.tf-weg .tf-hinter{visibility:visible}
.tf-los .tf-hinter{background:var(--ok);color:#fff}
.tf-weg{max-height:0;transition:max-height .25s ease .15s}
.tf-tipp{margin:0 0 8px}
@media (pointer:coarse),(hover:none){ .tf-z .tf-ok.btn{display:none} }
/* Startseite und Aufgaben: Zeilen sind antippbar */
.tf-sr{cursor:pointer;border-radius:10px;gap:10px}
.tf-sr:hover>span:first-child{color:var(--brand)}
.tf-sr:focus-visible{outline:2px solid var(--focus,var(--brand));outline-offset:2px}
.tf-sr .tf-pf{margin-left:-4px}
.tf-at{cursor:pointer}
.tf-at:hover{color:var(--brand)}
/* Detailansicht */
#dlg.tf-dlg{max-width:560px}
.tf-d h2{margin:0;font-size:21px;line-height:1.25}
.tf-dk{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.tf-chips{display:flex;flex-wrap:wrap;gap:6px}
.tf-d section{margin:14px 0 0}
.tf-d section h3{margin:0 0 4px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.tf-d section p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.tf-orig{margin:10px 0 0}
.tf-dazu{display:flex;flex-direction:column;gap:2px;margin:6px 0 0!important;padding:8px 12px;border-left:3px solid var(--line);border-radius:4px}
.tf-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 14px;margin:16px 0 0;padding:12px 14px;border-radius:14px;background:var(--seg,var(--bg))}
.tf-dl dt{color:var(--muted);font-size:13.5px}
.tf-dl dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.tf-hw{margin:12px 0 0}
.tf-sp{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px}
.tf-sp .btn{min-height:36px;padding:0 12px;font-size:14px}
/* Rückgängig-Leiste */
.tf-undo{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:1200;display:flex;align-items:center;gap:14px;padding:10px 12px 10px 18px;border-radius:var(--r-pill,999px);background:var(--ui-dunkel,var(--hero));color:var(--ui-dunkel-fg,#fff);box-shadow:var(--sh-toast,0 8px 24px rgba(0,0,0,.2));font:600 15px/1.2 var(--f-body,inherit);max-width:calc(100vw - 32px);overflow:hidden}
.tf-undo>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tf-undo .btn{flex:none;min-height:38px;padding:0 14px;background:rgba(255,255,255,.14);border-color:transparent;color:inherit}
.tf-undo-t{position:absolute;left:0;bottom:0;height:3px;background:var(--brand);width:100%;animation:tf-ab 8s linear forwards}
@keyframes tf-ab{from{width:100%}to{width:0}}
@media (max-width:860px){
 .tf-undo{bottom:calc(84px + env(safe-area-inset-bottom,0px));width:calc(100vw - 24px);justify-content:space-between}
 .tf-d h2{font-size:19px}
 .tf-sp>.src{flex-basis:100%}
 .tf-sp .btn{flex:1 1 0}
 .tf-z .t5-kt>small:first-of-type{font-variant-numeric:tabular-nums}
}
/* Absprung, Stand, vermutlich erledigt, automatisch erledigt (27.10.2026) */
.tf-zl{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.tf-zl .btn{min-height:40px;padding:0 14px;font-size:14.5px;text-decoration:none}
.tf-hin{padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.tf-hin h3{margin-top:0}
.tf-hin-b{margin:12px 0 4px;padding:10px 12px}
.tf-ext{margin:10px 0 0;padding:10px 0 0;border-top:1px solid var(--hair,var(--line))}
.tf-ext p{margin:0}
.tf-verm{padding:12px 14px;border-radius:14px;background:var(--ok-soft);border:1px solid var(--ok)}
.tf-verm h3{color:var(--ok)!important}
.tf-auto-d{padding:12px 14px;border-radius:14px;background:var(--seg,var(--bg))}
.tf-st{display:flex;align-items:baseline;gap:8px;margin:6px 0 0!important}
.tf-st .chip{flex:none}
.tf-ew{margin:12px 0 0}
.tf-auto summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;cursor:pointer}
.tf-auto summary h3{margin:0}
.tf-auto summary small{flex-basis:100%}
.tf-ar{display:flex;align-items:center;gap:10px;padding:10px 2px;border-top:1px solid var(--hair,var(--line))}
.tf-at2{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;cursor:pointer}
.tf-at2:hover b{color:var(--brand)}
.tf-at2 small{overflow-wrap:anywhere}
.tf-ar .btn{flex:none;min-height:36px;padding:0 12px;font-size:13.5px}
@media (max-width:860px){ .tf-zl .btn{flex:1 1 100%;justify-content:center} .tf-ar{flex-wrap:wrap} .tf-ar .btn{flex:1 1 100%} }
/* Abhaken direkt in der Liste, klarer Weg im Detail, Nicht erledigen (04.11.2026) */
.tf-ck{flex:none;position:relative;width:26px;height:26px;margin:0 2px 0 0;padding:0;border-radius:50%;border:2px solid var(--attention,#d97706);background:var(--surface);cursor:pointer;align-self:center;transition:background .15s,border-color .15s}
.tf-ck::before{content:"";position:absolute;inset:-10px}
.tf-ck:hover{background:var(--ok-soft);border-color:var(--ok)}
.tf-ck:focus-visible{outline:2px solid var(--focus,var(--brand));outline-offset:2px}
.tf-ck.an{background:var(--ok);border-color:var(--ok)}
.tf-ck.an::after{content:"";position:absolute;left:7px;top:3px;width:7px;height:12px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.tf-ck-zu{border-color:var(--line);background:var(--seg,var(--bg));cursor:default;opacity:.6}
.tf-ck-zu::before{display:none}
.tf-z .tf-ck+.t5-kp{display:none}
.tf-sr{display:flex;align-items:center}
.tf-jetzt{margin:12px 0 0;padding:12px 14px;border-radius:14px;background:var(--brand-soft,var(--seg,var(--bg)));border:1px solid var(--brand)}
.tf-jetzt>.src{font-weight:600;color:var(--brand)}
.tf-jetzt .tf-zl{margin-top:8px}
.tf-nicht{margin:14px 0 0;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--seg,var(--bg))}
.tf-nicht h3{margin:0 0 4px;font-size:15px}
.tf-nicht p{margin:0 0 10px}
.tf-nicht .tf-gr{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.tf-nicht .tf-gr button{min-height:38px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font:600 14px/1 var(--f-body,inherit);color:inherit;cursor:pointer}
.tf-nicht .tf-gr button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.tf-nicht label{display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--muted)}
.tf-nicht textarea{width:100%;box-sizing:border-box;font:15px/1.4 var(--f-body,inherit);padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text,inherit)}
.tf-act{margin-top:16px}
.tf-act{margin-top:16px}
#dlg .tf-act .btn.tf-erl{background:var(--ok);border-color:var(--ok);color:#fff;font-weight:700}
#dlg .tf-act .btn.tf-erl:hover{filter:brightness(.95)}
.tf-dlg.tf-nf-an .tf-act{display:none}
@media (max-width:860px){ #dlg .tf-act .btn{flex:1 1 0;min-height:42px;padding:0 10px;font-size:14.5px;white-space:nowrap} #dlg .tf-act .btn.tf-erl{flex:1 1 100%;min-height:50px;font-size:16.5px} }
.tf-z.t5-kz{grid-template-columns:28px minmax(0,1fr) auto}
.tf-z .tf-ck{align-self:start;margin-top:1px}
@media (max-width:860px){ .t5-kwt{grid-template-columns:44px minmax(0,1fr)} }

/* Checkliste je Dokument (Unterlagen je Wohnung, 07.11.2026) */
.tf-cl{padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.tf-cl-kopf{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.tf-cl-bar{margin:6px 0 4px}
.tf-cl-tipp{margin:6px 0 4px!important;font-size:13px}
.tf-cl-g h4{margin:12px 0 2px;font-size:13px;color:var(--muted);font-weight:600}
.tf-cl-z{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-top:1px solid var(--hair,var(--line))}
.tf-cl-g .tf-cl-z:first-of-type{border-top:0}
.tf-cl-k{flex:none;position:relative;width:24px;height:24px;margin-top:1px;padding:0;border-radius:50%;border:2px solid var(--attention,#d97706);background:var(--surface);cursor:pointer}
span.tf-cl-k{cursor:default}
.tf-cl-k::before{content:"";position:absolute;inset:-10px}
span.tf-cl-k::before{display:none}
.tf-cl-k.an{background:var(--ok);border-color:var(--ok)}
.tf-cl-k.an::after{content:"";position:absolute;left:6px;top:2px;width:7px;height:12px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.tf-cl-k:focus-visible{outline:2px solid var(--focus,var(--brand));outline-offset:2px}
.tf-cl-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tf-cl-t b{font-weight:600;font-size:15px}
.tf-cl-z.ok .tf-cl-t b{color:var(--muted)}
.tf-cl-dok{align-self:flex-start;max-width:100%;padding:0;border:0;background:none;color:var(--brand);font:inherit;font-size:13.5px;text-align:left;cursor:pointer;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:2px}
.tf-cl .btn.tf-cl-b{flex:none;min-height:32px;padding:0 10px;font-size:13px;font-weight:500;color:var(--muted);background:none}
.tf-cl .btn.tf-cl-b:hover{color:var(--ink,inherit);background:var(--surface-2,rgba(0,0,0,.04))}
.tf-cl-fertig{margin:10px 0 0!important;color:var(--ok);font-weight:600}

/* Rückfrage „Ist das diese Unterlage?“ (18.11.2026) */
.tf-cl-frage{display:flex;flex-direction:column;gap:6px;margin-top:4px;padding:10px 12px;border-radius:12px;background:var(--attention-bg,rgba(217,119,6,.08));border:1px solid var(--attention,#d97706)}
.tf-cl-frage>span{font-size:13.5px;font-weight:600}
.tf-cl-fz{display:flex;flex-wrap:wrap;gap:8px}
.tf-cl .btn.tf-cl-ja{min-height:36px;padding:0 14px;font-size:14px}
/* Felix 21.11.2026: von Hand abgehakte Unterlage mit einer Datei aus der Ablage verknüpfen */
.tf-cl .btn.tf-cl-b.tf-cl-vk{color:var(--brand);font-weight:600}
.tf-cl-ort{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.tf-cl-wahl{margin:0 0 8px 34px;padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2,rgba(0,0,0,.03));display:flex;flex-direction:column;gap:8px}
.tf-cl-wk{display:flex;gap:8px;align-items:center}
.tf-cl-q{flex:1;min-width:0;min-height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:inherit;font:inherit;font-size:16px}
.tf-cl-dl{display:flex;flex-direction:column;gap:2px;max-height:320px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.tf-cl-dt{margin:2px 0 4px!important;font-size:12.5px;color:var(--muted);font-weight:600}
.tf-cl-di{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;min-height:44px;padding:7px 10px;border:0;border-radius:10px;background:var(--surface);color:inherit;font:inherit;text-align:left;cursor:pointer}
.tf-cl-di:hover,.tf-cl-di:focus-visible{background:var(--brand-bg,rgba(19,33,47,.06));outline:none}
.tf-cl-dn{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.tf-cl-dm{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.tf-cl .btn.tf-cl-los{align-self:flex-start}
@media (max-width:520px){.tf-cl-wahl{margin-left:0}}

/* lib/wochenfokus/wochenfokus.css */
/* Wochenfokus (lib/wochenfokus) */
.wf-pan{display:block}
.wf-kopf{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wf-kopf h3{margin:0}
.wf-bar{height:6px;border-radius:3px;background:var(--hair,var(--line));overflow:hidden;margin:10px 0 4px}
.wf-bar i{display:block;height:100%;background:var(--ok);border-radius:3px;transition:width .3s var(--ease,ease)}
.wf-g{margin-top:12px}
.wf-g h4{margin:0 0 2px;font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--muted,var(--ink-2,#666))}
.wf-w{position:relative;overflow:hidden;border-top:1px solid var(--hair,var(--line))}
.wf-g h4+.wf-w{border-top:0}
.wf-z{position:relative;z-index:1;display:flex;align-items:center;gap:10px;padding:9px 2px;background:var(--surface);cursor:pointer;touch-action:pan-y;transition:transform .22s var(--ease,ease);border-radius:10px;min-height:44px}
.wf-z:hover b{color:var(--brand)}
.wf-z:focus-visible{outline:2px solid var(--focus,var(--brand));outline-offset:-2px}
.wf-k{flex:0 0 22px;height:22px;border-radius:50%;border:2px solid var(--attention);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff}
.wf-erl .wf-k{background:var(--ok);border-color:var(--ok)}
.wf-erl .wf-t b{text-decoration:line-through;color:var(--muted,var(--ink-2,#666));font-weight:500}
.wf-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.wf-t b{font-weight:600;overflow-wrap:anywhere}
.wf-t small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wf-c{flex:0 0 auto;text-align:right}
.wf-hl,.wf-hr{visibility:hidden;position:absolute;inset:0;display:flex;align-items:center;padding:0 18px;font-weight:700;font-size:14px}
.wf-hl{justify-content:flex-end;background:var(--ok-soft,#e7f4ea);color:var(--ok)}
.wf-hr{justify-content:flex-start;background:var(--attention-soft,#fbf0dc);color:var(--attention)}
.wf-zieht.wf-l .wf-hl,.wf-zieht .wf-hl{visibility:visible}
.wf-zieht.wf-r .wf-hr{visibility:visible}.wf-zieht.wf-r .wf-hl{visibility:hidden}
.wf-l .wf-hl{background:var(--ok);color:#fff}
.wf-r .wf-hr{background:var(--attention);color:#fff}
.wf-tipp{margin:8px 0 0}
.wf-fertig{margin:10px 0 0;color:var(--ok);font-weight:600}
.wf-ueb{margin-top:14px;border-top:1px solid var(--hair,var(--line));padding-top:8px}
.wf-ueb summary{cursor:pointer;min-height:36px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wf-u{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid var(--hair,var(--line));flex-wrap:wrap}
.wf-u>div:first-child{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px}
.wf-ua{display:flex;gap:6px}
.wf-alle{margin-top:14px}
.wf-alle summary{cursor:pointer;display:flex;align-items:center;gap:8px}
.wf-alle summary h3{margin:0}
.wf-mk{margin-bottom:8px}
.wf-karte{position:relative;overflow:hidden;border-radius:14px;background:var(--attention-soft,#fbf0dc)}
.wf-kin{position:relative;background:var(--surface);border:1px solid var(--hair,var(--line));border-radius:14px;padding:16px;touch-action:pan-y;transition:transform .22s var(--ease,ease);min-height:160px}
.wf-kin h2{margin:6px 0 8px;font-size:20px;line-height:1.25}
.wf-kin p{margin:10px 0 0}
.wf-ziele{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.wf-act{flex-wrap:wrap}
@media (max-width:860px){ .wf-act .btn{flex:1 1 45%} .wf-kopf .btn{width:100%} }

/* Kreis zum Abhaken (04.11.2026) */
.wf-ck{position:relative;flex:0 0 26px;width:26px;height:26px;padding:0;background:var(--surface);cursor:pointer;font:700 14px/1 var(--f-body,inherit);color:#fff}
.wf-ck::before{content:"";position:absolute;inset:-10px}
.wf-ck:hover{background:var(--ok-soft);border-color:var(--ok)}
.wf-ck.an{background:var(--ok);border-color:var(--ok)}
.wf-ck:focus-visible{outline:2px solid var(--focus,var(--brand));outline-offset:2px}
.wf-neu>summary{cursor:pointer;list-style:none;display:flex;align-items:center}
.wf-neu>summary::-webkit-details-marker{display:none}
.wf-neu>summary h3{margin:0;color:var(--brand)}
.wf-neu[open]>summary{margin-bottom:10px}

