:root { --g: #242424; --g2: #cc4400; --o: #ff5500; --bg: #f4f4f3; --tx: #17211d; --warn: #b3261e; --ok: #1b7a3d; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--tx); padding-bottom: env(safe-area-inset-bottom); }
header { display: flex; align-items: center; gap: 10px; background: var(--g); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; position: sticky; top: 0; z-index: 2; }
header h1 { font-size: 18px; margin: 0; flex: 1; }
.ver { font-size: 12px; opacity: .7; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--ok); color: #fff; }
.chip.off { background: var(--warn); }
#banner { background: #ffe9a8; padding: 10px 16px; }
main { padding: 12px 16px 40px; max-width: 640px; margin: 0 auto; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { font-size: 15px; margin: 0 0 10px; }
.hint { background: #fff3cd; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: end; margin: 8px 0; flex-wrap: wrap; }
label { display: flex; flex-direction: column; font-size: 13px; gap: 4px; flex: 1; min-width: 120px; }
input, select { font: inherit; padding: 10px; border: 1px solid #c9c9c6; border-radius: 8px; background: #fff; width: 100%; }
label.big, button { display: block; text-align: center; font: inherit; font-weight: 600; background: var(--g); color: #fff; border: 0; border-radius: 10px; padding: 14px 16px; min-height: 48px; cursor: pointer; }
label.big { margin: 10px 0; flex: none; }
label.big.alt, button.alt { background: #ebebea; color: var(--g); }
.counts { display: flex; gap: 8px; margin-bottom: 8px; }
.counts div { flex: 1; background: #f0f0ef; border-radius: 8px; padding: 8px; text-align: center; }
.counts b { display: block; font-size: 24px; }
.counts span { font-size: 12px; }
ul { list-style: none; padding: 0; margin: 8px 0 0; }
li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #eeeeed; font-size: 13px; }
li img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #e2e2df; }
.st { margin-left: auto; font-weight: 600; }
.st.wartet, .st.laedt { color: #8a6d00; } .st.oben { color: var(--ok); } .st.fehler { color: var(--warn); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #e2e2df; }
pre { white-space: pre-wrap; font-size: 12px; background: #f1f1f0; padding: 8px; border-radius: 8px; }
.small { font-size: 13px; }

/* Besichtigungs-App */
.chip.warn { background: #b26a00; }
.muted { color: #66675f; font-size: 13px; }
.vlist li.v { display: block; padding: 12px 0; cursor: pointer; border-top: 1px solid #eeeeed; }
.vlist li.v b { display: block; font-size: 16px; }
.vlist li.v span { display: block; font-size: 14px; }
.vlist li.v small { color: #66675f; }
.info { display: grid; gap: 4px; font-size: 14px; }
.info div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #eeeeed; padding: 4px 0; }
.info span { color: #66675f; }
.card.ebene.aus .ebody { display: none; }
.card.ebene.aus { opacity: .75; }
.check { flex-direction: row !important; align-items: center; gap: 10px; font-size: 16px; }
.check input { width: 22px; height: 22px; flex: none; }
.lbl { font-size: 13px; margin: 10px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
button.chipb { display: inline-block; min-height: 36px; padding: 6px 12px; font-weight: 500; background: #ebebea; color: var(--g); border-radius: 99px; }
button.chipb.on { background: var(--g); color: #fff; }
textarea { font: inherit; padding: 10px; border: 1px solid #c9c9c6; border-radius: 8px; width: 100%; margin: 4px 0 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum { display: flex; justify-content: space-between; margin: 12px 0; font-size: 16px; }
details summary { cursor: pointer; font-weight: 600; }

/* Besichtigungs-App v0.2 */
header.two { flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 8px; }
header.two .top { display: flex; align-items: center; gap: 10px; }
header.two h1 { flex: 1; }
.fbar { display: flex; align-items: center; gap: 8px; font-size: 13px; background: rgba(255,255,255,.12); border-radius: 10px; padding: 6px 8px; }
.fbar .fb { white-space: nowrap; }
.fbar .fb b { font-size: 15px; }
.fbar .w b { color: #ffd479; } .fbar .o b { color: #9be7b5; } .fbar .e b { color: #ffb4ad; }
button.mini { margin-left: auto; min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 8px; background: #fff; color: var(--g); }
.vol { margin-left: auto; font-weight: 700; color: var(--g2); }
.card.ebene .check { width: 100%; }
.stepper { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.stepper input { text-align: center; font-size: 20px; font-weight: 700; flex: 1; min-width: 0; }
.stepper.small { margin: 6px 0 10px; }
.stepper .lbl { margin: 0; flex: 1; }
button.st { width: 56px; min-height: 52px; padding: 0; font-size: 22px; flex: none; }
.quick { display: flex; gap: 8px; margin: 6px 0 10px; }
button.qk { flex: 1; min-height: 44px; padding: 8px; background: #e4e4e2; color: var(--g); }
button.qk.grau { flex: none; background: #f0f0ef; font-weight: 500; font-size: 13px; }
.thumbs.t4 { grid-template-columns: repeat(4, 1fr); }
img.ft { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 3px solid #cfcfcc; background: #e2e2df; }
img.ft.oben { border-color: var(--ok); } img.ft.fehler { border-color: var(--warn); } img.ft.wartet { border-color: #d2a100; }
.kunde { margin-top: 8px; }
.kunde label { margin: 6px 0; }
details.kunde summary { font-size: 14px; }
button:disabled { opacity: .45; }
#lInfo a { color: var(--g2); font-weight: 600; }

/* v0.4: Reiter, Suche, Neu anlegen */
.tabs { display: flex; gap: 6px; margin: 8px 0; }
button.tab { flex: 1; min-height: 44px; padding: 8px 6px; background: #ebebea; color: var(--g); font-size: 14px; }
button.tab.on { background: var(--g); color: #fff; }
.who { align-items: end; }
.who label { flex: 1; }
input[type=search] { font: inherit; padding: 12px; border: 1px solid #c9c9c6; border-radius: 10px; width: 100%; }
h3.muted { font-size: 13px; margin: 14px 0 4px; }

/* Wegräumer-Branding (dezent): dunkle Kopfzeile, orange Linie, Wortmarke */
header { border-bottom: 3px solid var(--o); }
.wm { font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-size: 15px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.wm i { font-style: normal; color: var(--o); }
.wm-sub { font-size: 13px; font-weight: 500; opacity: .75; margin-left: 2px; }
header .wm + h1, header.two .top .wm + h1 { font-size: 15px; font-weight: 500; opacity: .8; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
button.tab.on, button.chipb.on { box-shadow: inset 0 -3px 0 var(--o); }

/* Anlehnung an wegraeumer.de: Poppins (Systemschrift als Rückfall), warmer Hintergrund, Anthrazit für Nebentext */
:root { --bg: #f7f5f2; }
body { font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.muted, .vlist li.v small, .info span { color: #454f5e; }

/* Zentrale v0.1 */
.zbar { display: flex; gap: 6px; }
button.ztab { flex: 1; min-height: 38px; padding: 6px 8px; font-size: 14px; background: rgba(255,255,255,.12); color: #fff; border-radius: 8px; }
button.ztab.on { background: #fff; color: var(--g); box-shadow: inset 0 -3px 0 var(--o); }
button.ztab.ico { flex: none; width: 44px; font-size: 20px; }
.grp h2, details.grp summary { font-size: 15px; margin: 0 0 6px; }
.it { padding: 10px 0; border-top: 1px solid #eeeeed; }
.grp > .it:first-of-type, .grp h2 + .it { border-top: 0; }
.it.klick { cursor: pointer; }
.it-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.it-top b { font-size: 16px; }
.it small { display: block; color: #454f5e; font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #ebebea; color: #454f5e; white-space: nowrap; margin-left: 4px; }
.badge.rot { background: #fde7e5; color: #b3261e; } .badge.gelb { background: #fff1c9; color: #7a5b00; }
.badge.dunkel { background: var(--g); color: #fff; margin-left: 0; } .badge.test { background: #e4e4e2; color: #66675f; letter-spacing: .04em; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acts button, a.btnlink { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
a.btnlink { display: inline-flex; align-items: center; background: #ebebea; color: var(--g); font-weight: 600; text-decoration: none; }
.termin { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }
.termin label { flex: 1; min-width: 150px; }
.chips2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
h2.vk { font-size: 20px; margin: 10px 0 4px; }
.jetzt { margin: 8px 0; font-size: 15px; }
.prim { margin-top: 12px; }
button.primbtn { width: 100%; min-height: 56px; font-size: 17px; background: var(--g2); }
.fuss { text-align: center; margin-top: 16px; }
.info a { color: var(--g2); font-weight: 600; text-decoration: none; }
[hidden] { display: none !important; }

/* Nachrichten */
.nach textarea { margin: 6px 0; }
.nach input { margin: 6px 0 0; }
details.nd { margin-top: 8px; }
details.nd > summary { font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; }
button.prim2 { background: var(--g2); color: #fff; }

/* PC-Ansicht: Spalten und Seitenfenster */
@media (min-width: 1000px) {
  main { max-width: 1560px; padding: 12px 24px 40px; }
  #cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  #vHeute { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
  #vHeute > .fuss { grid-column: 1 / -1; }
  #vHeute .card, #pipeBody .card { margin: 0; }
  #pipeBody { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
  #vVorgang { position: sticky; top: 112px; max-height: calc(100vh - 128px); overflow-y: auto; padding-right: 2px; }
  header.two { padding-left: 24px; padding-right: 24px; }
  header.two .zbar { max-width: 520px; }
  .it.klick:hover { background: var(--bg, #f4f4f3); }
}

/* Befehlsfeld und Wartezustand */
#vVorgang.pending { opacity: .6; pointer-events: none; transition: opacity .15s; }
#pal { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
#pal[hidden] { display: none !important; }
.palbox { background: #fff; width: min(560px, 92vw); border-radius: 12px; padding: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
#palIn { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #c9c9c6; border-radius: 8px; }
#palList { list-style: none; margin: 8px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
#palList li { display: block; padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 0; }
#palList li.on { background: #f0f0ef; box-shadow: inset 3px 0 0 var(--o); }
#palList li b { display: block; font-size: 15px; }
#palList li small { color: #454f5e; font-size: 12px; }

/* Subunternehmer */
details.sub > summary { cursor: pointer; padding: 4px 0; }
details.sub h3 { font-size: 13px; margin: 12px 0 4px; }
.sform { display: grid; gap: 6px; margin-top: 8px; }
.badge.ok { background: #e3f1e7; color: #1b5e30; }
.info div > .badge { margin-left: 0; }
@media (min-width: 1000px) { #vSubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; } #vSubs > .card:first-child { grid-column: 1 / -1; } #vSubs .card { margin: 0; } }

/* Einsatzplan */
.plan-grid { display: none; }
.plan-list { display: block; }
.jb { background: #e8eef7; color: #1f3a5f; border-radius: 6px; padding: 5px 8px; margin: 4px 0; cursor: pointer; font-size: 13px; line-height: 1.3; }
.jb.w2 { background: #fff1c9; color: #6b4f00; }
.jb.offen { border: 1px dashed #8a8a86; background: #f4f4f3; color: #454f5e; }
.jb small { display: block; font-size: 12px; opacity: .85; }
.jb .wn { font-weight: 600; }
@media (min-width: 1000px) {
  .plan-grid { display: grid; gap: 0; padding: 0; overflow: hidden; margin: 12px 0; }
  .plan-list { display: none; }
  .plan-grid > div { border-top: 0.5px solid #e2e2df; border-left: 0.5px solid #e2e2df; padding: 6px; min-width: 0; }
  .plan-grid > .pk { background: #f7f5f2; font-size: 12px; font-weight: 600; text-align: center; }
  .plan-grid > .pk.heute { box-shadow: inset 0 -3px 0 var(--o); }
  .plan-grid > .pk.sub { text-align: left; font-weight: 400; }
  .plan-grid > .pk.sub b { display: block; font-size: 13px; }
  .plan-grid > .pk.sub small { display: block; color: #454f5e; font-size: 12px; }
  .plan-grid > .pz { min-height: 54px; }
  #vPlan > .card { margin-left: 0; margin-right: 0; }
}
button.ztab { padding-left: 2px; padding-right: 2px; }

/* Geld und Zahlen, Reiterleiste */
.zbar { overflow-x: auto; scrollbar-width: none; }
.zbar::-webkit-scrollbar { display: none; }
button.ztab { flex: 1 0 auto; padding-left: 10px; padding-right: 10px; }
button.ztab.ico { flex: none; }
header.two .zbar { max-width: none; }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.kacheln.gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kachel { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-width: 0; }
.kachel small { display: block; color: #454f5e; font-size: 12px; margin: 2px 0; overflow-wrap: anywhere; }
.kachel b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.kachel .hn { color: #66675f; }
.balken { display: grid; grid-template-columns: 130px 1fr 90px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.balken b { text-align: right; font-variant-numeric: tabular-nums; }
.balken .bar { height: 10px; margin: 0; }
table.tab { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tab th, table.tab td { text-align: left; padding: 6px 4px; border-top: 1px solid #eeeeed; font-weight: 400; }
table.tab th { color: #454f5e; border-top: 0; }
@media (min-width: 1000px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kacheln.gross { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.prow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .prow { grid-template-columns: 1fr 1fr; } }

/* Sub-Karte: Menge und Fotos je Ebene, Vollbild */
.mk-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.mk-sum span { background: #f0f0ef; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.eb { border-top: 1px solid #eeeeed; padding: 12px 0 4px; }
.eb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.eb-h b { font-size: 16px; } .eb-h .m3 { font-weight: 700; color: var(--g2); }
.eb small { display: block; margin-top: 2px; color: #66675f; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 8px 0; }
.strip button.ph { padding: 0; min-height: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e2e2df; aspect-ratio: 4 / 3; }
.strip button.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.strip button.ph:hover img { transform: scale(1.04); }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.lb { position: fixed; inset: 0; background: rgba(10, 10, 10, .94); z-index: 50; display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; }
.lb-cap { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; min-height: 0; padding: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 36px; border-radius: 12px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 48px; height: 48px; min-height: 0; padding: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 28px; border-radius: 99px; }
body.lb-open { overflow: hidden; }

/* Kalender */
#vKal { display: block; }
.kal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; }
.kal-nav { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.kal-titel { font-size: 17px; margin: 0 0 0 8px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb { display: inline-block; min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 10px; background: #ebebea; color: var(--g); border: 0; font-weight: 600; cursor: pointer; }
.kb:hover { background: #e0e0de; } .kb.on { background: var(--g); color: #fff; }
.kal-seg { display: flex; gap: 4px; background: #ebebea; padding: 3px; border-radius: 12px; }
.kal-seg .kb { background: transparent; min-height: 34px; } .kal-seg .kb.on { background: #fff; color: var(--g); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.kal-filter { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kf { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 11px; font-size: 13px; border-radius: 99px; border: 1px solid #d8d8d5; background: #fff; color: #2a2f38; cursor: pointer; font-weight: 600; }
.kf .pt, .ev .pt { width: 9px; height: 9px; border-radius: 99px; background: var(--c, #666); display: inline-block; flex: none; }
.kf.aus { opacity: .45; text-decoration: line-through; } .kf-test { font-size: 13px; display: inline-flex; flex-direction: row; align-items: center; gap: 4px; margin-left: auto; min-width: 0; flex: none; color: #454f5e; }
.kf-test input { width: auto; }
.t-besichtigung { --c: #2f6fed; } .t-einsatz { --c: #ff5500; } .t-rechnung { --c: #b3261e; } .t-widerruf { --c: #7a5af8; } .t-angebot { --c: #c28a00; } .t-sub { --c: #0a8f8f; } .t-aufgabe { --c: #6b6f76; }
.ev { display: block; text-align: left; width: 100%; padding: 4px 8px; margin: 0; min-height: 0; font: inherit; font-size: 12px; line-height: 1.25; color: #1c2230; background: color-mix(in srgb, var(--c) 14%, #fff); border: 0; border-left: 4px solid var(--c); border-radius: 8px; cursor: pointer; overflow: hidden; font-weight: 400; }
.ev:hover { background: color-mix(in srgb, var(--c) 24%, #fff); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.ev .z { display: block; font-size: 11px; font-weight: 700; color: var(--c); letter-spacing: .02em; } .ev b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ev small { display: block; color: #454f5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.test { border-left-style: dashed; opacity: .82; }
.ev.kompakt { display: flex; align-items: center; gap: 5px; padding: 2px 6px; margin: 2px 0; border-left-width: 3px; font-size: 12px; white-space: nowrap; } .ev.kompakt .x { overflow: hidden; text-overflow: ellipsis; flex: 1; } .ev.kompakt .z { display: inline; font-size: 11px; }
.kal-card { padding: 0; overflow: hidden; }
.kw-row { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); } .kw { min-width: 720px; }
.kw-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid #e6e6e3; }
.kw-day { text-align: center; padding: 8px 4px; border-left: 1px solid #efefed; } .kw-day span { display: block; font-size: 12px; color: #66675f; text-transform: uppercase; letter-spacing: .05em; } .kw-day b { font-size: 20px; }
.kw-day.heute b { background: var(--o); color: #fff; border-radius: 99px; padding: 0 9px; display: inline-block; }
.kw-all { background: #fafaf9; border-bottom: 1px solid #e6e6e3; } .kw-all .kw-gut { font-size: 11px; color: #66675f; padding: 6px 4px; text-align: right; } .kw-cell { border-left: 1px solid #efefed; padding: 3px; min-height: 30px; }
.kw-body { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); max-height: 66vh; overflow-y: auto; position: relative; }
.kw-h { position: relative; } .kw-h span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: #8a8b84; } .kw-h span:first-child { transform: none; }
.kw-col { position: relative; border-left: 1px solid #efefed; background-image: linear-gradient(to bottom, #ecece9 1px, transparent 1px); }
.kw-col.heute { background-color: #fff8f3; }
.kw-col .blk { position: absolute; }
.kw-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #e5342d; z-index: 2; } .kw-now::before { content: ''; position: absolute; left: -4px; top: -6px; width: 10px; height: 10px; border-radius: 99px; background: #e5342d; }
.km { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .km-h { text-align: center; font-size: 12px; font-weight: 700; color: #66675f; padding: 8px 0; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e6e6e3; }
.km-c { min-height: 118px; border-right: 1px solid #efefed; border-bottom: 1px solid #efefed; padding: 4px; } .km-c.fern { background: #fafaf9; } .km-c.fern .km-n { color: #b0b1aa; } .km-c.we { background: #fbfbfa; }
.km-c.heute { background: #fff8f3; } .km-n { display: inline-block; min-height: 0; padding: 1px 7px; margin-bottom: 2px; background: transparent; color: #2a2f38; font-size: 13px; font-weight: 700; border-radius: 99px; width: auto; } .km-c.heute .km-n { background: var(--o); color: #fff; }
.km-mehr { display: block; min-height: 0; padding: 2px 6px; background: transparent; color: #454f5e; font-size: 12px; text-align: left; width: 100%; }
.kl { padding: 6px 14px 14px; } .kl-d h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #66675f; margin: 16px 0 6px; position: sticky; top: 0; background: #fff; padding: 4px 0; } .kl-d.heute h3 { color: var(--g2); }
.kl-e { display: flex !important; align-items: center; gap: 12px; padding: 8px 12px !important; margin: 5px 0; font-size: 14px; } .kl-z { flex: none; width: 74px; font-weight: 700; font-size: 13px; color: var(--c); } .kl-t { flex: 1; min-width: 0; } .kl-t b { font-size: 15px; } .kl-e .badge { flex: none; }
.leer { text-align: center; padding: 36px 16px; }
.kalchip { border: 0; cursor: pointer; background: #fff; color: #242424; font-weight: 600; } .kalchip:hover { background: #ffe9dc; }
.hilfe { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hilfe-box { background: #fff; border-radius: 16px; padding: 20px 22px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; } .hilfe-box h2 { margin: 0 0 12px; }
.hz { display: flex; gap: 14px; align-items: baseline; padding: 6px 0; border-top: 1px solid #eeeeed; font-size: 14px; } .hz kbd { flex: none; min-width: 150px; font: 600 12px ui-monospace, Menlo, monospace; background: #f0f0ef; border-radius: 6px; padding: 3px 8px; }
@media (max-width: 999px) { .kal-card { overflow-x: auto; } .km-c { min-height: 88px; } .kl-z { width: 64px; } .kf-test { margin-left: 0; } }
@media (max-width: 600px) { .km { min-width: 600px; } }

/* PC: dichter, übersichtlicher (Board, Tabelle, kompakte Aktionen) */
@media (min-width: 1000px) {
  .card { padding: 12px 14px; }
  .it { padding: 7px 0; } .it-top b { font-size: 14px; } .it small { font-size: 12px; margin-top: 1px; }
  .acts { margin-top: 4px; gap: 6px; } .acts button, a.btnlink { min-height: 30px; padding: 4px 11px; font-size: 13px; border-radius: 8px; }
  #vHeute > .card { max-height: calc(100vh - 200px); overflow-y: auto; }
  #vHeute .grp h2 { font-size: 14px; margin-bottom: 4px; position: sticky; top: 0; background: #fff; z-index: 1; padding: 2px 0 4px; }
  /* Pipeline als Board: Spalten nebeneinander, jede mit eigenem Scroll */
  #vPipe > .check { margin: 0 0 8px; padding: 6px 12px; }
  #pipeBody { display: flex; gap: 10px; align-items: stretch; overflow-x: auto; height: calc(100vh - 215px); padding-bottom: 6px; }
  #pipeBody details.card { flex: 0 0 262px; margin: 0; padding: 0 0 8px; background: #efefed; box-shadow: none; overflow-y: auto; border-radius: 12px; }
  #pipeBody details.card > summary { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #efefed; font-weight: 700; font-size: 14px; cursor: default; list-style: none; }
  #pipeBody details.card > summary::-webkit-details-marker { display: none; }
  #pipeBody .cnt { background: #fff; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 700; color: #454f5e; }
  #pipeBody .it { margin: 0 8px 6px; padding: 8px 10px; background: #fff; border: 0; border-left: 4px solid #d8d8d5; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
  #pipeBody .it.alt2 { border-left-color: #e2b13c; } #pipeBody .it.alt3 { border-left-color: #d6453d; }
  #pipeBody .it.klick:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .18); background: #fff; }
  #pipeBody .tgchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #66675f; }
  /* Subs als Tabelle */
  #vSubs { display: block; }
  #vSubs > .card:first-child { margin: 0 0 10px; }
  .tblwrap { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow: hidden; }
  .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
  .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #66675f; padding: 10px 14px; border-bottom: 1px solid #e6e6e3; background: #fafaf9; position: sticky; top: 0; }
  .tbl th.r, .tbl td.r { text-align: right; }
  .tbl td { padding: 9px 14px; border-bottom: 1px solid #efefed; vertical-align: middle; }
  .tbl td small { display: block; color: #66675f; font-size: 12px; }
  .tbl tr.sr { cursor: pointer; } .tbl tr.sr:hover td, .tbl tr.sr.auf td { background: #fff8f3; }
  .tbl tr.sdr td { background: #fafaf9; padding: 14px 18px; } .sd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .sd h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
  .dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; } .dot { width: 9px; height: 9px; border-radius: 99px; background: #c6c6c2; display: inline-block; } .dot.ok { background: #2e9b57; } .dot.gelb { background: #e2b13c; } .dot.rot { background: #d6453d; }
}

/* UX-Überarbeitung 07.11. */
.tzeile { margin: 4px 0; font-size: 15px; } .tzeile b { font-size: 16px; }
.leerchen { color: #8a8b84; font-size: 13px; margin: 6px 12px 12px; } .leer { text-align: center; padding: 24px 12px; } .leer b { font-size: 18px; }
.naechst .ns { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.naechst .ns li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e6e6e3; border-radius: 12px; cursor: pointer; font-size: 15px; background: #fff; }
.naechst .ns li:hover { background: #fff8f3; } .naechst .ns li.zuerst { border-color: var(--o); background: #fff8f3; font-weight: 700; }
.naechst .nr { flex: none; min-width: 32px; height: 32px; border-radius: 99px; background: var(--g); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; } .naechst .zuerst .nr { background: var(--o); }
.cseg { display: inline-flex; margin: 4px 0 8px; } #composer textarea { min-height: 190px; } #composer select, #composer input { margin: 6px 0; }
.kal-suchzeile { flex-basis: 100%; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; } .kal-q { flex: 1 1 280px; } .kal-dl { flex: 0 0 170px; min-width: 150px; font-size: 12px; }
.kal-treffer { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.kpop { max-width: 520px; } .kp-kopf { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c); margin-bottom: 4px; } .kp-kopf .pt { width: 10px; height: 10px; border-radius: 99px; background: var(--c); } .kpop h2 { margin: 2px 0 10px; }
@media (min-width: 1000px) { #vHeute > .card.naechst { grid-column: 1 / -1; max-height: none; } #pipeBody details.card.fertig { flex-basis: 220px; opacity: .85; } }

/* Sub-Karte Fortschritt */
ol.stepper { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; color: #8a8b84; }
.stepper .sn { width: 30px; height: 30px; border-radius: 99px; background: #e6e6e3; color: #555; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.stepper li.ok .sn { background: #1f8a4c; color: #fff; } .stepper li.ok { color: #1f8a4c; }
.stepper li.jetzt .sn { background: var(--o, #ff5500); color: #fff; } .stepper li.jetzt { color: #111; font-weight: 700; }
.pfl h3 { margin: 6px 0; font-size: 15px; }
.pflicht { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; margin: 6px 0; border: 2px solid #e6e6e3; }
.pflicht.fehlt { border-color: #b3261e; background: #fff4f2; } .pflicht.ok { border-color: #1f8a4c; background: #f2fbf5; }
.pflicht .pm { flex: none; width: 26px; height: 26px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: #1f8a4c; }
.pflicht.fehlt .pm { background: #b3261e; } .pflicht .pt2 { flex: 1; font-weight: 600; }
.acts.gross button, .acts.gross .btnlink { width: 100%; padding: 16px; font-size: 18px; } button.gedimmt { opacity: .5; }

.pflicht .fk { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .pflicht .fk > span { display: inline-block; }

/* Diagramme, Hinweise */
svg.chart { width: 100%; height: auto; color: var(--g, #222); display: block; } .legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-top: 6px; } .legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.hinweisbox { background: #fff8e1; border: 1px solid #f0d27a; border-radius: 10px; padding: 8px 10px; margin: 8px 0; font-size: 14px; }

.chartgrid { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 1000px) { .chartgrid { grid-template-columns: 1fr 1fr; } }
svg.chart { max-height: 280px; }

/* Angebot abschicken */
.abschick { border: 2px solid var(--o, #ff5500); } .abschick h2 { color: var(--o, #ff5500); }
.mailvorschau { background: #fafaf7; border: 1px solid #e0e0da; border-radius: 10px; padding: 10px 12px; margin: 8px 0; } .mailvorschau pre { white-space: pre-wrap; font: inherit; margin: 8px 0 0; }

/* Terminprüfung, Routenblöcke */
.pruef { margin: 6px 0 10px; display: grid; gap: 6px; } .pz { font-size: 14px; } .badge.gruen { background: var(--ok-bg, #e1f3e9); color: var(--ok, #1a7f4b); }
.routenkopf { margin: 12px 0 4px; padding: 6px 10px; border-radius: 8px; background: #eef1f4; color: #1c2127; font-size: 13px; }

.cseg.wrap { display: flex; flex-wrap: wrap; gap: 4px; } .cseg.wrap .kb { flex: 1 1 auto; }

/* Terminplaner und Kalender-Dialog */
.hilfe-box.tdlg { max-width: 680px; max-height: 92vh; overflow: auto; }
.planer { display: grid; gap: 8px; margin: 8px 0; } .lbl2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5b6670; margin-bottom: 4px; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; } .vchip { display: grid; text-align: left; gap: 1px; padding: 6px 10px; border: 1px solid #d5dade; border-radius: 10px; background: #fff; color: #1c2127; cursor: pointer; font: inherit; } .vchip small { color: #5b6670; font-size: 12px; } .vchip:hover { border-color: var(--o, #ff5500); }
.warnbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: #fdecea; border: 1px solid #e3a6a1; color: #6e1c17; border-radius: 10px; padding: 8px 12px; }
.tdl-liste { display: grid; gap: 6px; margin-top: 6px; } .tdl-it { display: grid; text-align: left; padding: 8px 10px; border: 1px solid #d5dade; border-radius: 10px; background: #fff; color: #1c2127; cursor: pointer; font: inherit; } .tdl-it small { color: #5b6670; }
.tdl-kopf { margin: 6px 0; } .blk { display: block; margin: 8px 0; } .kal-bar .plus { margin-left: auto; }
.kw-col { cursor: cell; }

/* Kalender: Status-Icons und ausgegraute Termine */
.ik { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1; margin-right: 4px; color: #fff; vertical-align: middle; }
.ik.ok { background: #1f8a4c; } .ik.vs { background: #7a828a; } .ik.ab { background: #b3261e; }
.ev.s-erledigt { box-shadow: inset 3px 0 0 #1f8a4c; }
.ev.s-verschoben { opacity: .55; filter: grayscale(1); border-style: dashed; } .ev.s-abgesagt { opacity: .6; filter: grayscale(.6); text-decoration: line-through; border-style: dashed; }
.kal-leg { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 2px 8px; }

/* Problem-Knopf in der Sub-Karte: klar abgesetzt */
.problembtn { background: #fff; color: #b3261e; border: 2px solid #b3261e; font-weight: 700; }

/* Rundgang je Raum */
.rundgang h4 { margin: 8px 0 4px; font-size: 15px; }

/* Dein nächster Schritt: Kopf, Warnung, Zähler nach Dringlichkeit */
.naechst .ns-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .naechst .ns-kopf h2 { margin: 0; }
.naechst .ns-summe { background: #1d1d1b; color: #fff; border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.naechst .ns-warn { margin-top: 10px; padding: 10px 12px; border: 2px solid #b3261e; border-radius: 12px; background: #fdecea; display: grid; gap: 2px; } .naechst .ns-warn b { color: #b3261e; font-size: 16px; } .naechst .ns-warn span { font-size: 14px; }
.naechst .ns-warnlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; } .naechst .ns-chip { border: 1px solid #b3261e; background: #fff; color: #b3261e; border-radius: 99px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.naechst .ns-text { display: grid; gap: 1px; } .naechst .ns-text small { color: #62666b; font-size: 12.5px; font-weight: 400; }
.naechst .nr.rot { background: #b3261e; } .naechst li.rotl { border-color: #e9b3ae; }
.ns-fhinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 8px; }

/* Heute zu tun: Kacheln */
.naechst .ns-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.naechst .ns-kachel { text-align: left; border: 1px solid #e6e6e3; background: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: inherit; }
.naechst .ns-kachel:hover { background: #fff8f3; } .naechst .ns-kachel.aktiv { border: 2px solid var(--o); background: #fff8f3; padding: 11px; }
.naechst .ns-kachel.leer { opacity: .55; } .naechst .ns-zahl { font-size: 28px; font-weight: 800; line-height: 1.1; }
.naechst .ns-kachel.rot .ns-zahl { color: #b3261e; } .naechst .ns-kachel.gelb .ns-zahl { color: #a86400; } .naechst .ns-kachel small { color: #62666b; font-size: 12.5px; }
.ns-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; } .ns-ch { color: #1d1d1b; border: 1px solid #d6d6d1; background: #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.ns-ch.aktiv { background: #1d1d1b; color: #fff; border-color: #1d1d1b; } .ns-ch.rot:not(.aktiv) { border-color: #b3261e; color: #b3261e; } .ns-luecke { margin: 4px 0 0; color: #a86400; font-size: 13.5px; font-weight: 600; }

#vHeute > .card.breit { grid-column: 1 / -1; max-height: none; }

/* ===== v62 (12.11.2026): Kopfzeile, Aktualisieren, Handy-Kalender, Pipeline-Hinweise, Nachrichten je Status ===== */
header.two .top .wm + h1 { flex: 1; }
.aktionszeile { display: flex; align-items: center; gap: 10px; }
.aktionszeile #stand { flex: 1; text-align: right; font-size: 12px; opacity: .8; min-width: 0; }
.aktionszeile .suchbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 14px; font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 10px; }
.aktionszeile .suchbtn.on { background: #fff; color: var(--g); box-shadow: inset 0 -3px 0 var(--o); }
.refreshbtn { flex: none; min-height: 42px; padding: 8px 16px; font-size: 15px; font-weight: 700; background: var(--o); color: #fff; border-radius: 10px; border: 0; display: inline-flex; align-items: center; gap: 8px; }
.refreshbtn:disabled { opacity: .9; }
.refreshbtn .dreh { display: inline-block; font-size: 19px; line-height: 1; }
.refreshbtn.dreht .dreh { animation: wgspin 1s linear infinite; }
@keyframes wgspin { to { transform: rotate(360deg); } }
.syncbar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px 8px; border-radius: 8px; background: #fff3e6; color: #5a3300; font-size: 13.5px; font-weight: 600; }
.syncbar[hidden] { display: none; }
.syncbar i { position: absolute; left: 0; bottom: 0; height: 3px; width: 38%; background: var(--o); animation: wgslide 1.1s ease-in-out infinite; }
@keyframes wgslide { 0% { left: -38%; } 100% { left: 100%; } }
@media (max-width: 999px) { #kalChip { display: none !important; } }
@media (min-width: 1000px) { .termzeile { display: none !important; } .aktionszeile { max-width: 760px; } }
button.termzeile { display: block; width: 100%; text-align: left; background: #fff; color: #1d1d1b; border: 1px solid #e1e1de; border-radius: 12px; padding: 11px 14px; font-weight: 600; margin: 0 0 10px; }

/* Kalender: Woche passt aufs Handy, ganztägige Einträge als Zähler, deutlichere Filter */
button.kw-day { background: transparent; border: 0; border-left: 1px solid #efefed; border-radius: 0; min-height: 0; font: inherit; color: inherit; cursor: pointer; }
button.kw-day:hover { background: #f4f4f2; }
button.kz { display: inline-flex; align-items: center; gap: 3px; min-height: 26px; padding: 2px 8px; margin: 2px; border: 0; border-radius: 99px; background: #ecebe8; color: #1d1d1b; font-size: 12px; font-weight: 700; cursor: pointer; }
button.kz .pt { width: 8px; height: 8px; border-radius: 99px; background: var(--c, #666); display: inline-block; flex: none; }
.km-mehr { display: inline-block; margin: 3px 0 0; padding: 2px 9px; min-height: 24px; border-radius: 99px; background: #ecebe8; color: #1d1d1b; font-size: 12px; font-weight: 700; border: 0; }
.kal-filter { gap: 8px; }
.kf-lbl { flex-basis: 100%; font-size: 12.5px; color: #5a5f66; }
.kf { min-height: 40px; padding: 4px 14px; font-size: 14px; border-width: 2px; }
.kf.an { background: color-mix(in srgb, var(--c) 16%, #fff); border-color: var(--c); color: #1d1d1b; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.kf .kf-h { width: 14px; font-weight: 800; color: var(--c); text-decoration: none; }
.kf.aus { background: #f1f1ef; border-color: #d0d0cc; opacity: .6; text-decoration: line-through; }
.kal-mehr { flex-basis: 100%; } .kal-mehr summary { cursor: pointer; font-size: 13px; color: #5a5f66; padding: 4px 0; }
@media (max-width: 999px) {
  .kal-bar { padding: 10px 10px; gap: 8px; } .kal-bar .plus { margin-left: 0; width: 100%; }
  .kal-card.kal-woche { overflow-x: hidden; }
  .kw { min-width: 0; }
  .kw-row, .kw-body { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
  .kw-gut { font-size: 9.5px; } .kw-h span { right: 3px; font-size: 9.5px; }
  .kw-all .kw-gut { font-size: 8px; padding: 6px 1px; }
  .kw-day { padding: 5px 0; } .kw-day span { font-size: 10px; letter-spacing: 0; } .kw-day b { font-size: 15px; }
  .kw-col .blk { padding: 2px 3px; border-left-width: 3px; border-radius: 5px; }
  .kw-col .blk .z, .kw-col .blk small { display: none; }
  .kw-col .blk b { font-size: 10px; line-height: 1.15; white-space: normal; overflow: hidden; }
  .kw-cell { padding: 2px 1px; text-align: center; }
  .kw-body { max-height: 62vh; }
}

/* Pipeline */
.pipe-lese { font-size: 13px; color: #5a5f66; margin: 2px 4px 10px; line-height: 1.4; }
.phase-hint { font-size: 12px; color: #5a5f66; margin: 2px 0 8px; line-height: 1.35; }
.pfeil { margin-left: 8px; color: var(--o); font-weight: 800; font-size: 18px; line-height: 1; }

/* Nachrichten je Status */
.sub-h { font-size: 15px; margin: 14px 0 6px; }
.verlauf summary { font-weight: 400; } .verlauf summary b { font-weight: 700; }
.verlauf-text { white-space: pre-wrap; font: inherit; font-size: 14px; background: #f6f6f4; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
a.wahl { display: block; text-align: center; margin: 8px 0; }
.hilfe-box .kl-t b, .hilfe-box .kl-t small { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 999px) { .kal-bar .plus { width: auto; min-height: 40px; padding: 6px 16px; font-size: 14px; } }
summary .cnt { margin-left: 8px; }

/* v0.6 Handy: Eingabefelder laufen nie aus ihrer Spalte (iPhone: datetime-local hat eine feste Mindestbreite), Zeilen brechen sauber um */
input, select, textarea { max-width: 100%; min-width: 0; }
input[type=datetime-local], input[type=date], input[type=time] { width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.termin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; align-items: end; }
.termin label { min-width: 0; flex: none; }
.stepper:not(ol) { flex-wrap: nowrap; }
.stepper:not(ol) .lbl { min-width: 0; font-size: 14px; line-height: 1.25; }
.stepper:not(ol) button.st { flex: none; min-width: 46px; }
.stepper:not(ol) input { min-width: 56px; max-width: 110px; }
.row { flex-wrap: wrap; }
.bestaetigt { background: #e1f3e9; color: #1b7a3d; border: 2px solid #1b7a3d; border-radius: 12px; padding: 14px; font-weight: 700; margin: 10px 0; }
.bestaetigt.fehler { background: #fde8e6; color: #b3261e; border-color: #b3261e; }
@media (max-width: 400px) { .card { padding: 12px; } main { padding: 10px 12px 40px; } .chips2 { gap: 4px; } }

.einplan { border: 2px solid var(--o, #ff5500); border-radius: 12px; padding: 12px; background: #fff7f1; }
.einplan-t { margin: 0 0 4px; font-size: 18px; }

/* v0.6.1: kompakter Kopf auf dem Handy */
@media (max-width: 500px) {
  header.two { gap: 4px; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; }
  header.two .top .wm + h1 { display: none; }
  header.two .top .wm { flex: 1; }
  button.ztab { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
  .aktionszeile { gap: 6px; }
  .aktionszeile #stand { display: none; }
  .aktionszeile .suchbtn { min-height: 36px; padding: 5px 12px; font-size: 14px; }
  .syncbar { min-height: 0; padding: 4px 10px 7px; font-size: 12.5px; }
}

/* ===== Zentrale 25.11.: alles unter body.zentrale, damit andere Seiten unverändert bleiben ===== */
/* Kopf: am Rechner eine Zeile, am Handy Reiter in eigener, wischbarer Zeile */
body.zentrale header.zkopf { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; z-index: 30; }
body.zentrale .zkopf .wm { order: 1; }
body.zentrale .zkopf .aktionszeile { order: 2; margin-left: auto; gap: 8px; min-width: 0; }
body.zentrale .zkopf #net { order: 3; }
body.zentrale .zkopf #kalChip { order: 4; }
body.zentrale .zkopf .zbar { order: 5; flex: 1 0 100%; min-width: 0; }
body.zentrale .zkopf button.ztab, body.zentrale .zkopf .refreshbtn, body.zentrale .zkopf .suchbtn { min-height: 38px; }
body.zentrale .zkopf .refreshbtn { padding: 6px 14px; font-size: 14px; }
body.zentrale .zkopf .syncbar { position: absolute; left: 0; right: 0; top: 100%; border-radius: 0; z-index: 1; }
@media (max-width: 500px) {
  body.zentrale .zkopf { padding-left: 10px; padding-right: 10px; }
  body.zentrale .zkopf .aktionszeile { gap: 6px; }
  body.zentrale .zkopf .suchbtn span { display: none; }
  body.zentrale .zkopf .suchbtn { padding: 6px 10px; }
}
@media (max-width: 430px) { body.zentrale .zkopf .rtxt { display: none; } body.zentrale .zkopf .refreshbtn { padding: 6px 12px; } }
@media (min-width: 1000px) {
  body.zentrale header.zkopf { flex-wrap: nowrap; padding-left: 24px; padding-right: 24px; }
  body.zentrale .zkopf .zbar { order: 2; flex: 0 1 auto; }
  body.zentrale .zkopf .aktionszeile { order: 3; flex: none; max-width: none; }
  body.zentrale .zkopf #stand { flex: none; }
  body.zentrale .zkopf #kalChip { order: 4; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 30px; padding: 4px 10px; display: block; }
  body.zentrale .zkopf #net { order: 5; flex: none; }
}
@media (min-width: 1000px) and (max-width: 1360px) {
  body.zentrale .zkopf #stand, body.zentrale .zkopf .rtxt, body.zentrale .zkopf .suchbtn span { display: none; }
}

/* Hinweis neue Version, kurze Rückmeldung */
body.zentrale #banner { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #d6d6d1; border-radius: 99px; padding: 5px 6px 5px 14px; font-size: 13px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
body.zentrale #banner button { min-height: 30px; padding: 4px 12px; font-size: 13px; border-radius: 99px; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 80; width: max-content; max-width: calc(100vw - 32px); background: #1d1d1b; color: #fff; border-radius: 10px; padding: 10px 16px; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }

/* Vorgang: am Rechner Seitenfenster über der Ansicht, am Handy ganze Seite */
@media (min-width: 1000px) {
  body.zentrale #vSchatten { position: fixed; top: var(--kopf, 64px); left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .32); z-index: 19; }
  body.zentrale #vVorgang { position: fixed; top: var(--kopf, 64px); right: 0; bottom: 0; width: clamp(600px, 46vw, 760px); max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 48px; background: var(--bg); box-shadow: -8px 0 32px rgba(0, 0, 0, .22); z-index: 20; }
  body.zentrale #vVorgang .card { padding: 14px 18px; }
  body.zentrale #vVorgang .it-top b { font-size: 15px; }
  body.zentrale #vVorgang .it small { font-size: 13px; }
  body.zentrale #vVorgang .acts { gap: 8px; margin-top: 8px; }
  body.zentrale #vVorgang .acts button, body.zentrale #vVorgang a.btnlink { min-height: 36px; padding: 6px 14px; font-size: 14px; }
  body.zentrale #vVorgang button.zurueck { display: inline-block; min-height: 32px; padding: 4px 14px; font-size: 13px; float: right; }
  body.zentrale #vVorgang h2.vk { margin-top: 2px; }
  body.zentrale #pipeBody { height: calc(100vh - var(--kopf, 64px) - 100px); }
}
body.zentrale a.btnlink.primbtn, body.zentrale #vVorgang a.btnlink.primbtn, body.zentrale #vVorgang button.primbtn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 56px; padding: 12px 16px; font-size: 17px; font-weight: 700; background: var(--g2); color: #fff; border: 0; border-radius: 10px; }
body.zentrale .prim .acts { margin-top: 10px; }
body.zentrale .prim .warnbar { margin: 8px 0; }

/* Nachrichten: Senden als Hauptknopf, Rest unter „Mehr“ */
body.zentrale .nach button.sendbtn { flex: 1 1 180px; min-height: 48px; font-size: 16px; font-weight: 700; background: var(--g2); color: #fff; }
body.zentrale details.mehr { margin-top: 6px; }
body.zentrale details.mehr > summary { font-size: 13px; font-weight: 600; color: #454f5e; padding: 6px 0; }

/* Mehrere Anfragen einer Nummer */
body.zentrale .gz { border-top: 1px solid #eeeeed; padding: 8px 0 8px 10px; }
body.zentrale .gz b { font-size: 14px; }

/* Handbremse: eine Zeile */
body.zentrale .hb-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff3cd; border: 1px solid #ecd58a; border-radius: 10px; padding: 5px 8px 5px 12px; margin: 0 0 10px; font-size: 13.5px; grid-column: 1 / -1; }
body.zentrale .hb-zeile b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.zentrale .hb-zeile > span { font-size: 12.5px; color: #5a4a10; text-align: right; }
body.zentrale .nurschmal { display: none; }
body.zentrale button.hb-knopf { display: inline-block; flex: none; min-height: 28px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; background: #fff; color: var(--g); border: 1px solid #c9c9c6; border-radius: 8px; }
body.zentrale .hb-fuss { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 440px) { body.zentrale .nurbreit { display: none; } body.zentrale .nurschmal { display: inline; } }

/* Heute: vier Kacheln, darunter Abschnitte */
body.zentrale .naechst .ns-kacheln.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.zentrale .naechst .ns-kachel { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; }
body.zentrale .naechst .ns-kachel small { overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  body.zentrale .naechst .ns-kacheln.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.zentrale #vHeute > .abschnitte { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; align-items: start; }
  body.zentrale .abschnitte > .card { max-height: calc(100vh - 160px); overflow-y: auto; }
  body.zentrale .abschnitte > .card[data-key=freigabe] { grid-column: 1 / -1; max-height: none; }
}

/* Pipeline: Erklärungen hinter dem Info-Symbol */
body.zentrale .pipe-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
body.zentrale .pipe-kopf .check { flex: 0 1 auto; margin: 0; padding: 8px 12px; font-size: 14px; }
body.zentrale button.info-knopf { display: inline-block; min-height: 38px; padding: 6px 12px; font-size: 14px; background: #fff; color: var(--g); border: 1px solid #d6d6d1; }
body.zentrale button.info-i { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 32px; height: 32px; min-height: 0; padding: 0; margin: -4px 0 -4px 6px; border-radius: 99px; background: transparent; color: #454f5e; font-size: 18px; font-weight: 400; flex: none; }
body.zentrale button.info-i:hover { background: #fff; }
body.zentrale #pipeBody .pt-titel { min-width: 0; }
@media (min-width: 1000px) { body.zentrale #pipeBody details.card > summary .pt-titel { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-right: 4px; } }
body.zentrale .hilfe-box h3 { font-size: 15px; margin: 14px 0 4px; }
body.zentrale .hilfe-box ul.erkl { list-style: disc; padding-left: 20px; margin: 4px 0 8px; }
body.zentrale .hilfe-box ul.erkl li { display: list-item; border: 0; padding: 3px 0; font-size: 14.5px; line-height: 1.45; }
body.zentrale .info-box { max-width: 640px; }
