:root {
  --accent: #161616; --red: #d0021b; --side: #1d1d1f; --side-hi: #d0021b; --bg: #f3f4f7; --card: #fff; --text: #1b1f27;
  --muted: #6b7280; --line: #e3e6eb; --danger: #c0392b; --ok: #1e8449; --radius: 10px; --sidew: 230px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 12px; } h2 { font-size: 18px; font-weight: 600; } h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.err { color: var(--danger); min-height: 1em; margin: 8px 0 0; }
.spacer { flex: 1; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #2a2a2a, #0b0b0b); }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-card label { text-align: left; }
.login-logo { width: 190px; height: auto; margin: 4px 0 12px; }

/* Layout */
.topbar { position: fixed; inset: 0 0 auto 0; height: 58px; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.brand { color: inherit; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; } .brand img { width: 28px; height: 28px; }
.iconbtn { background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; padding: 8px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.iconbtn:hover { background: var(--bg); }
.quick-order { width: auto; max-width: 340px; margin: 0; padding: 7px 10px; font-size: 14px; }
.usermenu { position: relative; }
.dropdown { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 190px; overflow: hidden; }
.dropdown a { display: block; padding: 11px 14px; color: var(--text); text-decoration: none; } .dropdown a:hover { background: var(--bg); }
.sidebar { position: fixed; top: 70px; left: 12px; bottom: 12px; width: var(--sidew); background: var(--side); border-radius: 12px; z-index: 25; padding: 14px 0; overflow-y: auto; transition: transform .2s; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.sidebar a { display: flex; align-items: center; gap: 14px; color: #e8e8ea; text-decoration: none; padding: 13px 20px; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; border-left: 3px solid transparent; }
.sidebar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar a:hover { background: rgba(255,255,255,.06); }
.sidebar a.active { border-left-color: var(--side-hi); background: rgba(255,255,255,.09); color: #fff; }
.navsep { height: 1px; background: rgba(255,255,255,.14); margin: 12px 18px; }
main { padding: 78px 20px 40px calc(var(--sidew) + 36px); }
body.nav-collapsed .sidebar { transform: translateX(calc(-100% - 20px)); }
body.nav-collapsed main { padding-left: 20px; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
@media (max-width: 900px) {
  main { padding: 72px 10px 24px; }
  .sidebar { transform: translateX(calc(-100% - 20px)); top: 66px; }
  body.nav-open .sidebar { transform: none; }
  .brand span { display: none; }
  .quick-order { max-width: 45vw; }
  #userName { display: none; }
}
.card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(20,30,50,.06); }

/* Forms */
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
input[readonly] { background: #e1e3e8; color: #3b4150; }
textarea { resize: vertical; }
select.sm, input.search { width: auto; padding: 6px 9px; margin: 0; font-size: 14px; }
input.search { width: 200px; }
.grid { display: grid; gap: 0 14px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
@media (max-width: 700px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } .span2 { grid-column: 1 / -1; } }
.check { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 14px; color: var(--text); } .check input { width: auto; margin: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: 14px; align-items: end; margin-bottom: 4px; }
.filtercheck { margin-bottom: 20px; }
@media (max-width: 700px) { .filters { grid-template-columns: 1fr 1fr; } }
.tfield { display: flex; align-items: center; gap: 4px; }
.tfield input { flex: 1; }
.clr { border: 0; background: none; color: #9aa1ad; font-size: 18px; cursor: pointer; padding: 4px 6px; margin-top: 4px; }
.langpick span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.langpick .check { margin-right: 14px; }
.ro .field { margin-bottom: 12px; min-width: 0; }
.ro .field span { display: block; font-size: 12px; color: var(--muted); }
.ro .field b { display: block; font-weight: 500; background: #e1e3e8; border-radius: 8px; padding: 8px 11px; margin-top: 3px; min-height: 38px; overflow-wrap: anywhere; }
.ro .field.red b { color: var(--red); }
.detail { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.mbbtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Buttons */
.btn { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 9px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #333; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #efc9c4; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.big { padding: 13px 28px; border-radius: 26px; min-width: 250px; font-weight: 600; }
.btn.wide { min-width: 150px; }
.btn.round { width: 64px; height: 38px; border-radius: 20px; background: var(--red); border-color: var(--red); color: #fff; font-size: 22px; padding: 0; }
.btn.pick { background: var(--accent); color: #fff; border-color: var(--accent); min-width: 90px; }
.btn.close { background: #fff; color: var(--red); border-color: #f0c3c9; min-width: 90px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.file { position: relative; overflow: hidden; } .btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; align-items: center; justify-content: flex-end; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .toolbar h2, .toolbar h3 { margin: 0; }

/* Tabellen */
.tablewrap { overflow-x: auto; }
/* schwebende waagrechte Scrollleiste (app.js #hScroll) – unten am Fenster, solange die Tabelle länger als der Bildschirm ist */
.hscroll { position: fixed; bottom: 0; z-index: 40; height: 17px; overflow-x: auto; overflow-y: hidden; background: rgba(246, 247, 249, .95); border-top: 1px solid var(--line, #dfe2e8); }
.hscroll > div { height: 1px; }
a[data-href-hide] { cursor: pointer; }   /* Link ohne href während des Überfahrens (app.js) – Hand-Zeiger bleibt */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: center; font-size: 11.5px; color: #4b5260; font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; white-space: nowrap; }
.tbl td.wrap { white-space: normal; }
.tbl tr.inactive td { color: var(--muted); }
.tbl tr.sel td { background: #fff4f5; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.tbl .red { color: var(--red); }
.tbl .edit { background: none; border: 0; cursor: pointer; font-size: 17px; color: #444; padding: 2px 6px; }
.tbl .edit:disabled { cursor: default; opacity: .5; }
.tbl.times td:last-child, .tbl.times th:last-child { text-align: left; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; white-space: normal !important; }

/* Listen */
.list .item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: 0; }
.item .main { flex: 1; min-width: 0; }
.item .t1 { font-weight: 600; } .item .t2 { font-size: 13px; color: var(--muted); }
.item .hrs { font-weight: 700; white-space: nowrap; }
.item .btns { display: flex; gap: 6px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #eceef2; color: #444; margin-left: 6px; font-weight: 600; vertical-align: 1px; }
.badge.lock { background: #e6f4ea; color: var(--ok); }
.badge.red { background: #fde8ea; color: var(--red); }
.daysep { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 0 4px; font-weight: 600; }
/* Zeiten-Liste: ganze Tage abwechselnd grau/weiß (Block inkl. Datum), Datum hervorgehoben, Aufträge etwas verblasst */
#weekList .daysep { font-size: 13.5px; color: var(--text); font-weight: 800; padding: 12px 0 6px 10px; }
#weekList .dayblock { padding: 2px 0 6px; }
#weekList .dayblock.dayband { background: #e7e9ee; }
#weekList .item { padding-left: 10px; padding-right: 10px; opacity: .72; transition: opacity .12s; }
#weekList .item:hover { opacity: 1; }

/* Taschenrechner (verschiebbares Fenster, Windows-Look) */
.calcwin { position: fixed; top: 72px; right: 16px; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 44px rgba(20,30,50,.24); z-index: 60; overflow: hidden; user-select: none; }
.calcwin:focus, .calcwin:focus-visible { outline: none; }
.calc-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: move; background: #fafafa; border-bottom: 1px solid var(--line); touch-action: none; }
.calc-title { font-weight: 600; font-size: 14px; }
.calc-close { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 6px; border-radius: 6px; }
.calc-close:hover { background: #ececec; color: var(--text); }
.calc-modes { display: flex; gap: 6px; padding: 10px 10px 0; }
.calc-modes button { flex: 1; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--muted); }
.calc-modes button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.calc-pane { padding: 10px; }
.calc-expr { height: 16px; text-align: right; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; }
.calc-disp { text-align: right; font-size: 30px; font-weight: 600; min-height: 42px; line-height: 42px; overflow-x: auto; white-space: nowrap; }
.calc-disp.err { color: var(--red); }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.calc-grid button { font: inherit; font-size: 17px; padding: 13px 0; border: 0; border-radius: 8px; background: #f0f1f4; color: var(--text); cursor: pointer; }
.calc-grid button:hover { background: #e4e6ea; }
.calc-grid button.fn, .calc-grid button.op { background: #e7e9ee; font-size: 15px; }
.calc-grid button.op { color: var(--red); font-weight: 700; font-size: 18px; }
.calc-grid button.eq { grid-row: span 2; background: var(--red); color: #fff; font-size: 22px; }
.calc-grid button.eq:hover { filter: brightness(1.08); }
.ct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.ct-row input, .ct-row select { width: 140px; margin: 0; }
.calc-res { text-align: center; padding: 12px; background: #e1e3e8; border-radius: 8px; }
.ct-big { font-size: 26px; font-weight: 700; color: var(--text); }
.ct-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.sumbar { display: flex; gap: 18px; flex-wrap: wrap; background: #e1e3e8; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Dialoge */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(760px, calc(100vw - 20px)); max-height: calc(100vh - 20px); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15, 20, 30, .5); }
.dlg { padding: 20px; }
.dlg h4 { margin: 8px 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.calcrow { display: flex; gap: 22px; flex-wrap: wrap; background: #e1e3e8; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 4px 0; }
.calcrow b { color: var(--red); font-size: 16px; }
details.spesen { margin-bottom: 10px; } details.spesen summary { cursor: pointer; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.custbox { background: #e1e3e8; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: -4px 0 12px; line-height: 1.6; }
.userpick { display: flex; flex-wrap: wrap; gap: 4px 18px; background: #e1e3e8; border-radius: 8px; padding: 10px 12px 0; margin-bottom: 12px; }

/* Unterschrift */
.sigwrap { position: relative; border: 2px dashed #cfd4dc; border-radius: 10px; background: #fcfcfd; margin: 4px 0 8px; touch-action: none; }
#sigPad { display: block; width: 100%; height: 210px; cursor: crosshair; }
.sigline { position: absolute; left: 20px; right: 20px; bottom: 34px; border-top: 1px solid #b8c0cc; font-size: 11px; color: #9aa3b0; padding-top: 3px; pointer-events: none; }
.sigtimer { position: absolute; right: 12px; top: 8px; font-size: 12px; color: var(--muted); pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1b1f27; color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }

body:not(.can-orders) .perm-orders { display: none !important; }
body:not(.can-admin) .perm-admin { display: none !important; }
body:not(.can-prices) .perm-prices { display: none !important; }
body:not(.can-power) .perm-power { display: none !important; }

/* Stundenkonto */
.acc-filters { grid-template-columns: 1fr 160px 1fr auto; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr 1fr; } .acc-filters { grid-template-columns: 1fr 1fr; } }
.tile { background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 3px rgba(20,30,50,.06); }
.tile span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile b { display: block; font-size: 26px; margin: 4px 0 2px; }
.tile small { color: var(--muted); font-size: 12.5px; }
.pos { color: var(--ok); } .neg { color: var(--red); }
.tbl tr.future td { color: #b0b6c0; }

/* Aufgabenliste: Spalten sinnvoll verteilen, Texte dürfen umbrechen */
.tbl.tasks td.wrap { white-space: normal; }
.tbl.tasks .c-kunde { min-width: 200px; } .tbl.tasks .c-art { min-width: 260px; } .tbl.tasks .c-ort { min-width: 120px; }

/* Initialen, Büro-Auftrag, Arbeitstage */
.ini { display: inline-block; min-width: 30px; padding: 2px 6px; margin: 1px 2px 1px 0; border-radius: 6px; background: #eceef2; font-weight: 700; font-size: 12.5px; text-align: center; cursor: default; }
.tbl tr.internal td { background: #e1e3e8; }
/* Geräte-Liste: App-Gruppen abwechselnd grau/weiß absetzen */
#licDev tr.appband td { background: #e1e3e8; }
body.is-nomb #mbBox, body.is-internal #editOrderBtn, body.is-internal #copyOrderBtn,
body.is-nomb .report-card { display: none !important; }
.workdays { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; background: #e1e3e8; border-radius: 8px; padding: 10px 12px 0; margin-bottom: 12px; }
.workdays > span { font-size: 13px; color: var(--muted); width: 100%; margin-bottom: 4px; }

/* Zeitauswahl (Stunden + Minuten im 15-Minuten-Takt) */
input.tp { cursor: pointer; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
input.tp.tp-active { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.tp-pop { position: fixed; z-index: 200; width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.25); padding: 8px 10px 10px; }
.tp-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tp-head .btn { padding: 4px 10px; }
.tp-wheels { --ih: 36px; position: relative; display: flex; align-items: stretch; justify-content: center; gap: 6px; height: calc(var(--ih) * 5); }
.tp-col { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; padding: calc(var(--ih) * 2) 0; scrollbar-width: none; overscroll-behavior: contain; position: relative; z-index: 1; }
.tp-col::-webkit-scrollbar { display: none; }
.tp-it { height: var(--ih); line-height: var(--ih); text-align: center; scroll-snap-align: center; font-size: 18px; color: #9aa1ad; cursor: pointer; border-radius: 8px; font-variant-numeric: tabular-nums; user-select: none; }
.tp-it:hover { background: #f3f4f7; }
.tp-it.on { color: var(--text); font-weight: 700; font-size: 21px; }
.tp-colon { align-self: center; font-size: 20px; z-index: 1; }
.tp-band { position: absolute; left: 0; right: 0; top: calc(var(--ih) * 2); height: var(--ih); background: #fde8ea; border-radius: 9px; pointer-events: none; }
.tp-wheels::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(#fff, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, #fff); }

/* Karten (Handy) – am PC ausgeblendet */
.cards, .bottombar, .phone-only { display: none; }
body.phone .cards { display: block; }
body.phone .phone-only { display: inline-flex; }

/* ================= Handy-Ansicht ================= */
body.phone { font-size: 16px; }
body.phone .sidebar, body.phone #menuBtn, body.phone .backdrop, body.phone #quickOrder,
body.phone .perm-orders, body.phone .perm-admin, body.phone .perm-prices, body.phone #newOrderBtn, body.phone #editOrderBtn, body.phone #copyOrderBtn,
body.phone .report-card, body.phone .tablewrap:has(#taskTable), body.phone .tablewrap:has(#timeTable),
body.phone label.check:has(#showDone) { display: none !important; }
body.phone .brand span { display: inline; }
body.phone .topbar { height: 52px; padding: 0 10px; }
body.phone main { padding: 62px 10px calc(84px + env(safe-area-inset-bottom)); }
body.phone .card { padding: 14px; border-radius: 14px; }
body.phone .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #1d1d1f; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
.bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #c9c9ce; text-decoration: none; font-size: 11.5px; padding: 6px 0 4px; border-radius: 10px; }
.bottombar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bottombar a.active { color: #fff; background: rgba(255,255,255,.08); }
.bottombar a.active svg { stroke: var(--red); }

/* Auftragskarten */
.ocard { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 12px 70px 12px 14px; margin-bottom: 10px; color: var(--text); text-decoration: none; cursor: pointer; }
.ocard:active { background: #e1e3e8; }
.ocard.internal { border-left-color: #555; background: #e1e3e8; }
.ocard.inactive { opacity: .6; }
.oc-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.oc-nr { font-size: 12px; font-weight: 700; background: #161616; color: #fff; border-radius: 6px; padding: 1px 7px; }
.oc-art { color: var(--red); font-size: 14px; margin-top: 3px; }
.oc-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.oc-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 28px; color: #b6bcc6; }
.oc-x { position: absolute; right: 40px; top: 10px; }
.oc-done { border: 1px solid #f0c3c9; background: #fff; color: var(--red); border-radius: 8px; width: 30px; height: 30px; font-size: 14px; cursor: pointer; }

/* Zeitkarten */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.tcard.tap { cursor: pointer; } .tcard.tap:active { background: #e1e3e8; }
.tc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tc-sum { font-weight: 800; font-size: 18px; color: var(--red); }
.tc-row { display: flex; gap: 10px; align-items: baseline; font-size: 15px; padding: 2px 0; }
.tc-row span { width: 82px; color: var(--muted); font-size: 13px; }
.tc-row small { margin-left: auto; color: var(--muted); }
.tc-rem { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tc-total { background: #e1e3e8; border-radius: 10px; padding: 10px 12px; font-size: 14px; text-align: center; }

/* Auftragsdetail auf dem Handy */
body.phone .filters { grid-template-columns: 1fr 1fr; gap: 8px; }
body.phone .filtercheck { grid-column: 1 / -1; margin: 0 0 8px; }
body.phone #orderInfo { display: none; }
body.phone.info-open #orderInfo { display: grid; grid-template-columns: 1fr; }
body.phone #addTimeBtn { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 35; width: 62px; height: 62px; border-radius: 50%; font-size: 32px; box-shadow: 0 6px 18px rgba(208,2,27,.4); }
body.phone .btn.big { min-width: 0; width: 100%; }
body.phone .grid.g4 { grid-template-columns: 1fr 1fr; }
body.phone input, body.phone select, body.phone textarea { font-size: 16px; padding: 11px 12px; } /* kein Zoom auf iPhone */

/* Zeit-Dialog als Vollbild */
body.phone #timeDlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
body.phone #timeDlg .dlg { padding: 0 14px calc(90px + env(safe-area-inset-bottom)); }
body.phone #timeDlg h2 { position: sticky; top: 0; z-index: 3; background: #fff; margin: 0 -14px 10px; padding: 14px; font-size: 17px; border-bottom: 1px solid var(--line); }
body.phone #timeDlg .actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); margin: 0; flex-wrap: nowrap; }
body.phone #timeDlg .actions .btn { padding: 13px 14px; }
body.phone #timeDlg .actions .btn.wide { min-width: 0; flex: 1; }
body.phone #timeDlg .grid.g2 { gap: 0 10px; }
body.phone input.tp { font-size: 20px; font-weight: 600; text-align: center; padding: 10px 6px; caret-color: transparent; }
body.phone .tp-pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 18px 18px 0 0; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
body.phone .tp-head { font-size: 15px; font-weight: 600; color: var(--text); }
body.phone .tp-head .btn { padding: 9px 16px; font-size: 15px; }
body.phone .tp-wheels { --ih: 46px; }
body.phone .tp-it { font-size: 22px; } body.phone .tp-it.on { font-size: 26px; }
body.phone .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
input.tp[readonly] { background: #fff; color: var(--text); }
.tc-sum { white-space: nowrap; }
body.phone .tc-head .badge.lock { white-space: nowrap; }
body.phone main:has(> [data-page="auftrag"]:not(.hidden)) { padding-bottom: 160px; }

/* Folgetag-Markierung (+1) */
sup.nd { font-size: 9px; font-weight: 700; color: var(--red); margin-left: 1px; }
.nd-hint { color: var(--red); margin: 4px 0 0; min-height: 0; }
.nd-hint:empty { display: none; }

/* Stempeluhr */
.stampcard { border-left: 4px solid var(--red); }
.stamp-state { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 15px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: #c9ced6; flex: none; }
.dot.on { background: #1e8449; box-shadow: 0 0 0 4px rgba(30,132,73,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(30,132,73,.08); } }
.stamp-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stamp-row select { flex: 1; min-width: 220px; margin: 0; }
.btn.stamp-in { background: #1e8449; border-color: #1e8449; color: #fff; font-weight: 700; min-width: 150px; padding: 11px 20px; }
.btn.stamp-out { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; min-width: 150px; padding: 11px 20px; }
.stamp-hint { margin: 10px 0 0; }
.stampbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-left: 4px solid #1e8449; }
.stampbar .grow { flex: 1; }
body.phone .stamp-row select { min-width: 0; width: 100%; flex-basis: 100%; }
body.phone .btn.stamp-in, body.phone .btn.stamp-out { flex: 1; padding: 15px; font-size: 17px; }
body.phone .stampbar { flex-wrap: wrap; } body.phone .stampbar .btn { width: 100%; padding: 14px; font-size: 16px; }

/* Journal */
.jr-filters { grid-template-columns: 180px 280px 1fr auto; }
.jr-btns { display: flex; gap: 8px; margin-bottom: 12px; }
#jrTable td, #jrTable th { padding: 8px 6px; }
#jrTable a { color: var(--text); }
body.is-general:not(.can-admin) #editOrderBtn, body.is-general:not(.can-admin) #copyOrderBtn { display: none !important; }
.dot { display: inline-block; vertical-align: middle; }
.site-head { display: flex; justify-content: flex-end; margin: -34px 0 6px; }

/* Update & Sicherung */
.updbar { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.updbar .btn { margin-left: auto; }
.updbox { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #e1e3e8; border-radius: 10px; padding: 12px 14px; }
.updoverlay { position: fixed; inset: 0; z-index: 300; background: rgba(15,20,30,.55); display: grid; place-items: center; padding: 16px; }
.updoverlay .card { max-width: 440px; text-align: center; }
.spinner { width: 38px; height: 38px; margin: 10px auto 0; border: 4px solid #e3e6eb; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* v1.12 Update-ZIP Drag & Drop, Preise */
.dropzone { margin-top: 12px; border: 2px dashed #c9ced6; border-radius: 10px; padding: 16px; text-align: center; color: #333; transition: background .15s, border-color .15s; }
.dropzone.over { background: #fdecee; border-color: var(--red, #d0021b); }
.dropzone.busy { opacity: .6; pointer-events: none; }
#prTable td.num { text-align: right; white-space: nowrap; }
.dlg .pr-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; padding: 10px 12px; background: #e1e3e8; border-radius: 8px; }
.dlg .pr-actions input[type=email] { flex: 1; min-width: 200px; }
.dlg .pr-letters { font-size: 12px; color: #555; line-height: 1.6; max-height: 110px; overflow: auto; }
.dlg .surch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* v1.13 Spesen, Belege, Scanner */
.exp-item { display: flex; flex-direction: column; }
.exp-item .exp-row { display: flex; gap: 6px; align-items: center; margin: -6px 0 10px; font-size: 12px; }
.exp-item .exp-row .check { margin: 0; font-size: 12px; }
.rcpt-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rcpt { display: inline-flex; align-items: center; gap: 4px; background: #e1e3e8; border-radius: 6px; padding: 3px 8px; font-size: 12px; }
.rcpt a { color: inherit; } .rcpt button { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 14px; padding: 0 2px; }
.scan-dlg { max-width: 760px; width: 96vw; }
.scan-wrap { position: relative; touch-action: none; user-select: none; background: #222; border-radius: 8px; overflow: hidden; text-align: center; }
.scan-wrap canvas { max-width: 100%; display: block; margin: 0 auto; touch-action: none; }
.sp-total { text-align: right; font-size: 18px; font-weight: 700; margin-top: 12px; }
#spTable tr.sp-day td { font-size: 12px; color: #555; background: #fafafa; }
#spTable td.num, #spExtras td.num, #spClaims td.num, #rtTable td.num { text-align: right; white-space: nowrap; }
#spExtras input { width: 100%; min-width: 80px; }
.badge.green { background: #e6f4ea; color: #137333; } .badge.orange { background: #fef3e0; color: #b06000; }
tr.click { cursor: pointer; } tr.click:hover td { background: #e1e3e8; }

.busy-msg { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); z-index: 10000; background: rgba(20,20,20,.88); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 600; }

/* v1.15 Plantafel */
.pt-wrap { overflow: auto; max-height: calc(100vh - 230px); border: 1px solid #e3e5ea; border-radius: 8px; position: relative; }
.pt { position: relative; font-size: 11px; user-select: none; }
.pt-row { display: flex; border-bottom: 1px solid #e3e5ea; }
.pt-row.user { border-bottom: 2px solid #c9ced6; }
.pt-label { position: sticky; left: 0; z-index: 3; background: #fff; flex: 0 0 170px; padding: 3px 8px; border-right: 2px solid #c9ced6; font-size: 12px; line-height: 1.25; overflow: hidden; }
.pt-label .sub { color: #777; font-size: 11px; }
.pt-head { position: sticky; top: 0; z-index: 4; background: #fff; }
.pt-head .pt-label { z-index: 5; font-weight: 700; }
.pt-track { position: relative; flex: 0 0 auto; }
.pt-day { position: absolute; top: 0; bottom: 0; border-left: 1px solid #f0f1f4; }
.pt-day.we { background: #e8f5e1; } .pt-day.hol { background: #9fd38a; } .pt-day.hol1 { background: repeating-linear-gradient(45deg,#c9e8bb 0 4px,#e8f5e1 4px 8px); }
.pt-day.today { background: rgba(208,2,27,.10); border-left: 2px solid var(--red); }
.pt-hcell { position: absolute; top: 0; bottom: 0; text-align: center; overflow: hidden; white-space: nowrap; border-left: 1px solid #e3e5ea; font-size: 12px; padding-top: 5px; line-height: 1.45; }
.pt-hcell.month { font-weight: 700; text-align: left; padding-left: 4px; font-size: 12px; }
.pt-hcell.we { background: #e8f5e1; } .pt-hcell.hol { background: #9fd38a; } .pt-hcell.today { background: var(--red); color: #fff; font-weight: 700; }
.pt-bar { position: absolute; height: 28px; border-radius: 5px; padding: 6px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; font-size: 12px; line-height: 15px; color: #111; border: 1px solid rgba(0,0,0,.15); box-sizing: border-box; z-index: 2; }
.pt-bar .rz { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; } .pt-bar .rz.rz-l { right: auto; left: 0; }
.pt-bar.k-vacation { background: #ff99ff; } .pt-bar.k-req { background: repeating-linear-gradient(45deg,#ffc6ff 0 6px,#fff 6px 10px); border: 1px dashed #c040c0; }
.pt-bar.k-sick { background: #ff4040; color: #fff; } .pt-bar.k-private { background: #00b0f0; color: #fff; } .pt-bar.k-appt { background: #fff; border: 1.5px solid #444; }
.pt-bar.billed { background: #c9c9c9 !important; color: #333 !important; }
.pt-bar.conflict { outline: 2px solid #e00; outline-offset: -1px; }
.pt-bar.dragging { opacity: .7; z-index: 6; }
.pt-sel { position: absolute; top: 2px; bottom: 2px; background: rgba(208,2,27,.18); border: 1px dashed var(--red); border-radius: 4px; z-index: 1; pointer-events: none; }
.pt-info { position: absolute; top: 3px; height: 22px; line-height: 18px; font-size: 10px; padding: 1px 4px; border-radius: 3px; overflow: hidden; white-space: nowrap; }
.pt-info.f-NRW { background: #ffe39a; } .pt-info.f-NDS { background: #b9d3ff; } .pt-info.h { background: #9fd38a; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.pt-lg { padding: 1px 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); }
.pt-lg.k-order { background: #9ec5fe; } .pt-lg.k-project { background: #ffd8a8; } .pt-lg.k-appt { background: #fff; border: 1.5px solid #444; } .pt-lg.k-vacation { background: #ff99ff; }
.pt-lg.k-req { background: repeating-linear-gradient(45deg,#ffc6ff 0 6px,#fff 6px 10px); } .pt-lg.k-sick { background: #ff4040; color: #fff; } .pt-lg.k-private { background: #00b0f0; color: #fff; }
.pt-lg.billed { background: #c9c9c9; } .pt-lg.we { background: #e8f5e1; } .pt-lg.hol { background: #9fd38a; }
.pt-req { background: #fff4e5; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.pt-mine .item { padding: 8px 0; border-bottom: 1px solid #eee; }
body:not(.phone) .pt-mine { display: none; }
body.phone .pt-card .pt-wrap, body.phone .pt-card .pt-legend, body.phone .pt-hint, body.phone #ptNew, body.phone #ptPrev, body.phone #ptNext, body.phone #ptToday, body.phone #ptView, body.phone #ptRange { display: none; }

.pt-bar .lbl { display: inline-block; vertical-align: top; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.pt-bar.spill { overflow: visible; }
.pt-bar.spill .lbl { position: relative; z-index: 3; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.pt-bar.spill.k-sick .lbl, .pt-bar.spill.k-private .lbl { color: #111; }

.pt-glabel { position: absolute; height: 28px; line-height: 28px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 3; color: #222; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.pt-glabel.billed { color: #777; }
.pt-track.proj .pt-bar:not(.k-vacation):not(.k-sick):not(.k-private):not(.k-req) { opacity: .85; }
body.phone #ptMode { display: none; }

/* Handy quer: ganze Plantafel, nur ansehen */
body.phone.phone-land .pt-card .pt-wrap { display: block; max-height: calc(100vh - 54px); touch-action: pan-x pan-y; }
body.phone.phone-land .pt-card #ptPrev, body.phone.phone-land .pt-card #ptNext, body.phone.phone-land .pt-card #ptToday, body.phone.phone-land #ptRange { display: inline-block; }
body.phone.phone-land .pt-mine, body.phone.phone-land #ptVacation, body.phone.phone-land #ptPrivate, body.phone.phone-land #ptRequests { display: none; }
body.phone.phone-land .pt-label { flex-basis: 84px; font-size: 11px; padding: 2px 4px; }
body.phone.phone-land .pt-label .sub { display: none; }
body.phone.phone-land .pt-hcell { font-size: 10px; }
body.phone.phone-land .pt-bar, body.phone.phone-land .pt-glabel { font-size: 11px; }
body.phone.phone-land.pg-plantafel .topbar, body.phone.phone-land.pg-plantafel .bottombar { display: none; }
body.phone.phone-land .pt-card { padding: 6px; margin: 0; }
body.phone.phone-land .pt-card h2 { display: none; }
.pt-turn { display: none; }
body.phone:not(.phone-land) .pt-turn { display: block; }
body.phone.phone-land.pg-plantafel main { padding: 6px calc(6px + env(safe-area-inset-right)) 6px calc(6px + env(safe-area-inset-left)); }
.toolbar .task-user { display: flex; align-items: center; gap: 6px; margin: 0 12px 0 0; font-size: 13px; }
.toolbar .task-user select { min-width: 180px; }
body.tasks-other #taskTable { box-shadow: inset 3px 0 0 var(--red); }

.kwsum { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; padding: 6px 10px; margin: 14px 0 2px; background: #f4f5f7; border-radius: 6px; font-size: 13px; color: #444; }
.kwsum b:first-child { margin-right: auto; }
.pt-ordrow { display: flex; gap: 8px; align-items: center; } .pt-ordrow select { flex: 1; }

/* Zeit erfassen: Anreise / Rückreise als Schalter */
.tgl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.chip { border: 1.5px solid #c9ced6; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: #333; }
.chip::before { content: '＋ '; }
.chip.on { background: #111; color: #fff; border-color: #111; }
.chip.on::before { content: '✓ '; }
#timeForm.no-out [data-grp="out"], #timeForm.no-back [data-grp="back"], #timeForm.no-drive [data-grp="drive"] { display: none; }

/* ===== 1.17: Heute, Mehr-Blatt, ⓘ, Listen ===== */
.hello { font-size: 22px; margin: 4px 2px 14px; font-weight: 700; }
.hello small { display: block; font-size: 13px; font-weight: 400; color: #777; margin-top: 2px; }
.today-card h3 { margin: 0 0 6px; }
.today-card .toolbar { margin-bottom: 4px; }
.today-card .more { font-size: 13px; color: #555; text-decoration: none; }
.tlist { display: flex; flex-direction: column; }
.trow { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #eef0f3; color: inherit; text-decoration: none; }
.trow:last-child { border-bottom: 0; }
a.trow:active, a.trow:hover { background: #e1e3e8; }
.trow .tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trow .tmain b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.trow .tmain small { color: #777; font-size: 12.5px; margin-top: 1px; }
.trow .tgo { color: #bbb; font-size: 22px; line-height: 1; }
.trow .tico { font-size: 20px; width: 26px; text-align: center; }
.trow .tday { flex: 0 0 64px; font-size: 12.5px; color: #666; font-weight: 600; }
.trow.now .tday { color: var(--red); }
.trow .tnr { flex: 0 0 auto; background: #111; color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
#todayTodoCard { border-left: 4px solid #f0a020; }
.orange { color: #c77700 !important; }
/* Mehr-Blatt (Handy) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 46; background: #fff; border-radius: 16px; padding: 6px 0 8px; box-shadow: 0 10px 40px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.sheet.hidden, .sheet-bg.hidden { display: none; }
.sheet-grip { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 4px auto 6px; }
.sheet a { padding: 14px 20px; font-size: 16px; color: #111; text-decoration: none; border-top: 1px solid #f0f1f4; }
.sheet a.danger { color: var(--red); }
body:not(.phone) .sheet, body:not(.phone) .sheet-bg { display: none !important; }
/* ⓘ-Erklärtexte */
.info { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #bbb; background: #fff; color: #888; font: italic 700 12px Georgia, serif; cursor: pointer; flex: 0 0 auto; padding: 0; }
.hint { display: none; }
.hint.show { display: block; }
.stamp-top { display: flex; align-items: flex-start; gap: 10px; }
.stamp-top .stamp-state { flex: 1; }
/* Auftragsliste: ganze Zeile antippbar */
.tbl.tasks tbody tr { cursor: pointer; }
.tbl.tasks tbody tr:hover { background: #e1e3e8; }
a.pick { font-size: 24px; color: #aaa; text-decoration: none; padding: 0 10px; }

/* Montagebericht-Bereich einklappbar */
.mbcard > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.mbcard > summary::-webkit-details-marker { display: none; }
.mbcard > summary h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.mbcard > summary h3::after { content: '▸'; color: #999; font-size: 14px; transition: transform .15s; }
.mbcard[open] > summary h3::after { transform: rotate(90deg); }
.mbcard[open] > summary .mb-sum { display: none; }
.mbcard[open] > summary { margin-bottom: 10px; }
body.phone main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* Handy: Tabellen (.rt) als Karten */
body.phone table.rt, body.phone table.rt tbody, body.phone table.rt tfoot, body.phone table.rt tr, body.phone table.rt td { display: block; width: 100%; }
body.phone table.rt thead { display: none; }
body.phone table.rt tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; padding: 6px 12px; background: #fff; }
body.phone table.rt tr.hidden { display: none; }
body.phone table.rt tfoot tr { background: #e1e3e8; }
body.phone table.rt td { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: right; padding: 4px 0; border: 0; white-space: normal; }
body.phone table.rt td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; font-weight: 400; flex: 0 0 auto; max-width: 45%; }
body.phone table.rt td:empty { display: none; }
body.phone table.rt td:first-child { font-weight: 700; }
body.phone table.rt td.empty { justify-content: center; }
body.phone table.rt td input, body.phone table.rt td select { max-width: 60%; }
body.phone .tablewrap:has(table.rt) { overflow: visible; }

/* PC: Zeiten als Karten */
body.phone .desk-only { display: none !important; }
body:not(.phone):not(.times-table) .tablewrap:has(#timeTable) { display: none; }
body:not(.phone):not(.times-table) #timeCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
body:not(.phone):not(.times-table) #timeCards .tcard { margin: 0; }
body:not(.phone):not(.times-table) #timeCards .tc-total, body:not(.phone):not(.times-table) #timeCards .empty { grid-column: 1 / -1; }

/* ===================== 2.0: Glas-Design Schwarz/Rot ===================== */
/* Seitenleiste */
.sidebar { background: linear-gradient(165deg, #2a2a2e 0%, #141416 55%, #1c0a0d 100%); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08); padding: 12px 10px; border-radius: 16px; }
.sidebar a { border-left: 0; border-radius: 12px; margin: 4px 0; padding: 10px 12px; text-transform: none; font-size: 15px; letter-spacing: 0; font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: background .15s, box-shadow .15s, transform .1s; }
.sidebar a svg { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: rgba(255,255,255,.08); }
.sidebar a:hover { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); }
.sidebar a:active { transform: scale(.98); }
.sidebar a.active { background: linear-gradient(180deg, #e3122d, #a50016); border-color: rgba(255,120,130,.5); box-shadow: 0 6px 18px rgba(208,2,27,.45), inset 0 1px 0 rgba(255,255,255,.35); color: #fff; }
.sidebar a.active svg { background: rgba(255,255,255,.22); stroke: #fff; }
.navsep { background: linear-gradient(90deg, transparent, rgba(208,2,27,.7), transparent); margin: 12px 8px; }
/* Handy-Leiste unten: Glas */
body.phone .bottombar { background: rgba(22,22,24,.82); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid rgba(255,255,255,.08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.bottombar a { border-radius: 12px; margin: 0 2px; transition: background .15s; }
.bottombar a.active { background: linear-gradient(180deg, #e3122d, #a50016); color: #fff; box-shadow: 0 4px 14px rgba(208,2,27,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.bottombar a.active svg { stroke: #fff; }
.sheet { background: rgba(255,255,255,.88); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid rgba(255,255,255,.7); }
/* Knöpfe mit leichtem Glanz */
.btn { border-radius: 10px; transition: transform .08s, box-shadow .15s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn.primary, .btn.pick { background: linear-gradient(180deg, #3a3a3e 0%, #161616 55%, #000 100%); border-color: #000; box-shadow: 0 3px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { filter: brightness(1.15); background: linear-gradient(180deg, #3a3a3e 0%, #161616 55%, #000 100%); }
.btn.round, .btn.stamp-out { background: linear-gradient(180deg, #ef2a42 0%, #d0021b 55%, #a50016 100%); border-color: #a50016; box-shadow: 0 4px 14px rgba(208,2,27,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.stamp-in { background: linear-gradient(180deg, #2fa462 0%, #1e8449 55%, #156638 100%); border-color: #156638; box-shadow: 0 4px 14px rgba(30,132,73,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.ghost, .btn:not(.primary):not(.round):not(.stamp-in):not(.stamp-out):not(.pick):not(.danger) { box-shadow: 0 1px 2px rgba(0,0,0,.05), inset 0 1px 0 #fff; }
.chip.on { background: linear-gradient(180deg, #3a3a3e, #000); }
/* Karten: weich, mit Glasrand */
.card, .tcard, .ocard { box-shadow: 0 6px 24px rgba(20,20,30,.06), 0 1px 2px rgba(20,20,30,.04); border: 1px solid rgba(255,255,255,.9); }
.card { border-radius: 16px; }
.tile { border-radius: 16px; box-shadow: 0 6px 24px rgba(20,20,30,.06); }
.topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); }
/* „Neu in 2.0“ */
#wnDlg { max-width: 480px; width: calc(100% - 32px); }
.whatsnew { text-align: left; }
.whatsnew .wn-logo { display: block; width: 56px; height: 56px; margin: 4px auto 6px; }
.whatsnew h2 { text-align: center; margin: 0 0 4px; }
.whatsnew .wn-sub { text-align: center; color: #777; margin: 0 0 16px; }
.whatsnew .wn-item { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.whatsnew .wn-ico { flex: 0 0 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: linear-gradient(180deg, #ef2a42, #a50016); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.whatsnew .wn-ico.k { background: linear-gradient(180deg, #3a3a3e, #000); }
.whatsnew .wn-item b { display: block; }
.whatsnew .wn-item span { color: #666; font-size: 14px; }
/* Rechtschreibprüfung */
.sp-wrap { position: relative; display: block; }
.sp-wrap textarea { position: relative; z-index: 1; background: transparent !important; }
.sp-mirror { position: absolute; left: 0; top: 0; z-index: 0; overflow: hidden; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; color: transparent; border-style: solid; border-color: transparent; background: #fff; pointer-events: none; }
.sp-mirror mark { background: none; color: transparent; text-decoration: underline wavy #e0182f; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sp-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; font-size: 13px; }
.sp-bar.hidden { display: none; }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #fff4f5; border: 1px solid #f6c7cd; border-radius: 10px; padding: 4px 8px; }
.sp-chip s { color: var(--red); text-decoration-color: rgba(208,2,27,.5); }
.sp-chip button { font: inherit; border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.sp-chip button:hover { border-color: #111; }
.sp-chip .sp-add { border: 0; background: none; color: #666; font-size: 12px; }
body.phone .sp-chip button { padding: 6px 10px; }

/* auszuführende Arbeit (Auftragsbezeichnung) klein in Rot */
.art { color: var(--red); font-size: 12.5px; font-weight: 400; margin-left: 10px; display: inline-block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.trow .tmain small.art { margin-left: 0; max-width: 100%; color: var(--red); }
body.phone .item .art { display: block; margin: 1px 0 0; max-width: 100%; }

/* Allgemeine Aufträge einklappbar */
body:not(.gen-open) #taskTable tbody tr.internal, body:not(.gen-open) #taskCards .ocard.internal { display: none; }
.gen-head { cursor: pointer; user-select: none; }
.gen-head td { text-align: left !important; padding: 12px 10px !important; font-weight: 600; color: #333; background: #e1e3e8; }
.gen-head .gh-arrow { display: inline-block; transition: transform .15s; color: #999; margin-right: 6px; }
.gen-head.open .gh-arrow { transform: rotate(90deg); }
.card-gh { padding: 12px 14px; margin: 4px 0 10px; border-radius: 12px; background: #f1f2f5; font-weight: 600; }
/* Top 10 */
.trow.top .tplay { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: linear-gradient(180deg, #ef2a42, #a50016); box-shadow: 0 3px 8px rgba(208,2,27,.3), inset 0 1px 0 rgba(255,255,255,.3); flex: 0 0 30px; padding-left: 2px; }
.trow .thrs { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Plantafel: KW-Zeile */
.pt-hcell.kw { font-weight: 700; font-size: 12px; line-height: 24px; padding-top: 0; border-left: 1.5px solid #c9ced6; color: #333; background: linear-gradient(180deg, #fafbfc, #f1f3f6); }

/* Bestellung (PDF) */
.po-drop { margin: 6px 0 14px; padding: 12px; }
#dlgForm input.pf, #dlgForm textarea.pf, #dlgForm select.pf { background: #fff8d6; border-color: #f0d36b; }
#dlgForm input.pf-warn { background: #fff0f1; border-color: #f2a9b1; }
.pf-note { background: #fff8d6; border-radius: 8px; padding: 6px 10px; margin: -4px 0 10px; }
/* Umbuchen (2.3) */
.trow.top .tplay.sw { background: linear-gradient(180deg, #2fbf71, #178a4c); box-shadow: 0 3px 8px rgba(23,138,76,.3), inset 0 1px 0 rgba(255,255,255,.3); font-size: 15px; padding-left: 0; cursor: pointer; }
.trow .tsw { flex: 0 0 auto; border: 0; border-radius: 16px; padding: 4px 11px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #2fbf71, #178a4c); box-shadow: 0 2px 6px rgba(23,138,76,.3); cursor: pointer; margin-left: 6px; }
#switchDlg { width: min(460px, 94vw); max-width: 94vw; }
.switch-dlg label { display: block; margin: 10px 0 4px; }
.switch-dlg select, .switch-dlg input { width: 100%; }
/* Bestellung am Auftrag (2.4) */
.po-field .btn { margin-top: 2px; align-self: flex-start; }
#orderInfo.po-over { outline: 2px dashed #d0021b; outline-offset: 4px; border-radius: 10px; background: rgba(208,2,27,.04); }
/* ===== 3.0: RRC, Menü-Gruppen, Reiter ===== */
.brand .rrc { display: flex; flex-direction: column; line-height: 1; font-weight: 800; letter-spacing: .06em; font-size: 18px; }
.brand .rrc small { font-size: 10px; font-weight: 500; letter-spacing: .04em; color: #888; margin-top: 2px; }
.rrc-name { display: flex; flex-direction: column; align-items: center; font-weight: 800; letter-spacing: .08em; }
.rrc-name small { font-size: 13px; font-weight: 500; letter-spacing: .05em; color: #888; margin-top: 4px; }
.sidebar .navgrp { display: flex; align-items: center; gap: 14px; width: 100%; color: #e8e8ea; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: background .15s, transform .1s; border-radius: 12px; margin: 4px 0; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; }
.sidebar .navgrp svg { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: rgba(255,255,255,.08); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar .navgrp:hover { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); }
.sidebar .navgrp .chev { margin-left: auto; font-style: normal; font-size: 18px; opacity: .6; transition: transform .2s; }
.sidebar .navgrp.open .chev { transform: rotate(90deg); }
.sidebar .navsub { display: none; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.12); margin-left: 26px; }
.sidebar .navsub.open { display: block; }
.sidebar .navsub a { font-size: 14px; padding: 7px 10px; }
.sidebar .navsub a svg { width: 26px; height: 26px; }
body:not(.can-manage) .perm-manage { display: none !important; }
.segtabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: rgba(0,0,0,.06); border-radius: 12px; }
.segtabs a { padding: 7px 16px; border-radius: 9px; text-decoration: none; color: #333; font-weight: 600; font-size: 14px; }
.segtabs a.on { background: #fff; color: #c00018; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.updbar.on-system { display: none !important; }
.sheet a small { display: block; font-size: 12px; color: #888; font-weight: 400; }
.modlist { display: grid; gap: 10px; margin-top: 10px; }
.mod { border: 1px solid #e6e6ea; border-radius: 12px; padding: 12px 14px; }
.mod.soon { background: #fafafb; }
.mod-h { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.mod-co { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.wn-ico.k { font-size: 12px; letter-spacing: 0; }
body.phone .brand .rrc { display: flex; font-size: 16px; }
/* ===== 3.1 Angebote ===== */
body:not(.can-offers) .perm-offers { display: none !important; }
body:not(.can-etiketten) .perm-etiketten { display: none !important; }
.of-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.of-grid > div:last-child { position: sticky; top: 76px; }
@media (max-width: 1100px) { .of-grid { grid-template-columns: 1fr; } .of-grid > div:last-child { position: static; } }
.of-cust { display: flex; gap: 8px; margin-bottom: 8px; } .of-cust input { flex: 1; }
.of-add { width: min(420px, 100%); }
.of-items td, .of-items th { padding: 5px 6px; vertical-align: middle; }
.of-items input.num { width: 78px; text-align: right; } .of-items input.num.sm { width: 58px; }
.of-items select.sm { padding: 3px 4px; } .of-items td.l input.sm { width: 110px; margin-top: 3px; display: block; }
.of-sec td { background: #f3f3f6; font-weight: 700; font-size: 13px; } .of-sectot { float: right; }
.of-sum h3 { margin-top: 0; } .of-kwh { font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
.of-dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0 0 10px; } .of-dl dt { color: #555; } .of-dl dd { margin: 0; text-align: right; }
.of-dl .b { font-weight: 700; color: #111; } .of-dl .big { font-size: 18px; border-top: 1px solid #ddd; padding-top: 4px; }
.of-margin { border-radius: 12px; padding: 10px 12px; margin: 10px 0; } .of-margin div { display: flex; justify-content: space-between; gap: 8px; }
.of-margin.ok { background: #eaf7ef; color: #146c3a; } .of-margin.low { background: #fde8ea; color: #b0001a; } .of-margin .small { display: block; margin-top: 4px; }
.of-btns { display: grid; gap: 8px; } .of-btns .block { width: 100%; text-align: center; } .of-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn.green { background: linear-gradient(180deg, #2fbf71, #178a4c); color: #fff; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { border: 1px solid #ddd; background: #fff; border-radius: 18px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: #d0021b; color: #d0021b; } .chip:disabled { opacity: .5; cursor: default; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fafafb; } .mod.click { cursor: pointer; } .mod.click:hover { border-color: #d0021b; }
.of-items { width: 100%; } .of-items td.l { min-width: 180px; }
.of-items input.num { width: 64px; padding: 4px 5px; } .of-items input.num.sm { width: 50px; }
.of-sec td { text-align: left !important; }
.of-grp { display: flex; gap: 6px; margin-top: 4px; } .of-grp select, .of-grp input { font-size: 12px; padding: 2px 4px; width: auto; }
.of-items th { white-space: nowrap; font-size: 11px; }
.of-tot { text-align: right; white-space: nowrap; } .of-tot span { display: block; font-size: 11px; color: #777; }
.of-items input.num { min-width: 0; }
.of-items td.l { white-space: normal; min-width: 160px; } .of-tot { white-space: normal; min-width: 90px; } .of-tot b { white-space: nowrap; }
.of-grid > div { min-width: 0; } #ofItems { min-width: 640px; }
body.phone .of-grid { grid-template-columns: minmax(0, 1fr); } body.phone .of-cust { flex-wrap: wrap; } body.phone #ofKopf label, body.phone #ofCust label { grid-column: 1 / -1 !important; }
/* 3.2 Gehälter */
body:not(.can-payroll) .perm-payroll { display: none !important; }
#payInbox tr.pay-check td { background: #fff8e1; } #payInbox tr.pay-ok td { background: #f2fbf5; }
#payInbox select.sm { max-width: 170px; }
/* 3.3 Sicherheitsprüfung */
body:not(.can-inspect) .perm-inspect { display: none !important; }
.an-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.pr-det { margin: 8px 0; } .pr-det summary { cursor: pointer; font-weight: 600; color: #444; padding: 6px 0; } .pr-det[open] summary { margin-bottom: 6px; }
.ip-g h3 { margin: 0; }
.ip-pt { border: 1px solid #e3e3e8; border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fcfcfd; }
.ip-pt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ip-meas { display: flex; gap: 14px; margin-top: 10px; align-items: flex-start; flex-wrap: wrap; } .ip-meas-l { flex: 1 1 380px; min-width: 0; }
.ip-drop { display: block; margin: 0 0 8px; padding: 12px; cursor: pointer; } .ip-drop .ip-ocrmsg { display: block; }
.ip-rows { width: auto; } .ip-rows td, .ip-rows th { padding: 2px 6px; } .ip-rows input.num { width: 86px; text-align: right; padding: 3px 6px; }
.ip-rows tr.ip-max td { font-weight: 700; border-top: 1px solid #ccc; }
input.ip-warn { background: #fff3c4 !important; border-color: #e0a800 !important; }
.ip-res { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f3f3f6; font-size: 13px; } .ip-res.good { background: #eaf7ef; color: #146c3a; } .ip-res.bad { background: #fde8ea; color: #b0001a; }
.ip-img img { width: 220px; max-width: 100%; border: 1px solid #ddd; border-radius: 8px; display: block; }
.ip-hhb { margin-bottom: 6px; line-height: 1.6; }
.ip-q { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f0f2; font-size: 13px; }
.ip-seg { display: inline-flex; gap: 4px; flex: 0 0 auto; align-items: center; } .ip-seg button { border: 1px solid #ccc; background: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.ip-seg button.on.ja { background: #2fbf71; color: #fff; border-color: #2fbf71; } .ip-seg button.on.nein { background: #d0021b; color: #fff; border-color: #d0021b; } .ip-seg button.on.\/ { background: #777; color: #fff; }
.ip-seg input { width: 70px; }
.ip-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .ip-sum div { background: #f3f3f6; border-radius: 10px; padding: 8px; text-align: center; }
.ip-sum b { display: block; font-size: 22px; } .ip-sum span { font-size: 11px; color: #555; } .ip-sum .good { background: #eaf7ef; } .ip-sum .bad { background: #fde8ea; }
body.phone .ip-q { flex-direction: column; align-items: flex-start; }
body.phone .ip-rows input.num { width: 64px; padding: 3px 4px; } body.phone .ip-rows th { font-size: 10px; white-space: normal; } body.phone .ip-rows td, body.phone .ip-rows th { padding: 2px 3px; }
.ip-meas-l { overflow-x: auto; }
#prKopf, #prMach, #anCust, #anData, .ip-pt .grid, .ip-g .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
#prKopf label, #prMach label, #anCust label, #anData label, .ip-g label { min-width: 0; } #prKopf input, #prKopf select, .ip-g input { min-width: 0; max-width: 100%; }
body.phone [data-page=pruefungen] .toolbar { flex-wrap: wrap; } body.phone #ipQ { flex: 1 1 100%; }
.trow .td-act { display: flex; gap: 6px; margin-left: auto; flex: 0 0 auto; } body.phone .trow.todo-pruef { flex-wrap: wrap; } body.phone .trow.todo-pruef .td-act { width: 100%; justify-content: flex-end; }
body.phone .trow .td-act .btn { white-space: nowrap; }
/* 3.3.2 Gehälter: Art/Zeitraum ändern, Jahre einklappen */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--red); }
.amber { color: #b7791f; }
tr.pay-year td { background: #e1e3e8; cursor: pointer; user-select: none; }
tr.pay-year:hover td { background: #eef0f4; }
details.payyear { border-bottom: 1px solid var(--line); }
details.payyear > summary { padding: 12px 4px; cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; }
details.payyear > summary::-webkit-details-marker { display: none; }
details.payyear > summary::before { content: '▸'; color: var(--muted); }
details.payyear[open] > summary::before { content: '▾'; }
@media (max-width: 600px) { .segtabs { display: flex; max-width: 100%; } .segtabs a { flex: 1 1 auto; text-align: center; padding: 7px 8px; font-size: 13px; } }
/* 3.3.4 Dokument-Betrachter (Handy / Home-Bildschirm-App) */
.pdfv { position: fixed; inset: 0; z-index: 1000; background: #525659; display: flex; flex-direction: column; animation: pdfvIn .22s ease-out; }
@keyframes pdfvIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pdfv.hidden { display: none; }
body.pdfv-open { overflow: hidden; }
.pdfv-bar { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: #1d1d1f; color: #fff; }
.pdfv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; text-align: center; }
.pdfv-btn { background: none; border: 0; color: #fff; font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-width: 44px; }
.pdfv-btn:active { background: rgba(255,255,255,.15); }
.pdfv-btn:disabled { opacity: .4; }
#pdfvBack { color: #ff6b6b; font-weight: 600; }
.pdfv-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; touch-action: pan-x pan-y pinch-zoom; }
.pdfv-page { width: 100%; max-width: 1000px; height: auto; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.pdfv.zoom .pdfv-body { align-items: flex-start; }
.pdfv.zoom .pdfv-page { width: 200%; max-width: none; }
.pdfv-msg { color: #fff; padding: 40px 16px; text-align: center; font-size: 16px; }
.pdfv-msg.neg { color: #ffb4b4; }
/* 3.4 Chat + Online-Leiste */
.nbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; margin-left: auto; }
.sidebar a .nbadge { margin-left: auto; }
.bottombar a { position: relative; }
.bottombar a .nbadge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
.nbadge.hidden { display: none; }
.online { display: flex; align-items: center; gap: 4px; margin-left: 10px; min-width: 0; }
.online-avs { display: flex; align-items: center; }
.online-av, .online-more, .online-count { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.online-av { margin-left: -6px; border-radius: 50%; } .online-av:first-child { margin-left: 0; }
.online-av .chat-av { width: 32px; height: 32px; font-size: 12px; border: 2px solid #fff; }
.online-av:hover { transform: translateY(-1px); }
.online-more { margin-left: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.online-count { display: none; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #1e8449; background: #eaf7ef; border-radius: 12px; padding: 4px 9px; }
.online-count .dot { position: static; width: 8px; height: 8px; border: 0; }
body.phone .online-avs { display: none; } body.phone .online-count { display: inline-flex; }
.chat-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.chat-av.grp { background: #e9ebf0; font-size: 18px; }
.chat-av .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.chat { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100vh - 110px); min-height: 420px; }
.chat .card { margin: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-list { padding: 0 !important; }
.chat-lhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.chat-lhead h2 { margin: 0; }
.chat-lhead { gap: 6px; } .chat-narrow-btn { font-size: 18px; padding: 4px 9px; color: var(--muted); }
/* schmale Chatliste: nur Bilder/Initialen */
.chat { transition: grid-template-columns .25s ease; }
body:not(.phone) #chatWrap.narrow { grid-template-columns: 72px minmax(0, 1fr); }
body:not(.phone) #chatWrap.narrow .chat-lhead { justify-content: center; padding: 12px 0 6px; }
body:not(.phone) #chatWrap.narrow .chat-lhead h2, body:not(.phone) #chatWrap.narrow .chat-lhead .spacer, body:not(.phone) #chatWrap.narrow #chatGroup,
body:not(.phone) #chatWrap.narrow .chat-rmain, body:not(.phone) #chatWrap.narrow .chat-rside small, body:not(.phone) #chatWrap.narrow .chat-sep, body:not(.phone) #chatWrap.narrow .chat-rooms > .empty { display: none; }
body:not(.phone) #chatWrap.narrow .chat-rooms { padding: 0 4px 10px; }
body:not(.phone) #chatWrap.narrow .chat-room { justify-content: center; padding: 7px 0; position: relative; }
body:not(.phone) #chatWrap.narrow .chat-rside { position: absolute; top: 2px; right: 2px; }
body.phone .chat-narrow-btn { display: none; }
.chat-rooms { overflow-y: auto; flex: 1; padding: 0 6px 10px; }
.chat-room { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: inherit; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.chat-room:hover { background: var(--bg); } .chat-room.on { background: #fde8eb; }
.chat-rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-rmain b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-rmain small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.chat-rside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 11.5px; }
.chat-rside .nbadge { margin: 0; }
.chat-sep { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 14px 8px 4px; }
.chat-conv { padding: 0 !important; position: relative; background: #e1e3e8 !important; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 15px; line-height: 2; }
.chat-empty::first-line { font-size: 40px; }
.chat-chead, .chat-msgs, .chat-input { display: none; }
.has-room .chat-empty { display: none; }
.has-room .chat-chead, .has-room .chat-input { display: flex; } .has-room .chat-msgs { display: block; }
.chat-chead { align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-back { display: none; font-size: 28px; line-height: 1; padding: 2px 8px; color: var(--red); }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; } .chat-title small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; -webkit-overflow-scrolling: touch; }
.chat-day { text-align: center; margin: 12px 0 8px; font-size: 12px; color: var(--muted); }
.chat-day::before { content: ''; }
.chat-sys { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0; font-style: italic; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; }
.chat-msg.cont { margin-top: 2px; }
.chat-msg.me { align-items: flex-end; }
.chat-from { font-size: 12px; font-weight: 600; margin: 0 0 2px 10px; }
.chat-bub { max-width: min(75%, 520px); background: #fff; border-radius: 16px; padding: 7px 11px 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); overflow-wrap: anywhere; }
.chat-msg.me .chat-bub { background: #ffe1e5; }
.chat-msg:not(.me):not(.cont) .chat-bub { border-top-left-radius: 5px; } .chat-msg.me:not(.cont) .chat-bub { border-top-right-radius: 5px; }
.chat-txt { white-space: normal; line-height: 1.4; }
.chat-meta { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.tick { margin-left: 4px; font-weight: 600; color: #8a8f99; letter-spacing: -2px; } .tick.read { color: #1a8cff; }
.chat-img { display: block; margin: -2px -6px 4px; } .chat-img img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; }
.chat-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 -4px 4px; background: rgba(0,0,0,.05); border-radius: 10px; text-decoration: none; color: inherit; font-size: 22px; }
.chat-file span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; } .chat-file small { font-weight: 400; color: var(--muted); font-size: 12px; }
.chat-older { display: block; margin: 0 auto 8px; }
.chat-empty-room { text-align: center; color: var(--muted); margin-top: 40px; }
.chat-input { align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; font: inherit; font-size: 16px; max-height: 140px; line-height: 1.35; background: #e1e3e8; }
.chat-input .iconbtn { font-size: 20px; padding: 8px; }
.chat-send { border-radius: 50%; width: 42px; height: 42px; padding: 0; flex: none; }
.chat-banner { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -140%); z-index: 1200; background: #1d1d1f; color: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 2px; max-width: min(92vw, 420px); cursor: pointer; transition: transform .3s; }
.chat-banner.show { transform: translate(-50%, calc(env(safe-area-inset-top))); }
.chat-banner span { color: #ddd; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pick { display: flex; flex-direction: column; gap: 2px; }
.chat-pickrow { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; font: inherit; border-radius: 10px; cursor: pointer; text-align: left; }
.chat-pickrow:hover { background: var(--bg); } .chat-pickrow span { flex: 1; font-weight: 600; } .chat-pickrow small { color: var(--muted); }
/* Handy: Liste oder Unterhaltung (Vollbild) */
body.phone .chat { display: block; height: auto; }
body.phone .chat-conv { display: none; }
body.phone.chat-open .chat-list { display: none; }
body.phone.chat-open .chat-conv { display: flex; position: fixed; left: 0; right: 0; top: 52px; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 35; border-radius: 0; }
body.phone.chat-open .chat-input { padding-bottom: 8px; }
body.phone .chat-back { display: block; }
body.phone .chat-list .chat-rooms { overflow: visible; }
body.phone .chat-bub { max-width: 82%; }
.online-count .dot { background: #2ecc71; border-radius: 50%; }
.chat-input textarea { flex: 1 1 auto; width: 1px; min-width: 0; margin: 0; }
.chat-input > .sp-wrap, .chat-input > div { flex: 1 1 auto; min-width: 0; margin: 0; }
.chat-input .sp-wrap textarea { width: 100%; }
/* 3.4.1 Stempelkarte schmal (PC/Tablet) + Team heute */
body:not(.phone) .stampcard { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; padding: 10px 14px; }
body:not(.phone) .stampcard .stamp-top { grid-column: 1; align-items: center; }
body:not(.phone) .stampcard .stamp-state { margin: 0; font-size: 14px; gap: 10px; }
body:not(.phone) .stampcard .stamp-state br { display: none; }
body:not(.phone) .stampcard .stamp-state > div > b:first-child::after { content: '\00a0·\00a0'; font-weight: 400; }
body:not(.phone) .stampcard .stamp-row { grid-column: 2; grid-row: 1; flex-wrap: nowrap; gap: 8px; }
body:not(.phone) .stampcard .stamp-row select { min-width: 260px; max-width: 420px; }
body:not(.phone) .stampcard .btn.stamp-in, body:not(.phone) .stampcard .btn.stamp-out { min-width: 0; padding: 7px 16px; font-size: 14px; }
body:not(.phone) .stampcard .stamp-top .info { order: 3; }
body:not(.phone) .stampcard .stamp-hint { grid-column: 1 / -1; }
.team-card { padding: 0 !important; }
.team-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; user-select: none; }
.team-card > summary::-webkit-details-marker { display: none; }
.team-card > summary .team-sum { flex: 1; }
.team-card > summary .chev { color: var(--muted); transition: transform .15s; font-size: 18px; }
.team-card[open] > summary .chev { transform: rotate(90deg); }
.team-list { padding: 0 16px 10px; }
.team-row { display: grid; grid-template-columns: 14px minmax(140px, 200px) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.team-row .team-ord { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row .team-time { white-space: nowrap; color: var(--muted); } .team-row.run .team-time { color: var(--text); }
.team-row:not(.run) b { font-weight: 500; color: var(--muted); }
.team-row .dot { width: 9px; height: 9px; border-radius: 50%; background: #c9ccd2; display: inline-block; } .team-row .dot.on { background: #1e8449; }
body.phone .team-row { grid-template-columns: 14px 1fr auto; } body.phone .team-row .team-ord { grid-column: 2 / -1; grid-row: 2; font-size: 13px; }
body:not(.phone) .stampcard { position: relative; padding-right: 48px; }
body:not(.phone) .stampcard .stamp-top .info { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
body:not(.phone) .stampcard .stamp-state .dot.on { width: 11px; height: 11px; }
body.phone .team-row { row-gap: 2px; padding: 8px 0; }
/* 3.4.4 Plantafel: Zeilen so breit wie der Inhalt -> Namen links und Kopfzeile oben bleiben beim Scrollen stehen */
.pt-row { width: max-content; min-width: 100%; }
.pt-label { z-index: 20; }
.pt-head { z-index: 30; }
.pt-head .pt-label { z-index: 40; }
.pt-bar.dragging { z-index: 15; }
/* 3.5 Firmenakte */
.fa-top { flex-wrap: wrap; gap: 8px; } .fa-cos { margin: 0; }
.fa-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.fa-head img { height: 42px; width: 110px; object-fit: contain; } .fa-head div { display: flex; flex-direction: column; } .fa-head b { font-size: 17px; }
.fa-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 24px; }
.fa-fact { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.fa-k { color: var(--muted); font-size: 13px; } .fa-v { font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.fa-copy { padding: 3px 8px; }
.fa-miss { grid-column: 1 / -1; margin: 8px 0 0; }
.fa-factbtns { margin-top: 12px; }
.fa-search { max-width: 260px; margin: 0; }
.fa-cat { margin: 18px 0 4px; font-size: 14px; }
.fa-doc { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.fa-doc:hover { background: #fafbfc; }
.fa-ico { font-size: 22px; flex: none; }
.fa-dmain { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fa-dmain b { font-weight: 600; } .fa-dmain small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-dbtns { display: flex; gap: 4px; flex: none; }
#companyList .item { cursor: pointer; } #companyList .item:hover { background: #fafbfc; }
body.phone .fa-facts { grid-template-columns: 1fr; } body.phone .fa-fact { grid-template-columns: 1fr auto; } body.phone .fa-k { grid-column: 1 / -1; margin-bottom: -6px; }
body.phone .fa-search { max-width: none; width: 100%; } body.phone .fa-dbtns [data-faedit], body.phone .fa-dbtns [data-fadel] { display: none; }
/* 3.6 Push, RustDesk, Anruf */
.push-state { margin: 6px 0 2px; font-size: 14px; }
.rd-steps { padding-left: 20px; line-height: 1.6; } .rd-steps li { margin-bottom: 6px; }
.rd-dl { font-weight: 700; }
.rd-cfg { display: flex; gap: 6px; align-items: center; margin-top: 4px; } .rd-cfg code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #f3f4f7; padding: 6px 8px; border-radius: 6px; font-size: 11px; }
.rd-mine { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.rd-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 6px; align-items: center; } .rd-row input { margin: 0; }
.rd-conn { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); } .rd-conn div { flex: 1; display: flex; flex-direction: column; } .rd-conn small { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.chat-pickrow .chat-pickmain { display: flex; align-items: center; gap: 12px; flex: 1; font-weight: 600; }
.call-ic { font-size: 22px; width: 32px; text-align: center; }
.chat-hb { padding: 5px 9px; font-size: 15px; }
.team-btns { display: flex; gap: 4px; } .team-btns .btn { padding: 2px 7px; font-size: 13px; }
.team-row { grid-template-columns: 14px minmax(140px, 200px) 1fr auto auto; }
body.phone .team-row { grid-template-columns: 14px 1fr auto auto; }
.callbox { position: fixed; inset: 0; z-index: 1100; background: #111317; color: #fff; display: flex; flex-direction: column; }
.callbox.hidden { display: none; }
.call-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.call-who { flex: 1; display: flex; flex-direction: column; } .call-who b { font-size: 17px; } .call-who small { color: #aeb3bb; }
.call-min { background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 8px; width: 36px; height: 32px; cursor: pointer; }
.call-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; background: #000; }
.call-stage video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; background: #000; }
.call-stage video.hidden { display: none; }
.call-hint { position: absolute; text-align: center; color: #cfd3da; font-size: 16px; line-height: 1.6; padding: 20px; pointer-events: none; }
.call-btns { display: flex; justify-content: center; gap: 14px; padding: 14px 12px calc(16px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.call-b { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 16px; width: 84px; height: 72px; font-size: 22px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.call-b span { font-size: 11px; } .call-b.hidden { display: none; }
.call-b:hover { background: rgba(255,255,255,.2); } .call-b.red { background: #d0021b; } .call-b.on { background: #1e8449; } .call-b.off { background: #6b2a2a; }
#callAccept { background: #1e8449; }
.callbox[data-state="incoming"] .call-stage::after { content: '📞'; font-size: 64px; animation: pulse 1.2s infinite; }
.callbox.mini { inset: auto 16px calc(84px + env(safe-area-inset-bottom)) auto; width: 260px; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); cursor: pointer; }
.callbox.mini .call-stage, .callbox.mini .call-btns .call-b:not(.red) { display: none; }
.callbox.mini .call-btns { padding: 0 12px 12px; justify-content: flex-end; } .callbox.mini .call-b { width: 64px; height: 48px; }
body:not(.phone) .callbox.mini { bottom: 20px; }
/* 3.6.1 Meine Notizen, Kopieren/Bearbeiten */
.chat-av.self { background: #fff4d6; font-size: 18px; }
.chat-room.self b { color: #8a5a00; }
.chat-act { background: none; border: 0; padding: 0 4px; cursor: pointer; font-size: 12px; opacity: .45; }
.chat-act:hover { opacity: 1; }
.chat-meta i { font-size: 10.5px; margin-right: 4px; }
.notes-btn { font-size: 18px; padding: 6px 8px; margin-left: 4px; }
.nav-konto { margin-top: 6px; }
.turn-compose { background: #1d1f24; color: #e6e6e6; padding: 12px; border-radius: 8px; font-size: 12px; overflow-x: auto; white-space: pre; }
/* 3.7 Konferenz + Kamera */
.call-tiles { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.call-tiles.hidden { display: none; }
.call-tile { position: relative; width: 168px; height: 112px; border-radius: 12px; background: #24272e; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.call-tile video { width: 100%; height: 100%; object-fit: cover; } .call-tile video.hidden { display: none; }
.call-tile.me video { transform: scaleX(-1); }
.call-tile .call-tav .chat-av { width: 48px; height: 48px; font-size: 17px; }
.call-tile b { position: absolute; left: 8px; bottom: 6px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px #000; }
.call-stage video#callVideo:not(.hidden) ~ .call-tiles .call-tile { width: 132px; height: 88px; }
.call-stagename { position: absolute; left: 14px; top: 10px; font-size: 13px; color: #cfd3da; text-shadow: 0 1px 3px #000; }
body.phone .call-tile { width: 108px; height: 80px; } body.phone .call-tiles { max-width: 100%; right: 8px; bottom: 8px; }
body.phone .call-b { width: 64px; height: 62px; font-size: 20px; } body.phone .call-btns { gap: 8px; }
.chat-hb.join { background: #1e8449; color: #fff; border-color: #1e8449; }
/* 3.7 Passwort-Tresor */
.v-center { max-width: 420px; margin: 30px auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.v-center label { text-align: left; } .v-center .check { font-size: 13px; }
.v-ico { font-size: 48px; } .v-center h2 { margin: 0; }
.v-forgot { margin-top: 6px; align-self: center; }
.v-bar { flex-wrap: wrap; gap: 8px; } .v-bar h2 { margin: 0; } .v-search { max-width: 260px; margin: 0; }
.v-list { margin-top: 10px; }
.v-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.v-row:hover { background: #fafbfc; }
.v-av { width: 36px; height: 36px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.v-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .v-main b { font-weight: 600; } .v-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-share { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; max-width: 180px; }
.v-chip { font-size: 10.5px; font-weight: 700; background: #eef0f4; color: #555; border-radius: 6px; padding: 2px 5px; } .v-chip.adm { background: #fde8eb; color: var(--red); } .v-chip.me { background: #fff4d6; color: #8a5a00; }
.v-btns { display: flex; gap: 4px; flex: none; }
.v-pw { display: flex; gap: 4px; align-items: center; } .v-pw input { flex: 1; margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.v-who { display: flex; flex-wrap: wrap; gap: 6px; }
.v-pick { border: 1.5px solid var(--line); background: #fff; border-radius: 18px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.v-pick.on { background: var(--accent); color: #fff; border-color: var(--accent); } .v-pick.adm.on { background: var(--red); border-color: var(--red); }
.v-pick small { font-weight: 500; opacity: .8; margin-left: 4px; } .v-pick:disabled { cursor: default; } .v-pick.nokey { opacity: .4; }
body.phone .v-share { display: none; } body.phone .v-search { max-width: none; width: 100%; order: 5; }
/* 3.8 To-Do + @ */
.ment-pop { position: fixed; z-index: 1300; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.22); padding: 6px; min-width: 240px; max-width: 300px; display: flex; flex-direction: column; }
.ment-pop.hidden { display: none; }
.ment-row { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: inherit; text-align: left; }
.ment-row .chat-av { width: 28px; height: 28px; font-size: 11px; } .ment-row b { flex: 1; font-weight: 600; } .ment-row small { color: var(--muted); }
.ment-row.on, .ment-row:hover { background: #f1f3f6; }
b.ment { color: #1a6fd1; font-weight: 600; } .chat-msg.mentioned .chat-bub { box-shadow: 0 0 0 2px #1a6fd1; }
.todo { display: grid; grid-template-columns: 250px 1fr; gap: 16px; height: calc(100vh - 110px); min-height: 420px; position: relative; }
body.td-detail .todo { grid-template-columns: 250px 1fr 380px; }
.todo .card { margin: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.td-side { padding: 10px !important; overflow-y: auto !important; }
.td-li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 14px; }
.td-li:hover { background: var(--bg); } .td-li.on { background: #fde8eb; font-weight: 600; }
.td-ic { width: 20px; text-align: center; } .td-ln { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-cnt { margin-left: auto; font-size: 12px; color: var(--muted); } .td-sh { font-size: 12px; }
.td-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.td-newlist { margin: 10px 8px; color: var(--muted); text-align: left; }
.td-main { padding: 0 !important; background: linear-gradient(180deg, #5f6fc4, #7d8ad6) !important; }
.td-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 10px; color: #fff; } .td-head h2 { margin: 0; color: #fff; }
.td-head .btn { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; }
.td-tasks { flex: 1; overflow-y: auto; padding: 4px 16px 12px; }
.td-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 9px 12px; margin-bottom: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.td-row.on { box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0,0,0,.08); background: #eef1ff; }
.td-row.done .td-tmain b { text-decoration: line-through; color: var(--muted); }
.td-row.pop { animation: tdpop .25s; } @keyframes tdpop { 50% { transform: scale(.98); opacity: .6; } }
.td-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8a90a0; background: #fff; flex: none; cursor: pointer; font-size: 12px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.td-check:hover { border-color: #5f6fc4; } .td-row.done .td-check, .td-check.on { background: #5f6fc4; border-color: #5f6fc4; }
.td-check.sm { width: 18px; height: 18px; font-size: 10px; } .tdd-step.done .td-check { background: #5f6fc4; border-color: #5f6fc4; }
.td-tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; } .td-tmain b { font-weight: 500; overflow-wrap: anywhere; } .td-tmain small { color: var(--muted); font-size: 12px; }
.td-as { display: flex; } .td-ini { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-left: -4px; border: 2px solid #fff; }
.td-star { background: none; border: 0; font-size: 18px; color: #8a90a0; cursor: pointer; padding: 0 2px; } .td-star.on { color: #5f6fc4; }
.td-donehead { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; margin: 10px 0 6px; font: inherit; font-weight: 600; cursor: pointer; }
.td-add { display: flex; align-items: center; gap: 8px; margin: 0 16px 16px; background: rgba(255,255,255,.22); border-radius: 8px; padding: 6px 8px; }
.td-add input { flex: 1; margin: 0; background: transparent; border: 0; color: #fff; font-size: 15px; } .td-add input::placeholder { color: rgba(255,255,255,.85); } .td-add input:focus { outline: none; }
.td-add .btn { background: #fff; color: #333; border: 0; }
.td-addchips, .tdd-as { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.td-chip { background: #fff; color: #333; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.td-chip.big { background: #f1f3f6; padding: 3px 10px 3px 3px; font-weight: 500; } .td-chip.big .td-ini { margin: 0; border: 0; }
.td-detail { padding: 14px !important; overflow-y: auto !important; position: relative; }
.td-detail.hidden { display: none !important; }
.td-dclose { position: absolute; right: 8px; top: 8px; }
.tdd-top { display: flex; align-items: flex-start; gap: 10px; margin: 8px 30px 12px 0; } .tdd-top .td-check { margin-top: 6px; }
.tdd-title { flex: 1; border: 0; font: inherit; font-size: 18px; font-weight: 600; resize: none; padding: 2px 4px; overflow: hidden; background: transparent; }
.tdd-steps { background: #e1e3e8; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.tdd-step { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; } .tdd-step span { flex: 1; } .tdd-step.done span { text-decoration: line-through; color: var(--muted); }
.tdd-stepadd { display: flex; align-items: center; gap: 8px; color: #5f6fc4; } .tdd-stepadd input { border: 0; background: transparent; margin: 0; padding: 6px 0; }
.tdd-sec { margin-bottom: 12px; } .tdd-lab { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tdd-asin { width: 130px; margin: 0; padding: 5px 8px; font-size: 13px; }
.tdd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tdd-grid label { font-size: 13px; color: var(--muted); } .tdd-grid input, .tdd-grid select { font-size: 14px; }
.tdd-file { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; } .tdd-file .linkbtn:first-child { flex: 1; text-align: left; }
.tdd-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
body.phone .todo { display: block; height: auto; } body.phone .td-main { display: none; }
body.phone.td-open .td-side { display: none; } body.phone.td-open .td-main { display: flex; min-height: calc(100vh - 150px); }
body.phone .td-detail { position: fixed; inset: 52px 0 calc(62px + env(safe-area-inset-bottom)) 0; z-index: 36; border-radius: 0; }
body:not(.phone) #tdBack { display: none; }
@media (max-width: 1250px) { body:not(.phone).td-detail .todo { grid-template-columns: 210px 1fr 340px; } }
.tdd-grid label { min-width: 0; } .tdd-grid input, .tdd-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.td-tasks .empty { color: rgba(255,255,255,.85); }
.td-head .chat-back { color: #fff; }
body.phone .td-add .btn { padding: 6px 10px; font-size: 0; } body.phone .td-add .btn::after { content: '＋'; font-size: 18px; }
body.phone .td-add input { font-size: 16px; }
/* Collapse-Buttons */
.td-mainclose { position: absolute; left: 8px; top: 8px; }
body:not(.phone) .td-detail { padding-top: 48px !important; }
body:not(.phone) .td-detail .tdd-top { margin-top: 0; margin-right: 0; }
#todoWrap.td-hide-main #tdDetailBody { max-width: 860px; width: 100%; margin: 0 auto; }
body.phone #tdSideToggle, body.phone #tdMainToggle { display: none; }
.td-head .iconbtn { color: #fff; }
.td-head .iconbtn:hover { background: rgba(255,255,255,.18); }
/* Klappbare Spalten – wie Notizen: transition + visibility:hidden */
.todo { transition: grid-template-columns .25s ease; }
#todoWrap.td-hide-side { grid-template-columns: 0 1fr; }
body.td-detail #todoWrap.td-hide-side { grid-template-columns: 0 1fr 380px; }
#todoWrap.td-hide-side > .td-side { visibility: hidden; padding: 0 !important; overflow: hidden; border: 0; box-shadow: none; }
body.td-detail #todoWrap.td-hide-main { grid-template-columns: 250px 0 minmax(0, 1fr); }
body.td-detail #todoWrap.td-hide-main > .td-main { visibility: hidden; padding: 0 !important; overflow: hidden; }
body.td-detail #todoWrap.td-hide-side.td-hide-main { grid-template-columns: 0 0 minmax(0, 1fr); }
#todoWrap.td-hide-side, body.td-detail #todoWrap.td-hide-main { column-gap: 0; }
#todoWrap.td-hide-side > .td-main, #todoWrap.td-hide-main > .td-detail { margin-left: 0; }
#todoWrap.td-hide-side:not(.td-hide-main) > .td-detail, #todoWrap.td-hide-main:not(.td-hide-side) > .td-detail { margin-left: 16px; }
@media (max-width: 1250px) {
  body:not(.phone).td-detail #todoWrap.td-hide-side { grid-template-columns: 0 1fr 340px; }
  body:not(.phone).td-detail #todoWrap.td-hide-main { grid-template-columns: 210px 0 minmax(0, 1fr); }
  body:not(.phone).td-detail #todoWrap.td-hide-side.td-hide-main { grid-template-columns: 0 0 minmax(0, 1fr); }
}

/* ===== 3.9: KI „Claudia”, Anschreiben, Einfügen ===== */
body:not(.can-ai) .can-ai-only { display: none !important; }
.chat-av.ai { background: linear-gradient(135deg, #7c3aed, #db2777); font-size: 18px; }
.chat-room.ai { background: linear-gradient(90deg, rgba(124,58,237,.07), transparent); }
.ai-badge { background: #ede9fe; color: #6d28d9; font-size: 10px; padding: 1px 6px; vertical-align: 2px; }
.chat-msg.ai .chat-bub { background: #f5f3ff; border: 1px solid #e9e3ff; }
.chat-txt code { background: rgba(0,0,0,.06); border-radius: 4px; padding: 0 4px; font-size: 13px; }
.md-li { display: block; padding-left: 14px; position: relative; } .md-li::before { content: '•'; position: absolute; left: 2px; color: #7c3aed; }
.chat-typing { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; color: #6d28d9; }
.chat-typing .chat-av { width: 26px; height: 26px; font-size: 13px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #7c3aed; display: inline-block; animation: aiDot 1.2s infinite; }
.chat-typing i:nth-of-type(2) { animation-delay: .2s; } .chat-typing i:nth-of-type(3) { animation-delay: .4s; }
@keyframes aiDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
#chatAi { font-size: 18px; }
.ai-wand { display: inline-flex; margin: 4px 0 2px; border: 1px solid #ddd6fe; background: #f5f3ff; color: #6d28d9; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-wand.busy { opacity: .6; pointer-events: none; }
.ai-pop { position: fixed; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; min-width: 200px; }
.ai-pop-h { font-size: 12px; font-weight: 700; color: #6d28d9; padding: 4px 10px 6px; }
.ai-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.ai-pop button:hover { background: #f5f3ff; }
textarea.ai-busy { background: repeating-linear-gradient(-45deg, #faf8ff, #faf8ff 10px, #f3efff 10px, #f3efff 20px); animation: aiStripe 1s linear infinite; background-size: 200% 200%; }
@keyframes aiStripe { to { background-position: 28px 0; } }
.ai-howto { margin: 6px 0 0; padding-left: 20px; } .ai-howto li { margin: 3px 0; }
.wn-ai .wn-ico { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
/* Einfügen */
.cp-prev { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; } .cp-prev img { max-width: 100%; max-height: 50vh; border-radius: 10px; border: 1px solid var(--line); }
.td-thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; cursor: zoom-in; }
.tai-list { max-height: 50vh; overflow-y: auto; margin: 8px 0; }
.tai-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); } .tai-row > div { flex: 1; }
.tai-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 8px; }
.tai-t { width: 100%; margin: 0 0 4px; } .tai-row small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); }
/* Anschreiben */
.ls-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ls-mode { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ls-mode .segtabs { margin: 0; } .ls-mode select { width: auto; margin: 0; }
.ls-recwrap { position: relative; margin: 4px 0 6px; } .ls-recwrap input { margin: 0; }
.ls-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 300px; overflow-y: auto; }
.ls-sug button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; font: inherit; cursor: pointer; }
.ls-sug button:hover { background: var(--bg); } .ls-sug small { display: block; color: var(--muted); }
#lsRec { font-size: 15px; }
.ls-refs { margin: 4px 0 10px; } .ls-refs summary { cursor: pointer; font-size: 14px; padding: 6px 0; }
#lsBody { min-height: 260px; font-size: 15px; line-height: 1.5; }
.ls-act { padding: 10px 0 4px; margin-top: 8px; }
.ls-items { display: flex; flex-direction: column; }
.ls-item { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.ls-open { flex: 1; display: flex; gap: 10px; align-items: center; text-align: left; padding: 9px 2px; color: inherit; min-width: 0; }
.ls-open span:last-child { min-width: 0; } .ls-open b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ls-open small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-ic { font-size: 20px; }
.ls-tpls { max-height: 60vh; overflow-y: auto; } .ls-tg { font-weight: 700; font-size: 13px; margin: 12px 0 6px; color: var(--muted); }
.ls-tc { display: flex; flex-wrap: wrap; gap: 6px; } .ls-tc .chip { font-weight: 500; font-size: 14px; }
#lsigPad { display: block; width: 100%; height: 200px; cursor: crosshair; touch-action: none; }
@media (max-width: 900px) { .ls-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tabs.segtabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .tabs.segtabs::-webkit-scrollbar { display: none; } .tabs.segtabs a { flex: none; white-space: nowrap; } .ls-mode .segtabs { flex: 1 1 100%; } }
/* 3.10: KI-Experten */
.chat-av.ai.xp { background: linear-gradient(135deg, #0f766e, #2563eb); }
.chat-room.ai.xp { background: linear-gradient(90deg, rgba(37,99,235,.07), transparent); }
.xp-list { display: flex; flex-direction: column; }
.xp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.xp-main { flex: 1; min-width: 0; } .xp-main small { display: block; }
.xp-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; margin: 4px 0 8px; }
.xp-drop { padding: 14px; margin: 6px 0; }
.xp-files { max-height: 220px; overflow-y: auto; }
.xp-file { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .xp-file a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xp-file small { color: var(--muted); }
/* 3.11: Themen */
.tp-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .tp-top input { flex: 1; margin: 0; }
.tp-list { max-height: 55vh; overflow-y: auto; }
.tp-row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.tp-row.on { background: #f5f3ff; border-radius: 8px; }
.tp-main { flex: 1; min-width: 0; text-align: left; padding: 6px 4px; color: inherit; } .tp-main b { display: block; font-weight: 600; } .tp-main small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-name { font-weight: 600; color: #6d28d9; }
body.phone #chatTopics { padding: 6px 8px; font-size: 13px; }
/* 3.12: Diktat + KI-Verbindungen */
body:not(.can-dict) .dict-only { display: none !important; }
.dict-btn { display: inline-flex; margin: 4px 6px 2px 0; border: 1px solid #fecaca; background: #fff5f5; color: #b91c1c; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dict-btn.rec, #chatMic.rec, #tdMic.rec { background: #dc2626 !important; color: #fff !important; border-color: #dc2626; animation: micPulse 1.2s infinite; border-radius: 999px; }
.dict-btn.busy, #chatMic.busy, #tdMic.busy { opacity: .6; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }
#chatMic, #tdMic { font-size: 18px; }
.ai-conns { display: flex; flex-direction: column; }
.ai-conn { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ai-conn small { color: var(--muted); flex: 1; min-width: 160px; } .ai-cst { max-width: 320px; }
.ai-tasks { display: flex; flex-direction: column; gap: 10px; }
.ai-task { display: grid; grid-template-columns: 210px 1fr; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ai-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ai-pick select { width: auto; min-width: 140px; max-width: 240px; margin: 0; font-size: 14px; }
.ai-fb { font-size: 12px; color: var(--muted); margin-left: 6px; }
@media (max-width: 900px) { .ai-task { grid-template-columns: 1fr; } }
/* 3.13: Notizen (iOS-Stil) */
.nt { --nty: #e3a300; display: grid; grid-template-columns: 230px 320px minmax(0, 1fr); gap: 12px; height: calc(100vh - 110px); min-height: 480px; }
.nt > .card { margin: 0; display: flex; flex-direction: column; min-height: 0; padding: 12px; }
.nt-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .nt-h b { font-size: 17px; }
.nt-ib { background: none; border: 0; font: inherit; font-size: 19px; color: var(--nty); cursor: pointer; padding: 6px 8px; border-radius: 8px; line-height: 1; }
.nt-ib:hover { background: #fdf6e3; } .nt-ib:disabled { opacity: .3; cursor: default; } .nt-ib.busy { opacity: .5; }
.nt-new { font-size: 22px; }
.nt-back { display: none; background: none; border: 0; color: var(--nty); font: inherit; font-size: 16px; cursor: pointer; padding: 6px 0; }
.nt-fold { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; font: inherit; text-align: left; padding: 10px 10px; border-radius: 10px; cursor: pointer; color: var(--text); }
.nt-fold b { flex: 1; font-weight: 500; } .nt-fold small { color: var(--muted); } .nt-fold.on { background: #fdf3d4; } .nt-fold.on b { font-weight: 600; }
.nt-fe { color: var(--muted); padding: 0 4px; font-weight: 700; }
.nt-q { margin: 0 0 8px; background: #f1f1f4; border: 0; border-radius: 10px; }
.nt-items { overflow-y: auto; flex: 1; margin: 0 -6px; }
.nt-grp { font-size: 13px; font-weight: 700; color: var(--text); padding: 12px 10px 4px; }
.nt-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; padding: 10px; cursor: pointer; color: var(--text); border-radius: 0; }
.nt-item.on { background: #fdf3d4; border-radius: 10px; border-color: transparent; }
.nt-it { flex: 1; min-width: 0; } .nt-it b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-it small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nt-d { color: var(--text); margin-right: 4px; }
.nt-tags { font-size: 11px; } .nt-tags:empty { display: none !important; }
.nt-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.nt-none { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; } .nt-count { text-align: center; padding-top: 6px; }
.nt-ed { position: relative; } .nt-bar { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 6px; flex-wrap: wrap; }
.nt-meta { text-align: center; padding: 8px 0 4px; }
.nt-body { flex: 1; overflow-y: auto; outline: none; padding: 6px 8px 40px; font-size: 16px; line-height: 1.5; -webkit-user-select: text; user-select: text; }
.nt-body::first-line { font-size: 1.45em; font-weight: 700; }
.nt-body h1 { font-size: 1.45em; margin: .2em 0; } .nt-body h2 { font-size: 1.15em; margin: .4em 0 .1em; }
.nt-body img { max-width: min(100%, 520px); max-height: 420px; border-radius: 8px; margin: 4px 0; cursor: zoom-in; display: block; }
.nt-body a { color: var(--nty); text-decoration: underline; cursor: pointer; }
.nt-body ul, .nt-body ol { margin: .2em 0; padding-left: 1.4em; }
.nt-body ul.chk { list-style: none; padding-left: 0; }
.nt-body ul.chk > li { position: relative; padding-left: 30px; min-height: 26px; }
.nt-body ul.chk > li::before { content: ''; position: absolute; left: 2px; top: 3px; width: 18px; height: 18px; border: 1.5px solid #c7c7cc; border-radius: 50%; cursor: pointer; }
.nt-body ul.chk > li[data-done]::before { background: var(--nty); border-color: var(--nty); }
.nt-body ul.chk > li[data-done]::after { content: '✓'; position: absolute; left: 6px; top: 1px; color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.nt-body ul.chk > li[data-done] { color: var(--muted); text-decoration: line-through; }
.nt-ed.ro .nt-body { cursor: default; }
.nt-empty { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: var(--muted); }
.nt-ed.empty .nt-empty { display: flex; } .nt-ed.empty .nt-bar > *:not(#ntWide), .nt-ed.empty .nt-body, .nt-ed.empty .nt-meta { visibility: hidden; } .nt-ed.empty .nt-bar { border-color: transparent; position: relative; z-index: 1; }
.dict-live { background: #fff1f1; border-radius: 4px; }
#ntMic.rec { background: #dc2626; color: #fff; animation: micPulse 1.2s infinite; }
.nt-sh { max-height: 55vh; overflow-y: auto; } .nt-shr { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.nt-shr b { flex: 1; font-weight: 500; } .nt-shr .chat-av { width: 32px; height: 32px; font-size: 12px; } .nt-shr select { width: auto; margin: 0; }
#notesBtn { font-size: 18px; }
@media (max-width: 900px) {
  .nt { grid-template-columns: 1fr; height: calc(100vh - 140px - env(safe-area-inset-bottom)); }
  .nt > .card { display: none; }
  body.nt-f .nt-side, body.nt-l .nt-list, body.nt-e .nt-ed { display: flex; }
  body:not(.nt-f):not(.nt-l):not(.nt-e) .nt-list { display: flex; }
  .nt-back { display: inline-block; }
  .nt-ib { font-size: 21px; padding: 8px; }
}
@media (max-width: 900px) { .nt-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .nt-bar::-webkit-scrollbar { display: none; } .nt-bar .nt-ib { font-size: 19px; padding: 6px 7px; flex: none; } .nt-bar .nt-back { flex: none; } }
/* 3.13.1: Spalten wegklappen */
.nt { transition: grid-template-columns .25s ease; }
.nt.wide { grid-template-columns: 0 0 minmax(0, 1fr); gap: 0; }
.nt.wide > .nt-side, .nt.wide > .nt-list { visibility: hidden; padding: 0; overflow: hidden; border: 0; box-shadow: none; }
.nt.wide .nt-body { max-width: 860px; width: 100%; margin: 0 auto; }
.nt-wide.on { background: #fdf3d4; }
@media (max-width: 900px) { .nt-wide { display: none; } .nt.wide { grid-template-columns: 1fr; gap: 12px; } .nt.wide > .nt-side, .nt.wide > .nt-list { visibility: visible; padding: 12px; } }
/* 3.14: Rechtschreibung unter der Eingabezeile, wegklickbar */
.sp-bar { align-items: center; }
.sp-x { margin-left: auto; background: none; border: 0; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.sp-x:hover { background: var(--bg); }
.sp-bar.sp-under { margin: 0; padding: 6px 10px; background: #fff; border-top: 1px solid var(--line); width: 100%; }
.has-room .sp-bar.sp-under.hidden, .sp-bar.sp-under.hidden { display: none; }
.chat-input .sp-wrap { flex: 1; min-width: 0; display: flex; } .chat-input .sp-wrap textarea { width: 100%; }
body:not(.can-invoices) .perm-invoices { display: none !important; }
.rv-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; } .rv-filter .segtabs { margin: 0; } .rv-filter select { width: auto; margin: 0; }
.rv-q { width: 280px; margin: 0; }
.rv-tbl tr.pending td { color: var(--muted); } .rv-tbl tfoot td { font-weight: 600; border-top: 2px solid var(--line); }
.rv-items { max-height: 40vh; overflow-y: auto; }
@media (max-width: 900px) { .rv-q { width: 100%; } }

/* 3.15 Externe Partner */
body:not(.is-ext) .ext-only { display: none !important; }
body.is-ext .no-ext { display: none !important; }
body.is-ext #newOrderBtn, body.is-ext #newOrderBtn2 { display: inline-flex !important; }
body.is-ext.ext-own #editOrderBtn { display: inline-flex !important; }
body.phone.is-ext #newOrderBtn, body.phone.is-ext #editOrderBtn { display: none !important; }
.mf-form .grid { margin-bottom: 6px; }
.mf-logo { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.mf-logo img { max-height: 54px; max-width: 200px; border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 4px; background: #fff; }
.ei-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line, #eee); flex-wrap: wrap; }
.ei-row .ei-main { flex: 1; min-width: 180px; cursor: pointer; }
.ei-row .ei-main small { display: block; color: var(--muted, #777); }
.ei-row .ei-sum { font-weight: 600; white-space: nowrap; }
.ei-items { width: 100%; border-collapse: collapse; }
.ei-items td { padding: 3px 3px; vertical-align: top; }
.ei-items input { width: 100%; }
.ei-items td.q { width: 80px; } .ei-items td.u { width: 70px; } .ei-items td.p { width: 100px; } .ei-items td.t { width: 100px; text-align: right; padding-top: 10px; white-space: nowrap; } .ei-items td.x { width: 34px; }
.ei-sums { text-align: right; margin: 8px 0; line-height: 1.6; }
.ei-dlg { width: min(900px, 96vw); }
.badge.paid { background: #d9f2df; color: #1b6b32; } .badge.overdue { background: #fde0de; color: #a32019; } .badge.open { background: #fff1c9; color: #7a5a00; } .badge.void { background: #e6e6e6; color: #666; text-decoration: line-through; }
.pt-bar.ext-block, .ext-block { background: repeating-linear-gradient(45deg, #c9c9c9, #c9c9c9 6px, #d8d8d8 6px, #d8d8d8 12px) !important; color: #444 !important; }
@media (max-width: 700px) { .ei-items td.u, .ei-items td.t { display: none; } .ei-items td.q { width: 56px; } .ei-items td.p { width: 76px; } }
@media (max-width: 700px) { .ei-dlg .grid.g2, #dlg2Form .grid.g2 { grid-template-columns: 1fr; } .ei-dlg .grid.g2 > *, #dlg2Form .grid.g2 > * { min-width: 0; } .ei-dlg input[type=date] { width: 100%; } }

.trow.top .tplay.stop { font-size: 13px; padding-left: 0; cursor: pointer; }

/* 3.16: Notizen – Spalten verschwinden nacheinander: erst Menü, dann Ordner, dann Liste (≤ 900 px wie Handy) */
@media (min-width: 901px) and (max-width: 1300px) {
  body.pg-notizen:not(.nav-open) .sidebar { transform: translateX(calc(-100% - 20px)); }
  body.pg-notizen main { padding-left: 20px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  body.pg-notizen .nt:not(.wide) { grid-template-columns: 0 300px minmax(0, 1fr); column-gap: 0; }
  body.pg-notizen .nt:not(.wide) > .nt-list { margin-right: 12px; }
  body.pg-notizen .nt:not(.wide) > .nt-side { visibility: hidden; padding: 0; overflow: hidden; }
  body.pg-notizen.nt-f .nt:not(.wide) { grid-template-columns: 210px 300px minmax(0, 1fr); column-gap: 12px; }
  body.pg-notizen.nt-f .nt:not(.wide) > .nt-list { margin-right: 0; }
  body.pg-notizen.nt-f .nt:not(.wide) > .nt-side { visibility: visible; padding: 12px; }
  body.pg-notizen #ntBack1 { display: inline-block; margin-right: 6px; }
}
.nowrap { white-space: nowrap; }

/* 3.16: Anschreiben – Unterlagen + KI-Rückfragen (Karten wie im Chat) */
.ls-ai { display: flex; gap: 8px; align-items: stretch; margin-left: auto; flex: 1 1 320px; max-width: 520px; }
.ls-drop { flex: 1; border: 1.5px dashed #c9ced8; border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px; background: #fafbfc; }
.ls-drop.over { border-color: var(--red, #d0021b); background: #fff5f6; }
.ls-drop.has { color: var(--text); border-style: solid; background: #fff; }
.ls-drop .ls-f { background: #eef0f4; border-radius: 6px; padding: 2px 6px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; max-width: 180px; }
.ls-drop .ls-f span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ls-drop .ls-f b { cursor: pointer; color: var(--muted); }
.ls-aibtn { white-space: nowrap; }
.ls-sedit { font-size: 12px; margin-left: 4px; white-space: nowrap; }
@media (max-width: 700px) { .ls-ai { flex-basis: 100%; max-width: none; margin-left: 0; } }
.aiq-dlg { width: min(640px, calc(100vw - 20px)); background: #1f1f22; color: #eee; border-radius: 16px; }
.aiq-dlg::backdrop { background: rgba(10,12,18,.55); }
.aiq { padding: 16px 18px 14px; }
.aiq-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.aiq-top b { flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.aiq-nav { display: flex; align-items: center; gap: 4px; color: #9a9aa2; font-size: 13px; white-space: nowrap; }
.aiq-nav button, .aiq-x { background: none; border: 0; color: #9a9aa2; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.aiq-nav button:disabled { opacity: .3; cursor: default; } .aiq-nav button:hover:not(:disabled), .aiq-x:hover { background: #2c2c31; color: #fff; }
.aiq-sub { font-size: 12.5px; color: #9a9aa2; margin: -4px 0 10px; }
.aiq-opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; background: none; border: 0; border-bottom: 1px solid #2e2e33; color: inherit; font: inherit; text-align: left; padding: 10px 8px; cursor: pointer; border-radius: 8px; }
.aiq-opt:hover { background: #29292e; }
.aiq-box { flex: none; width: 20px; height: 20px; border: 1.5px solid #6b6b73; border-radius: 5px; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.aiq-opt.single .aiq-box { border-radius: 50%; }
.aiq-opt.on .aiq-box { background: #2f7cf6; border-color: #2f7cf6; }
.aiq-opt span b { display: block; font-weight: 600; font-size: 14.5px; } .aiq-opt span small { display: block; color: #a3a3ab; font-size: 12.5px; margin-top: 2px; }
.aiq-other { display: flex; gap: 12px; align-items: center; padding: 8px; }
.aiq-other input { flex: 1; margin: 0; background: #29292e; border: 1px solid #3a3a40; color: #eee; }
.aiq-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid #2e2e33; margin-top: 8px; padding-top: 12px; }
.aiq-foot small { flex: 1; color: #9a9aa2; }
.aiq-skip { background: #2c2c31; color: #eee; border: 0; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.aiq-go { background: #fff; color: #111; border: 0; border-radius: 8px; width: 34px; height: 34px; font-size: 17px; cursor: pointer; }
.aiq-busy { padding: 28px 8px; text-align: center; color: #c9c9cf; }
@media (max-width: 700px) { .aiq-dlg { width: calc(100vw - 12px); max-width: none; } }
/* 3.16.1: Notizen am Handy – lange Titel/Zeilen dürfen die Seite nicht verbreitern */
.nt > .card { min-width: 0; }
.nt-items, .nt-item, .nt-it { min-width: 0; max-width: 100%; }
.nt-body { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
@media (max-width: 900px) { .nt { grid-template-columns: minmax(0, 1fr); } .nt.wide { grid-template-columns: minmax(0, 1fr); } }
.team-row.travel .dot.on { background: #2f7cf6; box-shadow: 0 0 0 3px rgba(47,124,246,.2); }

/* 3.17: Partner gewinnen / Demo */
.demo-adv { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; } .demo-adv span { background: #eef6f7; color: #0b5c69; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.xc-prev { flex-wrap: wrap; gap: 6px; justify-content: flex-start; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.demo-badge { cursor: pointer; margin-right: 8px; align-self: center; }
.tour-dlg { width: min(520px, calc(100vw - 20px)); border-radius: 18px; }
.tour { padding: 26px 24px 18px; text-align: center; }
.tour-ico { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.tour h2 { margin: 0 0 10px; font-size: 21px; } .tour p { color: var(--text); line-height: 1.55; font-size: 15px; text-align: left; min-height: 110px; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin: 8px 0 14px; } .tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d4d7de; } .tour-dots span.on { background: var(--red, #d0021b); width: 18px; border-radius: 4px; }
@media (max-width: 600px) { .demo-badge .demo-until { display: none; } }
.btn.stamp-out.gone, .btn.stamp-out.gone:disabled { background: #e6e8ec !important; color: #4a4f57 !important; border-color: #e6e8ec !important; box-shadow: none !important; opacity: 1 !important; cursor: default; }
.stamp-undo { display: block; margin: 8px auto 0; color: var(--red, #d0021b); text-decoration: underline; font-size: 14px; }
.og-head td { background: #f4f5f8; padding: 0 !important; } .og-btn { width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 9px 10px; cursor: pointer; color: var(--text); } .og-btn:hover { background: #eceef2; } .og-chev { display: inline-block; width: 14px; color: var(--muted); }
.rv-excl td { color: #9a9ea6 !important; } .rv-excl td b { text-decoration: line-through; }
.rv-exbox { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #e1e3e8; } .rv-exbox.on { background: #fff4e5; } .rv-exbox label.check { margin: 0; color: var(--text); } .rv-exbox input[name=excl_reason] { margin-top: 8px; }
.rv-exbox label.check { display: block; line-height: 1.45; } .rv-exbox label.check input { display: inline-block; width: auto; margin: 0 6px 0 0; vertical-align: -2px; }
.chat-msg.auto .chat-bub { background: #eef0f3 !important; color: #2b2f36 !important; border: 1px dashed #c3c8d0; } .chat-auto { display: block; font-size: 11.5px; color: #6b7280; margin-bottom: 3px; font-weight: 600; }
.sp-off { background: none; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12px; color: var(--muted); padding: 2px 8px; cursor: pointer; margin-left: auto; } .sp-off + .sp-x { margin-left: 4px; }
.hello .hq { font-size: 14px; font-weight: 400; font-style: italic; color: #8a8a8a; margin-left: 10px; }
@media (max-width: 700px) { .hello .hq { display: block; margin: 2px 0 0; font-size: 13px; } }
/* Emoji-Reaktionen */
.chat-msg { position: relative; }
.chat-rx { display: flex; flex-wrap: wrap; gap: 3px; margin: -6px 8px 4px; position: relative; z-index: 1; }
.chat-msg.me .chat-rx { justify-content: flex-end; }
.rx-chip { border: 1px solid #e3e3e3; background: #fff; border-radius: 999px; padding: 1px 7px; font-size: 14px; line-height: 20px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rx-chip small { font-size: 11px; color: #666; margin-left: 3px; }
.rx-chip.mine { border-color: #b4c9f5; background: #eef3ff; }
.chat-bub { position: relative; }
.chat-rxbtn { position: absolute; top: 50%; margin-top: -13px; border: 0; background: #fff; border-radius: 50%; width: 26px; height: 26px; font-size: 15px; line-height: 26px; padding: 0; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.chat-msg:not(.me) .chat-rxbtn { right: -34px; } .chat-msg.me .chat-rxbtn { left: -34px; }
@media (hover: hover) { .chat-msg:hover .chat-rxbtn { opacity: 1; } }
@media (hover: none) { .chat-rxbtn { display: none; } }
.rx-pop { position: fixed; z-index: 9999; display: flex; gap: 2px; align-items: center; background: #1f1f1f; border-radius: 999px; padding: 5px 8px; box-shadow: 0 6px 24px rgba(0,0,0,.3); animation: rxIn .12s ease-out; }
.rx-pop button { border: 0; background: none; font-size: 26px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; padding: 0; transition: transform .1s; }
.rx-pop button:hover { transform: scale(1.2); }
.rx-pop button.on { background: rgba(255,255,255,.18); }
.rx-pop .rx-plus { color: #fff; font-size: 20px; background: rgba(255,255,255,.1); width: 34px; height: 34px; margin-left: 2px; }
.rx-pop.full { border-radius: 16px; flex-wrap: wrap; width: min(340px, calc(100vw - 16px)); justify-content: center; }
.rx-pop.full button { font-size: 24px; width: 38px; height: 38px; }
@keyframes rxIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
/* Fuhrpark & Immobilien */
body:not(.can-fleet) .perm-fleet { display: none !important; }
body:not(.can-robo) .perm-robo { display: none !important; }
body:not(.can-rrsnap) .perm-rrsnap { display: none !important; }   /* Foto→PC: Knopf unten auf allen Handys (iOS + Android), Menüeintrag am Desktop */
body:not(.has-veh-on) .has-veh { display: none !important; }
.fl-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 14px; color: #555; }
.fl-stats .red { color: var(--red); } .fl-stats .amber { color: #b06000; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 14px; }
.fl-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; margin: 0; transition: transform .1s, box-shadow .1s; }
.fl-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.fl-card.off { opacity: .55; }
.fl-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.fl-name { font-weight: 700; font-size: 15px; }
.fl-who { font-size: 13px; color: #555; }
.fl-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.dpill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: #555; white-space: nowrap; }
.dpill.over { background: #fde0de; color: #a32019; } .dpill.soon { background: #fff1c9; color: #7a5a00; } .dpill.miss { background: #fff; color: #b06000; border: 1px dashed #e0b060; } .dpill.ok { background: #e6f4ea; color: #137333; }
.plate { display: inline-flex; align-items: stretch; border: 2px solid #222; border-radius: 5px; background: #fff; font: 700 17px/1 'DIN Alternate', 'Arial Narrow', Arial, sans-serif; letter-spacing: .5px; overflow: hidden; white-space: nowrap; }
.plate i { font-style: normal; background: #1f4fbf; color: #fff; font-size: 10px; padding: 6px 4px 0; display: flex; align-items: flex-end; }
.plate { padding-right: 8px; } .plate i { margin-right: 7px; padding-bottom: 3px; }
.plate { height: 30px; align-items: center; } .plate i { align-self: stretch; }
.fl-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; } .fl-head h2 { margin: 0; font-size: 19px; }
.fl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.fl-facts > div { background: #e1e3e8; border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; }
.fl-facts small { font-size: 11.5px; color: #777; } .fl-facts b { font-size: 15px; } .fl-facts span { font-size: 12.5px; color: #666; } .fl-facts b.red { color: var(--red); }
.dl-list, .lg-list { display: flex; flex-direction: column; margin-top: 8px; }
.dl-row, .lg-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #eef0f3; }
.dl-row:last-child, .lg-row:last-child { border-bottom: 0; }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; background: #34a853; flex: 0 0 10px; }
.dl-row.over .dl-dot { background: var(--red); } .dl-row.soon .dl-dot { background: #f2a900; } .dl-row.miss .dl-dot { background: #fff; border: 2px dashed #e0a030; }
.dl-row.over b { color: var(--red); }
.dl-main, .lg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dl-main small, .lg-main small { color: #777; font-size: 12.5px; }
.dl-act { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.lg-ico { width: 24px; text-align: center; font-size: 17px; }
.lg-row.open { background: #fff6f6; border-radius: 8px; } .lg-row b.red, b.red { color: var(--red); }
.lg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; } .lg-files img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; } .lg-files a { font-size: 13px; }
.af-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; } .af-row a:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; } .mv-btns .btn { flex: 1 1 180px; }
.mv-btns .mv-nav { flex-basis: 100%; background: #eef5ff; border-color: #c7dcf7; color: #1a4f8f; font-weight: 600; }
.mvn-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.mv-card h3 { margin: 18px 0 4px; font-size: 15px; }
.empty-big { text-align: center; padding: 34px 20px; } .empty-big p { max-width: 520px; margin: 8px auto 16px; }
.yr { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.pu { border: 1px solid #eceef2; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.pu-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pu-head .spacer { flex: 1; }
.pu-ten { display: flex; align-items: center; gap: 8px; margin-top: 6px; } .pu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pu-main small { color: #666; font-size: 12.5px; }
.rgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.rg { border: 1px solid #e2e5ea; background: #fff; border-radius: 7px; font-size: 11.5px; font-weight: 600; padding: 6px 0; cursor: pointer; color: #555; }
.rg.paid { background: #d9f2df; border-color: #a8dcb5; color: #1b6b32; } .rg.late { background: #fde0de; border-color: #f3b0aa; color: #a32019; } .rg.cur { border-color: #f2a900; background: #fff8e1; }
.rg.na { background: #f6f6f6; color: #ccc; cursor: default; border-style: dashed; }
@media (max-width: 600px) { .rgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .dl-row { flex-wrap: wrap; } .dl-act { width: 100%; } .fl-grid { grid-template-columns: 1fr; } }
.trow.over .tmain b { color: var(--red); }
.plate { flex-shrink: 0; }
@media (max-width: 600px) { .fl-head { flex-wrap: wrap; gap: 8px; } }
.reg-btn { margin: 4px 0 12px; border-style: dashed !important; cursor: pointer; text-align: center; }
.reg-btn.ok { border-color: #a8dcb5 !important; background: #e6f4ea; color: #137333; }
.reg-tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .reg-tbl td, .reg-tbl th { padding: 6px 6px; border-bottom: 1px solid #eee; text-align: left; } .reg-tbl th { font-size: 12px; color: #777; font-weight: 600; }
.nas-path { margin: 4px 0 6px; overflow-wrap: anywhere; } .af-grp { font-size: 12.5px; font-weight: 600; color: #666; margin: 10px 0 2px; }
.nas-dirs { max-height: 50vh; overflow: auto; } .chat-pickrow.on { background: #eef3ff; }
/* Immobilien-Werkzeuge */
.dropz { border: 2px dashed #c9cfd8; background: #fafbfc; transition: background .15s, border-color .15s; }
.dropz.over { border-color: #2f6fed; background: #eef3ff; }
.dz-in { display: flex; align-items: center; gap: 14px; } .dz-in > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .dz-in span { font-size: 13px; color: #666; } .dz-ico { font-size: 30px; }
.dz-res:not(:empty) { margin-top: 10px; border-top: 1px solid #eee; }
.dz-row { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f0f0f0; } .dz-st { font-size: 18px; width: 24px; text-align: center; }
.dz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .dz-main small { color: #666; font-size: 12.5px; overflow-wrap: anywhere; }
.dz-ap { font-size: 12.5px; background: #eef7f0; color: #1b6b32; border-radius: 6px; padding: 2px 8px; align-self: flex-start; }
.dz-sug { font-size: 13px; background: #fff8e1; border-radius: 8px; padding: 5px 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dz-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f0f0f0; } .ct-row.nu { opacity: .75; }
.ct-d { width: 52px; font-size: 12px; color: #777; } .ct-m { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ct-m small { color: #777; font-size: 12px; }
.ct-a { font-weight: 600; white-space: nowrap; } .ct-u { width: 44px; font-size: 11.5px; color: #2f6fed; text-align: center; }
.ct-sum { display: flex; gap: 18px; justify-content: flex-end; font-size: 13.5px; margin-top: 8px; }
.heat { margin-top: 10px; font-size: 13.5px; } .heat summary { cursor: pointer; color: #555; }
.heat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; } .heat-row input { width: 130px; }
.nk-row, .ln-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f0f0f0; }
.nk-m, .ln-m { flex: 1; min-width: 0; display: flex; flex-direction: column; } .nk-m small, .ln-m small { color: #666; font-size: 12.5px; }
.nk-s, .ln-fix { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; color: #666; } .nk-s b, .ln-fix b { font-size: 15px; color: #111; }
.nk-s.red b, .ln-fix.red b { color: var(--red); } .nk-s.ok b { color: #1b6b32; } .ln-fix.amber b { color: #b06000; }
.av > div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #f2f2f2; } .av-sum { font-weight: 700; border-top: 1.5px solid #111; }
.ho-m { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.ho-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .ho-sig canvas { width: 100%; height: 110px; border: 1px solid #ccd; border-radius: 8px; background: #fff; touch-action: none; display: block; }
@media (max-width: 600px) { .ho-sig { grid-template-columns: 1fr; } .dz-in { flex-wrap: wrap; } .ct-d { display: none; } }
.sp-dsel { display: inline-block !important; width: auto !important; vertical-align: middle; font-size: 12.5px; margin-right: 4px; padding: 2px 4px; height: auto; min-height: 0; width: auto; }
.sp-warn td { color: #b06000; font-size: 12.5px; background: #fff8e1; }
.sp-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; }
.sp-has-bad { border-bottom: 2px dotted #e03131 !important; }
::highlight(sp-bad) { text-decoration: underline wavy #e0182f; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sp-bar.sp-float { position: fixed; z-index: 3000; margin: 0; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.15); }

/* 3.20 Tesla: Laderechnungen, Einstellungen, Karte */
.tch-list { display: flex; flex-direction: column; }
.tch-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line, #eceef2); }
.tch-row:first-child { border-top: 0; }
.tch-d { width: 84px; font-size: 13px; color: var(--muted); flex: none; }
.tch-m { flex: 1; min-width: 0; } .tch-m b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tch-m small { color: var(--muted); }
.tch-a { font-weight: 600; white-space: nowrap; }
.mv-tch { margin-top: 6px; }
.ts-step { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, #eceef2); }
.ts-step > span { width: 22px; height: 22px; border-radius: 50%; background: #eef0f4; display: grid; place-items: center; font-size: 12px; flex: none; color: var(--muted); }
.ts-step.ok > span { background: #1f9d55; color: #fff; }
.ts-step > div { flex: 1; min-width: 0; } .ts-step .actions { margin-top: 6px; gap: 8px; align-items: center; }
.ts-uri { font-size: 12px; background: #f3f4f7; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.ts-info { display: flex; gap: 24px; margin: 12px 0 4px; } .ts-info small { display: block; color: var(--muted); font-size: 12px; } .ts-info b { font-size: 16px; }
.tm-dlg { width: min(1200px, 96vw); height: min(820px, 92vh); max-width: none; max-height: none; padding: 0; display: none; flex-direction: column; border: 0; border-radius: 14px; overflow: hidden; }
.tm-dlg[open] { display: flex; }
.tm-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line, #eceef2); } .tm-head h2 { margin: 0; font-size: 18px; }
.tm-body { flex: 1; display: flex; min-height: 0; }
#tmMap { flex: 1; min-width: 0; background: #e8ecf1; }
#tmList { width: 320px; overflow-y: auto; padding: 10px; border-left: 1px solid var(--line, #eceef2); background: #fafbfc; }
.tm-car { background: #fff; border: 1px solid var(--line, #eceef2); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 13px; }
.leaflet-popup .tm-car { border: 0; padding: 0; margin: 0; cursor: default; min-width: 230px; }
.tm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tm-st { font-size: 12px; white-space: nowrap; }
.tm-car.charge .tm-st { color: #1f9d55; font-weight: 600; } .tm-car.drive .tm-st { color: #2f7cf6; font-weight: 600; } .tm-car.sleep { opacity: .9; } .tm-car.sleep .tm-st { color: var(--muted); }
.tm-who { color: var(--muted); margin-bottom: 6px; }
.tm-bat { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tm-bar { flex: 1; height: 8px; border-radius: 4px; background: #e6e8ee; overflow: hidden; } .tm-bar i { display: block; height: 100%; background: #1f9d55; } .tm-bar i.low { background: #d0021b; }
.tm-addr small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tm-car .btn { margin-top: 8px; }
.tm-pin-wrap { background: none; border: 0; }
.tm-pin { position: relative; display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 2px solid #1f2a44; border-radius: 16px; padding: 2px 8px 2px 4px; font: 600 12px/1.3 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: translateY(-4px); }
.tm-pin::after { content: ''; position: absolute; left: 10px; bottom: -8px; border: 6px solid transparent; border-top-color: #1f2a44; }
.tm-pin.charge { border-color: #1f9d55; } .tm-pin.charge::after { border-top-color: #1f9d55; }
.tm-pin.drive { border-color: #2f7cf6; } .tm-pin.drive::after { border-top-color: #2f7cf6; }
.tm-pin.sleep { border-color: #9aa1ad; color: #555; } .tm-pin.sleep::after { border-top-color: #9aa1ad; }
@media (max-width: 760px) { .tm-dlg { width: 100vw; height: 100vh; border-radius: 0; } .tm-body { flex-direction: column; } #tmList { width: auto; height: 40%; border-left: 0; border-top: 1px solid var(--line, #eceef2); } }
.ts-prog { display: flex; align-items: center; gap: 10px; margin: 8px 0; } .ts-prog .tm-bar { max-width: 260px; } .ts-prog small { color: var(--muted); }

/* 3.21 Losfahren / Heimfahrt */
.btn.stamp-go { background: #fff; border: 1px solid var(--line, #dfe2e8); min-width: 0; width: 46px; height: 44px; padding: 0; font-size: 20px; line-height: 1; display: inline-grid; place-items: center; flex: none; }
.btn.stamp-go:hover { background: #f3f5f8; }
.btn.stamp-arr { background: #fff; border: 1px solid var(--line, #dfe2e8); color: #3b4252; font-weight: 600; min-width: 0; padding: 4px 9px; font-size: 12px; }
.btn.stamp-arr:hover { background: #f3f5f8; }
.tk-times { display: flex; gap: 12px; } .tk-times label { flex: 1; }
.dot.on.travel { background: #2f7cf6; box-shadow: 0 0 0 4px rgba(47,124,246,.18); }
body.phone .btn.stamp-arr { flex: 0 0 auto; padding: 10px 11px; font-size: 13px; } body.phone .btn.stamp-go { width: 54px; height: 54px; font-size: 24px; }
.nas-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 8px 12px; margin: 0 0 10px; border-radius: 10px; background: #e1e3e8; }
.rv-ord { position: relative; margin-top: 4px; }
.lex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.lex-co { background: #e1e3e8; border-radius: 10px; padding: 10px 12px; } .lex-co details { margin-top: 4px; } .lex-co summary { cursor: pointer; font-size: 13px; }
/* Handy: eigenes Auswahlfenster für lange Auftragslisten */
.sheet-sel { position: relative; display: block; flex: 1 1 100%; min-width: 0; }
.sheet-sel:has(> select.hidden) { display: none; }
.sheet-sel > select { width: 100%; }
.sheet-sel-ov { position: absolute; inset: 0; background: transparent; border: 0; padding: 0; cursor: pointer; }
dialog.ss-dlg { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 82vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
dialog.ss-dlg:not([open]) { display: none; }
.ss-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.ss-head .ss-q { flex: 1; margin: 0; font-size: 16px; } .ss-head .ss-q[hidden] + .ss-x { margin-left: auto; }
.ss-list { overflow-y: auto; padding: 4px 8px calc(14px + env(safe-area-inset-bottom)); }
.ss-grp { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 8px 4px; }
.ss-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #eef0f3; padding: 10px 8px; font: inherit; color: inherit; cursor: pointer; }
.ss-row.on { background: #fde8eb; border-radius: 10px; }
.ss-l1 { font-size: 15px; line-height: 1.3; } .ss-l1 span { color: #444; }
.ss-row small { color: var(--muted); font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-dlg { border: 0; border-radius: 16px; padding: 0; max-width: 340px; width: calc(100vw - 32px); }
.sheet-dlg .dlg { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.sheet-dlg h3 { margin: 0 0 4px; text-align: center; }
.sheet-dlg .sheet-opt { padding: 13px; font-size: 16px; }
.sheet-dlg .sheet-x { align-self: center; }
/* 3.21 Skizzen-Editor */
body.sk-open { overflow: hidden; }
.sk-ed { position: fixed; inset: 0; z-index: 5000; background: #f2f2f5; display: flex; flex-direction: column; font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; user-select: none; -webkit-user-select: none; }
.sk-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #e3e3e8; }
.sk-title { font-size: 16px; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-sp { flex: 1; }
.sk-tb { border: 0; background: none; font: inherit; font-size: 16px; color: #1f5fa8; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.sk-tb.sk-done, .sk-airow .sk-done { background: #d0021b; color: #fff; font-weight: 700; padding: 8px 18px; }
.sk-ic { border: 0; background: #fff; width: 38px; height: 38px; border-radius: 12px; font-size: 18px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sk-ic:disabled { opacity: .35; cursor: default; }
.sk-ai { background: linear-gradient(135deg, #fff4d6, #ffe2f0); }
.sk-ai.busy { animation: skPulse 1s infinite alternate; }
@keyframes skPulse { to { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(245,166,35,.25); } }
.sk-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
.sk-stage canvas { display: block; touch-action: none; cursor: crosshair; }
.sk-stage[data-tool="sel"] canvas { cursor: grab; }
.sk-stage[data-tool="text"] canvas { cursor: text; }
.sk-stage[data-tool="erase"] canvas { cursor: cell; }
.sk-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.95); border-radius: 12px; padding: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 13px; }
.sk-zoom button { border: 0; background: none; width: 32px; height: 30px; font-size: 18px; cursor: pointer; border-radius: 8px; }
.sk-zoom button:hover { background: #f0f0f3; }
.sk-pct { min-width: 46px; text-align: center; color: #555; }
.sk-bar { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid #e3e3e8; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sk-tools, .sk-opts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.sk-tools button { width: 46px; height: 46px; border-radius: 14px; border: 0; background: #f2f2f5; font-size: 20px; cursor: pointer; transition: transform .1s, background .1s; font-weight: 700; }
.sk-tools button.on { background: #111; color: #fff; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.sk-cols { display: flex; gap: 6px; }
.sk-cols button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #ccc; cursor: pointer; }
.sk-cols button.on { box-shadow: 0 0 0 2px #111; transform: scale(1.12); }
.sk-ws { display: flex; gap: 4px; margin: 0 6px; }
.sk-ws button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: #f2f2f5; display: grid; place-items: center; cursor: pointer; }
.sk-ws button i { display: block; background: #111; border-radius: 50%; }
.sk-ws button.on { background: #111; } .sk-ws button.on i { background: #fff; }
.sk-pill { border: 0; background: #f2f2f5; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.sk-pill.hidden { display: none; }
.sk-hint { font-size: 12px; color: #777; min-height: 15px; text-align: center; }
/* KI-Ladeanzeige über der Zeichenfläche */
.sk-ai-ov { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(240,240,245,.55); }
.sk-ai-card { background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 20px 26px; min-width: 240px; text-align: center; }
.sk-ai-txt { font-size: 15px; font-weight: 600; color: #1b1f27; }
.sk-ai-bar { position: relative; height: 6px; border-radius: 4px; background: #e7e9ee; overflow: hidden; margin: 14px 0 8px; }
.sk-ai-bar i { position: absolute; left: -40%; width: 40%; height: 100%; border-radius: 4px; background: #d0021b; animation: sk-ai-prog 1.1s infinite ease-in-out; }
@keyframes sk-ai-prog { 0% { left: -40%; } 60% { left: 100%; } 100% { left: 100%; } }
.sk-ai-sub { font-size: 12px; color: #777; }
.sk-ta { position: absolute; z-index: 3; min-width: 140px; border: 2px dashed #1f5fa8; background: rgba(255,255,255,.9); border-radius: 8px; padding: 2px 6px; font-weight: 600; resize: none; outline: none; font-family: inherit; field-sizing: content; }
.sk-aibox { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 6; }
.sk-aibox textarea { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 10px; padding: 10px; font: inherit; font-size: 15px; resize: vertical; }
.sk-aich { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-aich button { border: 1px solid #e3e3e8; background: #fafafa; border-radius: 14px; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.sk-airow { display: flex; justify-content: flex-end; gap: 8px; }
.sk-airow button { border: 0; background: #f2f2f5; border-radius: 10px; padding: 8px 14px; font: inherit; cursor: pointer; }
@media (max-width: 600px) { .sk-tools button { flex: 0 0 auto; width: 40px; height: 40px; font-size: 17px; border-radius: 12px; } .sk-tools { gap: 4px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; justify-content: flex-start; padding: 4px 2px; scrollbar-width: none; } .sk-cols button { width: 24px; height: 24px; } .sk-title { display: none; } }
#ntBody img { cursor: pointer; }
.sk-syms { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sk-syms.hidden { display: none; }
.sk-syms button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid transparent; background: #f2f2f5; border-radius: 12px; padding: 6px 8px 4px; cursor: pointer; font: inherit; font-size: 12px; }
.sk-syms button canvas { width: 72px; height: 48px; }
.sk-syms button.on { border-color: #111; background: #fff; }
.sk-pill.sk-rot.hidden { display: none; }
.sk-aisel { display: flex; gap: 6px; align-items: center; font-size: 13px; color: #555; }
.sk-aisel select { flex: 1; min-width: 0; border: 1px solid #ddd; border-radius: 8px; padding: 6px; font: inherit; font-size: 13px; background: #fff; }
@media (max-width: 600px) { .sk-syms button canvas { width: 56px; height: 38px; } .sk-syms { gap: 4px; } }
.call-set { position: absolute; right: 16px; bottom: 110px; z-index: 20; width: min(360px, calc(100vw - 32px)); max-height: calc(100% - 140px); overflow: auto; background: #1d2027; color: #fff; border: 1px solid #333842; border-radius: 16px; padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.call-set .cs-h { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.call-set .cs-x { background: none; border: 0; color: #aaa; font-size: 16px; cursor: pointer; }
.call-set label { display: flex; flex-direction: column; gap: 4px; color: #c9cdd4; margin: 0; }
.call-set select { width: 100%; background: #2a2e37; color: #fff; border: 1px solid #3a3f4a; border-radius: 10px; padding: 8px; font: inherit; font-size: 13px; margin: 0; }
.call-set .cs-lvl { height: 6px; background: #2a2e37; border-radius: 4px; overflow: hidden; margin-top: -4px; }
.call-set .cs-lvl i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2fa462, #f5a623); transition: width .08s; }
.call-set .cs-note { color: #8b919c; font-size: 12px; }
.call-set .cs-test { align-self: flex-start; background: #2a2e37; color: #fff; border: 1px solid #3a3f4a; border-radius: 10px; padding: 6px 12px; font: inherit; cursor: pointer; margin-top: -4px; }
.nt-body ul.chk ul.chk { padding-left: 26px; }
.sk-syms { flex-direction: column; align-items: stretch; gap: 6px; max-height: 34vh; overflow-y: auto; width: 100%; max-width: 980px; }
.sk-sg { display: flex; align-items: center; gap: 8px; }
.sk-sg > b { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: .04em; width: 74px; flex: 0 0 auto; text-align: right; }
.sk-sg > div { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-syms button { padding: 4px 6px 3px; font-size: 11px; }
.sk-syms button canvas { width: 60px; height: 40px; }
@media (max-width: 600px) { .sk-sg { flex-direction: column; align-items: flex-start; gap: 3px; } .sk-sg > b { width: auto; text-align: left; } .sk-sg > div { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .sk-syms button canvas { width: 50px; height: 34px; } }
.sk-syms { flex-wrap: nowrap; }
.sk-syms { justify-content: flex-start; }
.sk-bar { position: relative; }
.sk-syms { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 8px); width: min(980px, calc(100vw - 16px)); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 10px; box-sizing: border-box; z-index: 5; }
.sk-syms { max-height: min(52vh, 420px); }
.upd-banner { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); z-index: 6000; background: #111; color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; }
.lay-dlg { width: min(680px, calc(100vw - 24px)); }
.lay-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.lay-img { position: relative; border: 2px solid #e3e3e8; border-radius: 12px; padding: 0; background: #f7f7f9; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: .5; }
.lay-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lay-img span { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: transparent; font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.lay-img.on { border-color: #1f5fa8; opacity: 1; } .lay-img.on span { background: #1f5fa8; color: #fff; }
.lay-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.lay-row select { flex: 1; min-width: 140px; margin: 0; }
.lay-row .seg { display: inline-flex; background: #f2f2f5; border-radius: 10px; padding: 3px; }
.lay-row .seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
.lay-row .seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.lay-msg { min-height: 18px; color: #555; }
.lay-img { display: block; }
.lay-star { position: absolute; left: 6px; bottom: 6px; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); font: inherit; font-size: 11px; padding: 3px 7px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lay-img.tpl { border-color: #f5a623; } .lay-img.tpl .lay-star { background: #f5a623; color: #fff; font-weight: 700; }
.lay-tpls { display: flex; gap: 8px; flex-wrap: wrap; }
.lay-tpls button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 2px solid #e3e3e8; background: #fff; border-radius: 10px; padding: 4px; font: inherit; font-size: 12px; cursor: pointer; width: 104px; }
.lay-tpls button img { width: 94px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.lay-tpls button i { width: 94px; height: 64px; display: grid; place-items: center; color: #aaa; font-style: normal; background: #f5f5f7; border-radius: 6px; }
.lay-tpls button.on { border-color: #1f5fa8; box-shadow: 0 0 0 2px rgba(31,95,168,.15); }
.au-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.au-tile { background: #e1e3e8; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.au-tile small { color: #777; } .au-tile b { font-size: 20px; } .au-tile span { font-size: 12px; color: #888; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.au-tbl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.au-tbl > div { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 4px 0; }
.au-tbl > div small { color: #888; } .au-tbl > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-set { margin-top: 10px; } .au-set summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.au-rate { display: flex; align-items: center; gap: 6px; margin: 10px 0; } .au-rate input { width: 80px; margin: 0; }
.au-prices { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.au-prices > div { display: grid; grid-template-columns: 1fr 80px 80px; gap: 6px; } .au-prices input { margin: 0; padding: 6px 8px; font-size: 13px; }

.tch-box { margin-top: 14px; } .tch-box summary { cursor: pointer; padding: 6px 0; list-style-position: inside; font-size: 15px; }
.sys-bk summary { cursor: pointer; padding: 8px 2px; list-style-position: inside; font-size: 14px; }
.sys-bk[open] summary { margin-bottom: 4px; }
/* Tesla-Symbol (Simple Icons, CC0) – Farbe = Textfarbe */
.ico-car { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; background: currentColor; font-style: normal; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.362l2.475-3.026s4.245.09 8.471 2.054c-1.082 1.636-3.231 2.438-3.231 2.438-.146-1.439-1.154-1.79-4.354-1.79L12 24 8.619 5.034c-3.18 0-4.188.354-4.335 1.792 0 0-2.146-.795-3.229-2.43C5.28 2.431 9.525 2.34 9.525 2.34L12 5.362l-.004.002H12v-.002zm0-3.899c3.415-.03 7.326.528 11.328 2.28.535-.968.672-1.395.672-1.395C19.625.612 15.528.015 12 0 8.472.015 4.375.61 0 2.349c0 0 .195.525.672 1.396C4.674 1.989 8.585 1.435 12 1.46v.003z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.362l2.475-3.026s4.245.09 8.471 2.054c-1.082 1.636-3.231 2.438-3.231 2.438-.146-1.439-1.154-1.79-4.354-1.79L12 24 8.619 5.034c-3.18 0-4.188.354-4.335 1.792 0 0-2.146-.795-3.229-2.43C5.28 2.431 9.525 2.34 9.525 2.34L12 5.362l-.004.002H12v-.002zm0-3.899c3.415-.03 7.326.528 11.328 2.28.535-.968.672-1.395.672-1.395C19.625.612 15.528.015 12 0 8.472.015 4.375.61 0 2.349c0 0 .195.525.672 1.396C4.674 1.989 8.585 1.435 12 1.46v.003z'/%3E%3C/svg%3E") center / contain no-repeat; }
#teslaNav .ico-car { width: 1.15em; height: 1.15em; color: #c8102e; }
#teslaNav { position: relative; margin-right: 10px; }
#teslaNav::after { content: ""; position: absolute; right: -11px; top: 6px; bottom: 6px; width: 1px; background: var(--line, #dfe2e8); }
.car-go { display: inline-block; transform: scaleX(-1); }   /* Auto fährt nach rechts Richtung „Kommen“ */
body.phone .stamp-row > .sheet-sel, body.phone .stamp-row > select { order: -2; } body.phone #teslaNav { order: -1; margin-right: 0; } body.phone .stamp-row .btn.stamp-in { min-width: 0; }
body:not(.phone) .stamp-row .btn.stamp-in { min-width: 0; padding: 11px 16px; } body.phone #teslaNav::after { display: none; }
.wn-ico .ico-car { width: .95em; height: .95em; }
.v-files { margin: 2px 0 8px; }
.v-fileadd { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.v-drop { flex: 1; min-width: 180px; display: flex; align-items: center; justify-content: center; border: 2px dashed #c9ced8; border-radius: 10px; color: var(--muted); font-size: 13px; padding: 6px 10px; transition: border-color .15s, background .15s, color .15s; }
.v-drop.drop { border-color: #1a6fd1; background: #eef5ff; color: #1a6fd1; }
body.phone .v-drop { display: none; } .v-file { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; } .v-file .linkbtn:first-of-type { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 😄 Flachwitz des Tages */
.fw { text-align: center; } .fw-ic { font-size: 40px; line-height: 1; margin: 4px 0 6px; } .fw h2 { margin: 0 0 12px; }
.fw-q { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 14px; }
.fw-a { font-size: 20px; font-weight: 700; color: #c8102e; margin: 4px 0 10px; animation: fwpop .35s ease; }
@keyframes fwpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 🧪 Testumgebung */
body.is-test::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; border: 6px solid transparent; border-image: repeating-linear-gradient(45deg, #e11d2e 0 16px, #facc15 16px 32px) 6; }
.test-band { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 2147483001; background: #facc15; color: #111; border: 2px solid #e11d2e; border-radius: 0 0 12px 12px; padding: 3px 12px; font-size: 13px; box-shadow: 0 3px 10px rgba(0,0,0,.25); white-space: nowrap; }
.test-band a { color: #b91c1c; font-weight: 700; margin-left: 8px; }
body.phone .test-band-txt { display: none; }
body.phone .test-band { top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); border-radius: 12px; }
body.is-test .nav-test, body.is-test .te-actions { display: none !important; }
body.is-test #moreTest { display: none !important; }
.te-card { border: 3px solid transparent; border-image: repeating-linear-gradient(45deg, #e11d2e 0 12px, #facc15 12px 24px) 3; }
.te-list { margin: 8px 0 14px; padding-left: 4px; list-style: none; } .te-list li { margin: 5px 0; }
.te-status { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.te-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #aab; margin-right: 8px; } .te-dot.on { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.te-actions { display: flex; flex-wrap: wrap; gap: 8px; } .te-actions .busy { opacity: .5; pointer-events: none; }
/* Hilfe */
.hl-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.hl-tile { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; color: inherit; }
.hl-tile:hover { border-color: #c9ced8; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hl-tile .hl-ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.hl-tile b { font-weight: 600; line-height: 1.25; }
.hl-chat { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.hl-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.hl-msg.user { align-self: flex-end; background: #1a6fd1; color: #fff; border-bottom-right-radius: 4px; }
.hl-msg.assistant { align-self: flex-start; background: #f5f3ff; border: 1px solid #e9e3ff; border-bottom-left-radius: 4px; }
.hl-msg p { margin: 0 0 6px; } .hl-msg p:last-child { margin-bottom: 0; }
.hl-msg ol, .hl-msg ul, .hl-body ol, .hl-body ul { margin: 4px 0 8px; padding-left: 22px; }
.hl-msg li, .hl-body li { margin: 3px 0; }
.hl-msg a, .hl-body a { color: #1a6fd1; font-weight: 600; }
.hl-typing { color: #6d28d9; font-style: italic; }
.hl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hl-chip { border: 1px solid #e9e3ff; background: #f5f3ff; color: #5b21b6; border-radius: 16px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.hl-chip:hover { background: #ede9fe; }
.hl-askform { display: flex; gap: 8px; }
.hl-askform input { flex: 1; margin: 0; min-width: 0; }
dialog.hl-dlg { width: min(620px, calc(100vw - 20px)); }
.hl-body { line-height: 1.5; } .hl-body p { margin: 0 0 8px; } .hl-body h4 { margin: 12px 0 4px; text-transform: none; letter-spacing: 0; font-size: 14px; color: inherit; }
.wn-all { max-height: 60vh; overflow-y: auto; margin: 6px 0 4px; }
.wn-sec { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.wn-sec summary { cursor: pointer; padding: 9px 12px; list-style-position: inside; }
.wn-sec[open] summary { border-bottom: 1px solid var(--line); }
.wn-sec-body { padding: 10px 12px 2px; }
.wn-sec-body .wn-item { margin-bottom: 10px; } .wn-sec-body .wn-ico { flex-basis: 32px !important; height: 32px !important; font-size: 16px !important; }
body.phone .hl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-tile { min-width: 0; } .hl-tile b { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
body.phone .hl-tile { gap: 8px; } body.phone .hl-tile b { font-size: 13px; }
body.phone .hl-tile { padding: 10px; } body.phone .hl-tile .hl-ic { font-size: 19px; width: 24px; }
body.sens-locked main .page:not(.hidden) { visibility: hidden; }
dialog.sens-dlg { width: min(380px, calc(100vw - 20px)); text-align: center; }
.sens-dlg .sens-ic { font-size: 34px; width: 64px; height: 64px; margin: 4px auto 6px; border-radius: 50%; background: #fde8eb; display: flex; align-items: center; justify-content: center; }
.sens-dlg h2 { margin: 0 0 6px; }
.sens-dlg p.muted { margin: 0 0 14px; }
.sens-dlg input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px 12px; text-align: center; margin: 0; }
.sens-dlg .actions { margin-top: 10px; }
.wn-pin { background: #e1e3e8; border-radius: 12px; padding: 12px 14px 6px; margin: 4px 0 12px; }
.wn-pin > b { display: block; margin-bottom: 6px; } .wn-pin .actions { margin-top: 4px; } .wn-pin label { font-size: 13px; }
.sens-dlg input.sens-pin { font-size: 28px; letter-spacing: .6em; padding: 8px 0 8px .6em; max-width: 220px; margin: 0 auto; display: block; }
.app-ver { position: fixed; right: 10px; bottom: 6px; z-index: 30; font-size: 11px; color: var(--muted); opacity: .7; text-decoration: none; background: var(--card, #fff); padding: 1px 7px; border-radius: 8px; }
.app-ver { pointer-events: none; user-select: none; }
.app-ver:empty, #app.hidden ~ .app-ver { display: none; }
body.phone .app-ver { bottom: calc(66px + env(safe-area-inset-bottom)); }
.mb-res-row {display: flex; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mb-res-row:last-of-type { border-bottom: none; }
.mb-res-row .muted { min-width: 28px; }
/* Tools › 3D-Druck: Kalkulator als eingebettete Seite */
.d3-frame { display: block; width: 100%; height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--line, #e3e5e8); border-radius: 10px; background: #f4f5f7; }
/* Einstellungen › Programme */
.lic-warn { background: #fff4e5; border: 1px solid #f0c27a; color: #8a5300; border-radius: 8px; padding: 8px 12px; margin: 8px 0 12px; font-size: 14px; }
#licDev td, #licDev th { white-space: nowrap; }
/* Prüfung: Bearbeiten/Löschen oben neben dem Ergebnis */
.pr-tools { display: inline-flex; gap: 6px; margin-left: 6px; }
/* 3.35: Projekte & Teilaufträge */
#orderTable tr.proj-row td { background: #e1e3e8; }
#orderTable tr.sub-row td:first-child { padding-left: 22px; }
.sub-arrow { color: #9aa0a6; }
.badge.proj { background: #1f2937; color: #fff; }
.badge.inv-hint { cursor: pointer; border: 1px solid #f0c27a; background: #fff4e5; color: #8a5300; font: inherit; font-size: 11px; }
.cl-opts { display: grid; gap: 6px; margin: 10px 0; }
.cl-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e3e5e8; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.cl-opt:has(input:checked) { border-color: #c8102e; background: #fff5f6; }
.cl-opt small { display: block; color: #6b6f76; font-weight: 400; }
.cl-warn { background: #fff4e5; border: 1px solid #f0c27a; color: #8a5300; border-radius: 8px; padding: 8px 12px; font-size: 13px; display: grid; gap: 2px; }
.pj-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.pj-k { border: 1px solid #e3e5e8; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.pj-k span { font-size: 12px; color: #6b6f76; } .pj-k b { font-size: 20px; } .pj-k small { color: #6b6f76; }
.pj-title { font-weight: 600; margin-top: 4px; }
.pj-bar { height: 8px; background: #eceef1; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.pj-bar span { display: block; height: 100%; } .pj-bar .green { background: #1d8a4c; } .pj-bar .orange { background: #e0a100; } .pj-bar .red { background: #c0262d; }
.cl-opts .cl-opt { display: flex !important; flex-direction: row; text-align: left; margin: 0; }
.cl-opts .cl-opt input[type=radio] { width: auto; flex: 0 0 auto; margin: 3px 0 0; }
.cl-opts .cl-opt > span { flex: 1; min-width: 0; text-align: left; }
.cl-transfer { margin: 6px 0; }
.pj-tog { border: 0; background: none; cursor: pointer; padding: 0 4px; font: inherit; color: #6b6f76; }
.pj-tog:hover { color: #141414; }
/* Auftrag: KW mit ‹ › */
.kw-nav { display: flex; gap: 6px; align-items: center; }
.kw-nav select { flex: 1; min-width: 0; }
.kw-nav .btn { flex: 0 0 auto; min-width: 36px; padding-left: 0; padding-right: 0; font-size: 18px; line-height: 1; }
#orderTable tr.proj-row td:first-child, #orderTable tr.sub-row td:first-child { text-align: left; white-space: nowrap; }
#orderTable tr.sub-row td:first-child { padding-left: 34px; }
#orderTable thead th:first-child { text-align: left; padding-left: 30px; }
#orderTable tbody:not(.og-head) tr:not(.proj-row):not(.sub-row) td:first-child { text-align: left; padding-left: 30px; white-space: nowrap; }
/* 3.35.4: Firmen-Überschrift deutlich abheben; Projekt-Abzeichen als Füllstand */
#orderTable tbody.og-head td { background: #2b2f36; color: #fff; border-top: 6px solid #fff; padding-top: 7px; padding-bottom: 7px; }
#orderTable tbody.og-head .og-btn, #orderTable tbody.og-head .og-btn b { color: #fff; }
#orderTable tbody.og-head .og-btn .muted { color: #c9ccd1; }
.badge.proj-fill { --c: #1d8a4c; background: linear-gradient(to right, var(--c) var(--p), #eef0f2 var(--p)); color: #141414; border: 1px solid var(--c); font-weight: 600; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.badge.proj-fill.green { --c: #4cb873; } .badge.proj-fill.yellow { --c: #f0c232; } .badge.proj-fill.red { --c: #e05252; }
.badge.proj-fill.red { color: #fff; text-shadow: none; }
/* 3.35.8: Wochenberichte in der Projektübersicht */
#pjSubs tr.pj-week td { background: #f8f9fb; font-size: 13px; }
#pjSubs td.pj-wk { padding-left: 28px; white-space: nowrap; }
.ord-nav { display: flex; gap: 8px; margin: 0 0 8px; }
/* 3.52: Robotermarken (RR-Edit++) im Mitarbeiter-Dialog */
.brand-box { margin: -4px 0 12px 26px; padding: 8px 10px; border-left: 3px solid var(--line, #ddd); }
.brand-box .brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; margin-top: 6px; }
.brand-box .check { margin: 0 0 6px; font-size: 13px; }

/* 3.53: Favoriten oben neben dem Namen */
.favbar { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.favbar:empty { display: none; }
.fav-btn { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.fav-btn svg, .fav-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fav-btn:hover { background: var(--bg); }
.fav-emo { font-size: 19px; line-height: 1; }
body.phone .fav-btn { width: 34px; height: 34px; }
body.phone .fav-btn:nth-child(n+5) { display: none; }
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 60vh; overflow: auto; margin: 10px 0; }
.fav-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin: 0; font-weight: 500; }
.fav-opt:has(input:checked) { border-color: var(--red, #c00); background: rgba(200,0,0,.04); }
.fav-opt input { width: auto; margin: 0; }
.fav-ico { width: 24px; display: inline-flex; justify-content: center; }
.fav-ico .fav-emo { font-size: 18px; }
