/* AS Do – Aussehen nach Entwurf E (KONZEPT.md: Lesbarkeit vor CI, Systemschrift, immer heller Modus) */
:root{
  --outer:#e3e6df; --ground:#f3f4f1; --card:#ffffff; --tint:#eceee8; --tint-2:#d6dbd0;
  --ink:#1f241b; --strong:#151a10; --muted:#545a4e; --line:#d9ddd3;
  --brand:#1e330a; --on-brand:#ffffff; --brand-soft:#e8ebe5; --work-soft:#fdf0cf; --work-ink:#5e4100;
  --orange:#d42a1f; --on-orange:#ffffff; --orange-soft:#fdeceb; --orange-ink:#9a1b13;
  --done:#2f6b12; --done-soft:#e5f0dc; --focus:#1e330a;
  --shadow:0 0 0 1px #d9ddd3;
  --font:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",Roboto,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;background:var(--outer);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ic{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.frame{max-width:40rem;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;background:var(--ground)}
.haupt{flex:1;display:flex;flex-direction:column;min-width:0}
.appbar{position:sticky;top:0;z-index:5;background:var(--brand);color:var(--on-brand);display:flex;align-items:center;gap:.6em;
  padding:calc(env(safe-area-inset-top,0px) + .6em) 1em .6em;min-height:3.4em}
.appbar .t{font-weight:700;font-size:1.05em;letter-spacing:.01em;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appbar .t small{display:block;font-weight:500;font-size:.72em;opacity:.8}
.iconbtn{border:0;background:none;color:inherit;display:grid;place-items:center;width:2.4em;height:2.4em;border-radius:999px;margin-left:-.5em}
.iconbtn:hover{background:rgba(255,255,255,.12)}
.leise{border:1px solid rgba(255,255,255,.5);background:none;color:var(--on-brand);border-radius:999px;min-height:2.4em;padding:0 .9em;font-weight:600}
.screen{flex:1;padding:1em 1em 1.5em;display:flex;flex-direction:column;gap:1.1em}
.bottombar{position:sticky;bottom:0;z-index:5;background:var(--card);border-top:1px solid var(--line);
  padding:.75em 1em calc(.75em + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:.6em}
.bottombar[hidden]{display:none}

h1{font-size:1.6em;line-height:1.15;margin:0;color:var(--strong);font-weight:800;letter-spacing:-.01em;text-wrap:balance}
h2{font-size:.78em;margin:0;color:var(--muted);font-weight:700;letter-spacing:.07em;text-transform:uppercase;display:flex;align-items:center;gap:.5em}
p{margin:0}
.sub{color:var(--muted);font-size:.9em;margin-top:.2em}
.head{display:flex;flex-direction:column;gap:.1em}
.sec{display:flex;flex-direction:column;gap:.55em}
.klein{color:var(--muted);font-size:.9em}
.hint{font-size:.85em;color:var(--muted)}
.hint.mitte{text-align:center;font-size:.8em}
.meta{font-size:.82em;color:var(--muted)}
.note{font-size:.85em;color:var(--muted);text-align:center;padding:.4em 1em}
.empty{background:var(--card);border-radius:12px;padding:1.2em;text-align:center;color:var(--muted);box-shadow:var(--shadow)}
.empty b{display:block;color:var(--strong);font-size:1.05em;margin-bottom:.2em}

.btn{border:0;border-radius:999px;min-height:3em;padding:.6em 1.4em;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:.45em;background:var(--brand);color:var(--on-brand)}
.btn.sec2{background:var(--tint);color:var(--strong)}
.btn.ghost{background:none;color:var(--strong);border:1.5px solid var(--line)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.wide{width:100%}
.row{display:flex;gap:.6em;flex-wrap:wrap}
.row>.btn{flex:1}

.seg{display:flex;background:var(--tint);border-radius:999px;padding:.2em}
.seg button{flex:1;border:0;background:none;border-radius:999px;padding:.5em .3em;font-weight:700;color:var(--muted);min-height:2.4em;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--card);color:var(--strong);box-shadow:var(--shadow)}

.chip{display:inline-flex;align-items:center;gap:.3em;font-size:.78em;font-weight:700;padding:.2em .65em;border-radius:999px;background:var(--tint);color:var(--strong);white-space:nowrap;line-height:1.4}
.chip .ic{width:1.05em;height:1.05em}
.chip.sofort{background:var(--orange);color:var(--on-orange)}
.chip.wenn{background:none;border:1px dashed var(--line);color:var(--muted)}
.chip.arbeit{background:var(--work-soft);color:var(--work-ink)}
.chip.erledigt{background:var(--done-soft);color:var(--done)}
.chip.plain{background:none;color:var(--muted);padding-inline:.1em;font-weight:600}
.chip.zu{background:var(--tint);color:var(--strong);border:1px solid var(--line)}
.chip.zu.ich{background:var(--done-soft);color:var(--done);border-color:transparent}
.zu-feld{margin-top:.7em;grid-template-columns:1fr}
.zu-feld .hint{margin-top:.2em}
.zu-sp{white-space:nowrap}
.chip.warn{background:var(--orange-soft);color:var(--orange-ink)}
.dot{width:.5em;height:.5em;border-radius:50%;background:currentColor;display:inline-block}
.count{background:var(--orange);color:var(--on-orange);border-radius:999px;padding:0 .5em;letter-spacing:0;font-variant-numeric:tabular-nums}

/* Liste und Karten */
.listbar{display:flex;gap:.6em;align-items:center}
.listbar .seg{flex:1;min-width:0}
.cards{display:flex;flex-direction:column;gap:.5em}
.card{display:flex;flex-direction:column;gap:.3em;min-height:3em;text-align:left;border:0;width:100%;background:var(--card);border-radius:12px;padding:.8em .95em;box-shadow:var(--shadow);color:var(--ink);position:relative}
.card:hover{outline:1.5px solid var(--line)}
.c-top{display:flex;justify-content:space-between;gap:.6em;align-items:baseline}
.c-where{font-weight:700;color:var(--strong)}
.c-where b{font-variant-numeric:tabular-nums;font-weight:800}
.c-where .n{font-weight:500;color:var(--muted)}
.c-art{font-size:.85em;color:var(--muted)}
.c-age{font-size:.8em;color:var(--muted);white-space:nowrap}
.c-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.c-chips{display:flex;flex-wrap:wrap;gap:.35em;align-items:center}
.group-h{display:flex;align-items:baseline;gap:.5em;padding:0 .1em}
.group-h b{font-size:1.15em;color:var(--strong);font-weight:800;font-variant-numeric:tabular-nums}
.group-h span{color:var(--muted);font-weight:600}
.group-h em{margin-left:auto;font-style:normal;font-size:.8em;color:var(--muted)}
.sofort-box{background:var(--orange-soft);border:1.5px solid #f4b8b3;border-radius:14px;padding:.75em;display:flex;flex-direction:column;gap:.55em}
.sofort-box h2{color:var(--orange-ink)}
.faellig-box{background:var(--work-soft);border:1.5px solid #e6c46f;border-radius:14px;padding:.75em;display:flex;flex-direction:column;gap:.55em}
.faellig-box h2{color:var(--work-ink)}
.chip.faellig{background:var(--tint);color:var(--strong)}
.chip.faellig.bald{background:var(--work-soft);color:var(--work-ink);border:1px solid #e6c46f}
.chip.faellig.ueber{background:var(--orange-soft);color:var(--orange-ink);border:1px solid #f4b8b3}
.chip.privat{background:var(--brand-soft);color:var(--brand);border:1px solid var(--tint-2)}
.chip.gemerkt{background:var(--brand-soft);color:var(--brand);border:1px solid var(--tint-2)}
.chip.gemerkt.faellig.bald{background:var(--work-soft);color:var(--work-ink);border:1px solid #e6c46f}
.chip.gemerkt.faellig.ueber{background:var(--orange-soft);color:var(--orange-ink);border:1px solid #f4b8b3}
.f-wahl{display:flex;flex-direction:column;gap:.55em}
.f-datum{display:flex;gap:.6em;align-items:center;flex-wrap:wrap}
.f-datum input[type=date]{border:1.5px solid var(--line);border-radius:12px;background:var(--card);padding:.5em .8em;min-height:3em;flex:1;min-width:11em}
.f-datum .btn{min-height:3em}
.f-datum .btn[hidden]{display:none}

/* Formular „Neues Ticket“ */
.step{background:var(--card);border-radius:14px;padding:1em;display:flex;flex-direction:column;gap:.7em;box-shadow:var(--shadow)}
.step h2 .req{color:var(--orange-ink);text-transform:none;letter-spacing:0;font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8em,1fr));gap:.55em}
.grid.rooms>.pick:last-child:nth-child(odd),.grid.apts>.pick:last-child:nth-child(odd){grid-column:1/-1}
.grid .pick{padding:.5em .4em;text-wrap:balance}
.grid.prios{grid-template-columns:repeat(3,1fr)}
.pick{border:1.5px solid var(--line);background:var(--card);border-radius:12px;min-height:3.3em;padding:.5em .6em;font-weight:700;color:var(--strong);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.2}
.pick small{font-weight:500;font-size:.78em;color:var(--muted);margin-top:.15em}
.pick b{font-size:1.2em;font-variant-numeric:tabular-nums}
.pick[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.pick[aria-pressed="true"] small{color:var(--on-brand);opacity:.85}
.pick.p-sofort[aria-pressed="true"]{background:var(--orange);border-color:var(--orange);color:var(--on-orange)}
.pills{display:flex;flex-wrap:wrap;gap:.4em}
.pills .pick{min-height:2.5em;border-radius:999px;padding:.4em .9em;font-weight:600;flex-direction:row}
textarea,input[type=text],select{width:100%;border:1.5px solid var(--line);border-radius:12px;background:var(--card);padding:.7em .8em;min-height:3em}
textarea{min-height:5.5em;resize:vertical}
.chosen{display:flex;align-items:center;justify-content:space-between;gap:.6em;font-weight:700;color:var(--strong)}
.chosen button{border:0;background:none;color:var(--muted);font-weight:600;text-decoration:underline;font-size:.9em}
.dup{background:var(--work-soft);border:1.5px solid #ecd28a;border-radius:14px;padding:.8em .9em;display:flex;flex-direction:column;gap:.6em}
.dup h2{color:var(--work-ink);text-transform:none;letter-spacing:0;font-size:.95em;align-items:flex-start}
.dup .hint{color:var(--work-ink)}
.dup-l{display:flex;flex-direction:column;gap:.4em}
.dup-i{display:flex;flex-direction:column;gap:.2em;text-align:left;border:0;background:var(--card);border-radius:10px;padding:.55em .75em;color:var(--ink)}
.dup-i span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dup-i small{color:var(--muted);font-size:.8em;display:flex;gap:.4em;align-items:center;flex-wrap:wrap}

/* Detail */
.d-where{font-weight:700;color:var(--muted);font-size:.95em}
.d-where b{color:var(--strong);font-variant-numeric:tabular-nums}
.d-desc{font-size:1.08em;color:var(--strong);font-weight:500;overflow-wrap:anywhere;white-space:pre-wrap}
.done-box{background:var(--done-soft);border-radius:12px;padding:.75em .9em;color:var(--strong);overflow-wrap:anywhere}
.done-box b{display:flex;gap:.4em;align-items:center;color:var(--done)}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:.6em}
.fields label{display:flex;flex-direction:column;gap:.3em;font-size:.82em;font-weight:700;color:var(--muted)}
.fields select{font-size:1.05em;font-weight:600;color:var(--strong)}
.comments{display:flex;flex-direction:column;gap:.6em}
.cmt{background:var(--card);border-radius:14px 14px 14px 4px;padding:.6em .85em;box-shadow:var(--shadow);width:fit-content;min-width:58%;max-width:86%;align-self:flex-start;overflow-wrap:anywhere;white-space:pre-wrap}
.cmt .h{font-size:.8em;color:var(--muted);display:flex;justify-content:space-between;gap:1em;white-space:normal}
.cmt .h b{color:var(--strong)}
.cmt.mine{align-self:flex-end;border-radius:14px 14px 4px 14px;background:#d2dec3;box-shadow:0 0 0 1px #b2c49c;color:var(--strong)}
.cmt.mine .h{flex-direction:row-reverse;color:#3d4d2f}
.addc{display:flex;gap:.5em;position:relative}
/* @-Erwähnung: Hervorhebung im Kommentar und Auswahlliste über dem Eingabefeld */
.erw{font-weight:700;color:var(--brand);background:rgba(30,51,10,.12);border-radius:.35em;padding:0 .2em}
.erw.me{background:var(--brand);color:var(--on-brand)}
.erw-liste{position:absolute;left:0;bottom:calc(100% + .35em);min-width:11em;max-width:100%;margin:0;padding:.25em;list-style:none;
  background:var(--card);border-radius:12px;box-shadow:0 0 0 1px var(--line),0 6px 18px rgba(0,0,0,.16);z-index:6}
.erw-liste[hidden]{display:none}
.erw-liste li{padding:.6em .85em;border-radius:8px;font-weight:600;color:var(--strong);cursor:pointer}
.erw-liste li[aria-selected="true"]{background:var(--brand-soft)}
.addc input{flex:1;min-width:0}
.addc .btn{flex:none;padding-inline:1em}
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.timeline li{display:grid;grid-template-columns:.8em 1fr;gap:.7em;font-size:.88em;padding-bottom:.6em;position:relative}
.timeline li::before{content:"";width:.55em;height:.55em;border-radius:50%;background:var(--brand);margin-top:.45em;margin-left:.12em}
.timeline li:not(:last-child)::after{content:"";position:absolute;left:.39em;top:1.2em;bottom:0;width:1.5px;background:var(--line)}
.timeline .w{color:var(--muted)}
.timeline b{color:var(--strong)}
.timeline q{quotes:"„" "“";overflow-wrap:anywhere}
.closing{display:flex;flex-direction:column;gap:.6em}
.closing h3{margin:0;font-size:1.1em;color:var(--strong)}
.closing label{font-weight:700;color:var(--strong);font-size:.9em}
.closing .notiz{display:flex;flex-direction:column;gap:.4em}
/* Textknopf (sieht aus wie ein Link); Eingabefelder unter 16px ließen Safari am iPhone hineinzoomen */
.linkbtn{border:0;background:none;padding:.3em 0;color:var(--strong);font-weight:600;display:inline-flex;align-items:center;gap:.35em;align-self:flex-start;text-decoration:underline;text-underline-offset:.2em}
.linkbtn.leicht{color:var(--muted);font-weight:500;font-size:.9em;align-self:center}
.closing input{font-size:max(16px,1em)}
.closing .row>.btn{white-space:nowrap}
.closing .row>.btn.ghost{flex:0 0 auto;padding-inline:1.3em}

/* Anmeldung */
.karte{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow)}
.karte label{display:block;font-weight:600;margin-bottom:6px}
.karte input#code{font-size:1.4rem;letter-spacing:.12em;text-transform:uppercase;text-align:center;padding:12px;border:2px solid var(--line)}
.karte .btn{margin-top:12px}
.fehler{background:var(--orange-soft);color:var(--orange-ink);border-radius:10px;padding:10px 12px;margin-top:12px}

.toast{position:fixed;left:50%;bottom:calc(5.5em + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#242424;color:#fff;padding:.65em 1.1em;border-radius:999px;font-weight:600;font-size:14px;z-index:50;box-shadow:0 6px 20px rgba(0,0,0,.25);max-width:calc(100% - 32px);text-align:center}

/* Fotos */
.upload{position:relative;display:flex;align-items:center;justify-content:center;gap:.5em;border:1.5px dashed var(--line);border-radius:12px;min-height:3.3em;font-weight:700;color:var(--strong);cursor:pointer;background:var(--ground)}
.upload input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.upload-paar{display:grid;grid-template-columns:1fr 1fr;gap:.6em}
.upload-paar .upload{padding:0 .5em;font-size:.95em;text-align:left}
.upload:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.upload.busy{opacity:.6;cursor:progress}
.thumbs{display:flex;gap:.5em;flex-wrap:wrap}
.thumb{position:relative;width:5.5em;height:5.5em;border-radius:10px;overflow:hidden;background:var(--tint)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb button{position:absolute;top:.2em;right:.2em;border:0;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;width:1.9em;height:1.9em;display:grid;place-items:center}
.thumb span{position:absolute;bottom:0;left:0;right:0;font-size:.65em;background:rgba(0,0,0,.55);color:#fff;padding:.1em .35em}
.thumb.pdf{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15em;padding:.4em .35em;text-align:center;border:1px solid var(--line)}
.thumb.pdf>.ic{width:1.6em;height:1.6em;color:var(--muted)}
.thumb.pdf b{font-size:.7em;line-height:1.2;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.thumb.pdf span{position:static;background:none;color:var(--muted);padding:0}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(8em,1fr));gap:.5em}
.ph{aspect-ratio:4/3;width:100%;border:0;padding:0;border-radius:10px;background:var(--tint);overflow:hidden}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.files{display:flex;flex-direction:column;gap:.4em}
.file{display:flex;align-items:center;gap:.7em;padding:.6em .75em;border:1px solid var(--line);border-radius:10px;background:var(--ground);color:inherit;text-decoration:none;min-height:3.3em}
.file:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.file .ic{width:1.5em;height:1.5em;flex:none;color:var(--muted)}
.file .fn{display:flex;flex-direction:column;min-width:0}
.file .fn b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file .fn small{color:var(--muted);font-size:.8em}
.viewer{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.92);display:grid;place-items:center;padding:3.5em .5em}
.viewer img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
.viewer button{position:absolute;border:0;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;width:2.8em;height:2.8em;display:grid;place-items:center}
.viewer button[hidden]{display:none}
.v-zu{top:calc(env(safe-area-inset-top,0px) + .6em);right:.6em}
.v-pfeil{top:50%;transform:translateY(-50%)}
.v-l{left:.4em}
.v-r{right:.4em}
.v-r .ic{transform:scaleX(-1)}
.viewer .nr{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + .8em);left:0;right:0;text-align:center;color:#fff;font-size:.85em}

/* Zeiterfassung */
.leise.mit-icon{display:inline-flex;align-items:center;gap:.35em}
.z-nav{display:flex;align-items:center;justify-content:space-between;gap:.5em}
.z-nav b{color:var(--strong);font-variant-numeric:tabular-nums;text-align:center}
.z-nav .btn{min-height:2.6em;min-width:2.6em;padding:.3em .6em}
.z-nav .vor .ic{transform:scaleX(-1)}
.z-sum{background:var(--card);border-radius:14px;padding:.9em 1em;display:flex;flex-direction:column;gap:.15em;box-shadow:var(--shadow)}
.z-big{font-size:2em;font-weight:800;color:var(--strong);font-variant-numeric:tabular-nums;line-height:1.1}
.z-sum span:last-child{color:var(--muted);font-size:.88em}
.z-bars{display:flex;flex-direction:column;gap:.5em;background:var(--card);border-radius:14px;padding:.8em .9em;box-shadow:var(--shadow)}
.z-bar{display:grid;grid-template-columns:8.5em 1fr auto;gap:.6em;align-items:center;font-size:.9em}
.z-bar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--strong)}
.z-bar i{display:block;height:.65em;border-radius:999px;background:var(--brand)}
.z-bar b{font-variant-numeric:tabular-nums;color:var(--strong);white-space:nowrap}
.z-day{display:flex;justify-content:space-between;font-size:.8em;font-weight:700;color:var(--muted);padding:.5em .2em .3em}
.z-day{align-items:center;gap:.6em}
.z-day>span:first-child{flex:1}
.z-fahrt{display:inline-flex;align-items:center;gap:.3em;border:0;background:none;padding:.25em .5em;margin:-.25em 0;border-radius:999px;font:inherit;color:var(--muted)}
button.z-fahrt{color:var(--strong);background:var(--tint)}
.z-fahrt .ic{width:1.15em;height:1.15em}
.z-fhin{font-size:.8em;color:var(--muted);padding:0 .2em .35em}
.z-fsum{display:flex;align-items:center;gap:.35em;font-weight:700;color:var(--strong);font-size:.95em}
.z-q .pick.schritt{min-width:3em;font-size:1.2em;font-weight:700}
.z-zahl{min-width:2em;text-align:center;font-size:1.3em;font-variant-numeric:tabular-nums}
.z-bisher{font-weight:500;color:var(--muted)}
.z-list{background:var(--card);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.z-e{display:grid;grid-template-columns:2.2em 1fr auto 2.4em;gap:.6em;align-items:center;padding:.65em .5em .65em .85em;border-top:1px solid var(--line)}
.z-e:first-child{border-top:0}
.z-e b{font-variant-numeric:tabular-nums;color:var(--strong);white-space:nowrap}
.z-apt{font-weight:800;color:var(--strong);font-variant-numeric:tabular-nums;font-size:.9em}
.z-e .lbl2{min-width:0;overflow-wrap:anywhere}
.z-lnk{border:0;background:none;padding:0;text-align:left;color:var(--ink);text-decoration:underline;text-decoration-color:var(--tint-2);text-underline-offset:3px}
.z-ed{color:var(--muted);font-size:.8em;margin-left:.4em}
.z-pen{border:0;background:none;color:var(--muted);width:2.4em;height:2.4em;display:grid;place-items:center;border-radius:999px}
.z-pen:hover{background:var(--tint)}
.z-form{background:var(--card);border-radius:14px;padding:1em;display:flex;flex-direction:column;gap:.85em;border:1.5px solid var(--brand)}
.z-form.inline{border-radius:0;border-width:0;border-top:1.5px solid var(--brand);border-bottom:1.5px solid var(--brand)}
.z-form label,.z-fl{display:flex;flex-direction:column;gap:.35em;font-weight:700;color:var(--strong);font-size:.92em}
.z-form small{font-weight:500;color:var(--muted)}
.z-form input[type=date],.z-form input[type=number]{border:1.5px solid var(--line);border-radius:12px;background:var(--card);padding:.5em .8em;min-height:3em;width:100%}
.z-q{display:flex;flex-wrap:wrap;gap:.4em;align-items:center}
.z-q select.dauer-andere{width:auto;min-height:2.5em;border-radius:999px;padding:.4em .9em;font-size:max(16px,1em);font-weight:600}
.z-q .pills .pick[aria-pressed="false"]{font-weight:600}
.z-close{display:flex;flex-direction:column;gap:.4em;font-weight:700;color:var(--strong);font-size:.9em}
.z-close>span{display:flex;align-items:center;gap:.35em}
.z-close small{font-weight:500;color:var(--muted)}
.aufwand-knoepfe{display:flex;gap:.6em}
.aufwand-knoepfe .btn{flex:1;min-height:2.6em;padding:.4em 1em;font-size:.92em}
.closing label[for^="m-"]{display:flex;flex-direction:column;gap:.35em}
.m-betrag{max-width:9em;font-variant-numeric:tabular-nums}
.m-e .z-ed{display:block;margin-left:0}
.m-e.weg .lbl2>span:first-child,.m-e.weg .lbl2>button:first-child,.m-e.weg b{text-decoration:line-through;color:var(--muted)}
.m-e .z-apt .ic{width:1.2em;height:1.2em;color:var(--muted)}
.z-tt{display:inline-flex;align-items:center;gap:.4em;font-size:.88em;font-weight:700;color:var(--strong)}
.btn.danger{background:none;color:var(--orange-ink);border:1.5px solid #f4b8b3}
.btn.danger.sure{background:var(--orange);color:var(--on-orange);border-color:var(--orange)}
a.btn{text-decoration:none}
.z-prot{background:var(--card);border-radius:14px;padding:.8em .9em;box-shadow:var(--shadow)}
.z-prot summary{font-weight:700;color:var(--strong);cursor:pointer}
.z-prot .timeline{margin-top:.7em}

/* ---------- Schritt 5: Tab-Leiste, Kopfzeile mit Suche und Menü, Sortierung ---------- */
body.big{font-size:23px}
.bottombar.tabs{padding:0;flex-direction:row;gap:0}
.tabbar{display:flex;flex:1;padding-bottom:env(safe-area-inset-bottom,0px)}
.tabbar button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.15em;padding:.55em .2em .6em;font-size:.78em;font-weight:600;color:var(--muted);position:relative;min-height:3.6em}
.tabbar button .ic{width:1.6em;height:1.6em}
.tabbar button[aria-current="true"]{color:var(--brand)}
.tabbar button[aria-current="true"] .ic{stroke-width:2.3}
.tabbar .plus{background:var(--brand);color:var(--on-brand);border-radius:999px;width:2.5em;height:2.5em;display:grid;place-items:center;margin-top:-.2em}
.tabbar .plus .ic{width:1.5em;height:1.5em}
.badge{position:absolute;top:.35em;left:calc(50% + .45em);min-width:1.45em;height:1.45em;padding:0 .35em;border-radius:999px;background:var(--orange);color:var(--on-orange);font-size:.8em;font-weight:800;display:grid;place-items:center;font-variant-numeric:tabular-nums}
.appbar .ab{border:0;background:none;color:inherit;display:grid;place-items:center;width:2.6em;height:2.6em;border-radius:999px;flex:none;margin-right:-.4em}
.appbar .ab:hover{background:rgba(255,255,255,.12)}
.appbar .ab .ic{width:1.4em;height:1.4em}
.appsearch{flex:1;min-width:0;display:flex;align-items:center;gap:.5em;background:rgba(255,255,255,.16);border-radius:999px;padding:0 .3em 0 .85em;min-height:2.5em}
.appsearch input{flex:1;min-width:0;border:0;background:none;color:#fff;font-size:1em;padding:.4em 0;min-height:auto;box-shadow:none;outline:0;width:auto}
.appsearch input::placeholder{color:rgba(255,255,255,.72)}
.appsearch input::-webkit-search-cancel-button,.search input::-webkit-search-cancel-button{display:none}
.appsearch button{border:0;background:rgba(255,255,255,.22);color:#fff;border-radius:999px;width:1.9em;height:1.9em;display:grid;place-items:center;flex:none}
.menu-back{position:fixed;inset:0;z-index:6}
.menu{position:absolute;top:calc(100% + .3em);right:.6em;width:min(22em,calc(100% - 1.2em));z-index:7;background:var(--card);color:var(--ink);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.28);padding:1em}
.mset{display:flex;flex-direction:column;gap:.9em}
.mset .who-line{display:flex;flex-direction:column;line-height:1.25}
.mset .who-line b{color:var(--strong);font-size:1.1em}
.mset .who-line span{color:var(--muted);font-size:.85em}
.mset .mlink{display:flex;align-items:center;gap:.6em;border:0;background:none;padding:.2em 0;font-weight:700;color:var(--strong);text-align:left;min-height:2.6em}
.mset .mlink .ic{color:var(--muted)}
.mset hr{border:0;border-top:1px solid var(--line);margin:0;width:100%}
.switch{display:flex;align-items:center;justify-content:space-between;gap:1em;border:0;background:none;padding:0;width:100%;text-align:left;font-weight:700;color:var(--strong);min-height:2.6em}
.switch .tr{width:3em;height:1.75em;border-radius:999px;background:var(--tint-2);position:relative;flex:none;transition:background .15s}
.switch .tr::after{content:"";position:absolute;top:.2em;left:.2em;width:1.35em;height:1.35em;border-radius:50%;background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch[aria-checked="true"] .tr{background:var(--brand)}
.switch[aria-checked="true"] .tr::after{transform:translateX(1.25em)}
.setcard{padding:1.2em 1.4em;max-width:26em;background:var(--card);border-radius:14px;box-shadow:var(--shadow)}
.sortbtn{position:relative;flex:none;width:2.9em;height:2.9em;border-radius:999px;background:var(--tint);color:var(--strong);display:grid;place-items:center}
.sortbtn[data-on]{background:var(--brand);color:var(--on-brand)}
.sortbtn select{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;padding:0;border:0}
.listbar .seg button{white-space:nowrap;padding-inline:.3em;font-size:.92em}
.sortsel{display:flex;flex-direction:column;align-items:flex-start;gap:.25em;font-size:.75em;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
mark{background:#fff0a8;color:inherit;padding:0 .1em;border-radius:3px}
.beleg{font-size:.85em;color:var(--muted);overflow-wrap:anywhere}
.beleg b{color:var(--strong)}
.search{display:flex;align-items:center;gap:.5em;background:var(--card);border:2px solid var(--brand);border-radius:999px;padding:0 .35em 0 .9em;min-height:3.2em}
.search>.ic{color:var(--muted)}
.search input{flex:1;min-width:0;border:0;background:none;font-size:1.05em;padding:.6em 0;min-height:auto;box-shadow:none;outline:0;width:auto}
.search button{border:0;background:var(--tint);color:var(--strong);border-radius:999px;width:2.3em;height:2.3em;display:grid;place-items:center;flex:none}
.arten-liste{background:var(--card);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.art-zeile{display:flex;align-items:center;gap:.7em;padding:.7em .9em;border-top:1px solid var(--line)}
.art-zeile:first-child{border-top:0}
.art-zeile .nm{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--strong);font-weight:600}
.art-zeile.aus .nm{color:var(--muted);text-decoration:line-through}
.art-zeile small{color:var(--muted);display:block;font-weight:500;text-decoration:none}
.art-zeile .btn{min-height:2.6em;padding:.3em 1em;font-size:.9em}
.neue-art{display:flex;gap:.5em}
.neue-art input{flex:1;min-width:0}

/* Große Ansicht: größere Schrift (siehe body.big), weniger pro Karte, daumengroße Knöpfe */
.big .extra{display:none!important}
.big .c-desc{-webkit-line-clamp:2}
.big .card{padding:.85em 1em;gap:.3em}
.big .c-age{display:none}
.big .btn{min-height:2.9em}
.big .z-bar{grid-template-columns:1fr auto}.big .z-bar i{grid-column:1/-1;grid-row:2}

/* ---------- Dashboard „Für mich“ ---------- */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.5em}
.tile{background:var(--card);border-radius:12px;padding:.7em .75em;box-shadow:var(--shadow);border:0;text-align:left;color:var(--ink)}
.tile b{display:block;font-size:1.9em;line-height:1;font-weight:800;color:var(--strong);font-variant-numeric:tabular-nums}
.tile span{font-size:.8em;font-weight:600;color:var(--muted)}
.tile.hot b{color:var(--orange-ink)}
.tile.hot{background:var(--orange-soft);box-shadow:none}
.status-line{display:flex;flex-wrap:wrap;gap:.4em 1em;font-size:.88em;color:var(--muted)}
.status-line b{color:var(--strong);font-variant-numeric:tabular-nums}
.cm-item{display:flex;flex-direction:column;gap:.2em;text-align:left;border:0;width:100%;background:var(--card);border-radius:12px;padding:.7em .9em;box-shadow:var(--shadow);color:var(--ink)}
.cm-item .h{font-size:.8em;color:var(--muted)}
.cm-item .h b{color:var(--strong)}
.cm-item q{quotes:"„" "“";color:var(--strong);font-weight:500;overflow-wrap:anywhere}

/* ---------- Dashboard „Zu tun“ (Schritt 9.3): Kacheln mit roter Bubble, je drei Zeilen und „+ N weitere“ ---------- */
.zt-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.9em;align-items:start}
.zt-kachel{background:var(--card);border-radius:14px;box-shadow:var(--shadow);border-top:4px solid var(--brand);padding:.8em .85em .7em;display:flex;flex-direction:column;gap:.5em;min-width:0}
.zt-kachel.leer{border-top-color:var(--tint-2)}
.zt-kachel.alarm{background:var(--orange-soft);border-top-color:var(--orange);box-shadow:0 0 0 1.5px #f4b8b3}
.zt-kachel.heute{background:var(--work-soft);border-top-color:#e0a100;box-shadow:0 0 0 1.5px #e6c46f}
.zt-kopf{display:flex;align-items:center;gap:.5em}
.zt-kopf h2{flex:1;min-width:0;font-size:.95em;color:var(--strong);letter-spacing:.05em}
.zt-kopf h2 .ic{color:var(--brand)}
.zt-kachel.alarm .zt-kopf h2,.zt-kachel.alarm .zt-kopf h2 .ic{color:var(--orange-ink)}
.zt-kachel.heute .zt-kopf h2,.zt-kachel.heute .zt-kopf h2 .ic,.zt-kachel.heute .zt-unter{color:var(--work-ink)}
.zt-zahl{background:var(--tint);color:var(--strong);border-radius:999px;padding:0 .6em;font-weight:800;font-size:.85em;font-variant-numeric:tabular-nums;line-height:1.7}
.zt-kachel.alarm .zt-zahl{background:var(--orange-ink);color:#fff}
.zt-kachel.heute .zt-zahl{background:var(--work-ink);color:#fff}
.zt-bubble{background:var(--orange);color:var(--on-orange);border-radius:999px;min-width:1.8em;height:1.8em;padding:0 .5em;display:grid;place-items:center;font-weight:800;font-size:.9em;font-variant-numeric:tabular-nums}
.zt-unter{font-size:.82em;color:var(--muted);margin-top:-.25em}
.zt-kachel.alarm .zt-unter{color:var(--orange-ink)}
.zt-zeilen{display:flex;flex-direction:column;gap:.4em}
.zt-row{display:flex;flex-direction:column;gap:.15em;text-align:left;border:0;width:100%;background:var(--ground);border-radius:10px;padding:.55em .7em;color:var(--ink)}
.zt-kachel.alarm .zt-row,.zt-kachel.heute .zt-row{background:#fff}
.zt-row:hover{outline:1.5px solid var(--line)}
.zt-row.gelesen{opacity:.6}.zt-row.gelesen:hover,.zt-row.gelesen:focus-visible{opacity:1}
.zt-top{display:flex;justify-content:space-between;gap:.3em .6em;align-items:center;flex-wrap:wrap}
.zt-hin{display:inline-flex;gap:.3em;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-left:auto}
.zt-desc{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--strong)}
.zt-zitat{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--strong)}
.zt-zitat q{quotes:"„" "“"}
.zt-meta{font-size:.78em;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:.2em .6em}
.zt-erw{font-size:.78em;font-weight:800;color:var(--on-brand);background:var(--brand);padding:.1em .65em;border-radius:999px;white-space:nowrap}
.zt-neu{font-size:.78em;font-weight:800;color:var(--orange-ink);background:var(--orange-soft);padding:.1em .65em;border-radius:999px;white-space:nowrap}
.zt-mehr{border:0;background:none;font-weight:700;color:var(--brand);text-align:left;padding:.3em .2em;min-height:2.2em}
.zt-mehr:hover{text-decoration:underline}
/* Kacheln anordnen (Alex 11.10.2026): Pfeile statt Ziehen, damit es mit Finger, Maus und Tastatur gleich geht */
.zt-kopfzeile{display:flex;flex-wrap:wrap;gap:.5em 1em;align-items:flex-end;justify-content:space-between}
.zt-aktionen{display:flex;gap:.5em;margin-left:auto}
.klein-btn{min-height:2.6em;padding:.4em 1em}
.zt-pfeile{display:inline-flex;gap:.35em}
.zt-pfeil{width:2.75em;height:2.75em;padding:0;border-radius:.7em;border:1.5px solid var(--line);background:var(--card);color:var(--strong);display:grid;place-items:center}
.zt-pfeil .ic{width:1.3em;height:1.3em}
.zt-pfeil:not(:disabled):hover{background:var(--tint)}
.zt-pfeil:disabled{opacity:.28}
.zt-fest{display:inline-flex;gap:.35em;align-items:center;color:var(--muted);font-size:.82em;font-weight:700;white-space:nowrap}
.zt-grid.anordnen .zt-zeilen,.zt-grid.anordnen .zt-mehr,.zt-grid.anordnen .zt-leer,.zt-grid.anordnen .zt-unter,
.zt-grid.anordnen .zt-zahl,.zt-grid.anordnen .zt-bubble{display:none}
.zt-grid.anordnen .zt-kachel:not(.dringend){box-shadow:0 0 0 2px var(--line)}
.zt-grid.anordnen .zt-kopf{flex-wrap:wrap;row-gap:.4em}
.zt-grid.anordnen .zt-kopf h2{flex:1 1 11em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zt-pfeile,.zt-fest{margin-left:auto}
@media (min-width:900px){.zt-pfeil{width:2.3em;height:2.3em}}
@media (max-width:899px){
  .nur-symbol .zt-bt-text{display:none}
  .nur-symbol{padding:.4em .8em}
}
.zt-leer{display:flex;align-items:center;gap:.5em;color:var(--muted);font-size:.92em;padding:.1em 0 .2em}
.zt-leer .ic{color:var(--done)}
.zt-ruhe{display:flex;gap:.6em;align-items:center;background:var(--done-soft);color:var(--done);border-radius:12px;padding:.7em .9em;font-weight:600}
.zt-filter{display:flex;flex-wrap:wrap;gap:.6em;align-items:flex-end}
.zt-filter label{display:flex;flex-direction:column;gap:.25em;font-size:.75em;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;flex:1;min-width:8em}
.zt-filter select{font-size:1.25em;text-transform:none;letter-spacing:0;font-weight:600;color:var(--strong)}
.zt-filter .btn{min-height:2.6em;padding:.4em 1em;font-size:.95em}
.neu-pill{font-style:normal;font-size:.85em;font-weight:800;color:var(--orange-ink);background:var(--orange-soft);border-radius:999px;padding:0 .55em}
.big .zt-desc,.big .zt-zitat{-webkit-line-clamp:2}

/* ---------- Desktop (ab 900 px): Seitenleiste, Übersichtstabelle, Ticket als Schublade rechts ---------- */
.side,.drawer{display:none}
.filters,.tablewrap{display:none}
@media (min-width:900px){
  body{background:var(--ground)}
  .frame{max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr);min-height:100vh}
  .frame.mit-seite{grid-template-columns:230px minmax(0,1fr)}
  .frame.mit-seite.mit-schublade{grid-template-columns:230px minmax(0,1fr) minmax(380px,460px)}
  .haupt.login>.screen{margin:0 auto;width:100%;max-width:30rem}
  .side{display:flex;flex-direction:column;gap:.3em;background:var(--brand);color:var(--on-brand);padding:1.1em .8em;position:sticky;top:0;height:100vh;overflow:auto}
  .side[hidden]{display:none}
  .side .brand{display:flex;align-items:center;gap:.65em;font-weight:800;font-size:1.15em;padding:0 .4em .9em;line-height:1.2}
  .side .brand span{display:flex;flex-direction:column}
  .side .brand small{font-weight:500;font-size:.62em;opacity:.8}
  .side .nav{border:0;background:none;color:inherit;display:flex;align-items:center;gap:.6em;padding:.6em .7em;border-radius:10px;font-weight:600;text-align:left;position:relative}
  .side .nav:hover{background:rgba(255,255,255,.1)}
  .side .nav[aria-current="true"]{background:rgba(255,255,255,.16)}
  .side .nav .count{margin-left:auto;font-size:.8em}
  .side .foot{margin-top:auto;font-size:.8em;opacity:.85;padding:0 .4em}
  .side .search{background:rgba(255,255,255,.14);border:0;min-height:2.6em;margin:0 .2em .7em}
  .side .search>.ic{color:rgba(255,255,255,.8)}
  .side .search input{color:#fff;font-size:.95em}
  .side .search input::placeholder{color:rgba(255,255,255,.7)}
  .side .search:focus-within{box-shadow:0 0 0 2px rgba(255,255,255,.55)}
  .side .search button{background:rgba(255,255,255,.22);color:#fff;width:1.9em;height:1.9em}
  .haupt.ohne-kopf>.appbar{display:none}
  .haupt>.screen{padding:1.4em 1.6em 2em;max-width:820px}
  .haupt>.screen.breit{max-width:none}
  .haupt>.bottombar{max-width:820px}
  .haupt>.bottombar.tabs{display:none}
  .filters{display:flex;flex-wrap:wrap;gap:.6em;align-items:flex-end}
  .filters label{display:flex;flex-direction:column;gap:.25em;font-size:.75em;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
  .filters select{min-height:2.5em;padding:.35em .6em;min-width:9em;font-size:1.25em;text-transform:none;letter-spacing:0;font-weight:600;color:var(--strong);border-radius:10px;width:auto}
  .filters .btn{min-height:2.5em;padding:.4em 1em;font-size:.95em}
  .tablewrap{display:block;overflow-x:auto;background:var(--card);border-radius:12px;box-shadow:var(--shadow)}
  table{border-collapse:collapse;width:100%;font-size:.92em}
  th{text-align:left;font-size:.75em;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:.75em .7em;border-bottom:1.5px solid var(--line);white-space:nowrap;background:var(--card);position:sticky;top:0}
  td{padding:.65em .7em;border-bottom:1px solid var(--line);vertical-align:top}
  tbody tr{cursor:pointer}
  tbody tr:hover td{background:var(--ground)}
  tbody tr[aria-selected="true"] td{background:var(--tint)}
  tbody tr:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
  td.nr{font-weight:800;color:var(--strong);font-variant-numeric:tabular-nums;white-space:nowrap}
  td.nr span{display:block;font-weight:500;color:var(--muted);font-size:.85em}
  td.art{min-width:8.5em}
  td.desc{min-width:16em;color:var(--strong);overflow-wrap:anywhere}
  td.when{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9em}
  td .chip{font-size:.82em}
  .drawer{display:flex;flex-direction:column;background:var(--ground);border-left:1px solid var(--line);position:sticky;top:0;height:100vh;overflow:hidden}
  .drawer[hidden]{display:none}
  .drawer>.screen{overflow:auto;padding:1em}
  .drawer>.appbar{position:static}
  .tabbar,.listbar .sortbtn{display:none}
  .zt-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1240px}
  .zt-kachel.dringend{grid-column:1/-1}
}
@media (max-width:899px){
  .filters,.tablewrap{display:none!important}
}
[hidden]{display:none!important}
.tile:disabled{cursor:default}

/* ---------- Offline (Schritt 6) ---------- */
.logo{width:2.1em;height:2.1em;border-radius:.5em;flex:none;display:block;box-shadow:0 0 0 1px rgba(255,255,255,.28)}
.appbar .logo{margin-left:-.3em}
.side .logo{width:2.4em;height:2.4em}
.netz{background:var(--work-soft);color:var(--work-ink);border-bottom:1px solid #ecd9a4;padding:.55em 1em;font-size:.9em;display:flex;flex-direction:column;gap:.4em}
.netz .z{display:flex;align-items:center;justify-content:space-between;gap:.8em;line-height:1.35}
.netz .z.warn{color:#7a1d12}
.netz .btn{min-height:2.4em;padding:.3em 1em;font-size:.9em;flex:none}
body.netz-warnung .appbar{box-shadow:inset 0 -4px 0 #e0a100}
.chip.wartet{background:var(--work-soft);color:var(--work-ink);border:1px dashed #cfa43a}
@media (min-width:900px){ .haupt>.netz{max-width:none} }

/* Benachrichtigungen (Menü/Einstellungen) */
.pushbox{display:flex;flex-direction:column;gap:.7em}
.pushkopf{display:flex;align-items:center;gap:.6em;color:var(--strong)}
.pushkopf .ic{color:var(--muted)}
.pushan{margin-left:auto;font-size:.8em;font-weight:700;color:var(--on-brand);background:var(--brand);border-radius:999px;padding:.1em .7em}
.pushknoepfe{display:flex;gap:.6em;flex-wrap:wrap}
.pushknoepfe .btn{min-height:2.6em;padding:.4em 1em;flex:1}

/* Aufgaben für Roland (Handy): drei Kacheln */
.auf-start{display:flex;flex-direction:column;gap:.8em}
.auf-kachel{display:flex;align-items:center;gap:.8em;width:100%;text-align:left;border:0;border-left:5px solid var(--brand);background:var(--card);border-radius:14px;box-shadow:var(--shadow);padding:1em .9em 1em 1em;min-height:5.2em;color:var(--ink)}
.auf-kachel>.ic{color:var(--brand);flex:none;width:1.5em;height:1.5em}
.auf-kachel>.ic:last-child{color:var(--muted);width:1.2em;height:1.2em}
.auf-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15em}
.auf-t b{font-size:1.15em;color:var(--strong)}
.auf-t small{font-size:.85em;color:var(--muted)}
.auf-zahl{font-size:1.6em;font-weight:800;font-variant-numeric:tabular-nums;color:var(--strong)}
.auf-kachel.leer{border-left-color:var(--tint-2)}
.auf-kachel.alarm{background:var(--orange-soft);border-left-color:var(--orange)}
.auf-kachel.alarm>.ic:first-child,.auf-kachel.alarm small{color:var(--orange-ink)}
.auf-kachel.heute{background:var(--work-soft);border-left-color:#e0a100}
.auf-kachel.heute>.ic:first-child,.auf-kachel.heute small{color:var(--work-ink)}
.auf-kachel:hover{outline:1.5px solid var(--line)}
.auf-prio h2 .count{background:var(--tint);color:var(--strong)} /* nur „Sofort“ zählt rot */
@media (min-width:900px){.auf-start{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1em}.auf-kachel{min-height:6.5em}}

/* ---------- Einsatz (Alex 22.10.2026): Leiste oben und Seite „Einsatz“ ---------- */
.einsatz{background:var(--card);border-bottom:1px solid var(--line);padding:.6em 1em;display:flex;flex-direction:column;gap:.35em}
.einsatz .e-hint{text-align:center}
.einsatz.laeuft{background:var(--done-soft);border-bottom-color:#c5dcb4}
.e-zeile{display:flex;align-items:center;gap:.7em}
.e-zeile .btn{flex:none;min-height:2.6em;padding:.3em 1.1em}
.e-punkt{flex:none;width:.7em;height:.7em;border-radius:50%;background:var(--done);box-shadow:0 0 0 .25em rgba(47,107,18,.18)}
.e-t{flex:1;display:flex;flex-direction:column;align-items:flex-start;border:0;background:none;padding:0;text-align:left;color:var(--strong);font:inherit;line-height:1.3}
.e-t small{color:var(--muted);font-size:.85em}
.e-wahl{display:flex;flex-direction:column;gap:.45em;padding-top:.3em}
.e-wahl>span{font-weight:700;color:var(--strong);font-size:.9em}
.e-hint{font-size:.8em;color:var(--muted)}
.e-felder input{font-size:max(16px,1em);border:1.5px solid var(--line);border-radius:12px;background:var(--card);padding:.45em .7em;min-height:2.9em;color:var(--strong);width:100%;box-sizing:border-box}
.e-liste{background:var(--card);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.e-t-zeile{display:flex;flex-direction:column;gap:.45em;padding:.7em .85em;border-top:1px solid var(--line)}
.e-t-zeile:first-child{border-top:0}
.e-t-kopf{display:flex;align-items:baseline;gap:.6em}
.e-t-kopf .z-lnk{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.e-t-kopf b{flex:none;font-variant-numeric:tabular-nums;color:var(--strong);white-space:nowrap}
.e-t-wahl{display:flex;align-items:center;justify-content:space-between;gap:.5em}
.e-dazu{display:flex;align-items:center;gap:.5em;width:100%;border:0;border-top:1px solid var(--line);background:none;padding:.75em .85em;text-align:left;color:var(--strong);font:inherit}
.e-dazu:first-child{border-top:0}
.e-dazu span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e-andere{font-size:max(16px,1em);align-self:stretch;flex-direction:row;min-height:2.9em}
.e-notiz{display:flex;flex-direction:column;gap:.3em;font-size:.82em;font-weight:700;color:var(--muted)}
.e-notiz input{font-size:max(16px,1.2em);border:1.5px solid var(--line);border-radius:12px;background:var(--card);padding:.5em .8em;min-height:2.9em;color:var(--strong);font-weight:500}
.e-zeit{display:grid;grid-template-columns:1.4em 1fr auto 1.2em;gap:.6em;align-items:center;width:100%;border:0;background:var(--done-soft);padding:.65em .85em;text-align:left;color:var(--strong);font:inherit}
.e-zeit span{display:flex;flex-direction:column;line-height:1.3}
.e-zeit small{color:var(--muted);font-size:.82em}
.e-zeit b{font-variant-numeric:tabular-nums;white-space:nowrap}
.hint.warn{color:var(--orange-ink)}
