/* Reparaturforum – Werkstattbuch-Look: Papier, Tinte, Kupfer, Lötstopplack-Grün */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1b1c1e;
  --muted: #6b6a66;
  --line: #e2ded5;
  --accent: #b5602a;       /* Kupfer */
  --accent-ink: #ffffff;
  --accent-soft: #f6e6da;
  --pcb: #1d5a40;          /* Lötstopplack */
  --pcb-2: #174a34;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --danger: #b4372f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416; --surface: #1c1d20; --surface-2: #222327; --ink: #ebe9e4; --muted: #9a978f;
    --line: #2f3034; --accent: #e08850; --accent-ink: #1b1b1b; --accent-soft: #3a2a1f;
    --pcb: #1a4d37; --pcb-2: #133c2b; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
img, video { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.grow { flex: 1 1 200px; }

/* ── Kopfzeile ── */
.topbar { background: #18191b; color: #eee; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--accent); }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.brand svg { width: 28px; height: 28px; color: #e08850; }
.brand:hover { text-decoration: none; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { color: #c9c7c2; padding: 7px 11px; border-radius: 7px; font-size: .95rem; }
.mainnav a:hover { background: #2a2b2e; color: #fff; text-decoration: none; }
.mainnav a.on { color: #fff; background: #2d2e31; box-shadow: inset 0 -2px 0 #e08850; }
.topsearch { flex: 1 1 160px; max-width: 320px; margin-left: auto; }
.topsearch input { width: 100%; background: #26272a; border: 1px solid #36373b; color: #eee; padding: 7px 12px; border-radius: 8px; }
.topactions { display: flex; align-items: center; gap: 10px; }
.iconlink { color: #c9c7c2; font-size: 1.25rem; }
@media (max-width: 760px) {
  .topbar-inner { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .mainnav { order: 3; width: 100%; overflow-x: auto; }
  .topsearch { order: 2; max-width: none; }
}

main.wrap { padding-top: 26px; padding-bottom: 40px; }
.sitefoot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); }

/* ── Grundelemente ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card + .card, .card + section, section + section { margin-top: 18px; }
.narrow { max-width: 440px; margin: 40px auto; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap-row { flex-wrap: wrap; align-items: flex-end; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.sechead h1, .sechead h2 { margin: 0; }
.crumbs { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 10px; }
.flash { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; }
.error { color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 34px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
ul.plain li:last-child { border-bottom: 0; }

label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 10px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; line-height: 1.5; }
input.num { width: 80px; }
input[type=checkbox] { width: auto; }
.checkline { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.big { font-size: 1.2rem; padding: 10px 12px; }

.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-sm { padding: 5px 10px; font-size: .84rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.07); border-color: var(--accent); }
.btn-danger { color: var(--danger); border-color: currentColor; background: transparent; }
.btn:disabled { opacity: .5; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linkbtn.danger { color: var(--danger); }
form.inline { display: inline; }
.dangerzone { margin-top: 26px; text-align: right; }

.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; }
.chip:hover { text-decoration: none; border-color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on .muted { color: inherit; opacity: .6; }
.chip.tag { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; align-items: center; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; background: #ddd; color: #333; }
.st-idee { background: #e4e6ea; color: #3b4048; }
.st-arbeit { background: #fbe3c8; color: #8a4510; }
.st-pausiert { background: #e9e1f3; color: #5a3d7a; }
.st-fertig { background: #d4ecdc; color: #1f5e37; }
.searchbig { margin-bottom: 14px; }
.searchbig input[type=search] { flex: 1; }

/* ── Startseite ── */

.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 104px; color: var(--ink); }
.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat b { display: block; font: 700 1.6rem/1.1 var(--mono); }
.stat span { font-size: .8rem; color: var(--muted); }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.grid-2-1 aside { margin-top: 26px; }
@media (max-width: 900px) { .grid-2-1 { grid-template-columns: 1fr; } .grid-2-1 aside { margin-top: 0; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick a { font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 7px; color: var(--ink); }
.card.warn { border-left: 4px solid var(--warn); }

/* ── Projektkarten ── */

.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Projektseite ── */
.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; position: sticky; top: 61px; background: var(--bg); z-index: 5; padding-top: 6px; }
.tabs a { padding: 7px 12px; color: var(--muted); font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; border-color: var(--accent); }
section[id] { scroll-margin-top: 120px; }

.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.1rem; margin-top: 0; }
.prose img { border-radius: 8px; margin: 8px 0; }
.prose table { border-collapse: collapse; margin: 10px 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.prose pre { background: #18191b; color: #eee; padding: 12px; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; }
.prose li + li { margin-top: 3px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 10px 0; align-items: start; }
.gitem { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gitem img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gitem.video { grid-column: span 2; }
.gitem video { width: 100%; aspect-ratio: 16/9; background: #000; }
.gitem figcaption { font-size: .82rem; padding: 6px 9px; color: var(--muted); }
.filetile { display: flex; flex-direction: column; gap: 4px; padding: 16px; aspect-ratio: 4/3; justify-content: center; color: var(--ink); }
.fileext { font: 700 .8rem var(--mono); background: var(--accent-soft); color: var(--accent); padding: 3px 7px; border-radius: 4px; align-self: flex-start; }
.filename { font-size: .88rem; overflow-wrap: anywhere; }
.mtools { position: absolute; top: 6px; right: 6px; }
.mtools summary { list-style: none; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-weight: 700; }
.mtools summary::-webkit-details-marker { display: none; }
.mtools-pop { position: absolute; right: 0; top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 240px; z-index: 4; box-shadow: 0 8px 26px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: .88rem; }
@media (max-width: 520px) { .gitem.video { grid-column: span 1; } .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Upload */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed var(--line); border-radius: 10px; text-align: center; cursor: pointer; color: var(--muted); background: var(--surface-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.over, .dropzone:hover { border-color: var(--accent); }
.dropzone.has { border-style: solid; border-color: var(--ok); }
.dropzone strong { color: var(--ink); }
.dz-files { font-size: .82rem; overflow-wrap: anywhere; }
.inline-upload { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; flex-wrap: wrap; }
.inline-upload .dropzone { flex: 1 1 260px; padding: 12px; }
.inline-upload .progress { flex-basis: 100%; }
.progress { position: relative; height: 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress .ptext { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 600; }

/* Materialliste */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.mat th, .mat td, .ref th, .ref td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mat th, .ref th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); font-weight: 600; }
.mat tr:last-child td { border-bottom: 0; }
.mat.edit td { padding: 4px; }
.mat.edit input, .mat.edit select { padding: 6px 7px; font-size: .88rem; }
.mstate { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; }
.ms-offen .mstate { background: #f9dcd8; color: #8c2a22; }
.ms-bestellt .mstate { background: #fbe9c8; color: #7a4d0b; }
.ms-vorhanden .mstate { background: #d4ecdc; color: #1f5e37; }
.ms-vorhanden td:not(:last-child) { opacity: .7; }

/* Logbuch */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.entry { position: relative; }
.entry::before { content: ""; position: absolute; left: -22px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.entry + .entry { margin-top: 14px; }
.entry header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.entry header h3 { margin: 0; flex: 1; }
.entry time { color: var(--muted); }
.newentry { margin-top: 18px; border-style: dashed; }

/* ── Bauteile ── */

.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.links li { display: flex; justify-content: space-between; gap: 8px; }
.addbox { margin-top: 12px; }
.addbox summary { cursor: pointer; color: var(--accent); font-size: .9rem; font-weight: 600; }
.addbox form { margin-top: 10px; }

/* ── Werkzeuge ── */

.tool h2 { margin-bottom: 2px; }
.tool > p { margin-top: 0; }

.result { margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 48px; }
.result b { font: 700 1.35rem var(--mono); color: var(--accent); margin-right: 10px; }
.result span { color: var(--muted); font-size: .88rem; }
.result.small b { font-size: 1rem; }
.ref td { font-size: .92rem; }
.results { padding-left: 18px; }
.results li { margin: 5px 0; }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,12,.94); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: #ccc; margin-top: 8px; font-size: .9rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 18px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 6px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

.login h1 { margin-bottom: 14px; }

/* ── Druck ── */
@media print {
  .topbar, .sitefoot, .noprint, .tabs, .mtools, .inline-upload, .newentry { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .gitem.video { display: none; }
}

/* ═════════ Version 2: Unterlagen, Mikroskop, KI ═════════ */
:root { --ai: #5b4bc4; --ai-soft: #ece9fb; }
@media (prefers-color-scheme: dark) { :root { --ai: #9d8cff; --ai-soft: #2a2550; } }

.btn-big { padding: 11px 20px; font-size: 1rem; }
.sechead.tight { margin: 0 0 10px; }
.rolebadge { position: absolute; top: 8px; left: 8px; background: var(--ai); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; }
.rolebadge.inline { position: static; }
.rolesel { width: auto; align-self: center; }
.mtools-pop select { padding: 5px 7px; font-size: .85rem; }

/* KI-Formular */

/* KI-Ergebnis */

@keyframes spin { to { transform: rotate(360deg); } }

/* Mikroskop */

#overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@keyframes blink { 50% { opacity: .55; } }

@keyframes flashfx { 0% { opacity: .7; } 100% { opacity: 0; } }

.cap { position: relative; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .55; background: #000; }
.cap.sel { border-color: var(--accent); opacity: 1; }
.cap img, .cap video { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; display: block; }

/* PHP-Version: Gehäusezeichnungen werden im Browser eingesetzt */
.pkg { display: grid; place-items: center; width: 100%; height: 100%; }
.pkg svg { width: 100%; height: 100%; }

/* ═════════ Breite Bildschirme (z. B. 49" Ultrawide) ═════════ */

@media (min-width: 1600px) {
  main.wrap:has(.micro-layout) { max-width: none; padding-top: 12px; padding-left: 24px; padding-right: 24px; }
  
  
  
  
  
  
  
}

/* Super-Ultrawide (z. B. 49" mit 5120 px): Aufnahmen-Spalte breit, damit die Fotos groß neben dem Live-Bild stehen */

@media (min-width: 1800px) {
  .wrap { max-width: calc(100vw - 64px); }
  .prose p, .prose li { max-width: 110ch; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .pcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .pcol > :first-child { margin-top: 0; }
  .pcol > section:first-child > .sechead:first-child { margin-top: 0; }
  
  
  
  
  
  .grid-2-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
}

/* ═════════ Version 3 ═════════ */
.addbox summary { list-style: revert; }

.msum { display: inline-flex; gap: 2px; align-items: center; }

/* Messwerte */

/* Boardansicht */

.pin { position: absolute; transform: translate(-50%, -100%); border: 0; padding: 0; background: none; cursor: pointer; line-height: 1; touch-action: none; }
.pin span { display: block; background: #3b6fb6; color: #fff; font: 700 .78rem var(--mono); padding: 3px 7px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.45); position: relative; }
.pin span::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }

.pin.st-bad span { background: #c62828; border-top-color: #c62828; }

.pin.st-ok span { background: #2f7d4f; border-top-color: #2f7d4f; }
.pin.active span { outline: 3px solid #ffcc00; z-index: 3; }
.pin.temp span { opacity: .7; }

   

/* Markieren-Editor */
.anno { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,14,.97); display: flex; flex-direction: column; }
.anno-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: #1b1c1f; border-bottom: 1px solid #333; color: #eee; }
.anno-group { display: flex; gap: 4px; }
.anno-bar button:not(.btn) { width: 36px; height: 34px; border-radius: 7px; border: 1px solid #3a3b40; background: #26272b; color: #eee; font-size: 1rem; cursor: pointer; }
.anno-bar button.on { border-color: #e08850; box-shadow: 0 0 0 2px #e08850; }
.anno-bar .anno-col { width: 26px; height: 26px; border-radius: 50%; }
.anno-text { width: 220px; background: #26272b; color: #eee; border-color: #3a3b40; }
.anno-text.need { outline: 2px solid #ff3b30; }
.anno-keep { flex-direction: row; align-items: center; gap: 6px; color: #ccc; }
.anno-stage { flex: 1; display: grid; place-items: center; padding: 14px; min-height: 0; }
.anno-stage canvas { max-width: 100%; max-height: 100%; cursor: crosshair; box-shadow: 0 6px 30px rgba(0,0,0,.6); touch-action: none; }

/* Mikroskop: Vergleich & Messen */

.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .8rem; padding: 6px 4px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* Lager: Einzelansicht, Scan, Etiketten */

.labels { display: grid; gap: 0; }
.label { display: flex; gap: 2.5mm; align-items: center; padding: 2mm 3mm; border: 1px dashed #bbb; background: #fff; color: #000; overflow: hidden; break-inside: avoid; }
.label .qr { flex: none; height: 100%; aspect-ratio: 1; }
.label .qr svg { width: 100%; height: 100%; display: block; }

 

@media print {
  .label { border: 0; }
  
  main.wrap { padding: 0 !important; max-width: none !important; }
}

/* Einkaufsliste, Datenblätter */

/* ───────── v3.1: Bereich privat/beruflich ───────── */

/* ───────── v3.1: Verbrauchsmaterial ───────── */

input[type=range] { accent-color: var(--accent); }

.clamp1 { display: inline-block; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

.level { position: relative; height: 18px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.level i { position: absolute; inset: 0 auto 0 0; width: var(--lv); background: linear-gradient(90deg, #4f9a6c, #6dba84); transition: width .15s; }
.level.low i { background: linear-gradient(90deg, #c0392b, #e0674f); }
.level span { position: relative; display: block; text-align: center; font: 600 .72rem/16px var(--mono); }
.level.saved { box-shadow: 0 0 0 2px #4f9a6c; }

.exp-warn { color: #b7791f; font-weight: 600; }

/* ───────── v3.1: Mikroskop – Live-Markieren & Ton ───────── */

/* ───────── v3.1: Lupe je Bild ───────── */

/* ═════════ Version 4 ═════════ */
.prewrap { white-space: pre-wrap; }
.right { text-align: right; }
.center { text-align: center; }
.okchip { background: #e3f1e8; border-color: #b5d9c2; color: #1f6640; }

.jobbadge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.job-angenommen { background: #eef0f7; border-color: #c9cfe3; color: #34406a; }
.job-diagnose, .job-reparatur { background: #fdf0e3; border-color: #efcda9; color: #8a4a16; }
.job-kva, .job-teile { background: #fbf4dc; border-color: #ead793; color: #75600f; }
.job-fertig { background: #e3f1e8; border-color: #b5d9c2; color: #1f6640; }
.job-abgeholt { color: var(--muted); }

.out-erfolgreich { background: #e3f1e8; color: #1f6640; border-color: #b5d9c2; }
.out-teilweise { background: #fbf4dc; color: #75600f; border-color: #ead793; }
.out-nicht_reparierbar, .out-abgelehnt { background: #f7dfdc; color: #8a2a1a; border-color: #e7b7af; }

/* Auftrag im Projekt */
.jobcard { border-top: 3px solid #3b6fb6; }
.jobsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 4px 0 12px; counter-reset: st; }
.jobsteps li { flex: 1 1 90px; font-size: .76rem; text-align: center; padding: 6px 4px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.jobsteps li span { display: block; font-size: 1rem; filter: grayscale(1); opacity: .55; }
.jobsteps li.done { color: var(--ink); background: var(--accent-soft); border-color: transparent; }
.jobsteps li.done span, .jobsteps li.cur span { filter: none; opacity: 1; }
.jobsteps li.cur { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.statusform { margin-bottom: 14px; }
.statusform select { width: auto; }
.jobgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .jobgrid { grid-template-columns: 1fr; } }
.jobgrid p { margin: 2px 0 0; }
.sigbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; }
.sigbox img { height: 60px; background: #fff; border-radius: 6px; }
.jobsub { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.jobsub h3 { margin-bottom: 8px; }

.num { text-align: right; }

.qr svg { width: 100%; height: 100%; display: block; }
.statuslog { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sigmodal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.sigpanel { width: min(960px, 100%); }
#sigCanvas { width: 100%; height: auto; aspect-ratio: 3/1; background: #fff; border-radius: 8px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; display: block; margin: 8px 0; }
.accchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.accchip { margin: 0; cursor: pointer; }
.accchip input { position: absolute; opacity: 0; pointer-events: none; }
.accchip span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.accchip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Aufträge-Übersicht */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } .kcol { min-height: 0; } }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kcol h3 { font-size: .95rem; margin-bottom: 10px; }
.kcard { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; color: var(--ink); box-shadow: var(--shadow); }
.kcard:hover { text-decoration: none; border-color: var(--accent); }
.kcard.late { border-left: 4px solid var(--warn); }
.kmeta { color: var(--muted); }
.kcol-fertig { background: #eef6f0; }
.kcol-abgeholt { opacity: .8; }

/* Zeiterfassung */
.timerpill { display: flex; align-items: center; gap: 2px; background: #2c1f17; border: 1px solid #e08850; border-radius: 8px; padding: 1px 2px 1px 8px; }
.timerpill a { color: #ffd2b0; font-size: .82rem; white-space: nowrap; }
.timerpill .tp-title { color: #c9c7c2; }
.timerpill button { border: 0; background: transparent; color: #ff8a65; cursor: pointer; font-size: .9rem; padding: 3px 6px; }
@media (max-width: 1100px) { .timerpill .tp-title { display: none; } }

/* Checkliste */

/* Fälle */

/* Stromverlauf */

/* Vorher/Nachher */

 

.handybox { margin-top: 10px; }
.handybox .qr { width: 140px; height: 140px; flex: 0 0 140px; background: #fff; padding: 6px; border-radius: 8px; }

/* Bibliothek */

/* Statistik */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 1.6rem; font-family: var(--mono); }
.kpi span { color: var(--muted); font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 10px; }
.barcol { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.barcol > span { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.barpair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.barpair i { display: block; width: 42%; min-height: 1px; border-radius: 3px 3px 0 0; font-style: normal; font-size: .68rem; text-align: center; color: #fff; line-height: 1.4; overflow: hidden; }
.b-new { background: #3b6fb6; } .b-done { background: var(--ok); } .b-time { background: var(--accent); width: 70% !important; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.hbar { display: grid; grid-template-columns: minmax(120px, 40%) 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px; font-size: .9rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar div { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); }
.hbar i.out-erfolgreich { background: var(--ok); } .hbar i.out-teilweise { background: var(--warn); } .hbar i.out-nicht_reparierbar, .hbar i.out-abgelehnt { background: var(--danger); }

/* Seiten ohne Navigation: Statusseite, Handy-Upload, Druck */
body.bare { background: var(--bg); }
.pubwrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 14px; }

.kanban > .kcol { margin: 0; }
.pubwrap tr.total th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); background: none; }

.bigpick { display: block; text-align: center; padding: 22px; font-size: 1.2rem; font-weight: 700; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.bigpick.alt { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.printbar { max-width: 210mm; margin: 14px auto; display: flex; gap: 8px; }
.printbar select { width: auto; }
.sheet { background: #fff; color: #111; max-width: 210mm; margin: 0 auto 30px; padding: 16mm 16mm 12mm; box-shadow: 0 2px 20px rgba(0,0,0,.15); font-size: 11pt; line-height: 1.45; }
.sheet h1 { font-size: 16pt; margin: 0; } .sheet h2 { font-size: 14pt; margin: 14px 0 8px; } .sheet h3 { font-size: 11pt; margin: 12px 0 4px; }
.sheet .muted { color: #666; }
.sheethead { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #111; padding-bottom: 8px; }
.sheethead p { margin: 2px 0; }

.sheettable { width: 100%; border-collapse: collapse; }
.sheettable th, .sheettable td { border: 1px solid #bbb; padding: 5px 8px; text-align: left; vertical-align: top; }
.sheettable th { width: 26%; background: #f3f3f3; font-weight: 600; }
.sheettable.quote th { width: auto; }
.sheettable .num { text-align: right; white-space: nowrap; }
.sheettable tr.total th, .sheettable tr.total td { font-weight: 700; font-size: 12pt; border-top: 2px solid #111; }

@media print {
  body.bare { background: #fff; }
  .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .printbar, .noprint { display: none !important; }
  @page { size: A4; margin: 14mm; }
}
@media (prefers-color-scheme: dark) {
  .okchip { background: #1d3428; color: #8fd3a8; border-color: #2e5a42; }
  .job-angenommen { background: #20263a; border-color: #333e60; color: #b4c2ee; }
  .job-diagnose, .job-reparatur { background: #3a2a1f; border-color: #5a3b25; color: #f0b582; }
  .job-kva, .job-teile { background: #352e15; border-color: #5a4d1d; color: #e8d38a; }
  .job-fertig, .out-erfolgreich { background: #1d3428; border-color: #2e5a42; color: #8fd3a8; }
  .out-teilweise { background: #352e15; border-color: #5a4d1d; color: #e8d38a; }
  .out-nicht_reparierbar, .out-abgelehnt { background: #3d201b; border-color: #5c2d26; color: #f2a08f; }
  .kcol-fertig { background: #1a2620; }
  .jobcard { border-top-color: #6b97d6; }
}

/* ═════════ Version 5 ═════════ */
.dictwrap { position: relative; }
.dictwrap textarea { padding-right: 46px; width: 100%; }
.dictbtn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; padding: 6px 8px; }
.dictwrap > .dictbtn { position: absolute; right: 8px; top: 8px; }

.dictbtn.big { font-size: 1.4rem; padding: 10px 12px; }
.dictbtn.listening { background: #c62828; color: #fff; border-color: #c62828; animation: blink 1.2s infinite; }

form.inline { display: inline; }

/* Mikroskop: zweite Kamera, Schaltplan, Sprache */

   

/* Reparaturbericht */
.reportopts { flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 210mm; }
.sheet.report h3 { border-bottom: 1px solid #ccc; padding-bottom: 2px; }

.rphotos figure { margin: 0; }

.rphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rphotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid #ccc; }
.sheet figcaption { font-size: 8.5pt; color: #555; }

/* Geräte-Etikett */
.devlabel { background: #fff; color: #000; display: flex; gap: 2mm; padding: 2mm; box-sizing: border-box; margin: 20px auto; border: 1px dashed #aaa; overflow: hidden; font-family: var(--sans); }
.devlabel .qr { height: 100%; aspect-ratio: 1; flex: 0 0 auto; }
.devlabel .dltext { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.15; }
.devlabel .dltext b { font-size: 13pt; }
.devlabel .dltext span { font-size: 8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.devlabel .dlsmall { font-size: 6.5pt !important; color: #333; }
.devlabel.fmt-100x50 .dltext b { font-size: 18pt; } .devlabel.fmt-100x50 .dltext span { font-size: 10pt; }
@media print { .devlabel { margin: 0; border: 0; } }

/* Werkbank-Modus */
body.bare:has(.wb) { background: #111214; color: #e9e7e2; }

 

/* Wärmebild-Auswertung */
.thermo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .thermo { grid-template-columns: 1fr; } }
.thstage { min-width: 0; }
.thcanvaswrap { display: flex; gap: 10px; align-items: center; justify-content: center; }
#thCanvas { border-radius: 8px; cursor: crosshair; touch-action: none; box-shadow: var(--shadow); background: #000; }
.thlegend { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 .8rem var(--mono); }
#thLegend { width: 18px; height: 300px; border-radius: 4px; border: 1px solid var(--line); }
.thhover { display: flex; justify-content: space-between; align-items: baseline; }
.thhover b { font-size: 1.6rem; color: var(--accent); }
.thlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.thlist li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.thlist input { width: 110px; padding: 4px 8px; }
.thside .seg button.on, .thermo .seg button.on { background: var(--accent); color: var(--accent-ink); }
.thothers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thothers img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; }
.thermobadge { position: absolute; left: 6px; bottom: 6px; background: rgba(120,20,90,.85); color: #fff; border-radius: 5px; padding: 1px 6px; font-size: .78rem; font-weight: 700; z-index: 2; }
.thermobadge:hover { text-decoration: none; background: #b5602a; }

/* Raster: kein zusätzlicher Abstand zwischen nebeneinanderliegenden Karten */
.kpis > *, .pcols > *, .kanban > *, .pubwrap > * { margin-top: 0 !important; }
.pcols > section > .sechead:first-child { margin-top: 0; }
[hidden] { display: none !important; }

/* ═════════ 🎬 Studio (immer dunkel, Vollfenster) ═════════ */
body.bare:has(.studio) { background: #0b0c0e; overflow: hidden; }
.studio { --s-bg: #0b0c0e; --s-panel: #15171b; --s-panel2: #1d2025; --s-line: #2a2e35; --s-ink: #e8e6e1; --s-mute: #8d8b86; --s-acc: #e08850; --s-live: #e5372b;
  position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--s-bg); color: var(--s-ink); font: 14px/1.4 var(--sans); color-scheme: dark; }
.studio .grow { flex: 1; }
.studio .small { font-size: 12px; }
.studio .row { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.studio .wrap-row { flex-wrap: wrap; }
.studio input, .studio select, .studio textarea { background: #0f1114; color: var(--s-ink); border: 1px solid var(--s-line); border-radius: 6px; padding: 5px 7px; font: inherit; max-width: 100%; }
.studio input:not([type]), .studio input[type=number], .studio select, .studio textarea { width: 100%; }
.studio .row select, .studio .row input:not([type=range]) { width: auto; }
.studio .row label { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; color: var(--s-mute); }
.studio label { color: var(--s-mute); }
.studio input[type=range] { accent-color: var(--s-acc); padding: 0; border: 0; background: none; }

@keyframes stpulse { 50% { box-shadow: 0 0 0 6px rgba(229,55,43,.25); } }

.studio h4 small { color: var(--s-mute); font-weight: 400; }

 

 /* Größe setzt studio.js passend */

 

 

.studio h4 { margin: 8px 0 4px; font-size: 13px; color: #fff; }

 

 
 

 

 

  

  

@media (max-width: 900px) {
  body.bare:has(.studio) { overflow: auto; }
  .studio { position: static; min-height: 100vh; }
  
    
  
   
}

/* ═════════ 🎨 Foto bearbeiten ═════════ */
.pe { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1fr 320px; background: #0d0e10; color: #e8e6e1; font: 14px/1.4 var(--sans); color-scheme: dark; }
.pe-stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.pe-cv { box-shadow: 0 6px 30px rgba(0,0,0,.6); touch-action: none; }
.pe-load { position: absolute; color: #8d8b86; }
.pe-side { background: #16181c; border-left: 1px solid #2a2e35; padding: 14px; overflow-y: auto; }
.pe-side h3 { margin: 0 0 10px; }
.pe-grp { border-top: 1px solid #2a2e35; padding: 10px 0; }
.pe-grp > b { display: inline-block; margin-bottom: 6px; color: #fff; }
.pe-row { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.pe button { background: #22262c; border: 1px solid #2a2e35; color: #e8e6e1; border-radius: 7px; padding: 6px 10px; font: 600 13px var(--sans); cursor: pointer; }
.pe button:hover { background: #2b3038; }
.pe .pe-go { background: #e08850; border-color: #e08850; color: #1a1a1a; }
.pe .pe-auto { float: right; padding: 3px 8px; font-size: 12px; }
.pe .pe-link { background: none; border: 0; color: #ffcfae; padding: 2px 0; font-weight: 500; }
.pe label { display: block; color: #b6b3ad; font-size: 13px; margin: 6px 0; }
.pe label input[type=range] { width: 100%; accent-color: #e08850; padding: 0; border: 0; background: none; }
.pe-v { float: right; font-family: var(--mono); color: #fff; }
.pe select { background: #0f1114; color: #e8e6e1; border: 1px solid #2a2e35; border-radius: 6px; padding: 5px; width: auto; }
.pe-radio { display: flex !important; flex-direction: row !important; gap: 7px; align-items: baseline; }
.pe-radio input { width: auto; accent-color: #e08850; }
.pe-radio small { color: #8d8b86; }
.pe-hint { color: #8d8b86; font-size: 12px; margin: 4px 0; }
.pe-actions { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid #2a2e35; padding-top: 12px; }
.pe-actions .pe-go { margin-left: auto; }
.pe-msg { color: #ffcfae; min-height: 1.2em; }
@media (max-width: 760px) { .pe { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; } .pe-side { border-left: 0; border-top: 1px solid #2a2e35; } }

/* Studio: Drehbuch, Fernbedienung, Extras */

/* ═════════ PDF-Ansicht ═════════ */
.pdfv { display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 500px; }
.pdfv-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-bottom: 8px; }
.pdfv-bar input[type=search] { width: 260px; }
.pdfv-bar #pvPage { width: 3.5em; padding: 4px; }
.pdfv-title { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfv-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.pdfv-scroll { overflow: auto; background: #6b6b6b; border-radius: var(--radius); padding: 20px; }
.pdfv-page { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.pdfv-page canvas { display: block; }
.pdfv-text { position: absolute; inset: 0; line-height: 1; }
.pv-w { position: absolute; color: transparent; white-space: pre; cursor: pointer; transform-origin: 0 0; border-radius: 2px; }
.pv-w:hover { background: rgba(224,136,80,.25); }
.pv-w.hit { background: rgba(255,214,0,.45); }

.pv-w::selection { background: rgba(0,120,255,.35); color: transparent; }

@media (max-width: 900px) { .pdfv { height: auto; } .pdfv-main { grid-template-columns: 1fr; } .pdfv-scroll { height: 70vh; } }

/* ═════════ Boardview ═════════ */
body.bare:has(.bv) { background: #0b0c0e; overflow: hidden; }
.bv { position: fixed; inset: 0; display: flex; flex-direction: column; color: #e8e6e1; font: 14px/1.4 var(--sans); color-scheme: dark; }
.bv-bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #111317; border-bottom: 2px solid #e08850; flex-wrap: wrap; }
.bv-bar input { width: 300px; background: #0f1114; color: #eee; border: 1px solid #2a2e35; }
.bv-bar .grow { flex: 1; }
.bv-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; }
#bvCanvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.bv-side { background: #15171b; border-left: 1px solid #2a2e35; padding: 10px; overflow-y: auto; }
.bv-side h3 { margin: 0 0 4px; } .bv-side h3 small { color: #8d8b86; font-weight: 400; }
.bv-side a { color: #ffcfae; }
.bv-list div { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 10px; font-size: 13px; max-height: 26vh; overflow-y: auto; }
  
@media (max-width: 800px) { .bv-main { grid-template-columns: 1fr; grid-template-rows: 1fr 40vh; } }

/* ═════════ Diagnose ═════════ */

 

/* 📟 Multimeter-Bedienfeld */

 @keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.offline-badge { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; background: #3a2a1f; color: #ffcfae; border: 1px solid #e08850; border-radius: 20px; padding: 8px 16px; font: 600 14px var(--sans); cursor: pointer; }

/* 🔥 Reflow */
.rf-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.rf-grid > * { margin-top: 0 !important; }
.rf-now { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; margin: 16px 0 8px; }
.rf-phase { font-size: 2rem; font-weight: 700; }
.rf-temp { font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.rf-time { font-size: 2.6rem; font-weight: 700; }
.rf-bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.rf-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

.rf-steps li.cur { font-weight: 700; color: var(--accent); } .rf-steps li.done { opacity: .5; text-decoration: line-through; }
@media (max-width: 900px) { .rf-grid { grid-template-columns: 1fr; } .rf-now { grid-template-columns: 1fr; } }

.warnchip { background: #fbe3df; color: var(--danger); }
details.inline { display: inline-block; margin-left: 6px; } form.inline { display: inline; }

 

 
 

/* ↕ Galerie-Gruppen */
.ggroup { margin-bottom: 10px; }
.ghead { font-size: 1rem; margin: 10px 0 6px; }
.ggroups:not(.sorting) .ggroup.empty { display: none; }
.ggroups.sorting .ggroup { border: 2px dashed var(--line); border-radius: 10px; padding: 6px 8px; min-height: 90px; }
.ggroups.sorting .ggroup[data-phase="vorher"] { border-color: #b7791f; } .ggroups.sorting .ggroup[data-phase="nachher"] { border-color: var(--ok); }
.ggroups.sorting .gitem { cursor: grab; touch-action: none; user-select: none; }
.ggroups.sorting .gitem img, .ggroups.sorting .gitem video { pointer-events: none; }
.ggroups.sorting .mtools { display: none; }
.gitem.dragging { opacity: .55; outline: 3px solid var(--accent); cursor: grabbing; }
.gdrop { grid-column: 1 / -1; text-align: center; padding: 18px; margin: 0; }
 
/* ⚙ Projektansicht */
.tabcfg { margin-left: auto; white-space: nowrap; }
.pblock > section, .pblock > div { margin-top: 0; }
.pcol > .pblock + .pblock { margin-top: 22px; }
.lmodal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; justify-items: center; align-items: start; padding-top: 5vh; z-index: 60; }
.lmodal[hidden] { display: none; }
.lmodal-in { width: min(680px, 94vw); max-height: 90vh; overflow-y: auto; }
.lcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.llist { list-style: none; padding: 6px; margin: 6px 0; border: 1px dashed var(--line); border-radius: 8px; min-height: 120px; }
.llist li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface-2); border-radius: 6px; margin: 4px 0; }
.llist li label { display: flex; flex-direction: row; gap: 6px; align-items: center; color: var(--ink); margin: 0; }
.llist li.off { opacity: .5; }
.lgrip { cursor: grab; touch-action: none; font-size: 18px; color: var(--muted); padding: 0 4px; }
.llist li.dragging { outline: 2px solid var(--accent); }
.ggroups:not(.sorting) .ggroup.solo .ghead { display: none; }

.pcol, .pblock { min-width: 0; }
.pblock input:not([type=checkbox]):not([type=radio]), .pblock select, .pblock textarea { max-width: 100%; }
.pblock .addbox form { max-width: 100%; }
.pblock code { overflow-wrap: anywhere; }
/* Foto-Menü schwebt über allem */
.mtools-pop { z-index: 50; }
/* Lightbox-Zoom */
.lightbox { overflow: hidden; touch-action: none; }
.lightbox img { cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; will-change: transform; }
.lightbox.zoomed img { cursor: grab; }
.lightbox.zoomed img:active { cursor: grabbing; }
.lightbox.zoomed figcaption { visibility: hidden; }
.lightbox button { z-index: 2; }
.lightbox button.lb-prev, .lightbox button.lb-next, .lightbox button.lb-close { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.lb-zoom { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; color: #ddd; background: rgba(0,0,0,.55); padding: 3px 12px; border-radius: 12px; font-size: .8rem; pointer-events: none; white-space: pre; }
/* 🎬 Szenenleiste: Liste / Schema / Live – zentriert */

/* ✎ Werkzeugleiste neben dem Programmbild */

/* breitere Seitenleisten auf großen Bildschirmen */

/* sehr breite Bildschirme: Werkzeuge in zwei Spalten, damit sie nicht höher als das Programmbild werden */

/* 🎮 Konsolen-Leitfaden */

   

 

 

 

   
 

/* ⚡ Sicherheitsprüfung */

  
 
 
 

 
 

 
/* 🔩 Öffnen & Schließen */

 

@keyframes tdpulse { 50% { box-shadow: 0 0 0 10px rgba(224,136,80,.45); } }

  

  
 
 
 

 

 

 
  

 

 
 

  

 

/* 🔩 Öffnen-Fenster im Studio */

 

/* 📷 Kamera-Einstellungen im Studio */
 

 

 

 
 

/* 💶 Handel */

 
 

.kpis .card b { display: block; font-size: 1.4rem; }

  
/* 🖼 Medium 2 */
 

 

/* 🏷 Beschriftungen */

/* ⟲ Wiederholung */
 
/* 🧍 Hintergrund */
  
/* ✅ Check */

  
 
  

/* 📷 Öffnen: Live-Kamera */

 

 
 

 
 

 @keyframes tdflash { to { opacity: 0; } }

  
 
 
  
 

/* 🔩 Öffnen: Fotogröße / mehrere Schritte nebeneinander */
  

   

main.wrap:has(.tdsteps.gridded) { max-width: none; }

/* ══════ Aufgeräumt: Kopfzeile, Tab-Leiste am Handy, Startseite ══════ */

.tabbar { display: none; }
.quick.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.quick.tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px 10px; text-align: center; font-size: .78rem; line-height: 1.2; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.quick.tiles a i { font-style: normal; font-size: 1.4rem; line-height: 1; }
.quick.tiles a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }

@keyframes sheetin { from { transform: translateY(14px); opacity: 0; } }

@media (max-width: 760px) {
  .topbar { border-bottom: 1px solid #2a2b2e; box-shadow: 0 1px 0 rgba(224,136,80,.55); }
  .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand area actions" "search search search"; gap: 10px; min-height: 0; padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 10px; }
  .brand { grid-area: brand; font-size: 1.05rem; min-width: 0; } .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brand svg { width: 24px; height: 24px; flex: none; }
  .mainnav { display: none; }
  
    
  
  .topsearch { grid-area: search; order: 0; max-width: none; margin: 0; flex: none; }
  .topsearch input { padding: 9px 14px; border-radius: 12px; font-size: 16px; background: #222326; border-color: #303135; }
  .topactions { grid-area: actions; gap: 6px; }
  .newproj { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; line-height: 1; font-weight: 500; } .newproj span { display: none; }
  .topactions .iconlink { display: none; }
  .timerpill .tp-title { display: none; }
  main.wrap { padding-top: 10px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sitefoot { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(22,23,25,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid #2c2d31; padding: 6px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar > a, .tabmore > summary { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8f8d86; font-size: .66rem; font-weight: 600; padding: 4px 0 2px; text-decoration: none; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar > a { flex: 1; } .tabmore { flex: 1; } .tabmore > summary::-webkit-details-marker { display: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabmore > summary svg { fill: currentColor; stroke: none; }
  .tabbar > a.on, .tabmore[open] > summary { color: #e08850; }
  .tabsheet { position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); background: #1e1f22; border: 1px solid #34353a; border-radius: 18px; padding: 12px 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45), 0 -10px 40px rgba(0,0,0,.4); animation: sheetin .18s ease-out; max-height: 70vh; overflow-y: auto; }
  .tabsheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .tabsheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 2px 9px; border-radius: 12px; color: #dddbd5; font-size: .72rem; text-align: center; text-decoration: none; line-height: 1.2; }
  .tabsheet-grid a i { font-style: normal; font-size: 1.5rem; line-height: 1; }
  .tabsheet-grid a.on, .tabsheet-grid a:active { background: #2b2c30; }
}
@media (max-width: 600px) {
  .grid-2-1 { gap: 22px; }
  .sechead h2 { font-size: 1.15rem; }
  
  
  
  
  
  
  
  
  
  
  
  .quick.tiles { grid-template-columns: repeat(4, 1fr); gap: 6px; } .quick.tiles a { font-size: .68rem; padding: 10px 2px 8px; border-radius: 10px; }
}
/* ══════ 👥 Kunden ══════ */
.custsearch { margin: 0 0 14px; } .custsearch input { padding: 9px 12px; }
.custlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.custrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); margin: 0; }
.custrow:hover { text-decoration: none; border-color: var(--accent); }
.custav { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.custav.big { width: 60px; height: 60px; font-size: 1.6rem; }
.custmain { flex: 1; min-width: 0; } .custmain b { font-size: 1.02rem; } .custcontact { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custnums { text-align: right; flex: none; line-height: 1.5; }
.custhead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .custhead h1 { margin: 0; } .custhead p { margin: 2px 0 0; }
.custactions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .custactions .btn.disabled { opacity: .5; }
.custkpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .custkpis .card { padding: 12px 14px; margin: 0; } .custkpis b { font-size: 1.25rem; }
.custjobs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.custjob { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--ink); margin: 0; } .custjob:hover { text-decoration: none; border-color: var(--accent); }
.custjob-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.custnotes { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }
.custhint { display: block; color: var(--muted); font-weight: 400; }
/* ══════ ✉ Nachricht ══════ */
.cmail-tpl { display: flex; flex-wrap: wrap; gap: 6px; } .cmail-tpl .chip { cursor: pointer; }
.cmail textarea { width: 100%; font: inherit; line-height: 1.5; }
/* ══════ ⚡ Schnellerfassung ══════ */
body.qs-open { overflow: hidden; }
.qsheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: flex-end; padding: 64px 16px 16px; }
.qsheet[hidden] { display: none; }
.qsheet-in { background: var(--surface); color: var(--ink); width: min(440px, 100%); max-height: calc(100vh - 90px); overflow-y: auto; border-radius: 16px; padding: 14px 16px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 12px; animation: sheetin .16s ease-out; }
.qs-h { display: flex; justify-content: space-between; align-items: center; } .qs-x { background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
.qs-proj { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); } .qs-proj select { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); padding: 8px 10px; border-radius: 10px; }
.qs-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qs-acts button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 .74rem/1.2 var(--sans); cursor: pointer; }
.qs-acts button i { font-style: normal; font-size: 1.5rem; line-height: 1; } .qs-acts button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.qs-panel { display: flex; flex-direction: column; gap: 8px; } .qs-panel[hidden] { display: none; }
.qs-panel input, .qs-panel textarea, .qs-panel select { width: 100%; font-size: 16px; }
.qs-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .qs-row > input, .qs-row > select { flex: 1 1 70px; width: auto; min-width: 0; }
 
.qs-prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .qs-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.qs-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.qs-links a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: .88rem; font-weight: 600; } .qs-links a:hover { text-decoration: none; background: var(--accent-soft); }
.qs-links a i { font-style: normal; font-size: 1.15rem; }
.qs-msg { font-size: .9rem; min-height: 1.2em; } .qs-msg.ok { color: var(--ok); font-weight: 600; } .qs-msg.bad { color: var(--danger); }
@media (max-width: 760px) {
  .qsheet { align-items: flex-end; padding: 0; }
  .qsheet-in { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
/* ══════ 🦷 Geräte beim Kunden ══════ */
.cdevlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cdevrow { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--ink); margin: 0; } .cdevrow:hover { text-decoration: none; border-color: var(--accent); }
.cdevlast { text-align: right; flex: none; }
.cdevhead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .cdevhead h1 { margin: 0 0 6px; }
.cdevicon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: var(--accent-soft); }
.cdevmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cdeveinsatz h2 { margin: 0; }
.cdevphotos input { padding: 10px; border: 2px dashed var(--line); border-radius: 10px; background: var(--surface-2); }
.cdevgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-bottom: 18px; }
.cdevgal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
/* ══════ 💼 Berufliche Aufträge als Liste ══════ */
.psearch { display: flex; gap: 8px; margin: 0 0 16px; } .psearch input { flex: 1; min-width: 0; padding: 10px 14px; font-size: 16px; border-radius: 10px; }
.bizsec { margin-bottom: 26px; } .filters.tight { margin: 0; }
.bizlist { overflow: hidden; margin-bottom: 12px; }
.bizrow { display: grid; grid-template-columns: 92px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.bizrow:first-child { border-top: 0; } a.bizrow:hover { background: var(--surface-2); text-decoration: none; }

.bz-date { color: var(--muted); font-size: .82rem; }
.bz-dev { min-width: 0; } .bz-dev b { font-weight: 650; } .bz-sn { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.bz-fault { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-plan { display: block; font-size: .8rem; font-weight: 600; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planline { color: var(--ink); font-weight: 600; } /* FE-1.9.33: geplant in normaler Schriftfarbe (dunkel: weiß) */
.createdline { color: var(--muted); }
.bz-office { display: block; font-size: .8rem; font-weight: 600; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-cust { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .bz-cust small { display: block; color: var(--muted); font-size: .76rem; }
.bz-ticket { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-st { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; } .bz-st small { color: var(--muted); font-size: .76rem; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 6px 0 20px; }
@media (max-width: 760px) {
  
  .bizrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dev st" "cust st" "meta meta"; gap: 2px 10px; padding: 11px 14px; }
  .bz-dev { grid-area: dev; } .bz-cust { grid-area: cust; font-size: .85rem; white-space: nowrap; } .bz-cust small { display: inline; margin-left: 6px; }
  .bz-st { grid-area: st; align-items: flex-end; align-self: start; }
  .bz-date, .bz-ticket { grid-row: 3; font-size: .78rem; } .bz-date { grid-column: 1; } .bz-ticket { grid-column: 2; justify-self: end; }
  .bz-fault { display: none; }
  .psearch .btn { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 760px) { .hide-m { display: none !important; } main.wrap > .sechead h1, .sechead h1 { font-size: 1.45rem; } }
/* ══════════════════════════════════════════════════════════════
   Design B „Praxis“ – hell, ruhig, Petrol-Akzent, Manrope (7.19)
   ══════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Manrope'; src: url('manrope-latin-wght-normal.woff2') format('woff2-variations'), url('manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('manrope-latin-ext-wght-normal.woff2') format('woff2-variations'), url('manrope-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Farben nach dem Firmenauftritt: Grün #00843D, Dunkelgrün #016730, Mint #E3F7EC, Gelb #EFBB28 */
  --bg: #F4F8F5; --surface: #FFFFFF; --surface-2: #EEF6F1; --ink: #232527; --muted: #56605B; --line: #DCE8E0;
  --accent: #00843D; --accent-ink: #FFFFFF; --accent-soft: #E3F7EC; --accent-text: #016730; --accent-2: #EFBB28;
  --pcb: #016730; --pcb-2: #015426;
  --ok: #2E7D4F; --warn: #B7791F; --danger: #B4372F;
  --st-ok: #00843D; --st-ok-ink: #016730; --st-work: #D97706; --st-work-ink: #8A4B05; --st-wait: #6D4AA8; --st-wait-ink: #55388A; --st-idle: #8A9AA1;
  --radius: 14px; --shadow: 0 1px 2px rgba(1,103,48,.07);
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hdr-bg: #FFFFFF; --hdr-ink: #282A2C; --hdr-muted: #4A524E; --hdr-field: #EEF6F1; --hdr-line: #DCE8E0; --hdr-on: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1411; --surface: #151D19; --surface-2: #1B2620; --ink: #E6EFEA; --muted: #94A79C; --line: #25342C;
    --accent: #3CC97E; --accent-ink: #052313; --accent-soft: #123022; --accent-text: #5FDB98; --accent-2: #F2C443;
    --pcb: #0F4A2A; --pcb-2: #0B3A21;
    --ok: #4FBF83; --st-ok: #4FBF83; --st-ok-ink: #8FD3AA; --st-work: #F0A23B; --st-work-ink: #F5C27A; --st-wait: #9B7FE0; --st-wait-ink: #C2B2F2; --st-idle: #6C7F86;
    --shadow: none;
    --hdr-bg: #121A17; --hdr-ink: #E6EFEA; --hdr-muted: #A3B5AA; --hdr-field: #1B2620; --hdr-line: #22302A; --hdr-on: #25342C;
  }
}
body { font-family: var(--sans); font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent-text); }
h1, h2 { font-weight: 800; letter-spacing: -.02em; }
h3 { font-weight: 700; }
.btn { border-radius: 11px; }
.btn-sm { border-radius: 9px; }
.btn-accent { color: var(--accent-ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
input, select, textarea { border-radius: 10px; }
.card { border-radius: var(--radius); }
.flash { border-radius: 12px; }

/* Kopfzeile hell */
.topbar { background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); box-shadow: none; }
.brand { color: var(--hdr-ink); font-weight: 800; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: var(--accent); color: #fff; flex: none; }
@media (prefers-color-scheme: dark) { .brand svg { color: var(--accent-ink); } }
.mainnav a { color: var(--hdr-muted); font-weight: 600; border-radius: 10px; }
.mainnav a:hover { background: var(--hdr-field); color: var(--hdr-ink); }
.mainnav a.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; font-weight: 700; }

.topsearch input { background: var(--hdr-field); border: 1px solid transparent; color: var(--hdr-ink); border-radius: 12px; padding: 9px 14px; }
.topsearch input::placeholder { color: var(--hdr-muted); }
.topsearch input:focus { background: var(--surface); outline: 2px solid var(--accent); }
.iconlink { color: var(--hdr-muted); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--hdr-line); font-size: 1.1rem; }
.iconlink:hover { text-decoration: none; color: var(--hdr-ink); background: var(--hdr-field); }
.newproj { border-radius: 11px; font-weight: 700; }
.timerpill { border-radius: 11px; }

/* Desktop: Kopf mit zentriertem Menü (breit: eine Zeile, sonst Menü in zweiter Zeile) */
.toptools { display: flex; align-items: center; gap: 10px; }
.toptools .topsearch { margin: 0; }
.mainnav a[hidden], .pm-i[hidden] { display: none !important; }
.menuedit { background: none; border: 1px dashed transparent; color: var(--hdr-muted); border-radius: 10px; width: 34px; height: 34px; font-size: .95rem; cursor: pointer; opacity: .55; flex: none; }
.menuedit:hover, .menuedit:focus-visible { opacity: 1; border-color: var(--hdr-line); background: var(--hdr-field); }
@media (min-width: 761px) {
  .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "nav nav"; gap: 6px 18px; padding-top: 10px; padding-bottom: 6px; min-height: 0; }
  .brand { grid-area: brand; min-width: 0; }
  .toptools { grid-area: tools; justify-self: end; }
  .toptools .topsearch { flex: 0 1 260px; width: 260px; }
  .mainnav { grid-area: nav; justify-self: stretch; justify-content: safe center; align-items: center; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; padding: 2px 0; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; padding: 7px 13px; }
}
@media (min-width: 2200px) {
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "brand nav tools"; padding-top: 8px; padding-bottom: 8px; min-height: 64px; }
  .mainnav { justify-self: center; overflow: visible; }
  .mainnav a { font-size: 1rem; padding: 8px 15px; }
  .toptools .topsearch { flex-basis: 320px; width: 320px; }
}

/* Projektmenü zentriert oben */
.pmenu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 4px auto 14px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.pmenu .pm-i { display: inline-flex; } .pmenu .pm-i form { margin: 0; display: inline-flex; }
.pmenu .btn { border-color: transparent; background: var(--surface-2); }
.pmenu .btn:hover { border-color: var(--accent); }

.pmenu .btn-danger { background: transparent; border-color: currentColor; }
.pmenu .menuedit { color: var(--muted); border-radius: 10px; }
.menuedit-modal .lmodal-in { width: min(460px, 94vw); }
.mlist { min-height: 0; } .mlist li label { flex: 1; min-width: 0; } .mlist li .grow { display: none; } .mlist li { padding: 4px 8px; }
.mlist .mup, .mlist .mdown { color: var(--muted); font-size: .8rem; padding: 2px 6px; }
.tabsheet-edit { display: block; margin: 10px auto 2px; color: var(--muted); }
@media (max-width: 760px) {
  .toptools { display: contents; }
  .checkline { white-space: normal; }
  .pmenu { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: auto; max-width: none; margin: 0 -16px 12px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
  .pmenu::-webkit-scrollbar { display: none; }
  .pmenu .btn { white-space: nowrap; }
}

/* Handy */
@media (max-width: 760px) {
  .topbar { border-bottom: 1px solid var(--hdr-line); box-shadow: none; }
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "search search" "area area"; gap: 12px; padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 12px; }
  .brand { font-size: 1.06rem; } .brand svg { width: 34px; height: 34px; padding: 7px; }
  
  
   
  
  .topsearch input { background: var(--hdr-field); border-color: transparent; border-radius: 14px; padding: 11px 14px; }
  .topactions .iconlink { display: grid; width: 40px; height: 40px; border-radius: 12px; }
  .newproj { position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; border-radius: 18px; font-size: 1.8rem; font-weight: 500; box-shadow: 0 8px 24px rgba(15,118,110,.35); }
  .tabbar { background: color-mix(in srgb, var(--hdr-bg) 94%, transparent); border-top: 1px solid var(--hdr-line); }
  .tabbar > a, .tabmore > summary { color: var(--hdr-muted); font-size: .7rem; }
  .tabbar > a.on, .tabmore[open] > summary { color: var(--accent-text); font-weight: 800; }
  .tabsheet { background: var(--surface); border-color: var(--line); box-shadow: 0 0 0 100vmax rgba(10,20,24,.4), 0 -10px 40px rgba(10,20,24,.2); }
  .tabsheet-grid a { color: var(--ink); }
  .tabsheet-grid a.on, .tabsheet-grid a:active { background: var(--accent-soft); color: var(--accent-text); }
  main.wrap { padding-top: 14px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  main.wrap > .sechead:first-child, main.wrap > .flash + .sechead { margin-top: 4px; }
  body.qs-open .newproj { display: none; }
}

/* Segment-Filter */
.segment { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.segment a { color: var(--muted); font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 10px; }
.segment a:hover { color: var(--ink); text-decoration: none; }
.segment a.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(18,32,42,.12); }
@media (prefers-color-scheme: dark) { .segment a.on { background: var(--line); } }
.psearch input { background: var(--surface); border-radius: 14px; padding: 12px 16px; }

/* Berufliche Aufträge als Karten */
.bizlist { display: flex; flex-direction: column; gap: 8px; overflow: visible; background: none; border: 0; box-shadow: none; }
.bizgroup { margin: 12px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bizgroup:first-child { margin-top: 0; }
.bizrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 150px 140px; grid-template-areas: "dev cust ticket st" "dev cust date st"; gap: 2px 16px; padding: 12px 16px; background: var(--surface); border: 1px solid transparent; border-top: 1px solid transparent; border-radius: 14px; box-shadow: var(--shadow); font-size: .92rem; }
@media (prefers-color-scheme: dark) { .bizrow { border-color: var(--line); } }
a.bizrow:hover { background: var(--surface); border-color: var(--accent); }
.bizrow:first-child { border-top: 1px solid transparent; }
.bz-dev { grid-area: dev; align-self: center; } .bz-dev b { display: block; font-weight: 700; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-sn { font-size: .78rem; }
.bz-cust { grid-area: cust; align-self: center; white-space: nowrap; } .bz-cust small { font-size: .78rem; }
.bz-ticket { grid-area: ticket; align-self: end; color: var(--hdr-muted); }
.bz-date { grid-area: date; align-self: start; font-size: .78rem; }
.bz-st { grid-area: st; align-self: center; justify-self: end; flex-direction: row; align-items: center; }
.stdot { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.stdot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.st-ok { color: var(--st-ok-ink); } .st-ok::before { background: var(--st-ok); }
.st-work { color: var(--st-work-ink); } .st-work::before { background: var(--st-work); }
.st-wait { color: var(--st-wait-ink); } .st-wait::before { background: var(--st-wait); }
.st-idle { color: var(--muted); } .st-idle::before { background: var(--st-idle); }
@media (max-width: 760px) {
  .bizlist { gap: 10px; }
  .bizrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dev st" "cust date" "ticket ticket"; gap: 2px 10px; padding: 12px 14px; border-radius: 16px; }
  .bz-dev b { font-size: .96rem; } .bz-dev .bz-sn { display: none; }
  .bz-cust { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; } .bz-cust small { display: inline; margin-left: 0; } .bz-cust small::before { content: " · "; }
  .bz-st { grid-area: st; align-self: start; } .stdot { font-size: .76rem; gap: 5px; }
  .bz-date { grid-row: auto; grid-column: auto; grid-area: date; justify-self: end; align-self: center; }
  .bz-ticket { grid-row: auto; grid-column: auto; grid-area: ticket; justify-self: start; align-self: start; font-size: .76rem; }
  .bz-ticket:empty { display: none; }
}

/* Karten & Kleinkram im B-Stil */

.custrow, .cdevrow, .custjob { border-radius: 14px; }
.custav, .cdevicon { background: var(--accent-soft); color: var(--accent-text); }
.quick.tiles a { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tabs a.on, .tabs .on { color: var(--accent-text); }
/* ══════ 🦷 Vor Ort erfassen + Handy für den Außendienst (7.21) ══════ */
.show-m { display: none !important; }
.vorort { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto 30px; }
.vo-step { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.vo-step h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; }
.vo-step h2 b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .9rem; flex: none; }
.vo-step input, .vo-step select, .vo-step textarea { font-size: 16px; width: 100%; }
.vo-step input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.vo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vo-picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.vo-picked[hidden], .vo-pick[hidden], .vo-devform[hidden] { display: none; }
.vo-pname { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vo-pname b { font-size: 1.05rem; } .vo-pname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-pick { display: flex; flex-direction: column; gap: 10px; }
.vo-pick > input[type=search] { padding: 12px 14px; border-radius: 12px; }
.vo-sug, .vo-devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.vo-cust, .vo-dev { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.vo-cust b, .vo-dev b { font-weight: 700; font-size: .95rem; line-height: 1.25; } .vo-cust small, .vo-dev small { color: var(--muted); font-size: .78rem; }
.vo-cust:active, .vo-dev:active { transform: scale(.98); }
.vo-dev.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.vo-devnew { justify-content: center; font-weight: 700; color: var(--accent-text); }
.vo-new > summary { cursor: pointer; font-weight: 700; color: var(--accent-text); padding: 6px 0; list-style: none; } .vo-new > summary::-webkit-details-marker { display: none; }
.vo-new[open] > summary { margin-bottom: 8px; }
.vo-photobtn { position: relative; justify-content: center; width: 100%; min-height: 56px; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 800; flex-direction: row; overflow: hidden; }
.vo-photobtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.vo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; } .vo-thumbs:empty { display: none; }
.vo-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.vo-thumb img, .vo-thumb video { width: 100%; height: 100%; object-fit: cover; }
.vo-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.vo-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; } .vo-opts .checkline { color: var(--ink); font-size: .95rem; }
.vo-bar { position: sticky; bottom: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.vo-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; } .vo-btns .btn { justify-content: center; min-height: 50px; font-size: 1rem; border-radius: 14px; }
.vo-msg { font-size: .92rem; min-height: 0; } .vo-msg:empty { display: none; } .vo-msg.ok { color: var(--ok); font-weight: 700; } .vo-msg.bad { color: var(--danger); font-weight: 600; }
.qs-vorort { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.qs-vorort a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.qs-vorort a:hover { text-decoration: none; border-color: var(--accent); }
.qs-vorort i { font-style: normal; font-size: 1.6rem; line-height: 1; } .qs-vorort span { display: flex; flex-direction: column; line-height: 1.2; } .qs-vorort small { color: var(--muted); font-size: .76rem; }
.qs-vorort .qs-vo-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .qs-vorort .qs-vo-main small { color: inherit; opacity: .8; }
.vo-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 6px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(15,118,110,.25); }
.vo-cta:hover { text-decoration: none; } .vo-cta i { font-style: normal; font-size: 1.9rem; line-height: 1; } .vo-cta span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .vo-cta b { font-size: 1.08rem; } .vo-cta small { opacity: .85; } .vo-cta em { font-style: normal; font-size: 1.8rem; opacity: .7; }

@media (max-width: 760px) {
  .show-m { display: flex !important; }
  /* + oben rechts statt schwebendem Knopf */
  .newproj { position: static; width: 42px; height: 42px; border-radius: 12px; font-size: 1.6rem; box-shadow: none; order: 2; }
  .topactions { gap: 8px; } .topactions .iconlink { order: 1; }
  main.wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Tab-Leiste über dem Home-Indikator */
  .tabbar { padding: 6px 4px max(8px, env(safe-area-inset-bottom)); }
  .tabsheet { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tabbar > a, .tabmore > summary { font-size: .72rem; min-height: 46px; }
  .topbar-inner { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .qsheet-in { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .qs-vorort { grid-template-columns: 1fr; } .qs-vorort a { padding: 14px; } .qs-vorort .qs-vo-main b { font-size: 1.05rem; }
  .home-m { margin-top: 10px; }
  .vo-sug, .vo-devs { grid-template-columns: 1fr 1fr; }
  .vo-2 { grid-template-columns: 1fr; }
  .vorort { gap: 12px; margin-bottom: 0; }
  .vo-step { padding: 14px; }
  .vo-bar { bottom: calc(64px + env(safe-area-inset-bottom)); margin: 0 -16px; padding: 10px 16px; }
}
/* 📍 Praxis per GPS finden */
.vo-geobtn { justify-content: center; width: 100%; min-height: 48px; border-radius: 12px; font-weight: 700; border-color: var(--accent); color: var(--accent-text); background: var(--surface); }
.vo-geobtn small { font-weight: 500; color: var(--muted); }
.vo-geo { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.vo-geo[hidden], .vo-geogrp[hidden] { display: none; }
.vo-geogrp { display: flex; flex-direction: column; gap: 6px; } .vo-geogrp > b { color: var(--muted); }
.vo-geostat { margin: 0; white-space: pre-line; } .vo-geostat.ok { color: var(--ok); font-weight: 600; } .vo-geostat.bad { color: var(--danger); font-weight: 600; }
.vo-near { border-color: var(--accent); background: var(--accent-soft); }
.vo-poi b::before { content: "📍 "; }
.vo-geohint { margin: 0; }
/* Kunden-Kennzahlen als Filter */
a.kpilink { color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s; }
a.kpilink:hover { text-decoration: none; border-color: var(--accent); }
a.kpilink.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
a.kpilink b::after { content: " ›"; color: var(--muted); font-weight: 500; font-size: .8em; }
#auftraege { scroll-margin-top: 12px; }
@media (max-width: 760px) { #auftraege .segment { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); } #auftraege .segment a { text-align: center; padding: 7px 4px; } }
html { scroll-padding-top: calc(var(--hdr-h, 0px) + 10px); }
#auftraege { scroll-margin-top: 0; }
.grid-2-1 > * { min-width: 0; }
.custjob > .grow { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .custjob { flex-wrap: wrap; } .custjob-r { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; } }
@media (max-width: 760px) {
  .topbar { transition: transform .22s ease; will-change: transform; }
  body.hdr-hide .topbar { transform: translateY(calc(-100% - 2px)); }
  body.qs-open .topbar { transform: none; }
}
/* 📱 Beruflicher Einsatz am Handy: Kunde · Gerät · Serviceschein · Datum · Notizen · Fotos */
.svcm { display: none; }
@media (max-width: 760px) {
  .svcm { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 18px; }
  body:has(#svcm):not(.svcm-full) main.wrap > .pmenu,
  body:has(#svcm):not(.svcm-full) main.wrap > .crumbs,
  body:has(#svcm):not(.svcm-full) main.wrap > .phead,
  body:has(#svcm):not(.svcm-full) main.wrap > .tabs,
  body:has(#svcm):not(.svcm-full) main.wrap > .pcols { display: none !important; }
  .svcm-cust, .svcm-dev { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
  .svcm-cust:hover, .svcm-dev:hover { text-decoration: none; }
  .svcm-cust > span:nth-child(2), .svcm-dev > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .svcm-cust b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
  .svcm-dev b { font-size: 1.08rem; font-weight: 700; }
  .svcm-cust small, .svcm-dev small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; }
  .svcm-dev small { font-family: inherit; }
  .svcm-cust em, .svcm-dev em { font-style: normal; font-size: 1.6rem; color: var(--muted); }
  .svcm-cust .custav { width: 46px; height: 46px; font-size: 1.2rem; }
  .svcm-facts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
  .svcm-facts > div { background: var(--surface); padding: 10px 12px; min-width: 0; }
  .svcm-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .svcm-facts dd { margin: 3px 0 0; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; } .svcm-facts .stdot { font-size: .88rem; }
  .svcm-facts .svcm-wide { grid-column: span 2; } .svcm-facts .svcm-wide:last-child:not(.svcm-bill), .svcm-facts .svcm-full { grid-column: 1 / -1; }
  .svcm .officenote { margin: 0; }
  .svcm-notes, .svcm-photos { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
  .svcm h3 { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .svcm-notes p { margin: 0 0 8px; line-height: 1.5; } .svcm-notes p:last-child { margin-bottom: 0; }
  .svcm-entry { border-top: 1px solid var(--line); padding-top: 8px; }
  .svcm-gal .gallery { margin: 0; }
  .svcm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .svcm-acts .btn { justify-content: center; min-height: 46px; border-radius: 12px; }
  .svcm-acts .btn-accent { grid-column: 1 / -1; min-height: 52px; font-size: 1rem; }
}
@media (max-width: 760px) { .svcm h3 { display: flex; justify-content: space-between; align-items: center; } .svcm-addnote { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--accent-text); font-size: .85rem; } }
/* ══════ 7.24 Außendienst: QR, Typenschild, Fristen, Teile, Ähnliche, Tag, Bericht ══════ */
.qrscan { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-items: center; }
.qrscan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qrscan-frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); border: 3px solid #2BB3A3; }
.qrscan-msg { position: absolute; top: calc(env(safe-area-inset-top) + 24px); left: 16px; right: 16px; text-align: center; color: #fff; font-weight: 700; margin: 0; }
.qrscan-x { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 28px); left: 50%; transform: translateX(-50%); min-width: 160px; justify-content: center; background: rgba(255,255,255,.92); color: #111; }
.lf-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 95; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; max-width: calc(100vw - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: sheetin .18s ease-out; }
.vo-badge { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44; border: 0; border-radius: 14px; padding: 12px 14px; background: #B7791F; color: #fff; font: 700 .9rem var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (min-width: 761px) { .vo-badge { left: auto; right: 20px; bottom: 20px; max-width: 420px; } }
.vo-findbtns { gap: 8px; } .vo-findbtns .vo-geobtn { flex-direction: column; gap: 0; line-height: 1.25; }

   
  

 
 
.vo-parts { display: flex; flex-direction: column; gap: 8px; }
.vo-part { display: flex; flex-direction: column; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.vo-partl { display: flex; align-items: center; gap: 8px; }
.vo-partx { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .vo-partx > input { flex: 1 1 9em; min-width: 0; padding: 6px 8px; font-size: .9rem; }
.vo-partx .checkline { margin: 0; font-size: .9rem; } .vo-rl { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; margin: 0; font-size: .9rem; color: var(--ink); } .vo-rl input { width: 4.5em; padding: 6px; text-transform: uppercase; }
.vo-part .grow { min-width: 0; }
.vo-partsug { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; } .vo-partsug:empty { display: none; }
.vo-free { border-style: dashed; }
.qtybox { display: inline-flex; align-items: center; gap: 6px; } .qtybox b { min-width: 2ch; text-align: center; } .qtybox .btn { padding: 2px 9px; }

 

 
 
 

.partlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.partrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 !important; }
.partrow .grow { min-width: 0; flex: 1 1 200px; }
.partrow.low { border-color: #B7791F; box-shadow: inset 4px 0 0 #B7791F; }
.partrow .partedit { flex-basis: 100%; } .partrow .partedit:not([open]) { flex-basis: auto; }
.partedit > summary { list-style: none; cursor: pointer; } .partedit > summary::-webkit-details-marker { display: none; }
.partedit[open] { padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.reorder h3 { margin: 0; }
.daynav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; } .daynav input { width: auto; }
.daykpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; } .daykpis .card { padding: 10px 14px; margin: 0; } .daykpis b { font-size: 1.15rem; }
.dayjobs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.dayjob { padding: 0; margin: 0 !important; overflow: hidden; }
.dj-main { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: var(--ink); } .dj-main:hover { text-decoration: none; background: var(--surface-2); }
.dj-main .grow { min-width: 0; } .dj-time { color: var(--muted); font-size: .85rem; padding-top: 2px; }
.dj-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.dj-times label { flex-direction: row; align-items: center; gap: 6px; } .dj-times input { width: 70px; padding: 4px 8px; }
.srep { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .srep .card { margin: 0; }
.jsvc { margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.jsvc-parts li { display: flex; align-items: center; gap: 6px; padding: 3px 0; } .jsvc-parts form.inline { margin-left: auto; }
.jsvc-add > summary { list-style: none; cursor: pointer; color: var(--accent-text); font-weight: 700; } .jsvc-add > summary::-webkit-details-marker { display: none; }
.jsvc-add[open] > summary { margin-bottom: 8px; }

  

@media (max-width: 760px) {
  .srep { grid-template-columns: 1fr; }
  .daykpis { grid-template-columns: 1fr 1fr; }
  .svcm-block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
  .svcm .jsvc { margin: 0; }
  
  .svcm-acts2 .btn { min-height: 46px; }
  
  
}
.segment a { white-space: nowrap; }

.card.empty .btn { white-space: normal; text-align: left; height: auto; }
/* ══════ 📓 Gerätelogbuch ══════ */
.glog .sechead { flex-wrap: wrap; }
.glog-pin { padding: 10px 14px; margin: 0 0 10px; border-radius: 12px; background: color-mix(in srgb, #F0A23B 16%, var(--surface)); border: 1px solid color-mix(in srgb, #F0A23B 45%, var(--line)); font-size: .95rem; }
.glog-new { margin: 0 0 14px !important; gap: 10px; }
.glog-new input[name=title], .glog-new textarea { font-size: 16px; width: 100%; }
.glog-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.glog-kinds .chip { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; padding: 5px 11px; flex-direction: row; }
.glog-kinds .chip input { position: absolute; opacity: 0; pointer-events: none; width: 0; }
.glog-kinds .chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.glog-ids { display: flex; flex-wrap: wrap; gap: 8px 12px; } .glog-ids label { display: flex; align-items: center; gap: 6px; flex: 1 1 12em; min-width: 0; } .glog-ids input { flex: 1; min-width: 0; } .glog-ids label:last-child { flex: 0 1 9em; }
.glog-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.glog-photo { position: relative; overflow: hidden; flex-direction: row; }
.glog-photo input { position: absolute; inset: 0; opacity: 0; font-size: 0; cursor: pointer; }
.glog-date { flex-direction: row; align-items: center; gap: 6px; margin-left: auto; } .glog-date input { width: auto; }
.glog-tl .glog-item { margin: 0 0 10px; }
.glog-item[hidden] { display: none; }
.glog-item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.glog-item header h3 { margin: 0; flex: 1 1 200px; }
.glog-ic { font-size: 1rem; }
.glog-job { border-left: 4px solid var(--accent); }
.glog-fehler { border-left: 4px solid #C2410C; } .glog-hinweis { border-left: 4px solid #F0A23B; } .glog-wartung, .glog-umbau, .glog-update { border-left: 4px solid var(--st-wait); }
.glog-note { margin: 4px 0; }
.glog-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.glog-thumbs a, .glog-thumbs video, .glog-more { aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: block; width: 100%; object-fit: cover; background: var(--surface-2); }
.glog-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.glog-more { display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.glog-open { display: inline-block; margin-top: 4px; font-weight: 700; }
#einsatzBox .cdeveinsatz { margin-top: 10px; }
@media (max-width: 760px) {
  .glog-filter { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); } .glog-filter a { text-align: center; padding: 7px 4px; font-size: .84rem; }
  .glog-kinds { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; } .glog-kinds .chip { white-space: nowrap; flex: none; }
  .glog-row .glog-photo { flex: 1; justify-content: center; min-height: 46px; }
  .glog-row .btn-accent { flex: 1 1 100%; justify-content: center; min-height: 48px; }
  .glog-date { margin-left: 0; }
}
@media (max-width: 760px) {
  .glog-row .glog-photo { flex: 1 1 100%; }
  .glog-row .glog-files:empty { display: none; }
  .glog-date { flex: 1 1 100%; justify-content: space-between; } .glog-date input { flex: 1; max-width: 60%; }
}
/* 🔲 QR-Scan-Knopf oben rechts */
.qrbtn { background: none; cursor: pointer; padding: 0; }
.qrbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .topactions .qrbtn { display: grid; width: 42px; height: 42px; border-radius: 12px; order: 1; color: var(--accent-text); border-color: var(--accent); } .topactions .qrbtn svg { width: 24px; height: 24px; } }
@media (max-width: 760px) { .topactions .iconlink:not(.qrbtn) { order: 0; } }
/* ‹ Zurück am Handy */
.backbtn { display: none; }
@media (max-width: 760px) {
  body.has-back .topbar-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back brand actions" "search search search" "area area area"; column-gap: 8px; }
  body.has-back .backbtn { grid-area: back; display: grid; place-items: center; width: 42px; height: 42px; margin-left: -6px; border: 0; border-radius: 12px; background: var(--hdr-field); color: var(--hdr-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .backbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  body.has-back .brand svg { display: none; }
  body.has-back .brand { font-size: 1rem; }
}

#lightbox { z-index: 80; }
.qrscan-bar { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 24px); left: 16px; right: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.qrscan-bar .qrscan-x { position: static; transform: none; }
.qrscan-cam { width: auto; max-width: min(360px, 100%); background: rgba(255,255,255,.92); color: #111; border-radius: 12px; padding: 9px 12px; font-size: 15px; }
.qrscan-msg { text-shadow: 0 1px 4px rgba(0,0,0,.7); }
@media (max-width: 760px) { .homebiz { margin-top: 8px; } }
.qs-proj[hidden] { display: none !important; }

/* FE-1.1: Konten */
.ulist { padding: 0; margin: 0; }
.ulist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.ulist li:last-child { border-bottom: 0; }
.ulist li > .grow { min-width: 0; overflow-wrap: anywhere; }
.ulist a { color: inherit; }
.narrow-form { max-width: 560px; }
.callout code.big { font-size: 1.25rem; overflow-wrap: anywhere; }
#dienste .checkline { align-items: flex-start; white-space: normal; }

.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; }

/* FE-1.1.1: Firmenauftritt, Logo, Einstellungen */
main > h1, .sechead > h1:not(.sr-only) { border-left: 4px solid var(--accent-2); padding-left: 12px; }
.brand.has-logo { gap: 0; }
.brandlogo { display: block; height: 36px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 760px) { .brandlogo { height: 28px; max-width: 160px; } body.has-back .brandlogo { height: 24px; max-width: 130px; } }
@media (prefers-color-scheme: dark) { .brandlogo, .loginlogo img, .logoprev img { background: #fff; padding: 4px 8px; border-radius: 8px; } }
.loginlogo { text-align: center; margin: 24px 0 8px; }
.loginlogo img { max-width: min(280px, 80vw); max-height: 70px; }
.setnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.setnav a { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.setnav a:hover { background: var(--accent-soft); text-decoration: none; }
#benutzer, #firma, #dienste, #benachrichtigung, #dsgvo, #backup, #system { scroll-margin-top: 90px; }
.rolesum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rolesum .chip b { color: var(--accent-text); }
.userlist li.inactive { opacity: .6; }
.userlist .rolerow { margin: 0; }
.userlist .rolerow select { min-width: 170px; }
@media (max-width: 560px) { .userlist li > .grow { flex-basis: 100%; } .userlist .rolerow { flex: 1; } .userlist .rolerow select { width: 100%; min-width: 0; } }
.userform .row > label { min-width: 0; }
.logorow { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.logoprev { width: 240px; max-width: 100%; height: 80px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.logoprev img { max-width: 100%; max-height: 100%; }
.logorow > form.grow { flex: 1 1 260px; min-width: 0; }
.logorow input[type=file] { max-width: 100%; }
@media (min-width: 1800px) { #benutzer .userlist { columns: 2; column-gap: 32px; } #benutzer .userlist li { break-inside: avoid; } }

/* FE-1.2: Arbeitszeit von–bis, Datumsfelder am Handy */
.wt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 8px 10px; align-items: end; }
.wt label { min-width: 0; }
.wt-out { align-self: center; padding-top: 18px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.wt-out.bad { color: var(--danger); }
@media (max-width: 560px) { .wt { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wt-out { grid-column: 1 / -1; padding-top: 0; } }
.wt-list { margin: 4px 0 10px; padding: 0; }
/* FE-1.3: erfasste Zeiten korrigieren */
.te-list { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; }
.te-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, auto) auto; gap: 6px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.te-row label { min-width: 0; margin: 0; }
.te-row input:is([type=date], [type=time]) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; display: block; min-height: 2.6em; }
.te-out { white-space: nowrap; font-weight: 600; } .te-out.bad { color: var(--danger); }
.te-del { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); }
.te-row.del :is(input[type=date], input[type=time], .te-out) { opacity: .45; text-decoration: line-through; }
.te-sum { margin: 2px 0 0; text-align: right; }
@media (max-width: 620px) { .te-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .te-d { grid-column: 1 / -1; } }
.wt-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.wt-list li.wt-sum { border-bottom: 0; padding-top: 6px; }

.vo-2 > label { min-width: 0; }
/* nur in Formularrastern (Einsatz starten, Zeiten): volle Spaltenbreite statt fester Mindestbreite */
:is(.vo-2, .wt) input:is([type=date], [type=time]) { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
:is(.vo-2, .wt) input:is([type=date], [type=time])::-webkit-date-and-time-value { text-align: left; }
.vo-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dj-times input[type=time] { width: 6.5em; }
/* iOS Safari: Datums-/Zeitfelder haben sonst eine feste Mindestbreite und sprengen die Zeile */
:is(.vo-2, .wt) input:is([type=date], [type=time]) { display: block; min-height: 2.75em; line-height: normal; }

/* FE-1.1.3: Techniker, Anfahrt / Erledigt ja-nein, Hinweis fürs Büro */
.vo-techs { display: flex; flex-direction: column; gap: 6px; }
.vo-techlist { display: flex; flex-wrap: wrap; gap: 6px; } .vo-techlist:empty::before { content: 'Noch kein Techniker eingetragen'; color: var(--muted); font-size: .88rem; }
.vo-tech { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; overflow-wrap: anywhere; }
.vo-techdel { border: 0; background: none; color: var(--muted); font: inherit; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 50%; }
.vo-techdel:hover { color: var(--danger); }
.vo-techadd { display: flex; gap: 6px; } .vo-techadd input { flex: 1; min-width: 0; }
.vo-end { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vo-yn { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.yn { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.yn label { position: relative; margin: 0; cursor: pointer; }
.yn input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.yn span { display: block; min-width: 4.2em; padding: 9px 14px; text-align: center; background: var(--surface-2); color: var(--ink); font-weight: 600; }
.yn label + label span { border-left: 1px solid var(--line); }
.yn input:checked + span { background: var(--accent); color: var(--accent-ink); }
.yn input[value="0"]:checked + span { background: var(--ink); color: var(--bg); }
.yn input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.vo-office[hidden] { display: none; }
.vo-office textarea { margin-top: 4px; border-color: var(--warn); }
.officenote { padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.officenote b { display: block; font-size: .85rem; margin-bottom: 2px; }
.officenote p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.techline { overflow-wrap: anywhere; }
.yn-sm span { min-width: 3em; padding: 4px 9px; font-size: .82rem; }
.dj-yn { display: inline-flex; align-items: center; gap: 6px; }
.officeline { color: var(--warn); font-weight: 600; }
.officelist li + li { margin-top: 8px; } .officelist li { overflow-wrap: anywhere; }

/* FE-1.2: Einsatz bearbeiten, Termine im Formular */
.vo-old .vo-thumb { cursor: pointer; }
.vo-old .vo-thumb input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vo-old .vo-thumb .vo-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.vo-old .vo-thumb.del img, .vo-old .vo-thumb.del video, .vo-old .vo-thumb.del .vo-missph { opacity: .25; } .vo-old .vo-thumb.del .vo-x { background: var(--danger); }
/* 🧩 FE-1.9.90: Datei fehlt / wird entfernt */
.vo-missph { display: grid; place-content: center; justify-items: center; gap: 2px; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px); color: var(--muted); font-size: 1.1rem; text-align: center; pointer-events: none; }
.vo-missph small { font-size: .7rem; line-height: 1.1; }
.vo-old .vo-thumb.is-miss { outline: 1px dashed var(--line); outline-offset: -1px; }
.vo-old .vo-thumb.del { outline: 2px solid var(--danger); outline-offset: -2px; }
.vo-delnote { display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; background: var(--danger); color: #fff; font-size: .68rem; font-style: normal; font-weight: 600; text-align: center; pointer-events: none; }
.vo-old .vo-thumb.del .vo-delnote { display: block; }
.vo-misshint { margin: 0; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.img-miss { display: grid; place-content: center; width: 100%; height: 100%; min-height: 60px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px); color: var(--muted); font-size: .75rem; text-align: center; }
.vo-times { display: flex; flex-direction: column; gap: 4px; } .vo-times .checkline { margin: 0; } .vo-del { color: var(--danger); }
.vo-times .checkline:has(input:checked) { text-decoration: line-through; opacity: .7; }
.vo-appts, .vo-apptinfo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.vo-appt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: inherit; text-decoration: none; }
.vo-appt .grow { display: flex; flex-direction: column; min-width: 0; } .vo-appt small { overflow-wrap: anywhere; }
.vo-appt .mono { font-weight: 700; min-width: 3.2em; }
.vo-ba select { width: 100%; }
.office-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; font-size: .9rem; } .office-dl dt { font-weight: 600; } .office-dl dd { margin: 0; overflow-wrap: anywhere; }

/* FE-1.2: 🧾 Abrechnung */
.billtabs { margin-bottom: 12px; } .billtabs b { font-size: .8rem; margin-left: 4px; opacity: .75; }
.billsec { margin-bottom: 16px; } .billsec .sechead { flex-wrap: wrap; gap: 8px; }
.billwrap { overflow-x: auto; }
.billtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.billtable th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.billtable td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.billtable .num { text-align: right; white-space: nowrap; }
.billtable tr.bt-same td { border-top: 0; } .billtable tr:has(+ tr.bt-same) td { border-bottom-style: dashed; }
.billtable tbody tr:hover { background: var(--surface-2); }
.billtable tbody tr:has(input:checked) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.bt-chk { width: 28px; } .bt-chk input { width: 18px; height: 18px; }
.bt-acts { white-space: nowrap; text-align: right; }
@media (max-width: 760px) {
  .billtable thead { display: none; }
  .billtable, .billtable tbody, .billtable tr, .billtable td { display: block; width: 100%; }
  .billtable tr { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); }
  .billtable td { border: 0; padding: 1px 0; display: flex; gap: 8px; overflow-wrap: anywhere; } .billtable td::before { content: attr(data-l); flex: 0 0 6.5em; color: var(--muted); font-size: .8rem; }
  .billtable td.bt-chk { position: absolute; left: 4px; top: 10px; width: auto; } .billtable td.bt-chk::before, .billtable td.bt-acts::before { content: none; }
  .billtable .num { text-align: left; } .billtable td.bt-acts { justify-content: flex-start; margin-top: 4px; }
}

/* FE-1.2: 🗺 Einsatzleitung */
.dispo-head { flex-wrap: wrap; gap: 10px; }
.dispo-day { align-items: center; gap: 6px; flex-wrap: wrap; } .dispo-day input[type=date] { width: auto; }
.dispo-msg:empty { display: none; } .dispo-msg { margin: 0 0 10px; } .dispo-msg.bad { color: var(--danger); } .dispo-msg.ok { color: var(--accent); }
.dispo { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(280px, 380px); gap: 14px; align-items: start; }
.dispo > .card { margin: 0; min-width: 0; }
.dispo-side, .dispo-open { max-height: calc(100vh - 170px); overflow: auto; }
.dispo-mapwrap { padding: 6px; position: sticky; top: 12px; }
.dispo-map { height: calc(100vh - 210px); min-height: 420px; border-radius: 10px; background: var(--surface-2); }
.dispo-map.notiles { background: repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), var(--surface-2); }
.dispo-note { margin: 6px 4px 0; }
.dtech { border-left: 4px solid var(--c); padding: 4px 0 8px 10px; margin-bottom: 12px; }
.dtech.off { opacity: .55; }
.dtech header { display: flex; align-items: center; gap: 8px; } .dtech header .btn { margin-left: auto; }
.dtech-name { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; min-width: 0; }
.dtech-name input { width: 16px; height: 16px; accent-color: var(--c); } .dtech-name i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.dtech p { margin: 2px 0 6px; }
.dstops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dstop { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.dstop:hover, .dstop:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.dstop .grow { display: flex; flex-direction: column; min-width: 0; } .dstop small { overflow-wrap: anywhere; }
.dstop .dno { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.dstop.st-erledigt { opacity: .75; } .dstop.st-offen .dno { background: #d97706; }
.dstop .dtime { font-weight: 700; font-size: .85rem; } .dstop .bad { color: var(--danger); }
.dacts { display: flex; gap: 4px; flex: none; }
.ddrive { font-size: .8rem; color: var(--muted); padding-left: 32px; }
.dispo-filter { gap: 8px; margin-bottom: 8px; } .dispo-filter label { margin: 0; } .dispo-filter select { width: auto; max-width: 12em; }
.dopenlist { display: flex; flex-direction: column; gap: 6px; }
ul.plain li.dopen { display: flex; gap: 8px; align-items: flex-start; padding: 8px 8px 8px 11px; border: 0; border-radius: 10px; background: var(--surface-2); border-left: 3px solid #d97706; }
ul.plain li.dopen.t-termin { border-left-color: #64748b; } .dopen .grow { display: flex; flex-direction: column; min-width: 0; } .dopen small { overflow-wrap: anywhere; }
.dpin span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font: 700 13px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.dpin.erledigt span { opacity: .8; } .dpin.offen span { outline: 3px solid #d97706; }
.dpin.open span { width: 22px; height: 22px; margin: 3px; border-radius: 6px; font-size: 11px; opacity: .9; }
.dpop { font: 13px/1.4 system-ui, sans-serif; } .dpop .btn { margin-top: 6px; }

.leaflet-container a { color: var(--accent); }
.dispo-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 16px; padding: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dispo-dlg::backdrop { background: rgba(0,0,0,.45); }
.dispo-sug:empty { display: none; }
.vo-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1400px) { .dispo { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); } .dispo-open { grid-column: 1 / -1; max-height: none; } }
@media (max-width: 900px) {
  .dispo { grid-template-columns: minmax(0, 1fr); } .dispo-mapwrap { position: static; order: -1; } .dispo-map { height: 55vh; min-height: 300px; }
  .dispo-side, .dispo-open { max-height: none; } .vo-3 { grid-template-columns: 1fr 1fr; }
}
.dtech-name { flex-direction: row; font-size: 1rem; color: var(--ink); } .dtech-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted); }
.billtabs { max-width: 100%; flex-wrap: wrap; } .billtabs a { white-space: nowrap; }
@media (max-width: 760px) { .billtabs a { padding-left: 10px; padding-right: 10px; font-size: .85rem; } }
.dispo-map.picking, .dispo-map.picking .leaflet-interactive { cursor: crosshair; } .dispo-map.picking { outline: 3px solid var(--accent); }
.dgeo { display: block; } .dgeo .linkbtn { font-size: inherit; padding: 0; }

/* FE-1.3: Textvorlagen, Unterschrift, endgültig absenden */
.tplrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: -4px; }
.tplrow > label { flex: 1 1 14em; min-width: 0; }
.tplpick { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.tplpick select { width: auto; max-width: 100%; min-width: 0; font-size: .92rem; padding-block: 6px; }
.tplcard { display: flex; flex-direction: column; gap: 8px; }
.tplcard pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: inherit; font-size: .92rem; color: var(--muted); max-height: 9em; overflow: hidden; }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.mysig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mysig img { max-height: 90px; max-width: min(100%, 360px); background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 6px; }
#mySigCanvas { width: 100%; height: auto; aspect-ratio: 3/1; background: #fff; border-radius: 8px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; display: block;
  background-image: linear-gradient(transparent calc(100% - 40px), #d4d4d4 calc(100% - 40px), #d4d4d4 calc(100% - 38px), transparent calc(100% - 38px)); }
.submitbox { margin-top: 18px; border-left: 4px solid var(--accent); }
.submitbox.is-sent { border-left-color: #16a34a; }
.submitbox h2 { margin-top: 0; }
.submitbtn { width: 100%; max-width: 420px; }
.returnnote { border-left-color: #dc2626 !important; }
.vo-final { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.archlist a { overflow-wrap: anywhere; }

/* ══════ FE-1.4: Woche, Navigation, Rückgaben, Protokoll, Auswertung ══════ */
.wk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 14px; align-items: start; }
.wk-scroll { overflow-x: auto; padding: 0; }
.wk-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
.wk-grid th, .wk-grid td { border: 1px solid var(--line); vertical-align: top; text-align: left; }
.wk-grid thead th { padding: 8px; font-size: .85rem; background: var(--surface-2); }
.wk-grid thead th a { color: inherit; }
.wk-grid .wk-tech { width: 150px; padding: 8px; font-size: .88rem; background: var(--surface-2); }
.wk-grid .is-we { width: 9%; }
.wk-grid th.is-today, .wk-cell.is-today { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.wk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.wk-cell { padding: 5px; min-height: 64px; height: 64px; }
.wk-cell.is-over, .wk-open.is-over { outline: 2px dashed var(--accent); outline-offset: -3px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.wk-none th, .wk-none td { background: color-mix(in srgb, #64748b 6%, var(--surface)); }
.wk-item { display: block; margin: 0 0 4px; padding: 4px 6px; border-radius: 7px; background: var(--surface-2); border-left: 3px solid var(--accent); color: var(--ink); font-size: .8rem; line-height: 1.3; overflow: hidden; }
.wk-item:hover { text-decoration: none; filter: brightness(.97); }
.wk-item b { font-weight: 700; } .wk-item small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-item[draggable="true"] { cursor: grab; } .wk-item.is-drag { opacity: .45; }
.wk-item.k-einsatz { border-left-color: #64748b; } .wk-item.is-erledigt { border-left-color: var(--st-ok, #2f855a); opacity: .85; } .wk-item.is-follow, .wk-item.k-offen { border-left-color: #d97706; }
.wk-item.k-termin.k-termin:not([href]) { border-left-color: #64748b; }
.wk-sum { display: block; text-align: right; }
.wk-open { position: sticky; top: calc(var(--hdr-h, 0px) + 10px); max-height: calc(100vh - 140px); overflow: auto; }
.wk-openlist .wk-item { border-bottom: 0; padding: 7px 8px; margin-bottom: 6px; }
@media (max-width: 1100px) { .wk { grid-template-columns: minmax(0, 1fr); } .wk-open { position: static; max-height: none; } }
.navbtn { white-space: nowrap; }
.vo-apptrow { display: flex; gap: 6px; align-items: stretch; } .vo-apptrow > .vo-appt { flex: 1; min-width: 0; } .vo-apptrow > .navbtn { display: flex; align-items: center; }
.returned { border-left: 4px solid var(--warn); }
.returned ul { margin: 6px 0 0; } .returned li { padding: 6px 0; }
.chlog summary { cursor: pointer; font-weight: 700; }
.chlog ol { list-style: none; margin: 10px 0 0; padding: 0; }
.chlog li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.chlog li:first-child { border-top: 0; }
.chlog .chd { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin-top: 3px; font-size: .84rem; }
.kopie { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.kopie input[type=email] { flex: 1 1 220px; min-width: 0; }
.mkpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.mkpi .card { margin: 0; } .mkpi b { display: block; font-size: 1.5rem; }
.mtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mtable th, .mtable td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.mwrap { overflow-x: auto; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.mbar { display: inline-block; height: 8px; border-radius: 4px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
span.dictwrap { display: block; }
.mgrid > .card { margin: 0; }

/* ══════ FE-1.5 ══════ */
.st-back { color: #b42318; } .st-back::before { background: #e5484d; }
.backchip { background: color-mix(in srgb, #e5484d 14%, var(--surface)); color: #b42318; border-color: color-mix(in srgb, #e5484d 40%, var(--line)); font-weight: 700; }
.bizrow.is-back { box-shadow: inset 4px 0 0 #e5484d; background: color-mix(in srgb, #e5484d 7%, var(--surface)); }
.returned { border: 2px solid #e5484d; border-left-width: 6px; background: color-mix(in srgb, #e5484d 9%, var(--surface)); }
.returned > b { display: block; color: #b42318; font-size: 1.05rem; }
.returned li a { font-weight: 700; } .returned li { border-color: color-mix(in srgb, #e5484d 25%, var(--line)); }
.returned .btn { margin-top: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-back, :root:not([data-theme="light"]) .backchip, :root:not([data-theme="light"]) .returned > b { color: #ff8a8a; } }
:root[data-theme="dark"] .st-back, :root[data-theme="dark"] .backchip, :root[data-theme="dark"] .returned > b { color: #ff8a8a; }
/* Einsatzleitung: Karte kleiner (Platz rechts bleibt frei für Erweiterungen) */
.dispo-map { height: min(56vh, 540px); min-height: 340px; }
@media (min-width: 1401px) { .dispo { grid-template-columns: minmax(300px, 380px) minmax(0, 760px) minmax(280px, 380px); justify-content: start; } }
@media (max-width: 760px) { .dispo-map { height: 42vh; min-height: 260px; } }
.prio { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: .72rem; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.prio.p1 { background: #e5484d; color: #fff; } .prio.p3 { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.dcreated { align-self: end; padding-bottom: 8px; }
.wk-item.is-p1 { border-left-color: #e5484d; box-shadow: inset 0 0 0 1px color-mix(in srgb, #e5484d 45%, transparent); }
.wk-item.is-p3 { opacity: .8; border-left-style: dashed; }
/* Woche gedreht: Tage als Zeilen, Techniker als Spalten */
.wk-grid { min-width: 0; }
.wk-grid .wk-tech { width: auto; padding: 8px; font-size: .88rem; background: var(--surface-2); }
.wk-grid .wk-day { width: 96px; padding: 8px; font-size: .86rem; background: var(--surface-2); white-space: nowrap; }
.wk-grid .wk-day a { color: inherit; }
.wk-grid .is-we { width: auto; }
.wk-grid tr.is-today > * { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.wk-grid tr.is-we .wk-cell { height: 44px; min-height: 44px; }
.wk-grid th.wk-none, .wk-grid td.wk-none { background: color-mix(in srgb, #64748b 6%, var(--surface)); }
@media (max-width: 1100px) { .wk-grid { min-width: 720px; } }
/* Pinnwand */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.bgrid > .card { margin: 0; }
.bpost { border-top: 4px solid var(--line); }
.bpost.k-stoerung { border-top-color: #e5484d; } .bpost.k-wichtig { border-top-color: var(--warn); } .bpost.k-thema { border-top-color: var(--accent); }
.bpost.is-pinned { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.bhead { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.bkind { font-weight: 700; font-size: .85rem; }
.bpost h2 { margin: 6px 0 4px; font-size: 1.1rem; overflow-wrap: anywhere; }
.bbody { margin: 0 0 8px; overflow-wrap: anywhere; }
.bimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin: 6px 0; }
.bimgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.breplies { margin: 8px 0 0; border-top: 1px solid var(--line); }
.breplies li { padding: 6px 0; font-size: .9rem; overflow-wrap: anywhere; }
.breply { display: flex; gap: 6px; margin-top: 8px; } .breply input { flex: 1; min-width: 0; }
.bacts { margin-top: 10px; gap: 6px; } .bacts form { margin: 0; }
.bedit { width: 100%; } .bedit[open] > summary { margin-bottom: 8px; } .bedit > summary { list-style: none; display: inline-flex; }
.bedit > summary::-webkit-details-marker { display: none; }
.bkinds { flex-wrap: wrap; } .bkinds label { cursor: pointer; position: relative; } .bkinds input { position: absolute; opacity: 0; pointer-events: none; }
.bkinds label span { display: inline-block; padding: 6px 10px; border-radius: 8px; } .bkinds input:checked + span { background: var(--surface); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.bkinds input:focus-visible + span { outline: 2px solid var(--accent); }
.bfile { cursor: pointer; }
.newchip { background: #e5484d; color: #fff; border-color: #e5484d; }
.homeboard { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; border-left: 4px solid var(--accent); }
.homeboard:hover { text-decoration: none; }
.bedit { width: auto; } .bedit[open] { width: 100%; }
.dopen .grow > .prio, .dstop .grow > .prio { align-self: flex-start; margin-left: 0; }
.returned { margin-bottom: 14px; }
/* FE-1.5.1: Einsatz am Handy kompakter */
@media (max-width: 760px) {
  .svcm { gap: 8px; margin-bottom: 12px; }
  .svcm-cust, .svcm-dev { padding: 9px 12px; border-radius: 12px; gap: 8px; }
  .svcm-cust b { font-size: 1.08rem; }
  .svcm-dev b { font-size: .98rem; }
  .svcm-cust small, .svcm-dev small { font-size: .8rem; }
  .svcm-cust em, .svcm-dev em { font-size: 1.3rem; }
  .svcm-meta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; }
  .svm-row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; font-size: .9rem; line-height: 1.35; }
  .svm-row .stdot { font-size: .86rem; }
  .svm-bill .chip { font-size: .76rem; padding: 2px 8px; }
  .svcm-notes, .svcm-photos { padding: 9px 12px; border-radius: 12px; }
  .svcm-notes h3, .svcm-photos h3 { margin: 0 0 4px; font-size: .78rem; }
  .svcm-notes p { margin: 0 0 6px; line-height: 1.4; font-size: .95rem; }
  .svcm-acts .btn { min-height: 42px; }
  .svcm-acts .btn-accent { min-height: 46px; }
}
.vo-appt .mono { white-space: nowrap; min-width: 0; }
.homehead { flex-wrap: wrap; gap: 8px; }
.vo-appt .mono { display: flex; flex-direction: column; flex: none; white-space: nowrap; min-width: 3.4em; line-height: 1.2; }
.vo-appt .mono small { font-size: .72rem; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .svcm-cust > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; } }
.vo-appt > .small:last-child { white-space: nowrap; }
/* FE-1.5.2: Teile in „Einsatz starten“ wie im Service-Block */
.vo-parts.jsvc { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 6px; }
.jsvc-parts li .grow { min-width: 0; overflow-wrap: anywhere; }
.vo-hl { align-self: end; padding-bottom: 8px; margin: 0; }
.jsvc-add .stack > p:empty { display: none; }
/* FE-1.5.3: vorgemerkte Termine */
.vmchip { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent-text, var(--accent)); vertical-align: 1px; }
.vo-apptrow.is-vm > .vo-appt { box-shadow: inset 3px 0 0 var(--accent); }
.vo-vmacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin: -2px 0 4px 6px; }
.vo-vmset > summary { list-style: none; } .vo-vmset > summary::-webkit-details-marker { display: none; }
.vo-vmset[open] { flex-basis: 100%; } .vo-vmset form { margin-top: 6px; align-items: flex-end; }
.vo-appt .grow small { display: block; }
.vmchip.vmline { margin: 2px 0; align-self: flex-start; white-space: normal; }
.vmchip.vmline { background: none; padding: 0; margin: 1px 0 2px; border-radius: 0; font-size: .8rem; }
/* ═════════ FE-1.6 ═════════ */
/* 🚗 Status am Termin, eigener Status auf der Startseite */
.vo-stacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 6px 6px; }
.vo-stacts form { margin: 0; }
.stchip { font-weight: 700; } .stchip.is-vor_ort, .dlive.st-vor_ort { color: var(--accent-ink, var(--accent)); } .stchip.is-unterwegs, .dlive.st-unterwegs { color: var(--warn); }
.mystatus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border-left: 4px solid var(--accent); }
.mystatus form { margin: 0; }
.wt-nows { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: -2px; }
/* 💬 Rückfragen */
.jmsgs { padding: 10px 14px; margin-bottom: 14px; }
.jmsgs > details > summary { cursor: pointer; list-style: none; } .jmsgs > details > summary::-webkit-details-marker { display: none; }
.jmsg-list { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.jmsg-list li { display: flex; flex-direction: column; gap: 2px; max-width: min(100%, 720px); padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.jmsg-list li.is-mine { align-self: flex-end; background: var(--accent-soft); }
.jmsg-list li.is-new { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.jmsg-form textarea { min-height: 3.2em; }
.msgbanner { border-left: 4px solid var(--accent); margin-bottom: 14px; }
.msgbanner ul { margin: 6px 0 0; } .msgbanner li { padding: 2px 0; overflow-wrap: anywhere; }
/* 🦷 Gerätehistorie */
.vo-hist { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.vo-hist ul { margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.vo-hist li { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; padding-left: 8px; border-left: 3px solid var(--line); }
.vo-hist li a { color: var(--ink); }
/* ✍️ Kundenunterschrift */
.vo-sign { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
#voSigCanvas { width: 100%; height: auto; aspect-ratio: 3/1; max-height: 260px; background: #fff; border-radius: 8px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; display: block; }
.vo-sign .row { align-items: flex-end; }
.vo-ptsel { display: flex; gap: 8px; align-items: flex-end; } .vo-ptsel label { flex: 1; min-width: 0; margin: 0; } .vo-ptsel .vo-scan { flex: none; margin-bottom: 2px; }
/* 📷 Scanner: Code eintippen */
.qrscan-man { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 84px); left: 16px; right: 16px; display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.qrscan-man input { flex: 1; min-width: 0; }
/* 📋 Live-Tafel in der Einsatzleitung */
.dispo-live { display: flex; flex-direction: column; gap: 10px; }
.live-techs { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.live-techs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--line); }
.live-techs li > .small:not(.live-prog) { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.live-techs .live-prog { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; }
.live-techs li.st-vor_ort { border-left-color: var(--accent); } .live-techs li.st-unterwegs { border-left-color: var(--warn); } .live-techs li.st-frei { border-left-color: var(--ok); }
.live-techs li.is-abs { opacity: .6; border-left-color: var(--muted); }
.live-sec ul { margin: 4px 0 0; } .live-sec li { padding: 2px 0; overflow-wrap: anywhere; } .live-sec p { margin: 4px 0 0; }
.dabs { color: var(--muted); font-weight: 700; margin: 2px 0; } .dlive { font-weight: 700; margin: 2px 0; }
@media (min-width: 1900px) { .dispo { grid-template-columns: minmax(300px, 380px) minmax(0, 760px) minmax(280px, 380px) minmax(300px, 420px); }
  .dispo-live { max-height: calc(100vh - 170px); overflow: auto; } }
@media (max-width: 1899px) { .dispo-live { grid-column: 1 / -1; } }
/* 🏖 Abwesenheiten */
.wk-cell.is-abs { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 14%, transparent) 0 8px, transparent 8px 16px); }
.wk-abs { display: block; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.absrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; } .absrow label { margin: 0; min-width: 0; }
@media (max-width: 760px) { .absrow { grid-template-columns: 1fr 1fr; } }
.abstbl tr.is-past { opacity: .55; } .abstbl tr.is-now td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.abstbl td { overflow-wrap: anywhere; }
/* 🛒 Bestellungen */
.ordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.ordcard { margin: 0; display: flex; flex-direction: column; gap: 6px; } .ordcard p, .ordcard ul { margin: 0; } .ordcard header a { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.ordparts { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.ordacts { margin-top: auto; padding-top: 4px; }
.ordchip { margin-left: 6px; font-size: .72rem; } .ordchip.is-da { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); color: var(--ink); font-weight: 700; }
/* 📷 Fahrzeuglager scannen / Inventur */
.pscan { display: flex; flex-direction: column; gap: 8px; } .pscan-man { min-width: min(100%, 260px); gap: 6px; } .pscan-man input { flex: 1; min-width: 0; }
.pscan-res { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); } .pscan-res p { margin: 2px 0; }
.invqty { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; } .invqty input { width: 5.5em; }
.invqty[hidden] { display: none; }
.invsave { position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 2px solid var(--accent); z-index: 5; }
.invsave[hidden] { display: none; }
/* 🔒 http von außen */
.httpswarn { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
@media (max-width: 760px) { .svcm-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svcm-acts .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; } }
.dopen .ordchip, .wk-item .ordchip { align-self: flex-start; margin-left: 0; }
.jmsg-list li { border-bottom: 1px solid var(--line); } .jmsg-list li.is-mine { border-style: solid; }
/* FE-1.6.2: ✉ nicht abgeschickt, 🧾 Notiz für die Abrechnung */
.draftchip { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--ink); font-weight: 700; font-size: .74rem; }
.bz-draft { color: var(--warn) !important; font-weight: 700; white-space: nowrap; }
.bt-note { display: block; margin-top: 3px; overflow-wrap: anywhere; } .bn-open.has-note { border-color: var(--accent); }
.bndlg { width: min(640px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 18px; }
.bndlg::backdrop { background: rgba(0, 0, 0, .45); } .bndlg h2 { margin: 0; font-size: 1.15rem; } .bndlg p { margin: 0; }
.billnote-box { border-left: 4px solid var(--accent); padding: 10px 14px; margin: 10px 0; } .billnote-box p { margin: 4px 0 0; }
.bndlg .row .btn { white-space: normal; text-align: center; min-width: 0; }
@media (max-width: 560px) { .bndlg .row .btn { flex: 1 1 100%; } .bndlg .row .grow { display: none; } }
.bz-st:has(.bz-draft) { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; } .bz-st .bz-draft { flex-basis: 100%; text-align: right; font-size: .74rem; }
/* FE-1.6.3: Einsatzzeile – Kunde fett, darunter Gerät, Fehler, Datum/Uhrzeit */
.bizrow.bizrow3 { grid-template-columns: minmax(0, 1fr) 170px 190px; grid-template-areas: "main t st"; gap: 4px 16px; align-items: center; }
.bizrow3 .bz-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bizrow3 .bz-c { font-weight: 750; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizrow3 .bz-d { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizrow3 .bz-f { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizrow3 .bz-w { font-size: .78rem; color: var(--muted); } .bizrow3 .bz-wp { color: var(--accent); font-weight: 600; }
.bizrow3 .bz-t { grid-area: t; font-size: .82rem; color: var(--hdr-muted, var(--muted)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizrow3 .bz-st { grid-area: st; justify-self: end; align-self: center; }
@media (max-width: 760px) {
  .bizrow.bizrow3 { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "t st"; gap: 6px 10px; }
  .bizrow3 .bz-st { align-self: center; } .bizrow3 .bz-t { justify-self: start; align-self: center; font-size: .76rem; }
  .bizrow3 .bz-f { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* 👁 Admin: Ansicht als andere Rolle */
.viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 5px 12px; margin: 0; font-size: .84rem; background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.viewbar.is-on { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); border-bottom: 2px solid var(--warn); }
.viewbar .vb-seg { flex-wrap: wrap; } .viewbar .vb-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 4px 10px; border-radius: 9px; cursor: pointer; }
.viewbar .vb-seg button.on { background: var(--surface); color: var(--ink); font-weight: 750; box-shadow: 0 1px 3px rgba(18, 32, 42, .14); }
.viewbar.is-on .vb-seg button.on { background: var(--warn); color: #fff; }
.viewbar .vb-h { font-size: .76rem; color: var(--muted); }
@media (max-width: 560px) { .viewbar .vb-h { display: none; } .viewbar .vb-seg button { padding: 4px 7px; font-size: .78rem; } }
/* FE-1.6.4: 🗓 Planer im Termin-Formular, auf-/zuklappbare Techniker */
.dispo-dlg.dispo-dlg-wide { width: min(1560px, calc(100vw - 24px)); }
.dlg-cols { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 18px; align-items: start; }
.dplan { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: sticky; top: 0; }
.dplan-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .dplan p { margin: 0; }
.dplan-best { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .dp-best { cursor: pointer; border: 1px solid var(--accent); background: var(--surface); font-weight: 600; }
.dplan-grid { overflow-x: auto; }
.dp-table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.dp-table th { font-size: .78rem; font-weight: 700; text-align: left; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-table thead th small { display: block; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dp-table thead th:first-child, .dp-table tbody th { width: 74px; } .dp-table tbody th small { display: block; color: var(--accent); font-weight: 600; }
.dp-table tr.is-sel th { color: var(--accent); }
.dp-cell { display: flex; flex-direction: column; gap: 1px; width: 100%; min-height: 58px; padding: 5px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .74rem; text-align: left; cursor: pointer; line-height: 1.25; }
.dp-cell:hover { border-color: var(--accent); } .dp-cell.on { outline: 3px solid var(--accent); outline-offset: 0; }
.dp-cell .dp-n { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dp-cell .dp-free { font-weight: 700; } .dp-cell .dp-km { font-weight: 700; }
.dp-cell.k-near { background: color-mix(in srgb, var(--ok) 20%, var(--surface)); } .dp-cell.k-mid { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.dp-cell.is-full { opacity: .55; } .dp-cell.is-full .dp-free { color: var(--danger); }
.dp-cell.is-abs { cursor: default; color: var(--muted); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 14%, transparent) 0 6px, transparent 6px 12px); font-weight: 700; justify-content: center; }
.dplan-legend { font-size: .72rem; }
@media (max-width: 1100px) { .dlg-cols { grid-template-columns: 1fr; } .dplan { position: static; } .dispo-dlg.dispo-dlg-wide { width: min(760px, calc(100vw - 24px)); } }
@media (max-width: 560px) { .dp-table thead th small { display: none; } .dp-cell { min-height: 50px; padding: 4px; font-size: .7rem; } .dp-table thead th:first-child, .dp-table tbody th { width: 52px; } .dplan-grid { margin: 0 -6px; } }
.dfold-all { margin-bottom: 6px; align-items: center; }
.dtech .dfold { margin-left: auto; font-variant-numeric: tabular-nums; } .dtech header { gap: 6px; }
.dtech.is-folded .dstops, .dtech.is-folded .dtech-span:empty { display: none; }
.dtech:not(.is-folded) .dtech-span { display: none; }
.dtech-span { margin: 0; }
.dtech header .dfold + .btn { margin-left: 0; }
.dfold-all .linkbtn { white-space: nowrap; }
.dp-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-table tbody th { white-space: normal; line-height: 1.2; }
@media (max-width: 560px) { .dp-table thead th:first-child, .dp-table tbody th { width: 46px; } .dp-table thead th { font-size: .74rem; } }
/* FE-1.6.5: Import, Testbetrieb, Geplant */
.impmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 16px; }
.impmap label { display: flex; flex-direction: column; gap: 3px; margin: 0; min-width: 0; } .impmap label span { font-size: .84rem; font-weight: 600; }
.impwrap { overflow-x: auto; max-width: 100%; } .imptbl { font-size: .8rem; white-space: nowrap; } .imptbl th { background: var(--surface-2); }
.testbox { border-left: 4px solid var(--warn); } .testdel input[name=bestaetigung] { max-width: 180px; }
.planinfo { margin: 4px 0 8px; }
/* FE-1.6.6: Seite „Geplanter Einsatz“, Planer-Kopf mit KW */
.aphead { flex-wrap: wrap; gap: 8px 12px; align-items: center; } .aphead h1 { margin: 0; }
.apinfo { display: flex; flex-direction: column; gap: 10px; }
.apcust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; } .apcname { font-size: 1.15rem; } .apcust p { margin: 2px 0 0; }
.apdl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; } .apdl dt { color: var(--muted); font-size: .86rem; } .apdl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .apdl { grid-template-columns: 1fr; } .apdl dt { margin-top: 6px; } }
.apcols { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 14px; }
.apcols .apform { margin: 0; } .apcols .apform h2 { margin: 0; font-size: 1.05rem; }
.applan { margin: 0; }
.apright { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 12px; align-self: start; }
.aphistbox { margin: 0; } .aphistbox[hidden] { display: none; }
.aphist-new { display: flex; gap: 8px; margin: 8px 0; } .aphist-new input { flex: 1; min-width: 0; }
.aphist-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .aphist-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(127,127,127,.08); overflow-wrap: anywhere; } .aphist-list li > a { text-decoration: none; }
@media (max-width: 1100px) { .apcols { grid-template-columns: 1fr; } .apright { position: static; } }
.dplan-kw { font-size: .86rem; white-space: nowrap; }
.dp-cell.is-past { opacity: .35; cursor: default; } .dp-table tr.is-past th { color: var(--muted); }
/* 📅 Meine Woche (Startseite Techniker) */
.myweek { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .mw-head h2 { margin: 0; font-size: 1.05rem; } .mw-kw { white-space: nowrap; }
.mw-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mw-day { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mw-day.is-today { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); } .mw-day.is-past { opacity: .8; }
.mw-day.is-abs { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 12%, transparent) 0 8px, transparent 8px 16px); }
.mw-dh { display: flex; align-items: center; gap: 6px; font-size: .9rem; } .mw-n { margin-left: auto; font-weight: 700; }
.mw-day p { margin: 0; } .mw-abs { font-weight: 700; color: var(--muted); }
.mw-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; align-items: start; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.mw-it:hover { border-color: var(--accent); text-decoration: none; }
.mw-it .mw-t { font-weight: 700; font-size: .84rem; } .mw-b { min-width: 0; display: flex; flex-direction: column; } .mw-b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-b small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.mw-it.is-erledigt { opacity: .65; } .mw-it.is-erledigt .mw-s { color: var(--ok); font-weight: 700; }
@media (max-width: 1100px) { .mw-days { grid-template-columns: 1fr; } .mw-day.is-past .mw-free { display: none; } }   /* FE-1.9.49: vergangene Tage zeigen ihre Einsätze wieder (mit ✓) */
@media (min-width: 700px) and (max-width: 1100px) { .mw-days { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mw-day.is-past:not(.is-today) .mw-it { display: grid; } .mw-it { grid-template-columns: minmax(0, 1fr); } .mw-it .mw-s { display: none; } }
.dplan-head, .mw-head { justify-content: space-between; } .dplan-nav, .mw-nav { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; }

/* ═════ FE-1.6.8: Serviceschein mit mehreren Geräten, PDF-Ansicht am Handy ═════ */
.sheetbox { display: flex; flex-direction: column; gap: 10px; }
.sb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sb-head h2 { margin: 0; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-list { display: flex; flex-direction: column; gap: 6px; margin: 0; }
ul.plain li.sb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 220px) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
ul.plain li.sb-row.is-me { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sb-dev { display: flex; flex-direction: column; min-width: 0; color: var(--ink); line-height: 1.3; }
.sb-dev b, .sb-dev small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-dev:hover { text-decoration: none; } .sb-dev:hover b { text-decoration: underline; }
.sb-aw { font-weight: 700; white-space: nowrap; }
.sb-ba { margin: 0; min-width: 0; } .sb-ba select { width: 100%; min-width: 0; padding: 4px 6px; font-size: .85rem; }
.sb-st { white-space: nowrap; font-size: .85rem; }
.sb-sum { margin: 0; } .sb-add { align-self: flex-start; }
@media (max-width: 700px) {
  ul.plain li.sb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sb-ba, .sb-bat { grid-column: 1 / -1; } .sb-st { grid-column: 1 / -1; justify-self: start; }
  .sb-add { align-self: stretch; text-align: center; }
}
.bt-ba { margin: 0; } .bt-ba select { max-width: 150px; padding: 3px 4px; font-size: .82rem; }
.pdfver { align-items: center; margin: 6px 0; } .warnline { color: var(--warn); font-weight: 600; }
.jobdraft { margin: 4px 0 0; }
.vo-apptinfo.vo-sheetinfo { display: block; line-height: 1.5; border-left: 4px solid var(--accent); }

html.pdfov-on, html.pdfov-on body { overflow: hidden; }
.pdfov { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; background: #3b3f42; }
.pdfov-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pdfov-back { font-weight: 700; min-height: 44px; padding-inline: 14px; }
.pdfov-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.pdfov-bar .btn-sm { min-width: 40px; min-height: 40px; }
.pdfov-pages { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pdfov-pages canvas { margin-inline: auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); flex: none; }
.pdfov-msg { color: #eee; margin: 40px 16px; text-align: center; } .pdfov-msg a { color: #9fe3bd; }

/* ═════ FE-1.6.9: Startseite Einsatzleitung ═════ */
.leadhead { flex-wrap: wrap; gap: 10px; align-items: center; }
.leadhead h1 { margin: 0; }
.leadacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.leadtodo { display: flex; flex-wrap: wrap; gap: 6px; }
.leadtodo .chip { text-decoration: none; color: var(--ink); } .leadtodo .chip b { margin-left: 4px; }
.leadtodo .chip.todo-on { background: var(--accent-soft); border-color: var(--accent); }
.leadgrid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
.leadside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.leadgrid .leadlive { grid-column: auto; }
@media (min-width: 1800px) {   /* großer Monitor: drei Spalten – Offen · Meine Termine · Live */
  .leadgrid { grid-template-columns: minmax(320px, 1fr) minmax(0, 2.2fr) minmax(300px, .9fr); }
  .leadside { display: contents; } .leadopen { order: 1; } .leadcal { order: 2; } .leadlive { order: 3; }
}
@media (min-width: 2600px) { .leadgrid { grid-template-columns: minmax(380px, 1fr) minmax(0, 3fr) minmax(360px, 1fr); } }
.lo-list { display: flex; flex-direction: column; gap: 8px; }
ul.plain.lo-list > li { padding: 0; border: 0; }
.lo-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid #64748b; color: var(--ink); }
.lo-item.k-offen { border-left-color: #d97706; } .lo-item.prio-1 { border-left-color: var(--danger); }
.lo-item:hover { text-decoration: none; border-color: var(--accent); } .lo-item:hover b { text-decoration: underline; }
.lo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lo-fault { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lc-head { flex-wrap: wrap; gap: 8px; }
.lc-nav { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.lc-week { margin-top: 12px; } .lc-week.is-now .lc-wh b { color: var(--accent); }
.lc-wh { margin-bottom: 4px; }
.lc-days { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.lc-day { min-height: 74px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lc-day.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lc-day.is-past { opacity: .6; } .lc-day.is-we { background: transparent; border-style: dashed; }
.lc-dh { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.lc-day.is-today .lc-dh { color: var(--accent); }
.lc-add { border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 6px; cursor: pointer; opacity: .55; }
.lc-day:hover .lc-add, .lc-add:focus-visible { opacity: 1; color: var(--accent); } .lc-add:hover { background: var(--accent-soft); }
.lc-ev { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 5px 7px; border-radius: 8px; border: 0; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem; cursor: pointer; box-shadow: var(--shadow); min-width: 0; }
.lc-ev b, .lc-ev small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-ev:hover { background: var(--accent-soft); } .lc-t { font-size: .74rem; color: var(--muted); }
.lc-abs { padding: 2px 6px; border-radius: 6px; background: #fdecc8; color: #7a4d00; align-self: flex-start; }
:root[data-theme="dark"] .lc-abs { background: #4a3a14; color: #ffd98a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lc-abs { background: #4a3a14; color: #ffd98a; } }
.evdlg { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 18px; }
.evdlg::backdrop { background: rgba(0,0,0,.45); } .evdlg h2 { margin: 0; } .evdlg form#evDelForm { display: none; }
@media (max-width: 900px) {
  .leadgrid { grid-template-columns: minmax(0, 1fr); } .leadgrid > .leadcal { order: -1; }
  .leadacts { margin-left: 0; width: 100%; } .leadacts > .btn { flex: 1 1 auto; text-align: center; }
  .lc-days { grid-template-columns: minmax(0, 1fr); }
  .lc-day { min-height: 0; } .lc-day.is-empty:not(.is-today) { display: none; }
  .lc-day.is-past.is-empty { display: none; }
}
.narrow-form .checkline { white-space: normal; } .checkline > input[type=checkbox] { flex: none; }

/* FE-1.6.9.3: geplanter Termin / Folgetermin in „Einsatz bearbeiten“ */
.vo-plan { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.vo-planrow { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 180px) minmax(0, 130px) 1fr; gap: 10px; align-items: end; }
.vo-planrow > b { align-self: center; } .vo-planrow label { margin: 0; }
@media (max-width: 700px) { .vo-planrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vo-planrow > b, .vo-planrow > .small { grid-column: 1 / -1; } }

/* ═════ FE-1.6.10: Reiselager ═════ */
.rlhead { flex-wrap: wrap; gap: 10px; } .rlhead h1 { margin: 0; } .rlwho select { max-width: 260px; }
.rlgrid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); margin-top: 12px; }
@media (min-width: 2200px) { .rlgrid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); max-width: 2200px; } }
@media (max-width: 900px) { .rlgrid { grid-template-columns: minmax(0, 1fr); } }
.rlbar { align-items: center; margin-bottom: 8px; }
ul.plain.rl-rows > li.rl-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; }
.rl-chk { margin: 0; padding: 2px; flex: none; } .rl-chk input { width: 26px; height: 26px; accent-color: var(--accent); cursor: pointer; }
.rl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .rl-main a { overflow-wrap: anywhere; }
.rl-row.is-done .rl-main > b { text-decoration: line-through; color: var(--muted); }
.rl-row.is-busy { opacity: .55; } .okline { color: var(--ok); }
.rlsum ul { display: flex; flex-direction: column; gap: 2px; }

/* ═════ FE-1.7: Icons, feste schmale Kopfzeile am Handy, „Einsatz starten“ in der unteren Leiste ═════ */
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.btn > .ic:first-child { margin-right: .35em; } .btn.ic-only > .ic { margin: 0; }
.iconlink .ic { width: 20px; height: 20px; }
.searchbtn { display: none; background: none; cursor: pointer; padding: 0; }
@media (max-width: 760px) {
  .topbar { position: sticky; top: 0; transform: none !important; transition: none; }
  .topbar-inner { grid-template-areas: "brand actions" "search search" "area area"; row-gap: 0; column-gap: 8px; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; }
  body.has-back .topbar-inner { grid-template-areas: "back brand actions" "search search search" "area area area"; }
  .brand { font-size: 1rem; } .brand svg { width: 30px; height: 30px; padding: 6px; } .brandlogo { max-height: 30px; }
  .topactions .iconlink, .searchbtn { display: grid; width: 38px; height: 38px; border-radius: 11px; }
  .topsearch { display: none; }
  body.search-open .topsearch { display: block; padding: 8px 0 4px; }
  .tabsheet-grid a i .ic { width: 26px; height: 26px; }
  .tabsheet { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { align-items: flex-end; }
  .tabbar > a.tabgo { flex: 1; color: var(--accent-text); font-weight: 800; }
  .tabgo > b { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 4px var(--hdr-bg); }
  .tabgo > b .ic { width: 28px; height: 28px; stroke-width: 2.4; }
  .tabgo.on > b { filter: brightness(.92); }
  .tabgo:active > b { transform: scale(.95); }
}
.vo-cta i .ic { width: 32px; height: 32px; display: block; }

/* ═════ FE-1.7: eine Listen-Optik für alle Zeilen (Einsatzliste, Offen zum Einplanen, Schein-Block, Reiselager, Wochen/Termine):
   Karte mit farbigem Rand links (Stand), Titel fett, Infozeilen darunter, Status rechts ═════ */
a.bizrow.bizrow3, .lo-item, ul.plain li.sb-row, ul.plain.rl-rows > li.rl-row, .mw-it, .lc-ev {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--rc, var(--st-idle, #94a3b8)); border-radius: 12px; box-shadow: none;
  padding: 10px 12px; color: var(--ink); transition: border-color .12s;
}
.card a.bizrow.bizrow3, .card .lo-item, .card ul.plain li.sb-row, .card ul.plain.rl-rows > li.rl-row, .card .mw-it, .card .lc-ev { background: var(--surface-2); }
a.bizrow.bizrow3:hover, .lo-item:hover, .mw-it:hover, .lc-ev:hover { border-color: var(--accent); border-left-color: var(--rc, var(--st-idle, #94a3b8)); background: var(--surface-2); text-decoration: none; }
.rc-ok { --rc: var(--st-ok); } .rc-work { --rc: var(--st-work); } .rc-wait { --rc: var(--st-wait); } .rc-back { --rc: #e5484d; } .rc-plan, .lc-ev { --rc: var(--accent); }
.lo-item { --rc: #64748b; } .lo-item.k-offen { --rc: var(--st-work); } .lo-item.prio-1 { --rc: #e5484d; }
a.bizrow.bizrow3.is-back { --rc: #e5484d; box-shadow: none; }
ul.plain li.sb-row.is-me { border-color: var(--accent); border-left-color: var(--rc, var(--accent)); box-shadow: 0 0 0 1px var(--accent); }
ul.plain.rl-rows { display: flex; flex-direction: column; gap: 6px; }
.bizrow3 .bz-c, .lo-top b, .sb-dev b, .rl-main > b, .mw-b b, .lc-ev b { font-weight: 700; font-size: 1rem; }
.bizrow3 .bz-d, .lo-item > .small, .mw-b > span, .sb-dev small { font-size: .88rem; }
.mw-it, .lc-ev { padding: 8px 10px; } .mw-b b, .lc-ev b { font-size: .92rem; }

/* ═════ FE-1.7: Einsatz-Seite – Kopf mit Stand und Aktionen, Nebensachen eingeklappt ═════ */
.jobhead { align-items: flex-start; gap: 14px 20px; }
.jh-main { min-width: 0; flex: 1 1 420px; } .jh-main h1 { margin: 0 0 6px; }
.jh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; }
.jh-chips .chip .ic { margin-right: 5px; width: 1em; height: 1em; }
.jobhead .pmenu { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; width: auto; justify-content: flex-end; flex-wrap: wrap; }
.jobhead .pmenu .btn { background: var(--surface); border-color: var(--line); } .jobhead .pmenu .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pmore { position: relative; } .pmore > summary { list-style: none; cursor: pointer; } .pmore > summary::-webkit-details-marker { display: none; }
.pmore-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.pmore-list .pm-i, .pmore-list .pm-i form { display: flex; } .pmore-list .btn { flex: 1; justify-content: flex-start; text-align: left; border-color: transparent !important; background: none !important; width: 100%; }
.pmore-list .btn:hover { background: var(--surface-2) !important; } .pmore-list .btn-danger, .pmore-list .danger { color: var(--danger); }
.foldsec > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 4px 0; }
.foldsec > summary::-webkit-details-marker { display: none; }
.foldsec > summary::before { content: "▸"; color: var(--muted); font-size: .9rem; width: 1em; } .foldsec[open] > summary::before { content: "▾"; }
.foldsec > summary h2, .foldsec > summary h3 { margin: 0; } .foldsec:not([open]) > summary h2 { font-size: 1.05rem; color: var(--muted); }
.statusfold { margin: 2px 0 10px; } .statusfold > summary { cursor: pointer; color: var(--muted); } .statusfold[open] > summary { margin-bottom: 8px; }
.jobcard .jobsub.foldsec { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ═════════ FE-1.8 ═════════ */
/* 🦷 Vorschläge Hersteller/Modell (Volltext) */
[data-devsug] { position: relative; }
.devsug { position: absolute; z-index: 40; left: 0; right: 0; max-height: min(320px, 50vh); overflow: auto; margin-top: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.devsug[hidden] { display: none; }
.devsug-it { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; padding: 9px 10px; min-height: 44px;
  background: none; border: 0; border-radius: 8px; color: var(--ink); font: inherit; cursor: pointer; }
.devsug-it b { font-weight: 600; } .devsug-it small { color: var(--muted); font-size: .8rem; margin-left: auto; }
.devsug-it:hover, .devsug-it.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.devsug-it mark { background: none; color: var(--accent); font-weight: 700; }
/* Gerätearten-Seite */
.dc-top { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; margin: 12px 0; }
.dc-top .card { margin: 0; align-items: end; } .dc-imp { align-items: center !important; }
.dc-filter { grid-column: 1 / -1; } .dc-filter input { width: 100%; }
.dc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
@media (min-width: 2200px) { .dc-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } }
.dc-kind { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dc-head { display: flex; align-items: center; gap: 8px; } .dc-head h2 { margin: 0; font-size: 1.05rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dc-edit { position: relative; } .dc-edit > summary { list-style: none; } .dc-edit > summary::-webkit-details-marker { display: none; }
.dc-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(300px, 80vw); display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.dc-list { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: baseline; }
.dc-list dt { font-weight: 600; font-size: .9rem; white-space: nowrap; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.dc-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dc-it { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .85rem; }
.dc-it.is-maker { color: var(--muted); } .dc-it form { display: inline; margin: 0; }
.dc-x { border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 2px 5px; border-radius: 999px; cursor: pointer; }
.dc-x:hover { color: var(--danger, #c0392b); background: var(--surface); }
.dc-add > summary { cursor: pointer; color: var(--accent); } .dc-add[open] > summary { margin-bottom: 8px; }
@media (max-width: 700px) { .dc-top { grid-template-columns: minmax(0, 1fr); } .dc-list { grid-template-columns: minmax(0, 1fr); } .dc-list dt { margin-top: 4px; } }
/* ⏱ Uhrzeit in 5-Minuten-Schritten (Touch) */
input.t5-src { display: none !important; }
.t5 { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; }
.t5 select { width: auto; min-width: 3.9em; padding-inline: 8px 22px; font-variant-numeric: tabular-nums; }
/* 📝 Vorlagen mit Prüfpunkten und Ersatzteilen */
.tplextra { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tplmeta { border-top: 1px solid var(--line); padding-top: 6px; } .tplmeta ul { margin: 4px 0 0; padding-left: 1.2em; }

/* ═════════ FE-1.9 ═════════ */
/* 🛒 Teile vorbereitet, 🙋 Kundenwunsch */
.prio.pready { background: color-mix(in srgb, #0ea5e9 16%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #0ea5e9 45%, var(--line)); }
.prio.pwish { background: color-mix(in srgb, #a855f7 14%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #a855f7 40%, var(--line)); white-space: normal; }
.vo-apptinfo .prio.pready, .vo-appt .prio.pready, .apdl .prio.pready { margin-left: 0; white-space: normal; }
.vo-appt > .grow > .prio.pready { display: inline-block; margin: 3px 0 1px; align-self: flex-start; }
.apparts { font-weight: 600; } .apparts > span:first-child { display: flex; flex-direction: column; } .apparts .small { font-weight: 400; }
/* 🔒 private Termine */
.wk-item.k-privat { border-left-color: #94a3b8; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 10%, var(--surface-2)) 0 6px, var(--surface-2) 6px 12px); color: var(--muted); font-weight: 600; cursor: default; }
.mw-it.mw-priv { width: 100%; text-align: left; font: inherit; cursor: pointer; border-style: dashed; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 8%, var(--surface)) 0 6px, var(--surface) 6px 12px); }
.mw-dh .mw-add { margin-left: auto; opacity: .7; } .mw-dh .mw-n + .mw-add { margin-left: 0; } .mw-day:hover .mw-add, .mw-add:focus-visible { opacity: 1; color: var(--accent); }
.dpriv { color: var(--muted); font-weight: 600; margin: 2px 0; }
/* 🙋 Kundenwunsch an die Einsatzleitung */
.wishbox > details > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wishbox > details > summary::-webkit-details-marker { display: none; }
.wishbox > details > summary h2 { margin: 0; font-size: 1.05rem; } .wishbox > details > summary h2::before { content: "▸ "; color: var(--muted); } .wishbox > details[open] > summary h2::before { content: "▾ "; }
.wishbox > details[open] > summary { margin-bottom: 10px; }
.wb-open { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); } .wb-open ul { margin: 4px 0 0; } .wb-open li { padding: 3px 0; }

/* ═════════ FE-1.9.1: 👥 Kundenliste kompakt (ohne Buchstaben), Anrufen + Navigation ═════════ */
.cl-sort { margin: -4px 0 10px; }
.custlist.cl { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2px 6px 2px 14px; margin-bottom: 18px; }
@media (min-width: 1400px) { .custlist.cl { grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); } }
.cl-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1400px) { .cl-row { border-bottom: 0; box-shadow: 0 1px 0 var(--line); } }
.cl-row:last-child { border-bottom: 0; }
.cl-main { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; color: var(--ink); padding: 3px 4px 3px 0; border-radius: 8px; }
.cl-main:hover { text-decoration: none; } .cl-main:hover .cl-name { color: var(--accent-text, var(--accent)); }
.cl-name { font-weight: 650; font-size: 1rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-sub { grid-column: 1; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.cl-meta .chip { font-size: .72rem; }
.cl-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-text, var(--accent)); background: var(--accent-soft); }
.cl-btn:hover { text-decoration: none; filter: brightness(.96); } .cl-btn .ic { width: 20px; height: 20px; margin: 0; }
.cl-btn.is-off { background: none; color: var(--line); }
@media (max-width: 560px) {
  .custlist.cl { padding: 0 4px 0 12px; }
  .cl-main { grid-template-columns: minmax(0, 1fr); }
  .cl-meta { grid-column: 1; grid-row: auto; text-align: left; font-size: .76rem; }
  .cl-btn { width: 42px; height: 42px; }
}

/* FE-1.9.3: 🛒 in „Meine Woche“ nur als dezentes Symbol unter der Uhrzeit */
.mw-it .mw-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mw-cart { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; color: #b91c1c; background: color-mix(in srgb, #dc2626 12%, transparent); }
.mw-cart .ic { width: 15px; height: 15px; margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mw-cart { color: #f87171; background: color-mix(in srgb, #ef4444 16%, transparent); } }
:root[data-theme="dark"] .mw-cart { color: #f87171; background: color-mix(in srgb, #ef4444 16%, transparent); }
@media (min-width: 700px) and (max-width: 1100px) { .mw-it .mw-t { flex-direction: row; align-items: center; } }


/* FE-1.9.4: mehrzeiliger Kundenname */
.cl-name2 { grid-column: 1; font-size: .9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-meta { grid-row: 1 / span 3; }
@media (max-width: 560px) { .cl-meta { grid-row: auto; } }
.cname-more { margin: 2px 0 0; color: var(--ink); line-height: 1.35; }
textarea.cname-ta { min-height: 0; resize: vertical; }

/* FE-1.9.5: Kundenname am Handy zweizeilig; Uhrzeit in „Meine Woche“ antippen = ändern */
.cn .cn2::before { content: " · "; }
@media (max-width: 700px) {
  .cn { display: flex !important; flex-direction: column; align-items: flex-start; white-space: normal !important; }
  .cn .cn1, .cn .cn2 { display: block; max-width: 100%; white-space: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; line-height: 1.25; }
  .cn .cn2 { font-weight: 500; font-size: .92em; } .cn .cn2::before { content: none; }
  .cn > .prio { margin: 3px 0 1px; }
}
.mw-it { position: relative; }
.mw-link { color: inherit; text-decoration: none; } .mw-link:hover { text-decoration: none; }
.mw-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mw-it .mw-t { position: relative; z-index: 1; }
.mw-tedit { font: inherit; color: inherit; background: none; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; cursor: pointer; min-height: 30px;
  text-decoration: underline dotted color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: 3px; }
.mw-tedit:hover, .mw-tedit:focus-visible { background: var(--accent-soft); color: var(--accent-text, var(--accent)); text-decoration: none; }
.mw-it:focus-within { border-color: var(--accent); }

/* FE-1.9.6: Arbeitszeit je Techniker */
.wt-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.wt-who[hidden] { display: none; }
.wt-whol { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-whoc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.wt-whoc:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.wt-whoh { flex-basis: 100%; }
.te-u select { min-width: 4.2em; padding-inline: 8px 22px; font-weight: 600; }
/* Teil aus dem Hauptlager: kein RL */
.row:has(.vo-hl input:checked) label:has(#voPtRl), .row:has(.vo-hl input:checked) label:has(input[name=rl]) { display: none; }

.wt-whoc { flex-direction: row !important; } .wt-whoc > input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* FE-1.9.7: 🗑 Einsatz löschen, Papierkorb */
.jobdel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.trashlist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }
.trashrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0; }
.tr-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .tr-main b { overflow-wrap: anywhere; }
.tr-act { display: flex; flex-wrap: wrap; gap: 8px; } .tr-act form { margin: 0; }

/* ═════════ FE-1.9.8: „Einsatz starten“ am Handy kompakter ═════════ */
.vo-apptline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
@media (max-width: 700px) {
  main:has(#vo) > .sechead { margin: 2px 0 8px; } main:has(#vo) > .sechead h1 { font-size: 1.25rem; }
  .vo-appts, .vo-apptinfo { margin-bottom: 8px; } .vo-apptinfo { padding: 8px 12px; }
  .vo-apptline .prio.pready { font-size: .78rem; padding: 2px 8px; }
  .vorort { gap: 8px; }
  .vo-step { padding: 10px 12px; gap: 8px; }
  .vo-step h2 { font-size: .8rem; gap: 7px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .vo-step h2 b { width: 20px; height: 20px; font-size: .72rem; }
  .vo-picked { padding: 7px 8px 7px 12px; gap: 8px; }
  .vo-pname b { font-size: 1rem; line-height: 1.25; } .vo-pname small { font-size: .8rem; }
  .vo-cust, .vo-dev { padding: 7px 10px; min-height: 44px; border-radius: 10px; }
  .vo-dev.vo-devnew { justify-content: center; border-style: dashed; background: none; font-weight: 600; }
  .vo-step label { font-size: .85rem; }
  .vo-tech { padding: 3px 4px 3px 10px; font-size: .88rem; }
  .vo-bar { padding-top: 8px; padding-bottom: 8px; }
}

/* FE-1.9.9: Import – Kunden prüfen */
.impcust h2 { margin: 0 0 4px; font-size: 1.05rem; }
.impctbl { font-size: .85rem; } .impctbl td { vertical-align: middle; } .impctbl tr.is-new td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.impctbl .impname { min-width: 220px; width: 100%; }
.impnew { display: flex; align-items: center; gap: 6px; } .impctbl th { text-align: left; }
.dayfor { margin: -6px 0 12px; } .daywho { width: auto; max-width: 100%; }
@media (max-width: 760px) { .m-nosearch, body.search-open .topsearch.m-nosearch { display: none !important; } }
/* 🛒 FE-1.9.12: Teile zum Bestellen (nicht erledigt) und Reiselager-Bestellung je Hersteller */
.vo-ord.jsvc { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--warn); }
.vo-ord select, .vo-ord input { min-width: 0; }
.rl-mk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .rl-mk input { width: 11em; max-width: 100%; padding: 4px 8px; font-size: .86rem; min-height: 0; }
.rl-mk.is-guess input { border-style: dashed; } .rl-mk .rl-mkok { color: var(--ok); }
.rlorder { display: flex; flex-direction: column; gap: 10px; } .rlorder form { display: flex; flex-direction: column; gap: 10px; } .rlorder select { width: 100%; }
.rlorder .rlo-btns { display: flex; gap: 8px; flex-wrap: wrap; } .rlorder .rlo-to { overflow-wrap: anywhere; }
.rlside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dictwrap > input { padding-right: 46px; width: 100%; } .dictwrap > input + .dictbtn { top: 50%; transform: translateY(-50%); }
.segment.rltabs { max-width: 100%; flex-wrap: wrap; }   /* FE-1.9.12: drei Reiter passen am Handy nicht in eine Zeile */
dl.facts dd { min-width: 0; overflow-wrap: anywhere; } dl.facts code { overflow-wrap: anywhere; word-break: break-all; white-space: normal; }   /* FE-1.9.12: lange Pfade/Adressen brechen am Handy um */
.vo-office .vo-ord { margin-top: 6px; }
.rlprev h1 { margin: 0; font-size: 1.25rem; } .rlprev-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-soft, rgba(127,127,127,.1)); padding: 10px 12px; border-radius: 8px; margin: 0; font: inherit; }
.rlprev .facts dd { overflow-wrap: anywhere; }
/* 📞 Serviceannahme (FE-1.9.17) */
.ancols { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 16px; align-items: start; } @media (max-width: 1000px) { .ancols { grid-template-columns: 1fr; } }
.anrecent ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .anrecent li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(127,127,127,.08); overflow-wrap: anywhere; }
.anNew > summary { cursor: pointer; color: var(--accent, #00843d); font-size: .9rem; } .anNew[open] > .stack { margin-top: 8px; }
.nogap { gap: 6px; align-items: center; } .ancb { align-self: end; min-height: 44px; }

/* 📌 Offen zum Einplanen – Karten (FE-1.9.17) */
.dispo-filter { flex-direction: column; align-items: stretch; gap: 8px; } .dispo-filter .segment { display: flex; flex-wrap: wrap; gap: 4px; } .dispo-filter .segment a { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.dispo-filter label { display: flex; align-items: center; gap: 8px; } .dispo-filter select { flex: 1; max-width: none; }
.dopenlist { gap: 10px; }
ul.plain li.dopen { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid #d97706; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
ul.plain li.dopen.t-termin { border-left-color: #64748b; } ul.plain li.dopen.is-call { border-left-color: #a855f7; }
.dopen .dop-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; } .dopen .dop-cust { font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.dopen .dop-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; } .dopen .dop-badges > * { margin: 0 !important; }
.dopen .dop-dev { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; } .dopen .dop-since { font-size: .85rem; color: var(--muted); }
.dopen .dop-text { font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; padding-left: 8px; border-left: 2px solid var(--line); }
.callbox { font-size: .88rem; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, #a855f7 12%, var(--surface)); border: 1px solid color-mix(in srgb, #a855f7 35%, var(--line)); overflow-wrap: anywhere; }
.callbox .callback { font-weight: 700; color: var(--ink); }
.lo-item .callbox, .wk-item .callbox { display: block; margin: 3px 0; } .lo-item .lo-fault { display: block; }
.dopen .dop-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); } .dopen .dop-foot > .small { min-width: 0; }
.ancall > label, .ancols .vo-2 > label { min-width: 0; } .ancall .row { flex-wrap: nowrap; } .ancall input { min-width: 0; width: 100%; } .ancall .row .btn { flex: none; }
.ancols .glog-kinds { display: flex; flex-wrap: wrap; gap: 6px; } .ancols .glog-kinds .chip { flex: 1 1 auto; justify-content: center; }
@media (max-width: 560px) { .ancall { grid-template-columns: 1fr !important; } }
/* FE-1.9.17: Startpunkte der Route (Heimatort / Firma) */
.dstops .dstart{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:color-mix(in srgb,var(--c,#64748b) 10%,transparent);border:1px dashed color-mix(in srgb,var(--c,#64748b) 55%,transparent);list-style:none}
.dstops .dstart .dno{background:transparent;font-size:1.05rem;min-width:1.6rem;text-align:center}
.dstartnote{margin:2px 0 6px}
.dpin.start span{font-size:14px}

/* FE-1.9.18: Meine Woche – Telefon und Navigation je Termin, Tippen startet den Einsatz */
.mw-s { position: relative; z-index: 1; }
.mw-acts { display: flex; gap: 6px; }
.mw-ab { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--accent-text, var(--accent)); text-decoration: none; }
.mw-ab:hover, .mw-ab:focus-visible { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.mw-ab svg { width: 20px; height: 20px; }
.mw-stacts { grid-column: 1 / -1; position: relative; z-index: 1; }
@media (min-width: 700px) and (max-width: 1100px) { .mw-it .mw-s:has(.mw-acts) { display: block; margin-top: 4px; } .mw-it .mw-stacts { grid-column: 1; } }
.vo-apptrow > .navbtn { align-self: flex-start; width: 46px; height: 46px; justify-content: center; padding: 0; }
.vo-apptrow.is-vm > .vo-appt > .mono { display: none; }
.vo-apptrow.is-vm .vmline { display: inline-block; margin: 2px 0; }
/* FE-1.9.18: Termin zurückgegeben */
.retbox { background: color-mix(in srgb, #d97706 14%, var(--surface)); border-color: color-mix(in srgb, #d97706 45%, var(--line)); }
.retbox b { color: #b45309; } :root[data-theme="dark"] .retbox b { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .retbox b { color: #fbbf24; } }
#mvDlg hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; } #mvDlg h3 { margin: 0; }
.vo-apptline .btn { margin-left: 6px; }
#bestellung .checkline, #einsatzmail .checkline { flex: 1 1 100%; min-width: 0; white-space: normal; align-items: flex-start; } #bestellung .checkline span, #einsatzmail .checkline span { white-space: normal; min-width: 0; overflow-wrap: anywhere; }

/* 📱 Tablet quer (Surface u. ä., ca. 1100–1700 px): fünf schmale Spalten – Termin gestapelt statt dreispaltig,
   damit Zeit, Kunde und Knöpfe (Anrufen · Route · Ändern) nicht gegeneinander gequetscht werden. */
@media (min-width: 1101px) and (max-width: 1700px) {
  .mw-days { gap: 10px; }
  .mw-day { padding: 10px; }
  .mw-it { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 11px; }
  .mw-it .mw-t { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .mw-it .mw-s { display: none; }
  .mw-it .mw-s:has(.mw-acts) { display: block; margin-top: 4px; }
  .mw-it .mw-stacts { grid-column: 1; margin: 2px 0 0; }
  .mw-b b { font-size: .95rem; }
  .mw-b small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mw-ab { width: 42px; height: 42px; }
  .mw-it.is-erledigt .mw-t::after { content: "✓"; color: var(--ok); font-weight: 700; margin-left: auto; }
  .mw-it.is-offen .mw-t::after { content: "⏳"; margin-left: auto; }
}
/* 📧 FE-1.9.26: Mail vorbereiten am abgesendeten Einsatz */
.mailprep { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.mailprep b { font-size: .95rem; } .mailprep .muted { overflow-wrap: anywhere; }
.mp-items { display: flex; flex-direction: column; gap: 4px; }
.mp-items .checkline { min-width: 0; } .mp-items .checkline span { overflow-wrap: anywhere; }
.mailprep > b, .mailprep > span { display: block; }

/* ── FE-1.9.29: 📋 Protokolle ── */
.protobox .pb-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.pb-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; color: var(--ink); } .pb-main:hover { text-decoration: none; }
.pb-main small { overflow-wrap: anywhere; } .pb-new { margin-top: 10px; } .pb-new select { flex: 1 1 200px; min-width: 0; }
.protoset { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; } .protoset h3 { margin: 0; }
.protoform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; } .protoform fieldset.card { padding: 16px; }
.pf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .pf-grid2, .protoset + .pf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-grid3 input, .pf-grid2 input { width: 100%; min-width: 0; }
.pf-lab { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.pf-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pf-tile { position: relative; margin: 0; cursor: pointer; } .pf-tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pf-tile span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; transition: background .12s, border-color .12s; }
.pf-tile input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pf-tile input:checked + span::before { content: "✓"; margin-right: 6px; }
.pf-tile input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.pf-none span { color: var(--muted); font-weight: 400; }
.pf-body { display: flex; flex-direction: column; gap: 12px; }
.pf-sec { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; } .pf-sec h2 { font-size: 1.05rem; margin: 0; }
.pf-sh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; padding-left: 10px; border-left: 4px solid var(--accent); } .pf-sh > :first-child { flex: 1 1 200px; min-width: 0; }
.pf-all { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pf-chk { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 9px 6px; margin: 0; border-radius: 8px; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; }
.pf-chk:hover { background: var(--surface-2); }
.pf-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-chk i { flex: 0 0 24px; height: 24px; border: 2px solid var(--line); border-radius: 7px; background: var(--surface); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.pf-chk input:checked + i { background: var(--accent); border-color: var(--accent); }
.pf-chk input:checked + i::after { content: ""; width: 6px; height: 12px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pf-chk input:focus-visible + i { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.pf-chk span, .pf-chk b { min-width: 0; overflow-wrap: anywhere; } .pf-chk-h b { font-size: 1.05rem; }
.pf-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
#pSigCanvas { width: 100%; height: auto; aspect-ratio: 3/1; background: #fff; border-radius: 8px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; display: block; }
@media (min-width: 1500px) { .protoform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; } .protoform > .pf-head, .protoform > .pf-bar, .protoform > fieldset:last-of-type { grid-column: 1 / -1; } .pf-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; align-items: start; } }
@media (max-width: 640px) { .pf-grid3, .pf-grid2 { grid-template-columns: minmax(0, 1fr); } .pf-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pf-bar { bottom: calc(64px + env(safe-area-inset-bottom)); margin: 0 -4px; } .pf-bar .btn-big { flex: 1 1 100%; justify-content: center; } }
#unterschrift form { min-width: 0; max-width: 100%; } #unterschrift .btn { white-space: normal; max-width: 100%; }
/* FE-1.9.30: Geräteliste im Einsatz als Dropdown (wie Serviceannahme) */
.vo-devs[hidden] { display: none; } #voDevSel { width: 100%; min-width: 0; }

/* ✍️ FE-1.9.31: Einsatz erfassen – Kopfzeile Nr./Datum/Ansprechpartner, große Fehlermeldung; Abschluss-Seite */
.vo-head3 input { width: 100%; min-width: 0; }
.vo-faultbox { display: flex; flex-direction: column; gap: 4px; }
.vo-faultbox textarea { min-height: 7.5em; resize: vertical; }
.vo-signwarn { border-left: 4px solid var(--warn); }
@media (max-width: 760px) { .vo-head3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vo-head3 > label:nth-child(3) { grid-column: 1 / -1; } }
.ab-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.ab-top .ab-back { font-weight: 600; }
.ab-head { display: flex; flex-direction: column; gap: 12px; }
.ab-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; } .ab-title h1 { margin: 0; }
.chip.ok { border-color: var(--ok); color: var(--ok); }
.ab-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 16px; }
.ab-meta > div, .ab-cust { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ab-meta small, .ab-cust small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.ab-cust { border-top: 1px solid var(--line); padding-top: 10px; }
.ab-job { display: flex; flex-direction: column; gap: 10px; }
.ab-jhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } .ab-jhead h2 { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ab-st { font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.ab-st.ok { color: var(--ok); } .ab-st.warn { color: var(--warn); }
.ab-dev { margin: -4px 0 0; }
.ab-texts, .ab-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ab-job h3 { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.ab-texts p { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.ab-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ab-tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); padding: 4px 6px; }
.ab-tbl td { border-bottom: 1px solid var(--line); padding: 5px 6px; vertical-align: top; overflow-wrap: anywhere; }
.ab-tbl .num { text-align: right; white-space: nowrap; }
.ab-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-thumbs img, .ab-thumbs video { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.ab-sum { margin: -4px 0 12px; }
.ab-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; align-items: start; }
@media (min-width: 1200px) { .ab-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ab-files .pb-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 0; }
.ab-files .inline-upload { margin-top: 10px; }
.ab-sign { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--accent); }
.ab-sign h2 { margin: 0; } .ab-legal { margin: 0; color: var(--muted); }
.ab-sigwrap { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
#abSigCanvas, #gsCanvas { width: 100%; height: auto; aspect-ratio: 3/1; max-height: 300px; background: #fff; border-radius: 8px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; display: block; }
.ab-sigwrap .row { align-items: flex-end; } .ab-sigwrap input { min-width: 0; }
.ab-nosign summary { cursor: pointer; color: var(--muted); } .ab-nosign[open] { display: flex; flex-direction: column; gap: 8px; } .ab-nosign input[name=nosign_reason] { width: 100%; max-width: 480px; }
#abSubmit { align-self: flex-start; }
@media (max-width: 760px) {
  .ab-texts, .ab-tables { grid-template-columns: minmax(0, 1fr); }
  #abSubmit { align-self: stretch; justify-content: center; }
  .ab-tbl { font-size: .86rem; } .ab-tbl th, .ab-tbl td { padding: 4px 3px; }
}
@media print { .ab-top, .ab-sign form, .ab-files { display: none !important; } }
.ab-btns { align-items: center; } .ab-btns #abSubmit { align-self: auto; }
@media (max-width: 760px) { .ab-btns > .btn { flex: 1 1 100%; justify-content: center; } }
.vo-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .vo-btns > .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
.pf-headbtns { flex-wrap: wrap; min-width: 0; }
.ab-two > .card { margin-top: 0; margin-bottom: 18px; } .ab-two { margin-top: 18px; }
.ab-sign .kopie input[type=email] { max-width: 420px; }
@media (max-width: 760px) { .ab-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* 💶 FE-1.9.33: BA je Teil im Formular (Einsatzleitung) */
#voPartList li { flex-wrap: wrap; } .vo-ptba-w { flex: 1 1 100%; padding-left: 1.6em; } .vo-ptba { width: 100%; max-width: 340px; min-width: 0; font-size: .9rem; padding: 4px 8px; }

/* 🔎 FE-1.9.33: Prüfansicht der Einsatzleitung (abgesendete Einsätze) */
.pr-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; position: sticky; top: calc(var(--hdr-h, 0px) + 8px); z-index: 5; }
.pr-bar form.inline { display: contents; } .pr-bar .pr-full { margin-left: auto; }
.pr-head h1 { margin: 0; overflow-wrap: anywhere; }
.pr-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; overflow-wrap: anywhere; }
.pr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 18px; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.pr-facts > div { min-width: 0; } .pr-facts dt { color: var(--muted); font-size: .8rem; margin: 0 0 2px; }
.pr-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; } .pr-facts dd small { display: block; font-weight: 400; color: var(--muted); }
.pr-babadge { font-size: .7rem; padding: 0 6px; margin-left: 4px; }
.pr-sig .mysig img { max-width: 100%; }
@media (max-width: 760px) {
  .pr-bar { position: static; } .pr-bar > .btn, .pr-bar form.inline > .btn { flex: 1 1 calc(50% - 8px); justify-content: center; min-width: 0; white-space: normal; text-align: center; }
  .pr-bar .pr-full { margin-left: 0; }
  .pr-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* 📡 FE-1.9.34: Abschluss ohne Netz (Overlay im Formular) */
.vo-offab { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; padding: 16px; }
body.vo-offopen { overflow: hidden; }
.vo-offpanel { max-width: 760px; margin: 0 auto 80px; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--accent); }
.vo-offpanel h2 { margin: 0; }
.vo-offsum { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; margin: 0; } .vo-offsum .wide { grid-column: 1 / -1; }
.vo-offsum > div { min-width: 0; } .vo-offsum dt { color: var(--muted); font-size: .8rem; } .vo-offsum dd { margin: 0; overflow-wrap: anywhere; }
#voOffSig { width: 100%; height: auto; aspect-ratio: 3/1; background: #fff; border-radius: 8px; border: 1px solid var(--line); touch-action: none; display: block; }
.vo-offpanel input { min-width: 0; max-width: 100%; }
.vo-offbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 760px) { .vo-offab { padding: 8px; } .vo-offbtns > .btn { flex: 1 1 100%; justify-content: center; } }
/* ⚠ FE-1.9.34: Prüfhinweise */
.ab-checks { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); padding: 10px 12px; border-radius: 8px; }
.ab-checks ul { margin: 6px 0; padding-left: 1.2em; } .ab-checks li { overflow-wrap: anywhere; }

/* 🌙 FE-1.9.35: Tagesabschluss als kompakte Zeile */
.dayclose { padding: 8px 12px; } .dayclose.has-open { border-left: 4px solid var(--warn); }
.dc-sum { display: flex; align-items: center; gap: 6px 10px; cursor: pointer; list-style: none; min-width: 0; font-size: .9rem; }
.dc-sum::-webkit-details-marker { display: none; } .dc-sum::after { content: '›'; margin-left: auto; color: var(--muted); transition: transform .15s; } .dayclose[open] .dc-sum::after { transform: rotate(90deg); }
.dc-t { font-weight: 700; white-space: nowrap; } .dc-n { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-open { background: var(--warn); color: #fff; font-weight: 700; font-size: .75rem; padding: 1px 8px; border-radius: 999px; white-space: nowrap; } .dc-ok { color: var(--ok); font-weight: 700; }
.dc-body { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dc-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); }
.dc-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.dc-list a { display: flex; align-items: baseline; gap: 8px; padding: 5px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink); min-width: 0; font-size: .9rem; }
.dc-list .dc-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dc-list .dc-go { margin-left: auto; color: var(--accent); font-weight: 600; }
.dc-warn, .dc-off { margin: 0; } .dayclose .ok { color: var(--ok); margin: 0; }
/* 💬 Feedback */
.fb-kinds { display: flex; flex-wrap: wrap; } .fb-kinds label { display: inline-flex; cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-kinds span { color: var(--muted); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 10px; }
.fb-kinds input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.fb-kinds input:focus-visible + span { outline: 2px solid var(--accent); }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { display: flex; flex-direction: column; gap: 6px; } .fb-item.is-done { opacity: .75; }
.fb-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .fb-body { margin: 0; overflow-wrap: anywhere; }
.fb-form input { min-width: 0; }
.set-quick { gap: 8px; margin: 0 0 10px; }
/* 🛡 Sicherheit */
.sec-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.sec-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.sec-ic { flex: 0 0 1.6em; height: 1.6em; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.sec-row.ok .sec-ic { color: var(--ok); } .sec-row.bad .sec-ic { color: var(--danger); } .sec-row.hint .sec-ic { color: var(--muted); }
.sec-row.bad { border-left: 3px solid var(--danger); } .sec-txt { min-width: 0; overflow-wrap: anywhere; }
.sec-steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
/* ⚠ FE-1.9.35: Prüfhinweise einstellen, Pflicht */
.chk-rules { display: flex; flex-direction: column; gap: 8px; }
.chk-rule { display: grid; grid-template-columns: minmax(180px, 1.2fr) auto minmax(140px, .8fr) minmax(200px, 2fr); gap: 6px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.chk-rule input[type=text], .chk-rule input:not([type]) { width: 100%; min-width: 0; }
.chk-rule .chk-val:empty { display: none; } .chk-rule label.chk-val, .chk-rule label.chk-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chk-lvl { flex-wrap: nowrap; } .chk-lvl label { display: inline-flex; cursor: pointer; }
.chk-lvl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk-lvl span { color: var(--muted); font-weight: 600; font-size: .85rem; padding: 5px 10px; border-radius: 9px; }
.chk-lvl input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chk-lvl input[value=pflicht]:checked + span { color: var(--danger); } .chk-lvl input:focus-visible + span { outline: 2px solid var(--accent); }
.chk-rule:not(:has(.chk-val)) .chk-txt { grid-column: 3 / -1; }
@media (max-width: 1100px) { .chk-rule { grid-template-columns: minmax(0, 1fr) auto; } .chk-rule .chk-val, .chk-rule .chk-txt, .chk-rule:not(:has(.chk-val)) .chk-txt { grid-column: 1 / -1; } }
@media (max-width: 760px) { .chk-rule { grid-template-columns: minmax(0, 1fr); } .chk-lvl { justify-self: start; } }
.ab-checks.has-block { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.ab-checks li.must { color: var(--danger); }

/* 📦 FE-1.9.36: Lager */
.lg-search label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; } .lg-search .row { gap: 8px; } .lg-search input { flex: 1 1 auto; min-width: 0; }
.lg-hits h2 { margin: 0 0 8px; } .lg-hitlist { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.lg-hit { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.lg-hit.none { opacity: .75; } .lg-part { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.lg-at { display: flex; flex-wrap: wrap; gap: 6px; } .lg-at .chip { text-decoration: none; }
.lg-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.lg-store { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; } .lg-store:hover { border-color: var(--accent); text-decoration: none; } .lg-store.off { opacity: .6; }
.lg-admin { display: flex; flex-direction: column; gap: 6px; }
.lg-admin { max-width: 980px; } .lg-arow { display: grid; grid-template-columns: 96px 90px 64px minmax(0, 1fr) 50px; gap: 8px; align-items: center; } .lg-arow input[name$='[code]'], .lg-arow input.lg-nr { text-align: center; font-variant-numeric: tabular-nums; }
.lg-who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-width: 0; } .lg-who > :only-child { grid-column: 1 / -1; } .lg-arow input, .lg-arow select { min-width: 0; width: 100%; }
.lg-tools { gap: 8px; margin: 8px 0; } .lg-q { gap: 6px; flex: 1 1 260px; } .lg-q input { flex: 1 1 auto; min-width: 0; }
.lg-table { display: flex; flex-direction: column; gap: 0; padding: 8px 12px; }
.lg-row, .inv-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 40px 32px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lg-row.short { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.lg-art { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; } .lg-art small { font-size: .78rem; }
.lg-row input.num, .inv-row input.num { width: 100%; min-width: 0; text-align: right; } .lg-row .num { text-align: right; }
.lg-must { display: inline-flex; cursor: pointer; } .lg-must input { position: absolute; opacity: 0; width: 1px; height: 1px; } .lg-must span { filter: grayscale(1); opacity: .35; font-size: 1.2rem; } .lg-must input:checked + span { filter: none; opacity: 1; } .lg-must input:focus-visible + span { outline: 2px solid var(--accent); }
.lg-save { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 4px; background: var(--surface); }
.lg-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; } .lg-add label { display: flex; flex-direction: column; gap: 2px; } .lg-add .grow { flex: 1 1 240px; min-width: 0; } .lg-add input.num { width: 90px; }
.lg-log ul { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 0; padding: 0; } .lg-log li { overflow-wrap: anywhere; }
.rl-stock { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; border-left: 4px solid var(--accent); } .rl-stock:hover { text-decoration: none; border-color: var(--accent); }
.inv-scan { gap: 8px; align-items: center; } .inv-scan input { min-width: 0; } .inv-scan .vo-msg { flex: 1 1 100%; margin: 0; }
.inv-form { display: flex; flex-direction: column; gap: 8px; } .inv-row { grid-template-columns: minmax(0, 1fr) 70px 96px; }
.inv-row.hit { animation: invhit 1s ease-out; } @keyframes invhit { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } to { background: transparent; } }
.imp-wrap { overflow-x: auto; max-width: 100%; } .imp-tbl { border-collapse: collapse; font-size: .85rem; } .imp-tbl th, .imp-tbl td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; } .imp-tbl select { font-size: .85rem; } .imp-h th { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .lg-arow { grid-template-columns: 58px minmax(0, 1fr) 56px 34px; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .lg-arow .lg-who { grid-column: 1 / -1; grid-row: 2; } .lg-ahead { padding-bottom: 0; border: 0; } .lg-ahead > :nth-child(4) { display: none; } .lg-new { border-bottom: 0; }
  .lg-row { grid-template-columns: minmax(0, 1fr) 64px 64px 32px 24px; gap: 4px; } .inv-row { grid-template-columns: minmax(0, 1fr) 44px 76px; }
}
.lg-stores > .card { margin: 0; }

/* ═════════ FE-1.9.38: 🧪 Prüfungen/Messungen, Positionen (Teile mit Lager), Hersteller aufklappbar, Bestellnummer ═════════ */
/* Zeilen-Editor für Teile + Prüfungen (Textvorlagen, Termine) */
.posed { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.posed-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.posed-head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.posed-rows { display: flex; flex-direction: column; gap: 6px; } .posed-none { margin: 0; }
.posed-row { display: grid; grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1fr) 150px 28px; gap: 6px; align-items: center; }
.posed-row.posed-fee { grid-template-columns: 64px minmax(0, 1fr) 28px; }
.posed-row input, .posed-row select { min-width: 0; width: 100%; margin: 0; } .posed-fname { min-width: 0; overflow-wrap: anywhere; }
.posed-del { justify-self: center; padding: 4px; }
.posed-add { display: flex; gap: 6px; } .posed-add .posed-q { flex: 1 1 auto; min-width: 0; margin: 0; } .posed-add .btn { flex: none; }
.posed select[data-addfee], .posed select[data-takepos] { max-width: 100%; min-width: 0; margin: 0; }
.posed-take { gap: 8px; } .posed-take select { flex: 1 1 240px; }
.tplpos { display: flex; flex-direction: column; gap: 6px; } .tplpos > p { margin: 0; }
.appos { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .appos > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; } .appos[open] > summary { margin-bottom: 8px; }
/* schmaler Platz (Termin-Formular neben dem Planer): Bezeichnung über die volle Breite, Art.-Nr. und Lager darunter */
.posed { container-type: inline-size; }
@container (max-width: 640px) { .posed-row:not(.posed-fee) { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 28px; } .posed-row:not(.posed-fee) .posed-name { grid-column: 2 / 4; } .posed-row:not(.posed-fee) .posed-del { grid-column: 4; grid-row: 1; }
  .posed-row:not(.posed-fee) .posed-art { grid-column: 2; grid-row: 2; } .posed-row:not(.posed-fee) .posed-store { grid-column: 3; grid-row: 2; } }
@container (max-width: 440px) { .posed-row:not(.posed-fee) .posed-art { grid-column: 2 / 4; } .posed-row:not(.posed-fee) .posed-store { grid-column: 2 / 4; grid-row: 3; } }
.appos > p { margin: 0 0 8px; } .appos .posed-sec { background: transparent; padding: 0; border: 0; }
.poslist { margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 2px; } .poslist li { overflow-wrap: anywhere; }
.tplmeta ul.small { list-style: none; padding-left: 0; }
.prio.ppos { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); cursor: help; }
/* Einsatz: Prüfungen/Messungen unter den Teilen */
.vo-fees { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line); }
.vo-fees select { max-width: 100%; min-width: 0; margin: 0; } #voFeeList li { flex-wrap: wrap; } #voFeeList:empty { display: none; }
#voFeeList [data-fq] { min-width: 28px; font-weight: 700; }
.jsvc-fee { color: var(--ink); } .jsvc-feeadd form { align-items: flex-end; gap: 8px; } .jsvc-feeadd select { min-width: 0; max-width: 100%; }
.ab-feeh { margin-top: 12px; } .feechip { font-size: .72rem; white-space: nowrap; }
/* Admin: Katalog */
.fee-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 110px minmax(0, 1.4fr) 100px auto; gap: 8px 10px; align-items: end; }
#neu .fee-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 110px minmax(0, 1.4fr) 100px; }
.fee-grid label { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; } .fee-grid input { min-width: 0; width: 100%; }
.fee-grid .fee-act { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; white-space: nowrap; }
.fee-list { display: flex; flex-direction: column; gap: 0; }
.fee-item { padding: 12px 0; border-top: 1px solid var(--line); } .fee-item.off { opacity: .6; } .fee-item:target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.fee-form { display: flex; flex-direction: column; gap: 8px; } .fee-acts { gap: 8px; align-items: center; }
.fee-cand { display: flex; flex-direction: column; gap: 4px; } .fee-cand label > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
/* Hersteller aufklappbar: Lager, Artikelliste, Reiselager */
.lg-grp, .pl-grp, .rl-grp { border-bottom: 1px solid var(--line); min-width: 0; }
.lg-grp > summary, .pl-grp > summary, a.pl-link, .rl-grp > summary { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 10px 4px; cursor: pointer; list-style: none; color: var(--ink); text-decoration: none; }
.lg-grp > summary::-webkit-details-marker, .pl-grp > summary::-webkit-details-marker, .rl-grp > summary::-webkit-details-marker { display: none; }
.lg-grp > summary::before, .pl-grp > summary::before, .rl-grp > summary::before { content: '▸'; color: var(--muted); width: 1em; flex: none; }
.lg-grp[open] > summary::before, .pl-grp[open] > summary::before, .rl-grp[open] > summary::before { content: '▾'; }
.lg-grp > summary:hover, .pl-grp > summary:hover, a.pl-link:hover, .rl-grp > summary:hover { background: var(--surface-2); text-decoration: none; }
.lg-grp[open] > summary, .pl-grp[open] > summary, .rl-grp[open] > summary { border-bottom: 1px solid var(--line); }
.lg-grp .lg-row:last-child { border-bottom: 0; } .lg-gshort { margin-left: auto; }
.lg-foldbar, .pl-foldbar { align-items: center; gap: 8px; padding: 4px 0 8px; } .pl-foldbar { padding: 4px 2px 8px; }
.partlist { display: flex; flex-direction: column; gap: 0; } .pl-grp, a.pl-link { background: var(--surface); padding: 0 10px; } .pl-grp:first-child, a.pl-link:first-child { border-radius: 12px 12px 0 0; } .pl-grp:last-child, a.pl-link:last-child { border-radius: 0 0 12px 12px; border-bottom: 0; }
a.pl-link { border-bottom: 1px solid var(--line); padding: 10px 14px; } a.pl-link::before { content: '▸'; color: var(--muted); width: 1em; flex: none; } .pl-go { margin-left: auto; color: var(--muted); }
.pl-grp[open] { padding-bottom: 8px; } .pl-grp > .partrow { margin: 8px 0 0; }
.rl-grp > ul.rl-rows { padding: 8px 0; }
/* Bestellungen: Bestellnummer und Suche */
.ordsearch { gap: 6px; margin: 8px 0; flex-wrap: wrap; } .ordsearch input { flex: 1 1 240px; min-width: 0; max-width: 520px; }
.ordno, .ordacts label.ordno { display: flex; flex-direction: row; flex: 1 1 100%; text-align: left; gap: 6px; align-items: center; margin: 0; } .ordno input { flex: 1 1 auto; min-width: 0; margin: 0; } .ordno > span { white-space: nowrap; }
@media (max-width: 760px) {
  .posed-row { grid-template-columns: 56px minmax(0, 1fr) 28px; } .posed-row .posed-name { grid-column: 2; } .posed-row .posed-del { grid-column: 3; grid-row: 1; }
  .posed-row .posed-art { grid-column: 1 / 3; grid-row: 2; } .posed-row .posed-store { grid-column: 1 / 3; grid-row: 3; } .posed-row:not(.posed-fee) { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .posed-row.posed-fee { grid-template-columns: 56px minmax(0, 1fr) 28px; }
  .fee-grid, #neu .fee-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fee-grid .fee-name, .fee-grid .fee-note { grid-column: 1 / -1; }
}

/* ═════════ FE-1.9.39: Weitere Arbeitszeit nur bei Bedarf aufklappen ═════════ */
.wt-more { margin: 4px 0 2px; } .wt-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.wt-more > summary::-webkit-details-marker { display: none; } .wt-more[open] > summary { margin-bottom: 6px; }

/* ═════════ FE-1.9.43: iPhone/iPad – Datums-/Zeitfelder halten die Spaltenbreite ═════════
   Safari gibt <input type=date|time> eine feste Eigenbreite und ignoriert width:100 % → Feld ragt über den Rand (Einsatz: Datum neben Serviceschein-Nr.).
   appearance:none lässt die Breite wieder zu; der Wert steht dann links wie bei den anderen Feldern. Nur iOS (-webkit-touch-callout gibt es nur dort). */
@supports (-webkit-touch-callout: none) {
  input[type=date], input[type=time], input[type=datetime-local], input[type=month] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; box-sizing: border-box; }
  input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value, input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; margin: 0; }
}

/* ═════════ FE-1.9.44: 🔒 Private Termine im Konto ═════════ */
.pv-list { display: grid; gap: 6px; }
.pv-it { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.pv-it .pv-d, .pv-it .pv-t { display: flex; flex-direction: column; min-width: 0; } .pv-it .pv-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-it .pv-d small { white-space: nowrap; }
@media (max-width: 760px) { .pv-it { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; } }

/* ═════════ FE-1.9.46: 🎂 Geburtstage ═════════ */
.bday { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); font-weight: 600; }
.mw-bdp { margin: 2px 0 4px; } .wk-day .bday { font-size: .75rem; }
.bdaybar { margin: 0 0 12px; padding: 10px 14px; } .bd-row label { min-width: 110px; } .bd-row { align-items: flex-end; }
/* FE-1.9.47: 🎂 Geburtstage verwalten */
#bdForm { max-width: 900px; } .bd-list { display: grid; gap: 8px; }
.bd-line { display: grid; grid-template-columns: minmax(0, 1fr) 210px 110px; gap: 10px; align-items: center; }
#mitarbeiter .bd-line { grid-template-columns: minmax(0, 1fr) 210px; }
.bd-sel { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px; } .bd-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .bd-line, #mitarbeiter .bd-line { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .bd-line > input { grid-column: 1 / -1; } .bd-line .bd-sel { grid-template-columns: 74px 96px; } #weitere .bd-line .bd-sel { grid-column: 1; } }

/* ═════════ FE-1.9.50: Handy – Suchfeld immer sichtbar (ohne Lupe), Startseite nur gespeicherte Einsätze ═════════ */
@media (max-width: 760px) {
  .searchbtn { display: none !important; }
  .topsearch:not(.m-nosearch) { display: block; padding: 8px 0 4px; }
  .homehead-m { display: flex !important; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 1.15rem; }
}

/* ═════════ FE-1.9.52: 🛒 Ersatzteilbestellung – Freigabe B#, je Hersteller sammeln, Bestellungen mit AB ═════════ */
.ordflow { margin: -4px 0 10px; } .ordtabs { flex-wrap: wrap; }
.ordmakers, .ordpos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); margin: 0 0 14px; }
.ordmaker, .pocard { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ordmaker > header h2 { margin: 0; font-size: 1.1rem; } .ordmaker.is-urgent, .ordcard.is-urgent { box-shadow: inset 4px 0 0 var(--bad, #c0392b); }
.omlines { display: grid; gap: 4px; } .omline { padding: 6px 8px; border-radius: 10px; background: var(--surface-2); } .omline.is-urgent { background: color-mix(in srgb, var(--bad, #c0392b) 9%, var(--surface-2)); }
.omline .checkline { align-items: flex-start; gap: 10px; } .om-t { display: flex; flex-direction: column; min-width: 0; } .om-t small { overflow-wrap: anywhere; }
.omfoot { align-items: flex-end; gap: 8px; } .omfoot .ordno { flex: 1 1 200px; } .om-msg { flex: 1 1 100%; }
.pocard > header { align-items: baseline; gap: 8px; } .pono { font-size: 1.1rem; } .pocard.is-da { opacity: .85; }
.polines { display: grid; gap: 3px; } .ordsingle { margin: 6px 0 14px; } .ordsingle > summary { cursor: pointer; padding: 6px 0; } .ordsub { margin: 14px 0 6px; }
.ordrel { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); } .ordrel fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.ordrel legend { padding: 0 0 4px; } .ordrel-row { align-items: flex-end; gap: 10px; } .ordrel-row label.grow { min-width: 200px; } .ordnote { color: var(--ink); }
@media (max-width: 760px) { .omfoot .btn { flex: 1 1 auto; } .ordrel-row .btn { width: 100%; } }
.ordrel fieldset { min-width: 0; } .ordrel .checkline { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0; } .ordrel .checkline input { margin-top: 3px; flex: none; }
.om-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; } .om-h .chip { flex: none; }
.ordrel input[type=radio], .ordrel input[type=checkbox], .ordmaker input[type=checkbox] { width: auto !important; min-width: 0; height: auto; padding: 0; flex: none; }
.ordrel .checkline > span { flex: 1 1 auto; min-width: 0; }

/* ═════ FE-1.9.53: „Meine Woche“ in derselben Optik wie die Einsatzliste – weiße Karten mit Standfarbe links,
   gleiche Schriftgrößen; am Handy ohne Rahmen-in-Rahmen, Tage als Zwischenüberschriften wie „HEUTE“ ═════ */
.myweek .mw-it { padding: 10px 12px; }
.myweek .mw-b { gap: 1px; }
.myweek .mw-b b { font-weight: 750; font-size: 1rem; }
.myweek .mw-b > small { font-size: .88rem; }
.myweek .mw-b > small.muted { font-size: .82rem; }
.myweek .mw-t { color: var(--muted); }
.myweek .mw-tedit { color: var(--ink); }
@media (max-width: 699px) {
  .card.myweek { background: none; border: 0; box-shadow: none; padding: 0; }
  .myweek .mw-head h2 { font-size: 1.1rem; }
  .mw-days { gap: 16px; }
  .mw-day { background: none; border: 0; padding: 0; gap: 8px; border-radius: 0; }
  .mw-day.is-today { box-shadow: none; }
  .mw-day.is-past { opacity: 1; } .mw-day.is-past .mw-it { opacity: .85; }
  .mw-day.is-abs { padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line); }
  .mw-dh { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .mw-dh b { font-weight: 700; } .mw-dh .chip { letter-spacing: 0; text-transform: none; }
  .mw-day.is-today .mw-dh { color: var(--accent-text, var(--accent)); }
  .mw-dh .mw-n { font-weight: 700; }
  .mw-free { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
}

/* ═════ FE-1.9.54: Farben gedreht – Seite weiß, Einsatz-Karten hellgrün (Liste, Meine Woche, Offen zum Einplanen, Schein, Reiselager, Termine).
   Zurück zur alten Optik: diesen Block löschen. Dunkel bleibt der Hintergrund dunkel, die Karten sind eine Stufe heller. ═════ */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #FFFFFF; } }
:root[data-theme="light"] { --bg: #FFFFFF; }
a.bizrow.bizrow3, .lo-item, ul.plain li.sb-row, ul.plain.rl-rows > li.rl-row, .mw-it:not(.mw-priv), .lc-ev,
.card a.bizrow.bizrow3, .card .lo-item, .card ul.plain li.sb-row, .card ul.plain.rl-rows > li.rl-row, .card .mw-it:not(.mw-priv), .card .lc-ev { background: var(--surface-2); }
a.bizrow.bizrow3:hover, .lo-item:hover, .mw-it:not(.mw-priv):hover, .lc-ev:hover { background: var(--accent-soft); }
@media (min-width: 700px) {
  .card.myweek .mw-day { background: var(--surface); }
  .card.myweek .mw-day.is-abs { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 12%, transparent) 0 8px, transparent 8px 16px); }
}
.mw-it.mw-priv { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 8%, var(--surface-2)) 0 6px, var(--surface-2) 6px 12px); }

/* ═════ FE-1.9.55: ⏰ überfällige Lieferungen · ↩ Rückgabe-Regal · ⇄ Umbuchen · 🕘 Protokoll ═════ */
.polate { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); font-size: .9rem; }
.podue { margin: 0; }
.latechip { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .78rem; font-weight: 700; }
.chip.latechip-on { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.pochase { flex-basis: 100%; } .pochase > summary { list-style: none; display: inline-flex; cursor: pointer; } .pochase > summary::-webkit-details-marker { display: none; }
.pochase[open] > summary { background: var(--accent-soft); } .pochase > .row { margin-top: 8px; align-items: flex-end; }
.ordacts { align-items: flex-end; } .ordacts .ordno input[type=date] { min-width: 0; max-width: 100%; }
.officetodo { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; } .officetodo .chip { text-decoration: none; color: var(--ink); } .officetodo .chip b { margin-left: 4px; }

/* ↩ Rückgabe-Regal: Karten wie die Einsatzliste */
.rettop { align-items: center; margin: 0 0 12px; } .retsearch { min-width: min(100%, 320px); } .retsearch input { flex: 1; min-width: 0; }
.retflow { margin: 0 0 12px; }
.retlist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }
.ret-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--rc, var(--st-idle)); color: var(--ink); }
.ret-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ret-t { font-weight: 750; font-size: 1rem; overflow-wrap: anywhere; } .ret-d { font-size: .88rem; overflow-wrap: anywhere; }
.ret-why { display: flex; flex-wrap: wrap; gap: 4px; } .ret-why .chip { font-size: .78rem; padding: 2px 9px; }
.chip.retchip-at { background: color-mix(in srgb, var(--st-wait) 14%, var(--surface)); border-color: color-mix(in srgb, var(--st-wait) 45%, var(--line)); color: var(--st-wait-ink); font-weight: 700; }
.ret-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ret-done { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.ret-done > label { flex: 1 1 200px; min-width: 0; } .ret-done select { width: 100%; }
.retform .ret-grid { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.retform .ret-wide { grid-column: span 2; } .retform .ret-qty input { max-width: 120px; }
.ret-why-f { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; min-width: 0; }
.ret-why-f legend { padding: 0 6px; font-weight: 700; color: var(--ink); }
.ret-why-f .checkline { white-space: normal; color: var(--ink); font-size: .95rem; min-height: 40px; }
.ret-why-f input[type=checkbox], .tf-form input[type=checkbox] { width: 22px !important; height: 22px; min-width: 0; padding: 0; flex: none; }
.retpicks h2 { margin: 0 0 8px; } .retpick { cursor: pointer; font: inherit; font-size: .88rem; text-align: left; white-space: normal; }
.retpick.on { background: var(--accent-soft); border-color: var(--accent); }
@media (max-width: 699px) { .retform .ret-wide { grid-column: auto; } .ret-it { grid-template-columns: minmax(0, 1fr); } .ret-acts { justify-content: flex-start; } .ret-done .row { width: 100%; } }
/* Regalzettel (Druck) */
.retslip { background: #fff; color: #000; box-sizing: border-box; margin: 20px auto; padding: 4mm; border: 1px dashed #aaa; font-family: var(--sans); display: flex; flex-direction: column; gap: 2.5mm; overflow: hidden; }
.rs-head { display: flex; justify-content: space-between; gap: 2mm; font-size: 3.2mm; border-bottom: .4mm solid #000; padding-bottom: 1.5mm; }
.rs-body { display: flex; gap: 3mm; min-height: 0; } .rs-text { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1mm 2.5mm; align-content: start; font-size: 3.4mm; line-height: 1.25; }
.rs-text b { overflow-wrap: anywhere; } .rs-l { color: #444; font-size: 2.8mm; padding-top: .3mm; } .rs-big { font-size: 5mm; }
.retslip .qr { width: 24mm; height: 24mm; flex: none; }
.rs-x { display: flex; flex-wrap: wrap; gap: 1.5mm 4mm; font-size: 3.4mm; border-top: .3mm solid #000; padding-top: 1.5mm; }
.rs-note { margin: 0; font-size: 3mm; }
.retslip.fmt-100x50 { padding: 2.5mm; gap: 1.2mm; } .fmt-100x50 .rs-head, .fmt-100x50 .rs-x { font-size: 2.6mm; padding: .6mm 0; } .fmt-100x50 .rs-text { font-size: 2.8mm; gap: .3mm 2mm; } .fmt-100x50 .rs-big { font-size: 3.6mm; } .fmt-100x50 .qr { width: 20mm; height: 20mm; }
.retslip.fmt-62x29 { padding: 1.5mm; gap: .6mm; } .fmt-62x29 .rs-head { display: none; } .fmt-62x29 .rs-text { font-size: 2.3mm; gap: 0 1.5mm; } .fmt-62x29 .rs-l { font-size: 1.9mm; } .fmt-62x29 .rs-big { font-size: 2.9mm; } .fmt-62x29 .qr { width: 14mm; height: 14mm; } .fmt-62x29 .rs-x { font-size: 2mm; gap: .5mm 2mm; padding-top: .5mm; }
@media screen and (max-width: 440px) { .retslip { max-width: calc(100vw - 16px); height: auto !important; min-height: 60mm; } }

/* ⇄ Umbuchen */
.tf-hits { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin: 0 0 14px; }
.tf-hit { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--st-ok); color: var(--ink); text-decoration: none; }
.tf-hit:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; } .tf-hit.none { border-left-color: var(--st-idle); opacity: .8; }
.tf-part { align-items: baseline; } .tf-part b { font-size: 1.05rem; }
.tf-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 140px; gap: 10px; align-items: end; }
.tf-arrow { font-size: 1.4rem; color: var(--muted); padding-bottom: 10px; }
.tf-loglist { display: flex; flex-direction: column; gap: 6px; } .tf-loglist li { overflow-wrap: anywhere; }
@media (max-width: 699px) { .tf-grid { grid-template-columns: minmax(0, 1fr); } .tf-arrow { display: none; } }

/* 🕘 Protokoll */
.auditf { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.auditf input[type=date] { min-width: 0; }
.auditlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.au-it { display: grid; grid-template-columns: 140px 160px minmax(0, 1fr); gap: 4px 14px; padding: 9px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.au-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-what { min-width: 0; overflow-wrap: anywhere; } .au-what > a { color: var(--ink); } .au-area { font-size: .74rem; padding: 1px 8px; margin-right: 6px; }
.au-d { display: block; white-space: pre-wrap; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.auditpg { margin: 12px 0; align-items: center; }
@media (max-width: 1100px) { .auditf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .auditf > label.grow { grid-column: 1 / -1; } }
@media (max-width: 699px) { .au-it { grid-template-columns: minmax(0, 1fr) auto; } .au-who { text-align: right; } .au-what { grid-column: 1 / -1; } }

/* ═════ FE-1.9.55 (Punkt 8): Büro- und Einsatzleitungs-Seiten in der Optik der Einsatzliste – hellgrüne Karten mit Standfarbe links ═════ */
/* Bestellungen: jede Bestellung und jeder Serviceschein ist eine Karte; je Hersteller bleibt der weiße Rahmen, die Teile darin sind Karten */
.card.pocard, .card.ordcard { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--rc, var(--st-idle)); box-shadow: none; padding: 14px 16px; }
.pocard.is-bestellt { --rc: var(--st-work); } .pocard.is-ab { --rc: var(--st-wait); } .pocard.is-da { --rc: var(--st-ok); } .card.pocard.is-late { --rc: var(--danger); }
.ordcard { --rc: var(--accent); } .card.ordcard.is-urgent { --rc: var(--danger); box-shadow: none; }
.card.ordmaker.is-urgent { box-shadow: none; border-left: 4px solid var(--danger); }
.omline { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--st-work); padding: 8px 10px; }
.omline.is-urgent { background: var(--surface-2); border-left-color: var(--danger); }
.pocard .polines li, .ordcard .ordhl li { overflow-wrap: anywhere; }
/* Abrechnung: Zeilen als Karten (PC: Tabelle bleibt spaltengenau, Handy: je Schein eine Karte) */
@media (min-width: 761px) {
  .billtable { border-collapse: separate; border-spacing: 0 6px; }
  .billtable th { border-bottom: 0; padding-bottom: 0; }
  .billtable tbody td { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 8px; }
  .billtable tbody td:first-child { border-left: 4px solid var(--rc, var(--st-idle)); border-radius: 12px 0 0 12px; padding-left: 12px; }
  .billtable tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; }
  .billtable tr.bt-same td { border-top: 1px solid var(--line); } .billtable tr:has(+ tr.bt-same) td { border-bottom-style: solid; }
  .billtable tbody tr:hover { background: none; } .billtable tbody tr:hover td { background: var(--accent-soft); }
  .billtable tbody tr:has(input:checked) { background: none; } .billtable tbody tr:has(input:checked) td { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
}
@media (max-width: 760px) {
  .billtable tbody { display: flex; flex-direction: column; gap: 8px; }
  .billtable tr { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--rc, var(--st-idle)); border-radius: 12px; padding: 10px 10px 10px 40px; }
  .billtable td.bt-chk { left: 10px; top: 12px; }
  .billtable tbody tr:has(input:checked) { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
}
.ordpos, .ordmakers, .ordgrid, .retlist { align-items: start; } .ordpos > .card, .ordmakers > .card, .ordgrid > .card { margin: 0; }
.pochase:not([open]) { flex-basis: auto; }

/* ═════ FE-1.9.56: 🗺 Zentrale – Wochenansicht als Startseite von Einsatzleitung und Büro ═════ */
.wk-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wk-side > .wk-open { position: static; max-height: none; }
.wk-side > .wk-live { grid-column: auto; max-height: none; overflow: visible; }
.dispo-head + .leadtodo, .leadtodo#leadTodo { margin: 0 0 10px; }
.wk-ownh { white-space: nowrap; } .wk-ownadd { margin-left: 4px; text-decoration: none; font-weight: 700; }
.wk-grid td.wk-own { vertical-align: top; padding: 6px; background: color-mix(in srgb, var(--muted) 5%, var(--surface)); border-left: 2px dashed var(--line); }
.wk-grid th.wk-ownh { background: color-mix(in srgb, var(--muted) 8%, var(--surface)); border-left: 2px dashed var(--line); }
.wk-item.k-own { cursor: pointer; color: var(--ink); } .wk-item.k-own small { white-space: normal; }
@media (max-width: 1100px) { .wk-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; } }
.wk-openlist .wk-plan { margin-top: 6px; padding: 3px 10px; font-size: .78rem; min-height: 0; }

/* ═════ FE-1.9.57: 📦 Bestellstand · ＋ Einbuchen · 🏷 Etiketten · 🔩 Artikel-Seite · 📊 Kennzahlen ═════ */
.ostat { display: inline-block; margin-top: 3px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.35; white-space: normal; overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--st-work) 12%, var(--surface)); color: var(--st-work-ink, var(--ink)); border: 1px solid color-mix(in srgb, var(--st-work) 35%, var(--line)); }
.ostat.is-ab { background: color-mix(in srgb, var(--st-wait) 12%, var(--surface)); border-color: color-mix(in srgb, var(--st-wait) 40%, var(--line)); color: var(--st-wait-ink, var(--ink)); }
.ostat.is-da { background: color-mix(in srgb, var(--st-ok) 14%, var(--surface)); border-color: color-mix(in srgb, var(--st-ok) 45%, var(--line)); color: var(--st-ok-ink, var(--ink)); }
.ostat.is-late { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); }
.ostat.is-pruef, .ostat.is-offen { background: var(--surface); border-style: dashed; color: var(--muted); }
.mw-b .ostat { align-self: flex-start; } .ob-ostat { margin-left: 6px; } .apostat { margin: 0 0 10px; }
/* ＋ Einbuchen */
.ib-rows { display: flex; flex-direction: column; gap: 10px; }
.ib-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) 100px auto; gap: 8px 10px; align-items: end; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--st-ok); }
.ib-row label { min-width: 0; } .ib-row input { width: 100%; min-width: 0; }
.ib-acts { display: flex; gap: 6px; } .ib-msg { grid-column: 1 / -1; } .ib-msg:empty { display: none; }
.ib-target { margin: 0; } .ib-store select { max-width: 420px; }
.ib-log { display: flex; flex-direction: column; gap: 6px; } .ib-log li { overflow-wrap: anywhere; } .ib-log .chip { font-size: .72rem; padding: 0 7px; }
@media (max-width: 899px) { .ib-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ib-row .ib-name { grid-column: 1 / -1; order: -1; } .ib-acts { grid-column: 1 / -1; } .ib-qty input { max-width: none; } }
/* 🔩 Artikel-Seite */
.pc-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; } .pc-dl dt { color: var(--muted); } .pc-dl dd { margin: 0; overflow-wrap: anywhere; }
.pc-at { display: flex; flex-direction: column; gap: 4px; } .pc-at li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
/* 🏷 Etiketten (Druck) */
.lbl-sheet { background: #fff; color: #000; margin: 16px auto; font-family: var(--sans); }
.lbl { box-sizing: border-box; display: flex; gap: 2.5mm; align-items: center; overflow: hidden; padding: 2mm; background: #fff; color: #000; }
.lbl .qr { flex: none; } .lbl-t { min-width: 0; display: flex; flex-direction: column; gap: .6mm; line-height: 1.15; }
.lbl-t b { overflow-wrap: anywhere; } .lbl-t small { color: #333; } .lbl.is-store .lbl-t b { font-size: 1.15em; }
.lbl-sheet.fmt-a4 { width: 210mm; display: grid; grid-template-columns: repeat(3, 70mm); grid-auto-rows: 37mm; } .fmt-a4 .lbl { width: 70mm; height: 37mm; font-size: 3mm; outline: .1mm dashed #ccc; } .fmt-a4 .qr { width: 27mm; height: 27mm; }
.lbl-sheet.fmt-62x29 { width: 62mm; } .fmt-62x29 .lbl { width: 62mm; height: 29mm; font-size: 2.7mm; page-break-after: always; break-after: page; outline: .1mm dashed #ccc; } .fmt-62x29 .qr { width: 23mm; height: 23mm; }
.lbl-sheet.fmt-100x50 { width: 100mm; } .fmt-100x50 .lbl { width: 100mm; height: 50mm; font-size: 3.8mm; page-break-after: always; break-after: page; outline: .1mm dashed #ccc; padding: 3mm; } .fmt-100x50 .qr { width: 40mm; height: 40mm; }
@media print { .lbl { outline: 0 !important; } .lbl-sheet { margin: 0; } }
@media screen and (max-width: 800px) { .lbl-sheet.fmt-a4 { width: auto; max-width: calc(100vw - 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 70mm), 1fr)); } .fmt-a4 .lbl { width: auto; } .lbl-sheet.fmt-100x50, .lbl-sheet.fmt-100x50 .lbl { width: auto; max-width: calc(100vw - 16px); } }
/* 📊 Kennzahlen */
.kz-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 0 0 8px; }
.kz-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin: 0; background: var(--surface-2); border-left: 4px solid var(--accent); }
.kz-l { font-size: .85rem; color: var(--muted); font-weight: 600; } .kz-v { font-size: 1.8rem; font-weight: 800; letter-spacing: -.01em; }
.kz-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 1400px) { .kz-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .kz-grid > .kz-load { grid-column: 1 / -1; } }
.kz-grid > .card { margin: 0; }
.kz-scroll { overflow-x: auto; }
.kz-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: .92rem; }
.kz-table th, .kz-table td { text-align: left; padding: 6px 8px; vertical-align: middle; } .kz-table thead th { font-size: .78rem; color: var(--muted); font-weight: 700; }
.kz-table thead th small { display: block; font-weight: 400; } .kz-table thead th.is-now { color: var(--accent-text, var(--accent)); }
.kz-list tbody tr td, .kz-list tbody tr th { background: var(--surface-2); } .kz-list tbody th { border-radius: 10px 0 0 10px; } .kz-list tbody td:last-child { border-radius: 0 10px 10px 0; }
.kz-table th[scope=row] { white-space: nowrap; font-weight: 650; } .kz-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.kz-c { min-width: 110px; background: var(--surface-2); border-radius: 10px; position: relative; } .kz-c b { display: block; font-size: 1rem; } .kz-c small { color: var(--muted); }
.kz-c.is-now { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.kz-bar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--kc, var(--st-ok)) var(--p), color-mix(in srgb, var(--muted) 15%, transparent) var(--p)); }
.kz-c.is-low { --kc: var(--st-idle); } .kz-c.is-mid { --kc: var(--st-ok); } .kz-c.is-full { --kc: var(--st-work); } .kz-c.is-over { --kc: var(--danger); } .kz-c.is-over b { color: var(--danger); }
.leadtodo .kz-chip { margin-left: auto; }
.mw-b .ostat, .apostat .ostat { border-radius: 8px; display: block; width: fit-content; max-width: 100%; }
@media (max-width: 699px) { .kz-table { font-size: .85rem; } .kz-table th, .kz-table td { padding: 5px 6px; } }
.kz-tiles > .card { margin: 0; }
.topbar.is-login { display: none; }   /* FE-1.9.58: Logo nicht doppelt auf der Anmeldeseite */
/* ═════ FE-1.9.60: 🚫 Storno · ✎ Menü je Rolle · Freigabe-Karten nicht zu schmal ═════ */
.ordrel .checkline { white-space: normal; overflow-wrap: anywhere; } .ordrel .checkline > span { display: block; }
.ordrel-row { flex-wrap: wrap; } .ordrel-row label.grow { flex: 1 1 220px; min-width: 0; }
.ordsearch { flex-wrap: nowrap; } .ordsearch input { flex: 1 1 auto; } .ordsearch .btn { flex: none; }
.cancelbox { margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad, #c0392b) 45%, transparent); background: color-mix(in srgb, var(--bad, #c0392b) 10%, var(--surface)); color: var(--ink); }
.cancelbox b { color: var(--bad, #c0392b); } .cancelbox .cancelnote { display: block; margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.cancelbox.is-small { padding: 6px 10px; font-size: .9em; }
.stornofold { margin: 0; } .stornofold > summary { list-style: none; cursor: pointer; } .stornofold > summary::-webkit-details-marker { display: none; }
.stornofold[open] { flex: 1 1 100%; } .stornofold[open] > summary { margin-bottom: 8px; }
.stornoform { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); max-width: 640px; } .stornoform textarea { width: 100%; min-height: 4.5em; }
.stornoform .checkline { display: flex; gap: 8px; align-items: flex-start; white-space: normal; } .stornoform .checkline input { width: auto; flex: none; margin-top: 3px; }
.btn.danger-soft { color: var(--bad, #c0392b); border-color: color-mix(in srgb, var(--bad, #c0392b) 50%, transparent); background: var(--surface); }
.bt-cancel { color: var(--bad, #c0392b); }
.menuroles li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); } .menuroles li:last-child { border-bottom: 0; }
.menuroles li b { min-width: 130px; } .menuroles form { margin-left: auto; }
.ordgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); } .ordgrid > .card { min-width: 0; }
.stornofold:not([open]) { display: none; } .stornofold { margin: 10px 0 0; border: 1px solid color-mix(in srgb, var(--bad, #c0392b) 45%, transparent); } .stornofold > summary { padding: 0 0 6px; } .stornofold .stornoform { background: transparent; padding: 0; }
.stornohead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .stornohead .cancelbox { flex: 1 1 320px; margin: 4px 0; }
.officenote .ordrel b, .officenote .stornoform b { display: inline; font-size: inherit; margin: 0; } .ordrel-row > .checkline { flex: 0 1 auto; align-self: center; }
.stornofold, #storno { scroll-margin-top: 140px; }
/* ═════ FE-1.9.62: ↩ Rückgabe-Formular · 📚 Artikelstamm ═════ */
.ret-art { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ret-artrow { gap: 6px; flex-wrap: nowrap; align-items: center; } .ret-artrow input { flex: 1 1 auto; min-width: 0; } .ret-artrow .btn { flex: none; }
#retArtMsg.ok { color: var(--ok, #1e8e3e); }
.as-new { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(90px, 140px) auto; align-items: end; }
@media (max-width: 760px) { .as-new { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .as-new .as-name, .as-new .btn { grid-column: 1 / -1; } }
.as-list { display: flex; flex-direction: column; gap: 0; } .as-row { border-bottom: 1px solid var(--line); } .as-row:last-child { border-bottom: 0; }
.as-row > summary { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(110px, 1.2fr) minmax(0, 3fr) minmax(70px, 110px) minmax(60px, 90px); gap: 10px; padding: 8px 6px; cursor: pointer; list-style: none; align-items: baseline; }
.as-row > summary::-webkit-details-marker { display: none; } .as-row > summary:hover { background: var(--surface-2); } .as-row[open] > summary { background: var(--surface-2); }
.as-row .as-p, .as-row .as-q { text-align: right; } .as-row .as-n { overflow-wrap: anywhere; }
.as-head { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(110px, 1.2fr) minmax(0, 3fr) minmax(70px, 110px) minmax(60px, 90px); gap: 10px; padding: 4px 6px; font-weight: 600; } .as-head span:nth-child(n+4) { text-align: right; }
.as-edit { padding: 8px 6px 12px; }
@media (max-width: 760px) { .as-head { display: none; } .as-row > summary { grid-template-columns: minmax(0, 1fr) auto; } .as-row .as-m { grid-column: 1 / -1; order: -1; font-size: .85em; color: var(--muted); } .as-row .as-q { display: none; } }
.as-pager { justify-content: center; gap: 6px; }
@media (max-width: 760px) { .as-row > summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m p" "a a" "n n"; gap: 2px 10px; }
  .as-row .as-m { grid-area: m; order: 0; } .as-row > summary > .mono { grid-area: a; } .as-row .as-n { grid-area: n; text-align: left; } .as-row .as-p { grid-area: p; } }
/* FE-1.9.63: Vorschlagsliste im Rückgabe-Formular */
.sugg { display: flex; flex-direction: column; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; max-height: 320px; overflow-y: auto; }
.sugg-i { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-height: 44px; }
.sugg-i:last-child { border-bottom: 0; } .sugg-i:hover, .sugg-i.on { background: var(--surface-2); } .sugg-i small { color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   FE-1.9.64 · Designsystem „Premium“ – ruhig, weiß, feine Rahmen, Grün nur für Aktionen/Status
   Tokens zuerst, danach Basiskomponenten (Karten, Knöpfe, Felder, Chips, Dialoge, Kopf, Leiste unten)
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --g-500: #008849; --g-600: #006B3C; --g-50: #E8F5EF; --g-100: #D3EDE0; --g-300: #8FD0B0;
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F5F7F6; --surface-3: #EEF2F0;
  --ink: #202A28; --muted: #68736F; --line: #DFE9E3; --line-2: #E9EFEC;
  --accent: #008849; --accent-ink: #FFFFFF; --accent-soft: #E8F5EF; --accent-text: #006B3C; --accent-hover: #006B3C;
  --pcb: #006B3C; --pcb-2: #005A32; --ok: #008849; --st-ok: #008849; --st-ok-ink: #006B3C; --st-plan: #8FD0B0;
  --radius: 16px; --radius-sm: 12px; --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(17, 45, 33, .04), 0 2px 10px rgba(17, 45, 33, .045);
  --shadow-md: 0 2px 4px rgba(17, 45, 33, .04), 0 8px 24px rgba(17, 45, 33, .07);
  --shadow-lg: 0 12px 40px rgba(17, 45, 33, .14), 0 2px 8px rgba(17, 45, 33, .06);
  --ring: 0 0 0 4px rgba(0, 136, 73, .14);
  --hdr-bg: #FFFFFF; --hdr-ink: #202A28; --hdr-muted: #68736F; --hdr-field: #FFFFFF; --hdr-line: #DFE9E3; --hdr-on: #E8F5EF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --g-500: #2FBF77; --g-600: #5ED69A; --g-50: #12291F; --g-100: #183628; --g-300: #2E6E4F;
    --bg: #0E1412; --surface: #151C19; --surface-2: #1A231F; --surface-3: #202B26;
    --ink: #E8EFEC; --muted: #9AA8A2; --line: #26332D; --line-2: #212C27;
    --accent: #2FBF77; --accent-ink: #04140C; --accent-soft: #12291F; --accent-text: #5ED69A; --accent-hover: #46CC88;
    --pcb: #0F4A2A; --ok: #46CC88; --st-ok: #46CC88; --st-ok-ink: #8FD3AA; --st-plan: #2E6E4F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
    --ring: 0 0 0 4px rgba(95, 191, 146, .18);
    --hdr-bg: #0E1412; --hdr-ink: #E8EFEC; --hdr-muted: #9AA8A2; --hdr-field: #151C19; --hdr-line: #26332D; --hdr-on: #12291F;
  }
}
/* Typografie */
body { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
h2 { font-size: 1.15rem; font-weight: 750; letter-spacing: -.015em; }
h3 { font-size: 1rem; font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: .84rem; }
a { color: var(--accent-text); }
.sechead { margin: 22px 0 14px; align-items: center; }
.sechead h1 { display: flex; align-items: center; gap: 10px; }
h1 .h1ic, h2 .h1ic { width: 1.05em; height: 1.05em; padding: .32em; box-sizing: content-box; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); stroke-width: 2; flex: none; vertical-align: middle; }
h2 .h1ic { border-radius: 10px; padding: .26em; width: .95em; height: .95em; }
/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2:first-child { margin-top: 0; }
/* Knöpfe */
.btn { min-height: 42px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; font-size: .92rem; letter-spacing: -.005em; box-shadow: 0 1px 2px rgba(17, 45, 33, .05); transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { border-color: var(--g-300); background: var(--surface); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--accent); }
.btn-sm { min-height: 34px; padding: 5px 12px; border-radius: 10px; font-size: .84rem; }
.btn-big { min-height: 50px; padding: 12px 22px; border-radius: 14px; font-size: 1rem; }
.btn-accent, .btn.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 107, 60, .2), 0 4px 12px rgba(0, 136, 73, .18); }
.btn-accent:hover, .btn.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); filter: none; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn.danger, .btn-danger { color: var(--danger); background: var(--surface); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn.danger:hover, .btn-danger:hover { background: color-mix(in srgb, var(--danger) 7%, var(--surface)); border-color: var(--danger); }
.linkbtn { box-shadow: none; }
/* Felder */
label { color: var(--muted); font-weight: 600; font-size: .84rem; gap: 6px; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select { min-height: 44px; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368736F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
select[multiple] { background-image: none; padding-right: 12px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); }
/* Chips, Segmente, Hinweise */
.chip { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .8rem; padding: 4px 11px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.segment { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; gap: 2px; }
.segment a, .segment button { border-radius: 10px; color: var(--muted); font-weight: 650; }
.segment a.on, .segment button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 45, 33, .1); }
.flash { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-left: 4px solid var(--accent); border-radius: 14px; color: var(--ink); box-shadow: var(--shadow); }
/* Dialoge */
dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop, .evdlg::backdrop, .bndlg::backdrop, .dispo-dlg::backdrop { background: rgba(14, 26, 21, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* Tabellen */
table { border-color: var(--line); } th { color: var(--muted); font-weight: 650; font-size: .8rem; letter-spacing: .01em; }

/* ── Kopf ── */
.topbar { background: color-mix(in srgb, var(--hdr-bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); box-shadow: none; }
.mainnav a { color: var(--muted); font-weight: 650; border-radius: 12px; padding: 8px 12px; }
.mainnav a:hover { background: var(--surface-2); color: var(--ink); }
.mainnav a.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.topsearch input { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368736F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") no-repeat 14px center / 18px; padding-left: 42px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); color: var(--ink); }
.topsearch input:focus { box-shadow: var(--ring); border-color: var(--accent); }
.topactions .iconlink, .searchbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow-md); }
.topactions .iconlink:hover { border-color: var(--g-300); text-decoration: none; }
.topactions .qrbtn { color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.topactions .iconlink svg, .topactions .iconlink .ic { width: 22px; height: 22px; }
.backbtn { border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); color: var(--ink); }
@media (max-width: 760px) {
  .topbar { border-bottom: 0; background: color-mix(in srgb, var(--hdr-bg) 88%, transparent); }
  .topactions { gap: 10px; }
  body:not(.has-back) .topsearch input { min-height: 48px; font-size: 1rem; }
}
@media (prefers-color-scheme: light) {
  body { background: radial-gradient(520px 340px at 105% -40px, rgba(15, 95, 67, .09), transparent 70%) no-repeat, var(--bg); }
}

/* ── Untere Leiste (Handy): schwebend, Plus in der Mitte hervorgehoben ── */
@media (max-width: 760px) {
  .tabbar { left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 6px 6px 8px; border-radius: 26px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); box-shadow: var(--shadow-lg); align-items: flex-end; }
  .tabbar > a, .tabmore > summary { color: var(--muted); font-weight: 600; font-size: .7rem; position: relative; min-height: 50px; justify-content: flex-end; gap: 4px; }
  .tabbar > a.on, .tabmore[open] > summary { color: var(--accent); font-weight: 750; }
  .tabbar > a.on:not(.tabgo)::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 3px; background: var(--accent); }
  .tabbar svg { stroke-width: 1.9; }
  .tabgo > b { width: 58px; height: 58px; margin-top: -30px; background: linear-gradient(160deg, #2E8A62, var(--accent) 55%, var(--g-600)); color: #fff; box-shadow: 0 8px 20px rgba(15, 95, 67, .35), 0 0 0 5px var(--surface); }
  .tabbar > a.tabgo { color: var(--accent-text); }
  .tabsheet { border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); bottom: calc(100px + env(safe-area-inset-bottom)); }
  main.wrap { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) { .tabgo > b { background: linear-gradient(160deg, #7FD3AA, var(--accent)); color: #04140C; } }

/* ── Meine Woche: Terminkarten wie im Entwurf ── */
.myweek.card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.myweek .mw-head { margin: 4px 0 14px; }
.myweek .mw-head h2 { font-size: 1.4rem; font-weight: 750; color: var(--muted); letter-spacing: -.02em; }
.mw-nav { display: inline-flex; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.mw-nav > .btn { border: 0; border-radius: 0; box-shadow: none; min-height: 44px; min-width: 44px; justify-content: center; color: var(--accent); font-size: 1.25rem; font-weight: 700; background: transparent; }
.mw-nav > .btn:hover { background: var(--surface-2); }
.mw-nav > .mw-kw { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 750; }
.mw-nav > .mw-kw + .btn + .btn { border-left: 1px solid var(--line); font-size: .85rem; color: var(--accent-text); }
.mw-days { gap: 18px; }
.mw-day, .mw-day.is-today { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 10px; }
.mw-day.is-abs { border-radius: 16px; padding: 8px; }
.mw-dh { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: .95rem; color: var(--muted); }
.mw-dh .mw-wd { font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mw-dh .mw-date { font-weight: 650; color: var(--muted); }
.mw-day.is-today .mw-dh .mw-wd, .mw-day.is-today .mw-dh .mw-date { color: var(--accent-text); }
.mw-dh .mw-today { padding: 2px 9px; font-size: .72rem; background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.mw-dh .mw-n { margin-left: auto; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 750; font-size: .85rem; }
.mw-day:has(.is-next) .mw-n, .mw-day.is-today .mw-n { background: var(--accent-soft); color: var(--accent-text); }
.mw-free { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.mw-free .ic { width: 22px; height: 22px; stroke-width: 1.7; }
/* Karte */
.myweek .mw-it, .card .myweek .mw-it { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; grid-template-areas: "t b s" "x x x"; gap: 0 16px; align-items: start;
  padding: 16px 16px 16px 18px; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.myweek .mw-it::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rc, var(--st-plan)); }
.myweek .mw-it.rc-plan { --rc: var(--st-plan); } .myweek .mw-it.rc-ok { --rc: var(--st-ok); } .myweek .mw-it.rc-work { --rc: var(--st-work, #D97706); }
.myweek .mw-it.is-next { background: linear-gradient(180deg, var(--g-50), color-mix(in srgb, var(--g-50) 70%, var(--surface))); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); --rc: var(--accent); }
.myweek .mw-it:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--surface); }
.myweek .mw-it.is-next:hover { background: var(--g-50); }
.myweek .mw-it .mw-t { grid-area: t; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-right: 14px; border-right: 1px solid var(--line); align-self: stretch; }
.myweek .mw-it.is-next .mw-t { border-right-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }
.mw-time, .mw-tedit { font-family: var(--sans); font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mw-tedit { text-decoration: none; }
.mw-dur { font-size: .8rem; color: var(--muted); font-weight: 550; }
.myweek .mw-it .mw-b { grid-area: b; gap: 3px; min-width: 0; }
.myweek .mw-b b, .myweek .mw-b b.cn { font-weight: 750; font-size: 1.04rem; line-height: 1.3; white-space: normal; overflow: visible; color: var(--ink); }
.myweek .mw-b > small { font-size: .9rem; color: var(--muted); white-space: normal; }
.myweek .mw-b > small:first-of-type { color: color-mix(in srgb, var(--ink) 78%, var(--muted)); }
.mw-task { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: .86rem !important; color: var(--muted) !important; font-weight: 550; }
.mw-task .ic { width: 16px; height: 16px; margin-top: 2px; stroke-width: 1.8; }
.mw-it.is-next .mw-task { color: var(--accent-text) !important; }
.myweek .mw-it .mw-s, .myweek .mw-it .mw-s:has(.mw-acts) { grid-area: s; display: flex; align-items: flex-start; margin: 0; }
.myweek .mw-acts { gap: 10px; }
.myweek .mw-ab { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); box-shadow: var(--shadow-md); }
.myweek .mw-ab:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.myweek .mw-ab .ic, .myweek .mw-ab svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.mw-done, .mw-open { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.mw-open { background: color-mix(in srgb, var(--st-work, #D97706) 14%, var(--surface)); color: var(--st-work, #D97706); }
.mw-done .ic, .mw-open .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.myweek .mw-it.is-erledigt { opacity: 1; background: var(--surface); } .myweek .mw-it.is-erledigt .mw-b, .myweek .mw-it.is-erledigt .mw-t { opacity: .7; }
.myweek .mw-it.is-erledigt .mw-t::after, .myweek .mw-it.is-offen .mw-t::after { content: none; }
.myweek .mw-it .mw-stacts { grid-area: x; margin: 12px 0 0; }
.myweek .mw-priv { border-style: dashed; background: var(--surface-2); }
.myweek .mw-priv::before { background: var(--muted); opacity: .4; }
.mw-lock { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: var(--muted); }
.myweek .mw-ab-s { width: 36px; height: 36px; }
.mw-cart { margin-top: 6px; }
@media (max-width: 760px) {
  .myweek .mw-head { flex-wrap: nowrap; } .myweek .mw-head h2 { font-size: 1.3rem; white-space: nowrap; }
  .mw-nav > .mw-kw { padding: 0 10px; font-size: .9rem; } .mw-nav > .btn { min-width: 40px; }
  .myweek .mw-it, .card .myweek .mw-it { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "t b s" "x x x"; padding: 14px 14px 14px 16px; gap: 0 12px; }
  .myweek .mw-it:has(.mw-acts) { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "t b" "t s" "x x"; }
  .myweek .mw-it .mw-t { padding-right: 12px; }
  .myweek .mw-it .mw-s, .myweek .mw-it .mw-s:has(.mw-acts) { display: flex; justify-content: flex-start; margin: 0; }
  .myweek .mw-it .mw-s:has(.mw-acts) { margin-top: 12px; }
  .mw-time, .mw-tedit { font-size: 1.05rem; }
}
@media (min-width: 420px) and (max-width: 760px) {
  .myweek .mw-it:has(.mw-acts) { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "t b s" "x x x"; }
  .myweek .mw-it .mw-s:has(.mw-acts) { margin-top: 0; }
  .myweek .mw-acts { gap: 8px; } .myweek .mw-ab { width: 42px; height: 42px; }
}
/* Tablet/PC: fünf Spalten – Zeit und Knöpfe oben, Kunde darunter */
@media (min-width: 700px) {
  .myweek .mw-it, .card .myweek .mw-it { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t s" "b b" "x x"; gap: 10px 8px; padding: 14px 14px 14px 18px; }
  .myweek .mw-it .mw-t { flex-direction: row; align-items: baseline; gap: 8px; border-right: 0; padding: 0; flex-wrap: wrap; }
  .myweek .mw-acts { gap: 6px; } .myweek .mw-ab { width: 36px; height: 36px; } .myweek .mw-ab .ic { width: 17px; height: 17px; }
  .myweek .mw-it .mw-b { padding-top: 10px; border-top: 1px solid var(--line-2); }
  .myweek .mw-it.is-next .mw-b { border-top-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
  .mw-days { gap: 14px; }
}
.myweek .mw-b .prio { align-self: flex-start; width: auto; margin: 2px 0; font-size: .74rem; padding: 2px 9px; border-radius: 999px; }
@media (max-width: 760px) { .myweek .mw-acts { flex-direction: row; } }
@media (min-width: 761px) { .topactions .searchbtn { display: none; } }
h2 > .h1ic:first-child, h3 > .h1ic:first-child { margin-right: 8px; }
.myweek.card .mw-it:not(.mw-priv):not(.is-next) { background: var(--surface); }
.myweek.card .mw-it:not(.mw-priv):not(.is-next):hover { background: var(--surface); }
.svm-ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--muted); stroke-width: 1.9; } .svm-row b .svm-ic { color: var(--accent-text); }
.leadtodo .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; } .leadtodo .chip .ic { width: 16px; height: 16px; color: var(--accent-text); }
.leadtodo .chip.todo-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.dc-t { display: inline-flex; align-items: center; gap: 8px; } .dc-t .ic { width: 18px; height: 18px; color: var(--accent-text); }
/* Listenkarten (Einsätze, Offen zum Einplanen, Reiselager, Termine): weiß, feiner Rahmen, leichter Schatten, Standfarbe links */
a.bizrow.bizrow3, .lo-item, ul.plain li.sb-row, ul.plain.rl-rows > li.rl-row, .lc-ev,
.card a.bizrow.bizrow3, .card .lo-item, .card ul.plain li.sb-row, .card ul.plain.rl-rows > li.rl-row, .card .lc-ev { background: var(--surface); border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow-md); }
a.bizrow.bizrow3:hover, .lo-item:hover, .lc-ev:hover { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-lg); }
h1:has(> .h1ic), h2:has(> .h1ic:first-child) { display: flex; align-items: center; gap: 10px; } h2:has(> .h1ic:first-child) > .h1ic { margin-right: 0; }
a.bizrow.bizrow3, .lo-item, ul.plain li.sb-row, ul.plain.rl-rows > li.rl-row, .lc-ev,
.card a.bizrow.bizrow3, .card .lo-item, .card ul.plain li.sb-row, .card ul.plain.rl-rows > li.rl-row, .card .lc-ev,
a.bizrow.bizrow3:hover, .lo-item:hover, .lc-ev:hover { border-left: 5px solid var(--rc, var(--st-idle, #94a3b8)); }
main > h1, .sechead > h1:not(.sr-only) { border-left: 0; padding-left: 0; }
@media (min-width: 761px) { .mainnav { flex-wrap: wrap; justify-content: center; row-gap: 4px; overflow: visible; } }
@media (max-width: 760px) { .vo-bar { bottom: calc(92px + env(safe-area-inset-bottom)); margin: 0 -16px; border-radius: 20px 20px 0 0; } }
@media (max-width: 760px) {
  .pf-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .vo-badge { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .lf-toast { bottom: calc(108px + env(safe-area-inset-bottom)); }
  .newproj { bottom: calc(104px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .vo-bar, .pf-bar { bottom: calc(112px + env(safe-area-inset-bottom)); border-radius: 20px; margin: 0 -6px; padding: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
  .vo-badge { bottom: calc(120px + env(safe-area-inset-bottom)); }
}

/* ═════ FE-1.9.65: grüner Farbverlauf oben, „Meine Woche“ kleiner/grauer, Terminkarten-Text kleiner ═════ */
:root { --hero: radial-gradient(130% 95% at 118% -18%, transparent 52%, rgba(255, 255, 255, .7) 53.5%, transparent 57%),
  radial-gradient(90% 80% at 112% -8%, rgba(15, 95, 67, .20), rgba(15, 95, 67, .09) 42%, transparent 72%),
  radial-gradient(60% 55% at 70% -20%, rgba(15, 95, 67, .07), transparent 70%); }
@media (prefers-color-scheme: dark) { :root { --hero: radial-gradient(130% 95% at 118% -18%, transparent 52%, rgba(255, 255, 255, .04) 53.5%, transparent 57%),
  radial-gradient(90% 80% at 112% -8%, rgba(95, 191, 146, .16), rgba(95, 191, 146, .06) 42%, transparent 72%); } }
body, body.has-back { background: var(--hero) top right / 100% 520px no-repeat, var(--bg); }
@media (min-width: 761px) { body, body.has-back { background-size: 100% 420px; } }
/* Kopf ist durchsichtig über dem Verlauf; beim Scrollen bleibt der Verlauf im Kopf sichtbar */
.topbar { background: var(--hero) top right / 100% 520px no-repeat, color-mix(in srgb, var(--hdr-bg) 82%, transparent); border-bottom-color: transparent; }
@media (min-width: 761px) { .topbar { background-size: 100% 420px; border-bottom-color: var(--line-2); } }
.myweek .mw-head h2 { font-size: 1.12rem; font-weight: 700; color: color-mix(in srgb, var(--muted) 82%, var(--bg)); letter-spacing: -.01em; }
@media (max-width: 760px) { .myweek .mw-head h2 { font-size: 1.1rem; } }
.mw-time, .mw-tedit { font-size: 1rem; }
.mw-dur { font-size: .74rem; }
.myweek .mw-b b, .myweek .mw-b b.cn { font-size: .94rem; line-height: 1.28; }
.myweek .mw-b > small { font-size: .82rem; }
.mw-task { font-size: .78rem !important; } .mw-task .ic { width: 14px; height: 14px; }
.myweek .mw-it .mw-t { flex: none; }
@media (max-width: 760px) { .mw-time, .mw-tedit { font-size: .98rem; } }
:root { --hero: radial-gradient(120% 90% at 112% -22%, transparent 50%, rgba(255, 255, 255, .75) 52.5%, transparent 58%),
  radial-gradient(75% 85% at 108% -6%, rgba(15, 95, 67, .30), rgba(15, 95, 67, .14) 40%, rgba(15, 95, 67, .04) 62%, transparent 78%),
  radial-gradient(70% 60% at 62% -24%, rgba(15, 95, 67, .10), transparent 70%); }
@media (prefers-color-scheme: dark) { :root { --hero: radial-gradient(120% 90% at 112% -22%, transparent 50%, rgba(255, 255, 255, .05) 52.5%, transparent 58%),
  radial-gradient(75% 85% at 108% -6%, rgba(95, 191, 146, .22), rgba(95, 191, 146, .08) 45%, transparent 75%); } }
:root { --hero: radial-gradient(460px 400px at 106% -50px, transparent 56%, rgba(255, 255, 255, .6) 64%, transparent 76%),
  radial-gradient(400px 400px at 100% -40px, rgba(15, 95, 67, .26), rgba(15, 95, 67, .11) 48%, rgba(15, 95, 67, .03) 78%, transparent 100%),
  radial-gradient(320px 230px at 55% -70px, rgba(15, 95, 67, .07), transparent 100%); }
@media (min-width: 761px) { :root { --hero: radial-gradient(1000px 360px at 102% -40px, transparent 58%, rgba(255, 255, 255, .55) 66%, transparent 78%),
  radial-gradient(820px 380px at 100% -40px, rgba(15, 95, 67, .20), rgba(15, 95, 67, .08) 50%, rgba(15, 95, 67, .02) 80%, transparent 100%); } }
@media (prefers-color-scheme: dark) { :root { --hero: radial-gradient(400px 400px at 100% -40px, rgba(95, 191, 146, .2), rgba(95, 191, 146, .07) 50%, transparent 100%); } }
@media (prefers-color-scheme: dark) and (min-width: 761px) { :root { --hero: radial-gradient(820px 380px at 100% -40px, rgba(95, 191, 146, .16), rgba(95, 191, 146, .05) 55%, transparent 100%); } }
/* FE-1.9.66: Kopf deckend mit demselben Verlauf wie die Seite → keine Kante unter dem Suchfeld; Suchfeld dezent grau */
.topbar { background: var(--hero) top right / 100% 520px no-repeat, var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 761px) { .topbar { background-size: 100% 420px; } }
.topsearch input { background-color: #F1F4F2; border-color: #E3EAE6; box-shadow: inset 0 1px 2px rgba(17, 45, 33, .04); }
.topsearch input:focus { background-color: var(--surface); }
@media (prefers-color-scheme: dark) { .topsearch input { background-color: var(--surface-2); border-color: var(--line); box-shadow: none; } }
/* FE-1.9.67: Verlauf nur noch einmal oben auf der Seite (body::before) – der Kopf ist ganz oben durchsichtig,
   erst beim Scrollen bekommt er Hintergrund. So kann keine Kante zwischen Kopf und Seite entstehen. */
html { background: var(--bg); }
body, body.has-back { background: transparent; }
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 520px; z-index: -1; pointer-events: none; background: var(--hero) top right / 100% 100% no-repeat; }
@media (min-width: 761px) { body::before { height: 420px; } }
.topbar, .topbar:hover { background: transparent; box-shadow: none; transition: background-color .2s, box-shadow .2s; }
body.is-scrolled .topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line-2), 0 6px 18px rgba(17, 45, 33, .06); }
/* Suchfeld schwebt */
.topsearch input { box-shadow: 0 10px 28px rgba(17, 45, 33, .11), 0 2px 6px rgba(17, 45, 33, .05); border-color: rgba(223, 233, 227, .9); }
.topsearch input:focus { box-shadow: var(--ring), 0 10px 28px rgba(17, 45, 33, .11); }
@media (prefers-color-scheme: dark) { .topsearch input { box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); } }
@media print { body::before { display: none; } }
@media (prefers-color-scheme: dark) { .topsearch input { border-color: var(--line); } }
/* FE-1.9.68: Wochenplan – Techniker-Spalten */
.wp-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.wp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.wp-row.is-drag { opacity: .5; border-style: dashed; }
.wp-grip { cursor: grab; color: var(--muted); font-size: 1.1rem; user-select: none; }
.wp-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.wp-name { min-width: 140px; } .wp-col { margin-left: auto; }
.wp-col input[type=color] { width: 44px; height: 34px; min-height: 0; padding: 2px; border-radius: 10px; cursor: pointer; }
.wp-auto { gap: 6px; font-size: .84rem; } .wp-mv { display: inline-flex; gap: 4px; }
@media (max-width: 760px) { .wp-name { min-width: 0; flex: 1 1 auto; } .wp-col { margin-left: 0; } }
/* FE-1.9.69: Knöpfe Anrufen/Navigation/Bearbeiten kleiner, Grün etwas heller; Dialog-Überschrift ohne Fokusrahmen */
.myweek .mw-ab { width: 38px; height: 38px; color: #1FA463; box-shadow: 0 1px 2px rgba(17, 45, 33, .05), 0 3px 10px rgba(17, 45, 33, .07); }
.myweek .mw-ab .ic, .myweek .mw-ab svg { width: 17px; height: 17px; }
.myweek .mw-acts { gap: 8px; }
@media (min-width: 420px) and (max-width: 760px) { .myweek .mw-ab { width: 36px; height: 36px; } }
@media (min-width: 700px) { .myweek .mw-ab { width: 32px; height: 32px; } .myweek .mw-ab .ic { width: 15px; height: 15px; } .myweek .mw-acts { gap: 6px; } }
@media (prefers-color-scheme: dark) { .myweek .mw-ab { color: #4CD38C; } }
#mvH:focus, #tH:focus { outline: none; }
/* FE-1.9.70: Herstellerstamm, Lager-Positionen in der Bestellung, Verwendung */
.sup-new > summary { list-style: none; display: inline-flex; width: auto; } .sup-new > summary::-webkit-details-marker { display: none; } .sup-new[open] > summary { margin-bottom: 12px; }
.sup-form { display: grid; gap: 10px 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: end; }
.sup-form .sup-wide { grid-column: span 2; } .sup-form .sup-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .sup-form .sup-wide { grid-column: 1 / -1; } }
.sup-row > summary { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 8px; cursor: pointer; list-style: none; }
.sup-row > summary::-webkit-details-marker { display: none; }
.sup-n { display: flex; flex-direction: column; min-width: 0; } .sup-n small { overflow-wrap: anywhere; }
@media (max-width: 760px) { .sup-row > summary { grid-template-columns: minmax(0, 1fr) auto; } .sup-row > summary > span:nth-child(2), .sup-row > summary > span:nth-child(3) { display: none; } }
.sup-miss .chip { margin: 2px 0; }
.om-alloc { display: flex; align-items: center; gap: 6px; margin-top: 4px; } .om-alloc input { min-height: 34px; padding: 5px 10px; font-size: .85rem; max-width: 240px; }
.om-extra { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: end; margin-top: 8px; }
.om-extra input, .om-extra select { min-height: 38px; padding: 6px 10px; font-size: .88rem; }
@media (max-width: 760px) { .om-extra { grid-template-columns: 64px minmax(0, 1fr); } .om-extra .om-x-name, .om-extra .om-x-to { grid-column: 1 / -1; } }
.om-extras h3 { font-size: .9rem; margin: 10px 0 0; color: var(--muted); }
.po-doc { margin: 6px 0; } .po-doc li { padding: 4px 0; border-bottom: 1px dashed var(--line-2); } .po-doc li:last-child { border-bottom: 0; }
.po-doc .po-use { display: block; color: var(--muted); font-size: .82rem; padding-left: 2px; }
.po-doc .po-use b { color: var(--accent-text); font-weight: 650; }
.po-new > summary { list-style: none; display: inline-flex; width: auto; } .po-new > summary::-webkit-details-marker { display: none; } .po-new[open] > summary { margin-bottom: 10px; }
.po-new:not([open]) { background: transparent; border: 0; box-shadow: none; padding: 0; }
@media (min-width: 761px) { .as-new { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(90px, 120px) minmax(100px, 140px) auto; } }
/* FE-1.9.71: Lager-Zeilen in „Zu bestellen“, Weiterbearbeitung */
.om-stock .om-alloc { flex-wrap: wrap; } .om-alloc label { display: inline-flex; align-items: center; gap: 6px; } .om-alloc .om-q { width: 74px; }
.chip.rlchip { background: color-mix(in srgb, #2563eb 10%, var(--surface)); border-color: color-mix(in srgb, #2563eb 30%, var(--line)); color: #1d4ed8; }
.chip.hlchip { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--accent-text); }
@media (prefers-color-scheme: dark) { .chip.rlchip { color: #93b4ff; } }
.wb-open { display: flex; flex-direction: column; gap: 8px; } .wb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wb-row small { grid-column: 1 / -1; } .wb-check { margin-top: 8px; }
.omline .om-alloc, .omline .om-alloc label { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.omline .om-alloc { margin: 6px 0 2px 30px; } .omline .om-alloc input { width: 220px; max-width: 100%; } .omline .om-alloc .om-q { width: 74px; }
@media (max-width: 760px) { .omline .om-alloc { margin-left: 0; } .omline .om-alloc input { width: 100%; } .omline .om-alloc label { flex: 1 1 100%; } .omline .om-alloc label:has(.om-q) { flex: 0 0 auto; } }
/* FE-1.9.73: Firmenkalender (.ics) importieren */
.mw-import { margin: 14px 0 0; text-align: center; }
.ics-up-row { align-items: flex-end; } .ics-file { flex: 1 1 260px; } .ics-file input[type=file] { min-height: 44px; padding: 8px; }
.ics-help { margin: 6px 0; padding-left: 20px; }
.ics-pvhead { margin-top: 18px; } .ics-day { margin-top: 10px; }
.ics-row { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--line); border-left: 5px solid var(--st-plan); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 400; font-size: .92rem; cursor: pointer; }
.ics-row.is-neu { border-left-color: var(--accent); } .ics-row.is-aendern { border-left-color: #E07800; } .ics-row.is-abgesagt, .ics-row.is-gone { border-left-color: var(--danger, #c0392b); }
.ics-row.is-gleich, .ics-row.is-erledigt, .ics-row.is-alt { opacity: .65; cursor: default; }
.ics-row > input { margin-top: 3px; }
.ics-t { display: flex; flex-direction: column; } .ics-t small { color: var(--muted); font-size: .76rem; }
.ics-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ics-b small { overflow-wrap: anywhere; } .ics-cust { color: var(--muted); }
.ics-gone-h { margin: 18px 0 8px; font-size: 1rem; }
.ics-go { position: sticky; bottom: 12px; justify-content: center; }
@media (max-width: 760px) { .ics-row { grid-template-columns: auto 52px minmax(0, 1fr); } .ics-row > .chip { grid-column: 3; justify-self: start; } .ics-go { bottom: calc(108px + env(safe-area-inset-bottom)); } }

/* 📱 FE-1.9.74: Fotos per QR vom Handy im Bearbeiten-Formular – nur Tablet/PC (am Handy fotografiert man direkt) */
.vo-handy { display: none; }
@media (min-width: 761px) {
  .vo-handy { display: flex; flex-direction: column; gap: 8px; }
  .vo-handy > .btn { align-self: flex-start; }
  .vo-handy-box { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
  .vo-handy-box[hidden] { display: none; }
  .vo-handy-box .stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .vo-handy-box .qr { width: 150px; height: 150px; flex: 0 0 150px; background: #fff; border-radius: 8px; padding: 4px; }
  .vo-handy-box .qr svg { width: 100%; height: 100%; display: block; }
}

/* 📄 FE-1.9.75: Geräte-Unterlagen – dezente Zeile beim Gerät, Admin-Seite */
.dd-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 0; color: var(--muted); }
.dd-line[hidden] { display: none; }
.dd-line > a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; min-height: 28px; }
.dd-line > a:hover { color: var(--accent-text, var(--accent)); text-decoration: underline; }
.dd-line svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.dd-line .dd-fw { color: var(--accent-text, var(--accent)); }
.dd-line .dd-fw b { font-weight: 700; }
.dd-old { flex-basis: 100%; }
.dd-old summary { cursor: pointer; }
.dd-old a { display: inline-block; margin: 4px 12px 0 0; }
.svcm > .dd-line { padding: 0 2px; }
.cdevhead .dd-line { margin-top: 6px; }
.dd-wrap { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .dd-wrap { grid-template-columns: minmax(320px, 420px) 1fr; } .dd-new { position: sticky; top: 120px; } }
.dd-ver { width: 9em; }
.dd-err { color: var(--danger, #b42318); font-weight: 600; }
.dd-list .dd-maker h2 { margin: 0 0 6px; }
.dd-model + .dd-model { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.dd-model h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.dd-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 6px 0; }
.dd-row.is-old { opacity: .65; }
.dd-ic svg { width: 20px; height: 20px; color: var(--accent); }
.dd-main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.dd-main small { flex-basis: 100%; overflow-wrap: anywhere; }
.dd-row:target { background: var(--accent-soft); border-radius: 10px; }
@media (min-width: 1800px) { .dd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } .dd-list > .dc-filter, .dd-list > .empty, .dd-list > #ddNone { grid-column: 1 / -1; } }
.dd-old summary { font-size: inherit; color: var(--muted); }

/* 💾 FE-1.9.77: Firmware im Abschluss */
.ab-fw { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.fw-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.fw-row.is-update { border-color: #f0b46a; background: color-mix(in srgb, #f59e0b 9%, var(--surface-2)); }
.fw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fw-head .fw-ic { width: 18px; height: 18px; color: var(--accent); }
.fw-vers { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fw-vers a { display: inline-flex; align-items: center; gap: 3px; }
.fw-vers svg { width: 14px; height: 14px; }
.fw-note { margin: 0; }
.fw-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.fw-other summary { cursor: pointer; color: var(--muted); }
.fw-other .fw-form { margin-top: 6px; align-items: flex-end; }
.fw-other input[name=version] { width: 9em; }
.dd-upd { font-size: .78rem; padding: 1px 8px; }
.cdev-fw input { width: 10em; }
/* FE-1.9.78: Admin-Links zum Hochladen */
.dd-line .dd-add { opacity: .85; }
.fw-up, .fw-none a { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.fw-up svg, .fw-none svg { width: 14px; height: 14px; }
.fw-none { margin: 0 0 10px; }
.dd-pre { margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); }

/* FE-1.9.79: Abschluss/Prüfansicht – Fehlermeldung und Ausgeführte Arbeiten untereinander, jede so hoch wie ihr Text (keine Lücke bei kurzer Fehlermeldung) */
.ab-texts { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ab-texts > div { padding: 10px 0; }
.ab-texts > div:first-child { padding-top: 0; }
.ab-texts > div + div { border-top: 1px solid var(--line); }
.ab-texts p { max-width: 140ch; }
.ab-tables { border-top: 1px solid var(--line); padding-top: 12px; }

/* 🚗 FE-1.9.81: Anfahrt über Serviceschein-Nr. */
.vo-tref { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.vo-tref[hidden] { display: none; }
.vo-tref input { max-width: 16em; }
.vo-tref-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.vo-tref-pick .chip { cursor: pointer; min-height: 32px; }
.ab-tref { display: block; font-weight: 400; }

/* 🧳 FE-1.9.83: Reiselager – Teil hinzufügen, Menge ändern */
.rladd { margin-bottom: 12px; }
.rladd > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; list-style: none; }
.rladd > summary::-webkit-details-marker { display: none; }
.rladd > summary svg { width: 18px; height: 18px; color: var(--accent); }
.rladd-f { margin-top: 12px; }
.rladd-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 761px) { .rladd-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 6.5em; } }
.rladd-qty input { width: 100%; }
.rladd-sug { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface, #fff); }
.rladd-sug[hidden] { display: none; }
.rladd-sug p { margin: 8px 12px; }
.rladd-it { text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.rladd-it:last-child { border-bottom: 0; }
.rladd-it:hover, .rladd-it:focus-visible { background: var(--accent-soft); }
.rl-q { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.rl-qty { width: 4.2em; padding: 4px 6px; min-height: 34px; text-align: center; font-weight: 700; }
.rl-used, .rl-manline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rl-row.is-man .rl-manline .chip { font-size: .72rem; padding: 0 7px; }
.rl-del { font-size: .85rem; color: var(--danger, #b42318); }
.rl-qok { color: var(--accent); font-weight: 700; }
.rl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-head b { font-weight: 700; font-size: 1rem; }
.rladd-q > .small, .rladd-f label > .small { font-weight: 400; }

/* ⚙️ FE-1.9.84: Einstellungen – Bereiche als Kacheln */
.sethub { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 12px; }
@media (min-width: 900px) { .sethub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .sethub { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sethub-t { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); color: inherit; text-decoration: none; min-height: 64px; transition: border-color .15s, box-shadow .15s; }
.sethub-t:hover { border-color: var(--accent); }
.sethub-t.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.sethub-t b { display: block; font-size: .98rem; line-height: 1.25; }
.sethub-t small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; margin-top: 2px; }
.sethub-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.sethub-ic svg { width: 20px; height: 20px; }
.sethub-t.on .sethub-ic { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .sethub-t small { display: none; } .sethub-t { align-items: center; min-height: 56px; padding: 10px; } .sethub-t b { font-size: .92rem; } }
.setfind { display: block; margin: 0 0 14px; }
.setfind input { width: 100%; }
.setgrp { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.setgrp[hidden] { display: none; }
.setgrp > [hidden] { display: none !important; }
.setgrp-h { display: flex; gap: 12px; align-items: center; margin-top: 6px; scroll-margin-top: 120px; }
.setgrp-h h2 { margin: 0; font-size: 1.35rem; }
.setgrp-h p { margin: 2px 0 0; }
.setgrp > .card { scroll-margin-top: 120px; margin: 0; }
.settiles { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 761px) { .settiles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.settile { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; background: var(--surface-2); min-height: 56px; }
.settile:hover { border-color: var(--accent); }
.settile > span:nth-child(2) { flex: 1; min-width: 0; }
.settile b { display: block; }
.settile small { display: block; font-size: .8rem; }
.settile-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.settile-ic svg { width: 18px; height: 18px; }
.settile-go { color: var(--muted); font-size: 1.3rem; }
.anchor { display: block; position: relative; top: -120px; }

/* 📦 FE-1.9.88: Ersatzteile per Post */
.cp-rows { display: flex; flex-direction: column; gap: 10px; }
.cp-row { display: grid; gap: 6px 8px; align-items: end; grid-template-columns: minmax(0, 1fr) 5.2em auto; grid-template-areas: "art qty del" "name name name" "mk mk mk"; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.cp-row label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-row label > span { font-size: .78rem; color: var(--muted); }
.cp-row input { width: 100%; min-width: 0; }
.cp-art { grid-area: art; } .cp-qty { grid-area: qty; } .cp-mk { grid-area: mk; } .cp-name { grid-area: name; } .cp-del { grid-area: del; min-height: 44px; }
.cp-del[hidden] { display: inline-flex !important; visibility: hidden; }
@media (min-width: 761px) { .cp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) 5.2em auto; grid-template-areas: "mk art name qty del"; padding-bottom: 0; border-bottom: 0; } }
.cp-sug { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface, #fff); margin: -4px 0 4px; }
.cp-sug[hidden] { display: none; }
.cp-sug button { text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.cp-sug button:last-child { border-bottom: 0; }
.cp-sug button:hover, .cp-sug button:focus-visible { background: var(--accent-soft); }
.cp-ticket input { max-width: 16em; }
.cp-item { display: flex; flex-direction: column; gap: 8px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cp-its { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-acts { align-items: flex-start; }
.cp-edit[open] { flex-basis: 100%; }
.cp-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.cp-edit > summary::-webkit-details-marker { display: none; }
.cp-edit[open] > summary { margin-bottom: 10px; }
.cp-edit > form + form { margin-top: 8px; }
.cp-item:target { box-shadow: 0 0 0 2px var(--accent); }

/* 🧰 FE-1.9.89: Wartungspakete */
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.mp-bar[hidden] { display: none; }
.mp-bar-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mp-bar-t svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.mp-bar.is-hot { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.mp-bar.is-done { border-style: dashed; }
.mp-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); border: 0; border-radius: 18px; padding: 18px; background: var(--surface, #fff); color: var(--ink); }
.mp-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.mp-dlg h2 { margin: 0; font-size: 1.2rem; }
.mp-opts { display: flex; flex-direction: column; gap: 6px; }
.mp-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mp-opt input { margin-top: 3px; flex: none; width: 20px; height: 20px; }
.mp-opt b { display: block; }
.mp-opt small { display: block; color: var(--muted); font-size: .8rem; }
.mp-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mp-opt.is-fix { cursor: default; background: var(--surface-2); }
.mp-ok { color: var(--accent); font-weight: 800; width: 20px; text-align: center; flex: none; }
.mp-g { margin: 8px 0 0; }
.mp-glob { align-items: center; gap: 8px 18px; }
.mp-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.mp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: inherit; text-decoration: none; }
.mp-row.is-off { opacity: .65; }
.mp-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-act { align-self: end; }
.mp-grid2 { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 761px) { .mp-grid2 { grid-template-columns: 1fr 1fr; } }
.mp-bhead { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.mp-bhead label { min-width: 0; }
.mp-pos input { width: 3.5em; text-align: center; }
.mp-block.mp-immer { border-left: 4px solid var(--accent); }
.mp-del { color: var(--danger, #b42318); }
.mp-save { position: sticky; bottom: 90px; z-index: 5; }
@media (min-width: 761px) { .mp-save { bottom: 12px; } }
.mp-more { margin-top: 12px; }
.mp-dlg { overflow: auto; padding-bottom: 0; }
.mp-dlg form { padding-bottom: 14px; }
.mp-dlg .mp-opt { flex-direction: row !important; align-items: flex-start; color: var(--ink); font-weight: 400; }
.mp-dlg .mp-opt > span { flex: 1; min-width: 0; }
.mp-dlg .mp-pr { flex-direction: row !important; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 400; }
.mp-dlg .mp-pr input { flex: none; margin-top: 3px; }
.mp-dlg .mp-foot { position: sticky; bottom: 0; background: var(--surface, #fff); padding: 10px 0 0; margin-top: 4px; border-top: 1px solid var(--line); }
.mp-dlg .mp-opt > .mp-ok { flex: none; }
.mp-save { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); align-self: flex-start; }

/* 🧩 FE-1.9.90: Dateien prüfen */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--gap, 16px); align-items: start; }
.fc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 4px 16px; }
.fc-row { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 8px; background: var(--surface-2); min-width: 0; }
.fc-row .fc-c { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-row .fc-n { flex: none; white-space: nowrap; }
.fc-path { overflow-wrap: anywhere; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 8px; }

/* 📧 FE-1.9.91: Serviceschein an den Kunden (.eml) */
.custmail label:not(.checkline) { display: flex; flex-direction: column; gap: 4px; }
.custmail input[type=email] { max-width: 520px; }
.custmail .checkline { align-items: flex-start; } .custmail .checkline input { margin-top: 2px; }

/* FE-1.9.93: Abschluss – Kopf ausklappbar */
details.ab-head { gap: 0; }
details.ab-head > summary { cursor: pointer; list-style: none; position: relative; padding-right: 36px; align-items: center; }
details.ab-head > summary::-webkit-details-marker { display: none; }
details.ab-head .ab-no { font-weight: 700; }
details.ab-head .ab-chev { position: absolute; right: 0; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); transition: transform .15s; }
details.ab-head[open] .ab-chev { transform: rotate(180deg); }
details.ab-head[open] > summary { margin-bottom: 12px; }
details.ab-head[open] .ab-meta { margin-bottom: 12px; }

/* 🗓 FE-1.9.94: Wochenbericht */
.wr-head h1 .mono { font-weight: 700; }
.wr-sub { margin: -4px 0 10px; } .wr-who select { margin-left: 4px; max-width: 220px; }
.wr-state { margin-bottom: 10px; } .wr-lock { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.wr-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-bottom: 12px; }
.wr-top label { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .wr-top .wr-kfz { width: 160px; } .wr-top .grow { flex: 1 1 260px; }
.wr-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 760px), 1fr)); gap: 12px; align-items: start; }
.wr-day { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin: 0 !important; }
.wr-dh { display: flex; align-items: center; gap: 8px; min-height: 26px; } .wr-dh .chip { padding-top: 0; padding-bottom: 0; } .wr-dh .wr-dsum { margin-left: auto; }
.wr-hd, .wr-row { display: grid; grid-template-columns: 66px 66px minmax(0, 1fr) 104px 64px 58px 32px; gap: 6px; align-items: center; }
.wr-hd { padding: 0 2px; } .wr-row input { width: 100%; min-width: 0; padding: 6px 8px; }
.wr-row .wr-h { text-align: right; }
.wr-a { position: relative; min-width: 0; display: block; } .wr-a input { padding-right: 26px; }
.wr-job { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); text-decoration: none; color: var(--accent); font-weight: 700; }
.wr-del { width: 32px; height: 32px; padding: 0; }
.wr-row[data-tl] .wr-a input { background: color-mix(in srgb, var(--accent) 6%, var(--surface, transparent)); }
.wr-df { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.wr-dsp .mono { font-weight: 600; }
.wr-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; }
.wr-form[data-edit="1"] .wr-total { position: sticky; bottom: 8px; z-index: 5; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.wr-total .mono { font-weight: 700; } .wr-total .wr-save { margin-left: auto; }
.wr-list { display: flex; flex-direction: column; gap: 4px; }
.wr-li { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(0, 1.4fr) auto auto; gap: 4px 14px; align-items: center; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.wr-li:hover { background: var(--surface-2); } .wr-ln { white-space: nowrap; } .wr-ls { min-width: 90px; text-align: right; }
@media (max-width: 700px) {
  .wr-hd { display: none; }
  .wr-row { grid-template-columns: 1fr 1fr 1fr 32px; grid-template-areas: "f t h x" "a a a a" "s s m m"; padding: 10px 0; border-bottom: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); }   /* FE-1.9.138: kräftigere Trennlinie zwischen den Kunden */
  .wr-row .wr-f { grid-area: f; } .wr-row .wr-t { grid-area: t; } .wr-row .wr-h { grid-area: h; } .wr-row .wr-del { grid-area: x; }
  .wr-row .wr-a { grid-area: a; } .wr-row .wr-se { grid-area: s; } .wr-row .wr-mv { grid-area: m; justify-content: flex-end; }
  .wr-row input { font-size: 16px; }
  .wr-form[data-edit="1"] .wr-total { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .wr-total { font-size: .85rem; gap: 4px 12px; padding: 8px 10px; flex-wrap: nowrap; } .wr-total > b { display: none; } .wr-total .wr-u { display: none; } .wr-total .wr-save svg { display: none; } .wr-total > span { white-space: nowrap; } .wr-total .wr-save { padding: 6px 12px; }
  .wr-li { grid-template-columns: minmax(0, 1fr) auto; } .wr-li .wr-ln { grid-column: 1; } .wr-li .wr-ls { grid-row: 1; grid-column: 2; }
}

/* FE-1.9.96: Spesen je Tag, +/− Std der Woche */
.wr-df .wr-spd { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-left: auto; cursor: pointer; }
.wr-df .wr-spd input { width: 18px; height: 18px; }
.wr-wk { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; } .wr-wk input { width: 80px; padding: 5px 8px; text-align: right; }
@media (max-width: 700px) { .wr-wk input { width: 64px; } }

/* FE-1.9.97: Feierabend-Zeile, ↑↓ */
.wr-mv { display: flex; gap: 2px; } .wr-mv .btn { width: 28px; height: 32px; padding: 0; }
.wr-row[data-end] .wr-mv { visibility: hidden; }
.wr-row[data-end] .wr-a input { font-weight: 600; }
.wr-moved { animation: wrMoved .9s ease-out; }
@keyframes wrMoved { from { background: color-mix(in srgb, var(--accent) 22%, transparent); } to { background: transparent; } }
.wr-set { width: 110px; }

/* 📁 FE-1.9.99: Ablage */
.abl-path { overflow-wrap: anywhere; }
.abl-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.abl-c { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); } .abl-c summary { cursor: pointer; overflow-wrap: anywhere; } .abl-c ul { margin: 6px 0 2px; overflow-wrap: anywhere; }

/* ✏️ FE-1.9.99: Foto markieren */
.vo-thumb .vo-mark { left: 4px; right: auto; top: auto; bottom: 4px; background: var(--accent); }
.vo-thumb.is-marked { outline: 2px solid var(--accent); outline-offset: -2px; }
.pm-dlg { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #111; color: #fff; }
.pm-dlg[open] { display: flex; flex-direction: column; }
.pm-dlg::backdrop { background: #000; }
.pm-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 10px; padding-top: max(10px, env(safe-area-inset-top)); }
.pm-grp { display: flex; gap: 6px; }
.pm-bar button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 1.25rem; cursor: pointer; }
.pm-bar .pm-t.on { background: var(--accent); border-color: var(--accent); }
.pm-bar .pm-c { background: var(--pm); } .pm-bar .pm-c.on { outline: 3px solid #fff; outline-offset: 2px; }
.pm-dlg .pm-txt { margin: 0 10px 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: #262626; color: #fff; font-size: 16px; } .pm-dlg .pm-txt::placeholder { color: rgba(255,255,255,.55); }
.pm-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; }
.pm-cv { max-width: 100%; max-height: 100%; touch-action: none; border-radius: 6px; cursor: crosshair; }
.pm-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.pm-foot .btn { min-width: 120px; }

/* 🗒 FE-1.9.100: Notizen als Post-its (Handschrift Caveat, OFL, lokal) */
@font-face { font-family: 'Caveat'; src: url('caveat-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('caveat-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
.pi-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px 18px; align-items: start; padding: 6px 2px 14px; }
.pi { --pi-bg: #fff3a6; --pi-ink: #2d2a1e; position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 10px 12px 8px; background: var(--pi-bg); color: var(--pi-ink);
  border-radius: 2px 2px 14px 2px; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 8px 18px -6px rgba(0,0,0,.28); transform: rotate(-1deg); transition: transform .15s, box-shadow .15s; }
.pi:nth-child(3n+2) { transform: rotate(.8deg); } .pi:nth-child(4n+3) { transform: rotate(-.4deg); }
.pi::before { content: ''; position: absolute; top: -9px; left: 50%; width: 68px; height: 20px; margin-left: -34px; background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-2deg); }
.pi:focus-within { transform: rotate(0) scale(1.02); z-index: 2; box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 14px 26px -8px rgba(0,0,0,.35); }
.pi-gruen { --pi-bg: #c9f2c7; } .pi-rosa { --pi-bg: #ffd0dc; } .pi-blau { --pi-bg: #cde6ff; }
.pi-h { display: flex; justify-content: flex-end; }
.pi-d { font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-size: 1.05rem; font-weight: 700; opacity: .65; }
.pi-t { flex: 1; width: 100%; min-height: 96px; resize: none; overflow: hidden; border: 0 !important; outline: 0; padding: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--pi-ink) !important; font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-size: 1.55rem; line-height: 1.15; }
.pi-t::placeholder { color: rgba(0,0,0,.3); }
.pi-f { display: flex; align-items: center; gap: 6px; margin-top: 6px; opacity: .55; transition: opacity .15s; }
.pi:hover .pi-f, .pi:focus-within .pi-f { opacity: 1; }
@media (hover: none) { .pi-f { opacity: .9; } }
.pi-cs { display: flex; gap: 4px; }
.pi-c { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); background: var(--pi-bg); cursor: pointer; }
.pi-st { flex: 1; color: rgba(0,0,0,.5); text-align: right; }
.pi-b { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.08); color: var(--pi-ink); font-size: 1rem; cursor: pointer; }
.pi-b:hover { background: rgba(0,0,0,.16); }
.pi.is-done { filter: saturate(.4); opacity: .75; } .pi.is-done .pi-t { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.4); }
.pi-donebox { margin-top: 10px; } .pi-donebox summary { cursor: pointer; }
@media (prefers-color-scheme: dark) { .pi { box-shadow: 0 8px 22px -6px rgba(0,0,0,.7); } }
@media (max-width: 700px) { .pi-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .pi { min-height: 150px; padding: 8px 9px 6px; } .pi-t { font-size: 1.35rem; min-height: 80px; } .pi-c { width: 16px; height: 16px; } .pi-b { width: 28px; height: 28px; } }
@media (max-width: 360px) { .pi-wall { grid-template-columns: 1fr; } }

/* 👥 FE-1.9.101: Gemeinsam unterschreiben */
.gs-sub { margin: -4px 0 12px; }
.gs-sheets { display: flex; flex-direction: column; gap: 8px; }
.gs-sheet { padding: 0; } .gs-sheet > summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.gs-sheet > summary::-webkit-details-marker { display: none; }
.gs-pick input { width: 22px; height: 22px; } .gs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .gs-dev { font-weight: 600; overflow-wrap: anywhere; }
.gs-fault { overflow-wrap: anywhere; } .gs-state { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.gs-sheet.is-off { opacity: .5; } .gs-blk { margin: 0 14px 10px; }
.gs-body { padding: 0 10px 10px; } .gs-body .ab-job { box-shadow: none; border: 1px solid var(--line); }
.gs-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 4px 0; }
.ab-gs { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; border-left: 4px solid var(--accent); }
@media (max-width: 700px) { .gs-sheet > summary { flex-wrap: wrap; } .gs-state { width: 100%; justify-content: flex-start; padding-left: 34px; } }

/* ── FE-1.9.105: Tag/Zeiten nur anzeigen · Kunden zusammenführen · Geräte per XML ── */
.dj-spans { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; }
.dj-span { white-space: nowrap; }
.mg-cands { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mg-cands .chip { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.mg-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-head > .card { margin: 0 !important; }
.mg-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mg-c { border-left: 4px solid var(--accent); }
.mg-f { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 10px; margin: 0; min-width: 0; }
.mg-f legend { font-weight: 700; font-size: .9rem; padding: 0 4px; }
.mg-f.is-same { opacity: .6; }
.mg-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.mg-opt { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; overflow-wrap: anywhere; font-weight: 400; }
.mg-opt input { width: 20px !important; height: 20px; flex: none; margin-top: 1px; }
.mg-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mg-devs li { padding: 4px 0; }
.mg-devs .checkline { align-items: flex-start; }
.xi-ex { font-size: .8rem; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; overflow-x: auto; max-width: 100%; }
.xi-list { display: flex; flex-direction: column; gap: 8px; }
.xi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; }
.xi-row .grow { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.xi-row .xi-st { display: block; color: var(--muted); }
.xi-row.is-sn, .xi-row.is-doppelt { opacity: .65; }
.xi-row.is-aehnlich .xi-st { color: var(--warn); }
.xi-loc { display: flex; flex-direction: column; gap: 2px; flex: 0 1 240px; min-width: 0; }
.xi-loc input { width: 100%; }
@media (max-width: 700px) { .mg-head { grid-template-columns: 1fr; } .xi-loc { flex-basis: 100%; } }

/* ── FE-1.9.106: Fotos im Abschluss, Software-Infos zugeklappt ── */
details.ab-fw { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
details.ab-fw > .fw-row { margin-top: 10px; }
.fw-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: pointer; list-style: none; }
.fw-sum::-webkit-details-marker { display: none; }
.fw-sum::after { content: '▾'; margin-left: auto; color: var(--muted); }
details.ab-fw[open] > .fw-sum::after { content: '▴'; }
.fw-sum .fw-ic { width: 18px; height: 18px; color: var(--accent); }
.ab-photoadd { margin: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.ab-photobtn { position: relative; overflow: hidden; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.ab-photobtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ab-handy { margin-bottom: 10px; }

/* ── FE-1.9.108: Teile aufklappbar, Zeitblock ×, Abschluss-Bereiche einheitlich ── */
.vo-partsfold { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.vo-partsfold > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none; }
.vo-partsfold > summary::-webkit-details-marker { display: none; }
.vo-partsfold > summary::after { content: '▾'; margin-left: auto; color: var(--muted); font-weight: 400; }
.vo-partsfold[open] > summary::after { content: '▴'; }
.vo-partsfold > .vo-parts { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; margin: 0; }
.te-del { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.te-del input[type=checkbox] { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; pointer-events: none; }
.te-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--danger); font-size: 1.2rem; line-height: 1; }
.te-del input:focus-visible + .te-x { outline: 2px solid var(--accent); outline-offset: 2px; }
.te-deln { display: none; color: var(--danger); font-style: normal; }
.te-del input:checked + .te-x { background: var(--danger); color: #fff; border-color: var(--danger); }
.te-del input:checked ~ .te-deln { display: inline; }
.te-row.del input[type=date], .te-row.del input[type=time], .te-row.del select, .te-row.del .t5 { opacity: .45; text-decoration: line-through; }
.ab-grp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.ab-grp > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: pointer; list-style: none; font-weight: 700; }
.ab-grp > summary::-webkit-details-marker { display: none; }
.ab-grp > summary::after { content: '▾'; margin-left: auto; color: var(--muted); font-weight: 400; }
.ab-grp[open] > summary::after { content: '▴'; }
.ab-grp > summary .fw-ic, .ab-grp > summary svg { width: 18px; height: 18px; color: var(--accent); }
.ab-grp > summary .ab-n { font-weight: 400; color: var(--muted); font-size: .85rem; }
.ab-grp > .ab-grpbody { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ab-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ab-plist li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ab-plist li > a { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ab-plist .ab-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--danger); font-size: 1.1rem; line-height: 1; cursor: pointer; flex: none; }
.ab-pthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.ab-pthumbs img, .ab-pthumbs video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }

/* ── FE-1.9.110: dezente Vorlagen-Auswahl bei „Ausgeführte Arbeiten“ (eine Zeile mit der Überschrift) ── */
.vo-workhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.vo-workhead > .vo-worklbl { flex: 1 1 auto; width: auto !important; min-width: 0; }
.vo-step .vo-workhead select.tplsel { flex: 0 1 auto; width: auto !important; max-width: 55%; min-width: 0; font-size: .82rem !important; height: 30px !important; min-height: 0 !important; padding: 0 26px 0 10px !important; border-radius: 999px; color: var(--muted); background-color: transparent; background-position: right 8px center; }
.vo-step .vo-workhead select.tplsel:focus { color: var(--ink); }

/* ── FE-1.9.111: Eingang der Einsatzleitung (Erledigt / Weiterbearbeitung) ── */
.li-intro { margin: -4px 0 12px; }
.li-list { display: flex; flex-direction: column; gap: 10px; }
.li-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.li-main { display: flex; flex-direction: column; gap: 2px; color: inherit; min-width: 0; overflow-wrap: anywhere; }
.li-main:hover { text-decoration: none; }
.li-txt { margin: 0; overflow-wrap: anywhere; }
.li-btns { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-start; margin-top: 4px; }
.li-act { display: block; }
.li-act[open] { flex-basis: 100%; }
.li-act > summary { list-style: none; cursor: pointer; }
.li-act > summary::-webkit-details-marker { display: none; }
.li-act[open] > summary { background: var(--surface-2); }
.li-act > .li-form, .li-act > .ordrel { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.li-card.li-da { border-left: 4px solid var(--ok); }
.li-card.li-entscheiden { border-left: 4px solid var(--warn); }
.li-card.li-buero, .li-card.li-geplant { opacity: .85; }
.li-grp.li-ok { color: var(--ok); }
.li-grp.li-todo { color: var(--warn); }

/* ── FE-1.9.113: Probeversion ── */
.probebar { position: relative; z-index: 60; background: #fff3cd; color: #5c4400; border-bottom: 1px solid #e8d48a; padding: 6px 16px; font-size: .85rem; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .probebar { background: #3d3214; color: #f3dc9a; border-color: #5c4a1a; } }
:root[data-theme="dark"] .probebar { background: #3d3214; color: #f3dc9a; border-color: #5c4a1a; }

/* ══ FE-1.9.114: Einsatz starten & Abschluss am Handy – ruhiger, einheitlich ══ */
/* Die Serviceschein-Nr. als „Formular-Stempel“ – wie die Nummer auf dem Papierformular */
#vo .vo-head3 input[name=ticket_no] { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; color: var(--accent-text); background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); }
#vo .vo-head3 input[name=ticket_no]::placeholder { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ab-title .ab-no { display: inline-block; font-size: .78em; letter-spacing: .06em; color: var(--accent-text); background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 8px; padding: .06em .4em; vertical-align: .08em; }

/* Überschriften in normaler Schreibweise statt GROSSBUCHSTABEN */
@media (max-width: 760px) { .vo-step h2 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); } }

/* Ein Aufklapp-Element für alles: Teile, Software, Protokolle, Dateien, Fotos, Kundenwunsch */
.vo-partsfold > summary, .ab-grp > summary, .wishbox > details > summary { min-height: 48px; position: relative; padding-right: 40px; list-style: none; cursor: pointer; }
.wishbox > details > summary::-webkit-details-marker { display: none; }
.wishbox > details > summary { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.vo-partsfold > summary::after, .ab-grp > summary::after, .wishbox > details > summary::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin: -6px 0 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; }
.vo-partsfold[open] > summary::after, .ab-grp[open] > summary::after, .wishbox > details[open] > summary::after { content: ''; transform: rotate(-135deg); margin-top: -2px; }
.wishbox > details > summary h2::before, .wishbox > details[open] > summary h2::before { content: none; }
/* Kopf „Servicebericht“: derselbe Pfeil statt ▾ im Kreis */
details.ab-head .ab-chev { font-size: 0; background: none; width: 28px; height: 28px; }
details.ab-head .ab-chev::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { details.ab-head .ab-chev { transition: none; } }
.ab-grp { padding: 0 12px; } .ab-grp > summary { padding-left: 0; } .ab-grp > .ab-grpbody { padding-bottom: 12px; margin-top: 0; }
.ab-grp:has(> summary:focus-visible), .vo-partsfold:has(> summary:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vo-partsfold > summary::after, .ab-grp > summary::after, .wishbox > details > summary::after { transition: none; } }

/* Untere Knopfleiste: kurze Beschriftung am Handy, mit drei Knöpfen wird „Abbrechen“ schmal */
.vo-btns:has(> :nth-child(3)) { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.35fr); }
.vo-btns > .btn { white-space: nowrap; }
@media (max-width: 480px) { .vo-btns .lg, .ab-top .lg { display: none; } }

/* Abschluss oben: drei Knöpfe in einer Reihe */
.ab-top { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .ab-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .ab-top > .btn { justify-content: center; min-height: 44px; padding-inline: 8px; } }

/* ══ FE-1.9.115: Einsatz-Seiten (Einsatz starten, Abschluss, Einsatzseite) – ruhiges Grün, ein Hauptknopf, Bewegung (static/motion.js) ══ */
main:has(#vo), main:has(#abHead), main:has(#svcm) { --accent: #0F5F43; --accent-hover: #0B4A34; --accent-soft: #E7F0EB; --accent-text: #0F5F43; --accent-ink: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main:has(#vo), :root:not([data-theme="light"]) main:has(#abHead), :root:not([data-theme="light"]) main:has(#svcm) { --accent: #5FBF92; --accent-hover: #74CBA2; --accent-soft: #1D2D27; --accent-text: #7FD3AA; --accent-ink: #0C1A14; } }
:root[data-theme="dark"] main:has(#vo), :root[data-theme="dark"] main:has(#abHead), :root[data-theme="dark"] main:has(#svcm) { --accent: #5FBF92; --accent-hover: #74CBA2; --accent-soft: #1D2D27; --accent-text: #7FD3AA; --accent-ink: #0C1A14; }

/* Stempel-Nummer: leicht schräg wie gestempelt */
.ab-title .ab-no, .svm-stamp { display: inline-block; transform: rotate(-1.5deg); }
.svm-stamp { font-family: var(--mono); font-weight: 700; letter-spacing: .06em; color: var(--accent-text); border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 7px; background: transparent; }
.ab-title .ab-no { background: transparent; border-color: currentColor; }

/* Abschluss: Kopfzeile, Schritte */
.abx-top { display: flex !important; align-items: center; gap: 8px; margin: 0 0 6px; }
.abx-sp { flex: 1; }
.abx-back { font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 4px; }
.abx-ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: .8rem; text-decoration: none; }
.abx-ic svg { width: 20px; height: 20px; }
.abx-steps { position: relative; display: flex; gap: 18px; list-style: none; margin: 0 0 14px; padding: 0 0 10px; font-size: .82rem; color: var(--muted); }
.abx-steps li { display: inline-flex; align-items: center; gap: 6px; }
.abx-steps li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; border: 1.5px solid var(--line); }
.abx-steps li.done i { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.abx-steps li.now { color: var(--ink); font-weight: 700; } .abx-steps li.now i { border-color: var(--ink); }
.abx-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.abx-prog i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .abx-prog { display: none; } }
.ab-meta small, .ab-cust small { text-transform: none; letter-spacing: 0; }

/* Abschluss: Protokolle, Dateien & Fotos als eine Liste */
.ab-files .ab-grp { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; padding: 0 2px; background: transparent; }
.ab-files h2 + .ab-grp, .ab-files h2 + .ab-fw { border-top: 0; }
.ab-files .ab-grp > summary { min-height: 54px; font-size: .95rem; }
.ab-files .ab-grp > summary svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--surface-2); color: var(--accent-text); }
#abPhotos .ab-photobtn { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }

/* Abschluss: feste Leiste */
.abx-dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 20px; max-width: 560px; margin: 0 auto; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(17, 45, 33, .12); transition: opacity .2s, transform .2s; }
.abx-dock .btn { width: 100%; justify-content: center; min-height: 52px; font-size: 1.02rem; }
.abx-dock.is-off { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 760px) { .abx-dock { bottom: calc(100px + env(safe-area-inset-bottom)); } }
main:has(#abDock) { padding-bottom: 120px; }
@media print { .abx-dock, .mx-mini, .abx-steps { display: none !important; } }

/* Mini-Kopfzeile mit Nummer beim Scrollen (static/motion.js) */
.mx-mini { position: fixed; z-index: 90; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(17, 45, 33, .12); font-size: .82rem; color: var(--muted); pointer-events: none; }
.mx-mini-no { font-family: var(--mono); letter-spacing: .06em; color: var(--accent-text); }
.mx-pulse { animation: mxPulse 1.1s ease-out 2; border-radius: 14px; }
@keyframes mxPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) { .mx-pulse { animation: none; outline: 3px solid var(--accent); } }

/* Einsatzseite im selben Stil: keine Großbuchstaben, ein Hauptknopf („Abschluss“) */
main:has(#svcm) .svcm h3, main:has(#svcm) .svcm-facts dt, main:has(#svcm) .bizgroup { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); }
main:has(#svcm) .btn-accent:not(#svcmDone) { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; box-shadow: none; }
main:has(#svcm) #svcmDone { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
main:has(#svcm) #svcmDone svg { color: inherit; }
main:has(#abHead) .btn-accent:not(#abSubmit):not(.abx-dock .btn):not(#abPhotoSend) { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; box-shadow: none; }


/* ══ FE-1.9.116: Zeiten-Block kompakt (Einsatzseite) ══ */
.tx-fold > summary { list-style: none; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 52px; padding-right: 36px; }
.tx-fold > summary::-webkit-details-marker { display: none; }
.tx-fold > summary::after { content: ''; position: absolute; right: 12px; 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 .2s ease; }
.tx-fold[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tx-h { font-weight: 700; font-size: .95rem; }
.tx-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .86rem; color: var(--muted); }
.tx-facts .tx-total { color: var(--ink); font-weight: 700; }
.tx-fold[open] .tx-facts { display: none; }
.tx-body { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.te-line { display: none; }
.tx-compact .te-list > b { display: none; }
.tx-compact .te-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--line); }
.tx-compact .te-row > label:not(.te-del), .tx-compact .te-row > .te-out { display: none; }
.tx-compact .te-line { display: flex; align-items: center; gap: 10px; min-height: 46px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.te-line .te-lk { color: var(--muted); font-size: .82rem; } .te-line .te-lm { margin-left: auto; font-weight: 600; } .te-line .te-pen { color: var(--muted); }
.tx-compact .te-row.is-edit { grid-template-columns: 1fr; padding-bottom: 10px; }
.tx-compact .te-row.is-edit > label:not(.te-del) { display: flex; } .tx-compact .te-row.is-edit > .te-out { display: block; }
.tx-compact .te-row.is-edit .te-pen { color: var(--accent-text); }
.tx-compact .te-row.is-edit > .te-del { justify-self: start; }
.tx-compact .te-sum { margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) { .tx-fold > summary::after { transition: none; } }

/* FE-1.9.116: Mini-Kopfzeile unter der Kopfzeile (erscheint, wenn die Kopfzeile beim Scrollen weg ist); Bearbeiten-Zeile zweispaltig */
.mx-mini { z-index: 15; }
.tx-compact .te-row.is-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
.tx-compact .te-row.is-edit > .te-line, .tx-compact .te-row.is-edit > .te-d { grid-column: 1 / -1; }
.tx-compact .te-row.is-edit > .te-out { align-self: center; }
.tx-compact .te-row.is-edit > .te-del { grid-column: 1 / -1; }


/* ══ FE-1.9.117: Zum Aktualisieren ziehen (nur Startseite, static/ptr.js) ══ */
/* FE-1.9.137: kein overscroll-behavior auf html/body – auf dem iPhone (Home-Bildschirm-App) verrutschen sonst fest stehende Leisten; das Ziehen fängt ptr.js selbst ab */
.ptr { position: fixed; left: 0; right: 0; top: 0; height: 0; z-index: 19; pointer-events: none; }
.ptr-band { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.ptr-band path { fill: var(--accent-soft); stroke: none; }
.ptr-ball { position: absolute; left: 50%; top: 0; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: var(--surface); box-shadow: 0 8px 24px rgba(17, 45, 33, .18), 0 0 0 1px var(--line); display: grid; place-items: center; opacity: 0; }
.ptr-ring { position: absolute; inset: 4px; width: 44px; height: 44px; transform: rotate(-90deg); }
.ptr-ring circle { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.ptr-tooth { width: 24px; height: 24px; }
.ptr-tooth path { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.ptr.is-armed .ptr-ball { background: var(--accent); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.ptr.is-armed .ptr-ring circle { stroke: var(--accent-ink); }
.ptr.is-armed .ptr-tooth path { fill: var(--accent-ink); stroke: var(--accent-ink); }
.ptr-txt { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); opacity: 0; }
.ptr.is-armed .ptr-txt { color: var(--accent-text); }
.ptr-sparks { position: absolute; left: 0; top: 0; width: 100%; height: 0; }
.ptr-sparks i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.ptr-wave { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--accent); }
.ptr-sparks i:nth-child(3n) { background: #EFBB28; border-radius: 50%; }
.ptr-sparks i:nth-child(3n+1) { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); }
@media print { .ptr { display: none !important; } }


/* ══ FE-1.9.118: Farben der ganzen App = Einsatz (ruhiges Grün statt #008849) ══ */
:root { --g-500: #0F5F43; --g-600: #0B4A34; --g-50: #E7F0EB; --g-100: #D2E4DA; --g-300: #8DBFA6;
  --accent: #0F5F43; --accent-ink: #FFFFFF; --accent-soft: #E7F0EB; --accent-text: #0F5F43; --accent-hover: #0B4A34;
  --pcb: #0F5F43; --pcb-2: #0B4A34; --ok: #2E7A55; --st-ok: #2E7A55; --st-ok-ink: #0F5F43; --st-plan: #8DBFA6;
  --ring: 0 0 0 4px rgba(15, 95, 67, .16); --hdr-on: #E7F0EB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-500: #5FBF92; --g-600: #7FD3AA; --g-50: #1D2D27; --g-100: #213A30; --g-300: #3E7A5E;
  --accent: #5FBF92; --accent-ink: #0C1A14; --accent-soft: #1D2D27; --accent-text: #7FD3AA; --accent-hover: #74CBA2;
  --pcb: #1F4D3A; --ok: #7FD3AA; --st-ok: #7FD3AA; --st-ok-ink: #9FDDBF; --st-plan: #3E7A5E; --ring: 0 0 0 4px rgba(95, 191, 146, .2); --hdr-on: #1D2D27; } }
:root[data-theme="dark"] { --g-500: #5FBF92; --g-600: #7FD3AA; --g-50: #1D2D27; --g-100: #213A30; --g-300: #3E7A5E;
  --accent: #5FBF92; --accent-ink: #0C1A14; --accent-soft: #1D2D27; --accent-text: #7FD3AA; --accent-hover: #74CBA2;
  --pcb: #1F4D3A; --ok: #7FD3AA; --st-ok: #7FD3AA; --st-ok-ink: #9FDDBF; --st-plan: #3E7A5E; --ring: 0 0 0 4px rgba(95, 191, 146, .2); --hdr-on: #1D2D27; }

/* FE-1.9.118: stehende Karte (sticky) rutscht nicht mehr über „Live heute“ */
.dispo-live { position: relative; z-index: 2; }

/* ══ FE-1.9.119: Abschluss für Techniker – Navigation/Rückgabe/Rückfragen statt Einsatzseite ══ */
.abx-acts { gap: 8px; margin: 10px 0; }
.abx-acts .btn { flex: 1 1 auto; justify-content: center; }
main:has(#abHead) .jmsgs { margin: 10px 0; }

/* ══ FE-1.9.121: Checkliste vor dem Absenden ══ */
.ab-todo { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface); }
.ab-todo-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ab-todo-h .small { color: var(--muted); }
.ab-todo-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); margin: 8px 0 6px; overflow: hidden; }
.ab-todo-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.ab-todo.has-block .ab-todo-bar i { background: var(--warn); }
.ab-todo ul { margin: 4px 0 6px; }
.ab-todo li > a, .ab-todo li > span { display: flex; align-items: center; gap: 10px; padding: 7px 4px; color: inherit; text-decoration: none; border-radius: 8px; min-height: 40px; }
.ab-todo li > a:hover { background: var(--accent-soft); }
.ab-todo li + li { border-top: 1px dashed var(--line); }
.ab-todo li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 800; }
.ab-todo li.ok i { background: var(--accent); color: var(--accent-ink); } .ab-todo li.ok i::before { content: "✓"; }
.ab-todo li.must i { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); } .ab-todo li.must i::before { content: "✗"; }
.ab-todo li.hint i { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .ab-todo li.hint i::before { content: "!"; }
.ab-todo li.ok .ab-todo-t { color: var(--muted); }
.ab-todo-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ab-todo-t small { color: var(--danger); font-weight: 700; margin-left: 4px; }
.ab-todo-go { color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.vo-anchor { display: block; scroll-margin-top: 90px; }

/* ══ FE-1.9.121: Startseite „Weiter, wo du warst“ ══ */
a.card.resume { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: inherit; text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
a.card.resume:hover { border-color: var(--accent); }
.rs-play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.rs-play .ic { width: 22px; height: 22px; margin-left: 2px; }
.rs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-k { color: var(--accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.rs-t { font-size: 1.08rem; overflow-wrap: anywhere; } .rs-no { font-weight: 600; color: var(--muted); margin-left: 4px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rs-todo { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border-color: transparent; }
.rs-run { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.rs-go { flex: none; font-size: 1.8rem; color: var(--accent-text); line-height: 1; }
.rs-more { margin: -6px 0 12px 4px; }
.rs-play .ic path { fill: currentColor; }

/* ══ FE-1.9.121: Netz-Anzeige in der Kopfzeile + Liste ══ */
.netpill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .85rem/1 inherit; cursor: pointer; flex: none; }
.netpill.is-off { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.netpill.is-wait b { min-width: 1.2em; text-align: center; }
.netpill.is-wait:not(.is-off) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); animation: netpulse 1.6s ease-in-out infinite; }
.netpill.is-err { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
@keyframes netpulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); } }
@media (prefers-reduced-motion: reduce) { .netpill { animation: none !important; } }
.netdlg { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface); color: var(--text); }
.netdlg::backdrop { background: rgba(10, 20, 15, .45); }
.netdlg h2 { margin: 0 0 6px; font-size: 1.15rem; }
.nd-st.warn { color: var(--warn); } .nd-st.ok { color: var(--accent-text); }
.nd-list { margin: 10px 0 14px; max-height: 50vh; overflow: auto; }
.nd-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.nd-list li.is-err { color: var(--danger); }
.nd-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
@media print { .netpill { display: none !important; } }

/* ══ FE-1.9.121: Tagesabschluss der Einsatzleitung ══ */
.ld-day { gap: 8px; align-items: center; margin: 4px 0 12px; } .ld-day input[type=date] { width: auto; }
.ld-day .is-off { opacity: .4; pointer-events: none; }
.ld-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ld-kpis .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; }
.ld-kpis .kpi b { font-size: 1.4rem; } .ld-kpis .kpi span { color: var(--muted); font-size: .8rem; }
.ld-kpis .kpi.is-todo { border-color: var(--accent); background: var(--accent-soft); } .ld-kpis .kpi.is-wait b { color: var(--warn); }
.ld-all { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ld-th { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 1.05rem; }
.ld-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ld-main { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.ld-main:hover b { color: var(--accent-text); }
.ld-side { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
.ld-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ld-todo .ld-st { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.ld-ok .ld-st { color: var(--muted); } .ld-wait .ld-st { color: var(--warn); } .ld-off { opacity: .6; }
.ld-hint { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.ld-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .ld-row { grid-template-columns: 1fr; } .ld-side { justify-content: flex-start; } }

/* ══ FE-1.9.121: geprüfte Sicherung ══ */
.bkverify { gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.bkverify.is-ok { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.bkverify.is-bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.bkverify .mono { overflow-wrap: anywhere; }
.li-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .li-seg::-webkit-scrollbar { display: none; } .li-seg a { white-space: nowrap; flex: none; }
.rs-hint { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: transparent; }

/* FE-1.9.122: Fotos im Abschluss mit × */
.ab-pt { position: relative; display: block; }
.ab-pdel { position: absolute; top: 4px; right: 4px; margin: 0; }
.ab-pdel .ab-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--danger); font-size: 1.05rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* ══ FE-1.9.123: SECU-Dateien und aufklappbarer Kunde im Einsatz ══ */
.vo-ptoggle { flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.vo-ptoggle b { overflow-wrap: anywhere; }
.vo-pchev { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); position: relative; }
.vo-pchev::before { content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 6px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg); }
.vo-ptoggle:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.vo-cinfo { margin-top: 8px; overflow: hidden; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.vo-cinfo[hidden] { display: none; }
.vo-ci-in { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.vo-ci-row { display: flex; align-items: flex-start; gap: 10px; }
.vo-ci-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: .95rem; }
.vo-ci-t { flex: 1; min-width: 0; padding-top: 5px; overflow-wrap: anywhere; }
.vo-ci-row .btn, .vo-ci-row .linkbtn { flex: none; }
.vo-ci-files, .secu-list { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vo-ci-files { padding-left: 40px; }
.vo-ci-files a, .secu-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; min-width: 0; flex: 1; }
.vo-ci-files a:hover, .secu-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.secu-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.secu-n { display: flex; flex-direction: column; min-width: 0; } .secu-n b { overflow-wrap: anywhere; font-size: .92rem; }
.secu-list li { display: flex; align-items: center; gap: 8px; }
.secu-list .ab-x { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--danger); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.secu-up { margin-top: 10px; gap: 8px; align-items: center; } .secu-up .small { overflow-wrap: anywhere; }
.vo-ci-files li + li, .secu-list li + li { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
.vo-ci-files li, .secu-list li { border-bottom: 0 !important; padding-bottom: 0 !important; }
.secu-up .btn { flex-direction: row !important; gap: 6px; }

/* ══ FE-1.9.124: Rückfrage mit Foto, Kundenverlauf, Kundenbericht ══ */
.jmsg-foto { display: inline-block; margin-top: 6px; } .jmsg-foto img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.jmsg-fbtn { flex-direction: row !important; gap: 6px; }
.jmsg-prev { position: relative; display: inline-flex; } .jmsg-prev[hidden] { display: none; }
.jmsg-prev img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.jmsg-prev .ab-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--danger); line-height: 1; cursor: pointer; }
.custrep { position: relative; } .custrep > summary { list-style: none; } .custrep > summary::-webkit-details-marker { display: none; }
.custrep-f { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.14); gap: 10px; }
.custrep-seg { display: flex; flex-wrap: wrap; } .custrep-seg a { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.ch-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ch-dev select { max-width: min(420px, calc(100vw - 32px)); }
.ch-types { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .ch-types a { white-space: nowrap; flex: none; }
.ch-line { position: relative; padding-left: 22px; }
.ch-line::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 15%, transparent)); }
.ch-month { margin: 18px 0 8px 18px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); } .ch-month[hidden] { display: none; }
.ch-month:first-child { margin-top: 0; }
.ch-item { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 8px -22px; padding: 10px 12px 10px 0; color: inherit; text-decoration: none; }
.ch-item[hidden] { display: none; }
.ch-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); font-size: .95rem; position: relative; z-index: 1; }
.ch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ch-item:hover .ch-body { border-color: var(--accent); background: var(--accent-soft); }
.ch-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .ch-top b { overflow-wrap: anywhere; } .ch-at { flex: none; }
.ch-dev-l { color: var(--accent-text); font-weight: 600; } .ch-txt { color: var(--muted); overflow-wrap: anywhere; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.ch-rueckfrage .ch-dot { border-color: #EFBB28; } .ch-bestellung .ch-dot { border-color: var(--warn); } .ch-secu .ch-dot, .ch-pruefung .ch-dot { border-color: var(--accent-text); }

/* ══ FE-1.9.125: +/− Std je Tag im Wochenbericht ══ */
.wr-df .wr-dplus { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-left: auto; }
.wr-df .wr-dplus + .wr-spd { margin-left: 4px; }
.wr-dplus input { width: 74px; padding: 5px 8px; text-align: right; }
.wr-dplus input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.wr-wk input[readonly] { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
@media (max-width: 700px) { .wr-dplus input { width: 64px; } }

/* ══ FE-1.9.126: Startseite poliert (Hallmark-Audit) – Symbole statt Emojis, Spalten statt „·“, Wochentage normal ══ */
.h-ic { display: inline-flex; align-items: center; gap: 8px; } .h-ic > .ic { width: 18px; height: 18px; flex: none; color: var(--accent-text); }
h3.h-ic { display: flex; } .h-row { gap: 8px; } .h-row .grow { flex: 1; } .h-row a.small { font-weight: 600; }
.kv { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; }
.kv > span, .kv > b { position: relative; }
.kv > * + *::before { content: ""; position: absolute; left: -8px; top: .2em; bottom: .2em; width: 1px; background: var(--line); }
.kv-t { display: block; margin-top: 2px; }
.dc-n { display: inline-flex; flex-wrap: wrap; column-gap: 14px; } .dc-n > span { position: relative; } .dc-n > span + span::before { content: ""; position: absolute; left: -8px; top: .2em; bottom: .2em; width: 1px; background: var(--line); }
.dc-go .ic { width: 18px; height: 18px; color: var(--accent-text); }
a.tl { display: inline-flex; flex-direction: column; } a.tl .tl-c { font-weight: 600; } a.tl .tl-d { font-size: .85rem; color: var(--muted); }
.vo-appts .ic { width: 16px; height: 16px; }
/* Wochentage: normale Schreibweise, nicht gesperrt */
.mw-dh, .mw-dh .mw-wd { text-transform: none !important; letter-spacing: 0 !important; }
.mw-dh { font-size: .82rem; }
footer .kv { column-gap: 14px; }
.rs-go { width: 12px; height: 12px; border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg); margin-right: 6px; }
.bz-w.kv { column-gap: 12px; } .bz-w .h-ic { gap: 5px; } .bz-w .h-ic .ic { width: 13px; height: 13px; color: currentColor; }
.rs-k { text-transform: none !important; letter-spacing: 0 !important; font-size: .8rem !important; }

/* ══ FE-1.9.127: Videos in der App, App-Symbol ══ */
.lf-vid { display: flex; } .lf-vid figure { margin: auto; max-width: 96vw; max-height: 86vh; }
.lf-vid video { max-width: 96vw; max-height: 86vh; border-radius: 10px; background: var(--ink, #000); }
.appicon-box { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.appicon-box h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.appicon-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.appicon-prev { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; }
.appicon-prev img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); object-fit: cover; }
.appicon-prev span { max-width: 96px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appicon-box input[type=color] { width: 48px; height: 34px; padding: 2px; }

/* ══ FE-1.9.130: Testphase – „Mail verschickt“ ══ */
.mailsent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--warn) 60%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.mailsent.is-done { border-style: solid; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.mailsent .ms-t { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; } .mailsent .ms-t b { display: inline-flex; align-items: center; gap: 6px; }
.mailsent.is-done .ms-t b { color: var(--accent-text); } .mailsent .ic { width: 16px; height: 16px; }
.mw-it.is-mailed .mw-b b.cn, .mw-it.is-mailed .mw-b .kv, .mw-it.is-mailed .mw-task span { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.mw-it.is-mailed { opacity: .72; }
.mw-mail { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .75rem; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.mw-mail.is-done { color: var(--accent-text); border-color: transparent; background: var(--accent-soft); } .mw-mail .ic { width: 13px; height: 13px; }
.wk-item.is-mailed b, .wk-item.is-mailed small { text-decoration: line-through; text-decoration-thickness: 2px; } .wk-item.is-mailed { opacity: .7; }
.wk-item.is-mailopen { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--warn) 55%, transparent); }
@media print { .mailsent { display: none; } }
#mailSentBtn, main:has(#abHead) #mailSentBtn { background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent) !important; }

/* ══ FE-1.9.131: SECUTEST-Import ══ */
.xi-stk { display: inline-block; margin-top: 4px; font-size: .78rem; } .xi-stk.ok { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.xi-stk.bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: transparent; }
.xi-upd { display: flex; margin-top: 6px; }
.xi-btns { gap: 8px; } .xi-btns .btn { flex: 1 1 auto; justify-content: center; white-space: normal; }
.xi-row.is-sn:has(.xi-upd) { opacity: 1; } .xi-row.is-sn:has(.xi-upd) > .grow > b, .xi-row.is-sn:has(.xi-upd) .xi-st { opacity: .75; }
.secu-list .secu-imp { margin: 0; } .secu-list .secu-imp .btn { white-space: nowrap; }
@media (max-width: 520px) { .secu-list li { flex-wrap: wrap; } .secu-list li > a { flex: 1 1 100%; } }
#custSentBtn, main:has(#abHead) #custSentBtn { background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent) !important; }
.mw-mails { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .mw-mails .mw-mail { margin-top: 0; }
.wk-item .wk-mail { display: flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 600; } .wk-item .wk-mail .ic { width: 12px; height: 12px; }

/* ══ FE-1.9.136: Hinweis für Techniker, Vorher/Nachher, Update an die Technik ══ */
.vo-pnote { font-size: .72rem; padding: 2px 8px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); border-color: transparent; } .vo-pnote[hidden] { display: none; }
.vo-ci-note .vo-ci-ic { background: color-mix(in srgb, var(--warn) 18%, transparent); }
.custtech { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); }
.ab-vn { display: flex; gap: 8px; flex-wrap: wrap; } .ab-vnbtn { flex: 1 1 0; justify-content: center; flex-direction: row !important; gap: 6px; }
.ab-vntag { position: absolute; left: 4px; top: 4px; z-index: 1; padding: 1px 7px; border-radius: 8px; font-size: .7rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.vo-thumb { position: relative; }
.techupd > summary { display: flex; flex-direction: column; gap: 2px; cursor: pointer; } .techupd > summary b { display: inline-flex; align-items: center; gap: 8px; }
.tu-form { margin-top: 10px; } .tu-files { align-self: flex-start; flex-direction: row !important; gap: 6px; }
.tu-prev { display: flex; flex-wrap: wrap; gap: 6px; } .tu-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.tu-list { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
#tuSend { background: var(--accent) !important; color: var(--accent-ink) !important; }
