/* LOGIMAT-Ergänzungen zum Design 2027 (Gelb #FEEE19, Arial) */
body { font-family: Arial, Helvetica, sans-serif; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 label, .grid-3 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lm-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.lm-or { color: #777; }
.lm-msg { font-size: 13px; color: #555; }
.lm-msg.err { color: #b00020; }
.lm-current { font-size: 12px; color: #e8e8e8; margin-right: 10px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-drop { border: 2px dashed #c9c9c9; border-radius: 8px; padding: 26px; text-align: center; background: #fafafa; }
.lm-drop.over { border-color: #000; background: #fffbd1; }
.lm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lm-stat span { display: inline-block; padding: 3px 8px; border-radius: 10px; margin-left: 6px; font-size: 12px; background: #eee; }
.lm-stat .ok { background: #e3f4e1; }
.lm-stat .fehlt { background: #FEEE19; }
table.lm { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.lm th { text-align: left; background: #17191d; color: #fff; padding: 6px 8px; font-weight: 600; }
table.lm td { border-bottom: 1px solid #e6e6e6; padding: 5px 8px; vertical-align: top; }
table.lm td.num, table.lm th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.lm tr.sum td { font-weight: 700; border-top: 2px solid #17191d; }
table.lm input, table.lm select { width: 100%; box-sizing: border-box; font: inherit; padding: 3px 5px; border: 1px solid #ccc; border-radius: 4px; }
table.lm input.num { text-align: right; max-width: 120px; }
.lm-pruef table.lm td:first-child { width: 120px; color: #666; }
tr.st-fehlt td { background: #FEEE19 !important; }
tr.st-nicht td { background: #f4f4f4; color: #777; }
tr.st-geprueft td:last-child::after { content: " ✓"; color: #2e7d32; }
.lm-badge { font-size: 11px; background: #FEEE19; color: #000; padding: 2px 8px; border-radius: 10px; vertical-align: middle; font-weight: 600; }
.lm-warn { border-left: 5px solid #999; padding: 8px 12px; margin: 6px 0; background: #fafafa; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lm-warn.hoch { border-color: #d32f2f; background: #fdecea; }
.lm-warn.mittel { border-color: #f9a825; background: #fff8e1; }
.lm-warn.info { border-color: #90a4ae; }
.lm-warn small { color: #666; text-transform: uppercase; font-size: 10px; letter-spacing: .5px; margin-right: 8px; }
.lm-totale { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.lm-totale div { background: #f6f6f6; border-radius: 8px; padding: 10px 12px; }
.lm-totale div.gelb { background: #FEEE19; }
.lm-totale b { display: block; font-size: 20px; margin-top: 4px; }
.lm-totale span { font-size: 12px; color: #444; }
.lm-switches { display: grid; gap: 10px; }
.lm-switch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 8px; }
.lm-switch.big { border: 2px solid #17191d; background: #fffde6; }
.lm-switch input[type=checkbox] { width: 20px; height: 20px; accent-color: #17191d; }
.lm-switch strong { min-width: 260px; }
.lm-json { width: 100%; min-height: 520px; font-family: Consolas, monospace; font-size: 12px; }
.zk { background: #FEEE19; padding: 0 3px; }
.lm-uebersicht-placeholder { color: #777; font-style: italic; }
/* Einspaltiges Arbeitslayout (breite Tabellen) */
main .workspace { display: block !important; max-width: 1280px; margin: 0 auto; padding: 18px 20px 40px; }
main .workspace > .block { margin-bottom: 18px; width: auto; }
/* Offertsprache (0.3.0): gut sichtbare Umschalter DE/EN/FR */
.lm-lang { display: inline-flex; border: 2px solid #17191d; border-radius: 8px; overflow: hidden; background: #fff; }
.lm-lang button { border: 0; background: #fff; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; color: #17191d; }
.lm-lang button + button { border-left: 1px solid #17191d; }
.lm-lang button.on { background: #ffd200; }
.lm-lang button:disabled { cursor: default; opacity: .6; }
.lm-lang-row { align-items: center; gap: 12px; flex-wrap: wrap; }
.lm-lang-gross { padding: 10px 12px; margin-bottom: 12px; background: #fffde6; border: 2px solid #17191d; border-radius: 8px; }
.lm-lang-top { border-width: 1px; margin-right: 8px; align-items: center; }
.lm-lang-top .lm-lang-lbl { padding: 0 8px; font-size: 12px; color: #555; background: #fff; }
.lm-lang-top button { padding: 4px 9px; font-size: 13px; }
.lm-version { font-weight: 600; }
.lm-version .hint { font-weight: 400; color: #555; }
/* Archiv pro Kunde */
.lm-suche { min-width: 280px; }
.lm-kunde { border: 1px solid #ddd; border-radius: 8px; margin: 10px 0; background: #fff; }
.lm-kunde > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; display: flex; gap: 12px; align-items: center; list-style: none; }
.lm-kunde > summary::-webkit-details-marker { display: none; }
.lm-kunde > summary::before { content: "▸"; width: 1em; }
.lm-kunde[open] > summary::before { content: "▾"; }
.lm-kunde > summary .lm-cnt { font-weight: 400; color: #555; font-size: 13px; }
.lm-kunde-body { padding: 0 14px 12px; }
.lm-offerte { border-top: 1px solid #eee; padding: 10px 0; }
.lm-offerte-kopf { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lm-offerte-kopf .titel { font-weight: 600; }
.lm-offerte-kopf .meta { color: #555; font-size: 13px; }
.lm-offerte-kopf .aktion { margin-left: auto; display: flex; gap: 6px; }
table.lm-versionen { margin-top: 6px; }
table.lm-versionen td, table.lm-versionen th { padding: 4px 8px; }
.lm-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #eee; font-size: 12px; font-weight: 600; }
.lm-tag.lang { background: #ffd200; }
.lm-dl a { margin-right: 6px; white-space: nowrap; }

/* Sticky Totale-Leiste unter dem Menü (0.3.2, Entwurf A) */
.lm-sticky-kopf {
  position: sticky;
  top: 0;
  z-index: 60;
}
.lm-sticky-kopf .topbar {
  position: relative !important;
  top: auto !important;
}
.lm-leiste {
  background: #fff;
  border-bottom: 1px solid rgba(23, 25, 29, .12);
  box-shadow: 0 6px 16px rgba(23, 25, 29, .08);
}
body.is-login-locked .lm-leiste { display: none !important; }
.lm-leiste-zeile {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  padding: 8px 20px;
  min-height: 56px;
  max-width: 1440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.lm-leiste-titel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
  flex: 0 0 auto;
  padding-right: 8px;
  border-right: 2px solid #FEEE19;
  line-height: 1.2;
}
.lm-leiste-kpis {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.lm-kpi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lm-kpi span {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
}
.lm-kpi b {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #17191d;
  white-space: nowrap;
}
.lm-kpi.haupt {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #FEEE19;
  border: 2px solid #17191d;
  border-radius: 10px;
  padding: 5px 14px 5px 12px;
  box-shadow: 0 2px 0 rgba(23, 25, 29, .08);
}
.lm-kpi.haupt span {
  color: #17191d;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
.lm-kpi.haupt b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lm-leiste-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
#btnTotaleDetails::after { content: " ▸"; }
#btnTotaleDetails[aria-expanded="true"]::after { content: " ▾"; }
.lm-leiste-panel {
  padding: 4px 20px 14px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid #eee;
  background: #fff;
}
.lm-leiste-panel .lm-leiste-tabelle { margin-top: 8px; max-width: 920px; }
@media (max-width: 900px) {
  .lm-leiste-zeile { flex-wrap: wrap; }
  .lm-kpi.haupt b { font-size: 18px; }
}
/* Schritt 4 Software (0.4.0): Abschnitte, Optionskarten im SSI-Design, Summenleiste */
.lm-sw-step { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; }
.lm-sw-step .nr { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #FEEE19; color: #17191d; font-weight: 800; align-items: center; justify-content: center; border: 2px solid #17191d; }
.lm-sw-step h3 { margin: 0; font-size: 17px; }
.lm-sw-step .field-hint { margin-left: 6px; }
.lm-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lm-choice label { display: block; border: 2px solid #ddd; border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.lm-choice label.on { border-color: #17191d; box-shadow: inset 6px 0 0 #FEEE19; }
.lm-choice input { margin-right: 8px; accent-color: #17191d; }
.lm-choice .sub { display: block; color: #555; font-size: 13px; margin-top: 4px; }
.lm-mengen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lm-menge { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; background: #fff; }
.lm-menge .lbl { font-size: 13px; color: #555; }
.lm-menge .wert { font-size: 24px; font-weight: 800; }
.lm-menge input { width: 90px; }
.lm-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #FEEE19; color: #17191d; }
.lm-chip.grau { background: #eee; }
.lm-chip.rot { background: #ffd9d6; color: #8a1c12; }
.lm-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.lm-karte { position: relative; border: 1px solid #ddd; border-radius: 12px; padding: 12px 14px 12px 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.lm-karte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 12px 0 0 12px; background: #e6e6e6; }
.lm-karte.on { border-color: #17191d; }
.lm-karte.on::before { background: #FEEE19; }
.lm-karte.aus { opacity: .55; }
.lm-karte .kopf { display: flex; gap: 8px; align-items: flex-start; }
.lm-karte .kopf input { width: 20px; height: 20px; accent-color: #17191d; margin-top: 2px; }
.lm-karte .titel { font-weight: 700; }
.lm-karte .nutzen { font-size: 13px; color: #444; min-height: 34px; }
.lm-karte .aufwand { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.lm-karte .aufwand span { background: #f4f4f4; border-radius: 6px; padding: 2px 6px; }
.lm-karte .preis { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #ddd; padding-top: 6px; }
.lm-karte .preis strong { font-size: 16px; }
.lm-karte .preis small { color: #666; }
.lm-karte .ek { font-size: 12px; color: #666; }
.lm-karte .override input { width: 70px; }
.lm-nicht { margin-top: 8px; }
.lm-nicht li { margin: 2px 0; }
.lm-sumbar { position: sticky; bottom: 0; z-index: 20; background: #17191d; color: #fff; border-top: 4px solid #FEEE19; padding: 10px 24px; display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; justify-content: center; }
.lm-sumbar span { font-size: 13px; color: #ddd; }
.lm-sumbar b { color: #fff; font-size: 15px; }
.lm-sumbar .total b { color: #FEEE19; font-size: 18px; }
.lm-sw-summary { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 8px; background: #fff; }


/* Schritt 4 Software 0.4.0 Entwurf B: Reiter + Zeilenliste */
.lm-sw-tabs { display: flex; gap: 8px; margin: 8px 0 14px; }
.lm-sw-tab {
  flex: 1; text-align: center; border: 2px solid #ddd; border-radius: 10px;
  padding: 10px 12px; background: #fff; font-weight: 700; font-size: 15px; color: #17191d;
  cursor: pointer;
}
.lm-sw-tab .sub { display: block; font-weight: 600; font-size: 13px; color: #555; margin-top: 2px; }
.lm-sw-tab.on { border-color: #17191d; background: #fffde6; box-shadow: inset 0 -4px 0 #FEEE19; }
.lm-sw-tab.done { border-color: #17191d; }
.lm-sw-pane { background: #fff; border: 1px solid #d5d5d5; border-radius: 4px; padding: 10px 12px 12px; }
.lm-sw-pane-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lm-sw-pane-head h3 { margin: 0; font-size: 17px; flex: 1; }
.lm-sw-pane-head .lm-zw { margin-left: auto; font-size: 14px; white-space: nowrap; }
.lm-sw-pane-head .lm-zw b { font-size: 17px; }
.lm-sw-switch {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FEEE19; border: 2px solid #17191d; border-radius: 999px;
  padding: 3px 12px 3px 8px; font-weight: 700; font-size: 13px; color: #17191d;
}
.lm-sw-switch.off { background: #eee; border-color: #bbb; color: #555; }
.lm-sw-switch input { width: 16px; height: 16px; accent-color: #17191d; margin: 0; }
.lm-sw-cfg { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.lm-sw-cfg label { display: inline-flex; align-items: center; gap: 6px; }
.lm-sw-cfg input[type=number], .lm-sw-cfg input.num { width: 56px; }
.lm-sw-reise { flex: 1 1 100%; margin: 2px 0 8px; font-size: 12px; color: #555; }
.lm-sw-reise.err { color: #b00020; }
.lm-seg { display: inline-flex; border: 2px solid #17191d; border-radius: 8px; overflow: hidden; background: #fff; }
.lm-seg button { border: 0; background: #fff; padding: 4px 10px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.lm-seg button + button { border-left: 1px solid #17191d; }
.lm-seg button.on { background: #ffd200; }
table.lm-opt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lm-opt th { text-align: left; background: #17191d; color: #fff; padding: 6px 8px; font-weight: 600; }
table.lm-opt th.num, table.lm-opt td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.lm-opt td { border-bottom: 1px solid #e6e6e6; padding: 4px 8px; vertical-align: middle; }
table.lm-opt td.chk { width: 44px; text-align: center; }
table.lm-opt input[type=checkbox] { width: 16px; height: 16px; accent-color: #17191d; }
table.lm-opt .tag { display: inline-block; font-size: 10px; font-weight: 700; background: #eee; border-radius: 4px; padding: 0 5px; color: #555; margin-left: 4px; }
table.lm-opt tr.auto td { background: #fafafa; }
table.lm-opt tr.on td { background: #fffde6; }
table.lm-opt tr.off td { color: #888; }
table.lm-opt tr.off td.num { color: #aaa; }
table.lm-opt tr.man td { background: #fffce8; }
table.lm-opt tr.zw td { font-weight: 800; border-top: 2px solid #17191d; background: #fffde6; }
table.lm-opt tr.lizenz td { font-weight: 700; }
table.lm-opt input.hrs { width: 52px; text-align: right; }
.lm-sw-hw { font-size: 12px; color: #555; margin: 0 0 8px; }
#swSummenleiste { display: none !important; }

.lm-opt-kapitel { flex-wrap: wrap; max-width: 100%; }
.lm-opt-kapitel button { padding: 8px 16px; }

/* Maschinengruppen (mehrere Gruppen im IC) */
table.lm tr.lm-gruppe th { background: #FFF9C4 !important; color: #111 !important; text-align: left; font-weight: 700; font-size: 13px; }
table.lm.lm-gruppenpreise { margin: 4px 0; }
table.lm.lm-gruppenpreise th { font-size: 12px; }

/* Personen (0.5.1, wie WLS) */
.lm-personen { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.lm-personen-gruppe { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 8px; }
.lm-personen-gruppe h3 { margin: 0; font-size: 14px; }
.lm-person { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lm-person select { max-width: 100%; }
.lm-person-meta { font-size: 12px; color: #555; min-height: 1em; }
.lm-person-meta.leer { color: #8a6d00; }
.lm-kontakt-form { margin-top: 14px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 8px; }
#kontakteTabelle td.aktionen { white-space: nowrap; }
#kontakteTabelle tr.inaktiv td { color: #888; }

/* Hardware-Optionen-Checkliste (0.5.3) */
.lm-hwopt { width: 100%; border-collapse: collapse; font-size: 13px; }
.lm-hwopt th, .lm-hwopt td { border-bottom: 1px solid #e3e3e3; padding: 8px 6px; vertical-align: top; }
.lm-hwopt th { text-align: left; background: #f6f6f6; font-weight: 600; }
.lm-hwopt .hw-opt { display: flex; gap: 10px; align-items: flex-start; }
.lm-hwopt .hw-opt img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; background: transparent; }
.lm-hwopt .hw-opt strong { display: block; }
.lm-hwopt .hw-opt .hw-text { color: #444; font-size: 12px; margin-top: 2px; }
.lm-hwopt .hw-zust { display: flex; flex-wrap: wrap; gap: 4px; }
.lm-hwopt .hw-zust label { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d0d0d0; border-radius: 14px; padding: 2px 8px; cursor: pointer; font-size: 12px; background: #fff; }
.lm-hwopt .hw-zust label.on-lieferumfang { border-color: #1b7a3a; background: #e8f6ec; }
.lm-hwopt .hw-zust label.on-optional { border-color: #0b5cad; background: #e8f1fb; }
.lm-hwopt .hw-zust label.on-nicht { border-color: #999; background: #f3f3f3; color: #555; }
.lm-hwopt .hw-preis { white-space: nowrap; }
.lm-hwopt .hw-preis input, .lm-hwopt .hw-preis select { width: 88px; }
.lm-hwopt .hw-preis .zk { background: #fff3b0; padding: 1px 6px; border-radius: 3px; }
.lm-hwopt .hw-erkannt { font-size: 11px; color: #1b7a3a; }
.lm-hwopt select.hw-zust-sel,
table.lm-opt select.sw-zust-sel {
  min-width: 12.2em; max-width: 16em; font-size: 12px; padding: 3px 6px;
  border-radius: 8px; border: 1px solid #d0d0d0; background: #fff; cursor: pointer;
}
.lm-hwopt select.hw-zust-sel.on-lieferumfang,
table.lm-opt select.sw-zust-sel.on-lieferumfang { border-color: #1b7a3a; background: #e8f6ec; }
.lm-hwopt select.hw-zust-sel.on-optional,
table.lm-opt select.sw-zust-sel.on-optional { border-color: #0b5cad; background: #e8f1fb; }
.lm-hwopt select.hw-zust-sel.on-nicht,
table.lm-opt select.sw-zust-sel.on-nicht { border-color: #999; background: #f3f3f3; color: #555; }
.lm-hwopt tr.hw-inkomp { background: #f6f6f6; }
.lm-hwopt select.hw-zust-sel:disabled { opacity: 0.65; cursor: not-allowed; background: #ececec; }
.lm-hwopt .hw-inkomp-hint { font-size: 11px; color: #5c4a00; background: #fff3cd; padding: 2px 6px; border-radius: 3px; margin-top: 4px; display: inline-block; }
table.lm-opt td.chk select.sw-zust-sel { width: 100%; }

table.lm-opt td.chk { width: 1%; white-space: nowrap; vertical-align: top; }
table.lm-opt .sw-zust { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 9.5rem; }
table.lm-opt .sw-zust label { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d0d0d0; border-radius: 14px; padding: 1px 8px; cursor: pointer; font-size: 11px; background: #fff; }
table.lm-opt .sw-zust label.on-lieferumfang { border-color: #1b7a3a; background: #e8f6ec; }
table.lm-opt .sw-zust label.on-optional { border-color: #0b5cad; background: #e8f1fb; }
table.lm-opt .sw-zust label.on-nicht { border-color: #999; background: #f3f3f3; color: #555; }
table.lm-opt .sw-zust input[type=radio] { width: 12px; height: 12px; accent-color: #17191d; }
table.lm-opt tr.optional td { background: #f4f8fd; }
table.lm-opt tr.it-fehlt td { background: #fff3cd; }
table.lm-opt tr.it-fehlt input.hrs { border: 1px solid #c62828; background: #fdecea; }
table.lm-opt .tag.it-warn { background: #FEEE19; color: #5c4a00; }
table.lm-opt label.it-schatz { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 10px; color: #5c4a00; font-weight: 600; }


.lm-leiste-warn { padding: 0 12px 8px; }
.lm-leiste-warn-item { background: #fdecea; color: #7a1010; border-left: 4px solid #d32f2f; padding: 5px 10px; font-size: 12px; font-weight: 600; margin-top: 4px; }

.lm-std-feld { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.lm-miettage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.lm-miettage .field-hint { flex: 1 1 100%; margin: 0; font-size: 12px; color: #555; }

/* Zubehör / LMB (0.5.23) */
.zb-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 16px; margin: 12px 0; }
.zb-params label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.zb-params .lm-std-feld { margin-top: 2px; }
.zb-params input[type="number"], .zb-params select { font: inherit; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; }
.zb-runden { display: flex; flex-direction: row !important; align-items: center; gap: 8px; }
.zb-warn { background: #fff4f4; border: 1px solid #e30613; padding: 8px 10px; margin: 8px 0; font-size: 13px; }
.zb-ok { background: #f3f8f3; border: 1px solid #8c8; padding: 8px 10px; margin: 8px 0; font-size: 13px; }
.zb-sum { margin-top: 12px; }
.zb-typ img { width: 64px; height: auto; display: block; }
#zubehoerInhalt table.lm td.zb-typ {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 16rem;
  white-space: nowrap;
  vertical-align: middle;
}
#zubehoerInhalt table.lm td.zb-typ .zb-typ-text { min-width: 0; }
#zubehoerInhalt table.lm td.zb-typ strong,
#zubehoerInhalt table.lm td.zb-typ .field-hint { white-space: nowrap; }
#zubehoerInhalt table.lm th.zb-status,
#zubehoerInhalt table.lm td.zb-status {
  width: 1%;
  min-width: 12.2em;
  white-space: nowrap;
  vertical-align: middle;
}
#zubehoerInhalt table.lm td.zb-status select.hw-zust-sel {
  min-width: 12.2em;
  width: auto;
  max-width: none;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  background: #fff;
  cursor: pointer;
}
#zubehoerInhalt table.lm td.zb-status select.hw-zust-sel.on-lieferumfang { border-color: #1b7a3a; background: #e8f6ec; }
#zubehoerInhalt table.lm td.zb-status select.hw-zust-sel.on-optional { border-color: #0b5cad; background: #e8f1fb; }
#zubehoerInhalt table.lm td.zb-status select.hw-zust-sel.on-nicht { border-color: #999; background: #f3f3f3; color: #555; }
.zb-rest { display: flex; gap: 18px; align-items: flex-start; margin: 12px 0 4px; flex-wrap: wrap; }
.zb-skizze { background: #fafafa; border: 1px solid #ddd; padding: 8px; }
.zb-vorschlag { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.zb-vorschlag button { font-size: 12px; }
.zb-mix-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0; padding: 8px; border: 1px solid #eee; }
.zb-aus-ic { font-size: 11px; color: #336; background: #eef3f8; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.lm-ro-wert { display: inline-block; min-width: 4.5rem; padding: 4px 8px; background: #f4f4f4; border: 1px solid #ddd; border-radius: 4px; font-variant-numeric: tabular-nums; }
.lm-ro-wert.leer { color: #a33; background: #fdf2f2; border-color: #e8c8c8; }

.zb-pms { margin-top: 16px; }
table.lm input.zb-eng { max-width: 72px; }

/* Stammdaten-Maske (0.5.25) */
.stamm-maske { display: flex; flex-direction: column; gap: 22px; }
.stamm-abschnitt { border: 1px solid #e2e2e2; border-radius: 8px; padding: 14px 16px 16px; background: #fff; }
.stamm-abschnitt h3 { margin: 0 0 6px; font-size: 16px; }
.stamm-abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.stamm-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; }
.stamm-feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.stamm-feld.stamm-liste { grid-column: 1 / -1; }
.stamm-feld .stamm-einheit { color: #555; font-weight: 400; }
.stamm-feld input, .stamm-feld select, .stamm-feld textarea { font: inherit; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; }
.stamm-feld .field-hint { margin: 0; font-size: 11px; color: #666; line-height: 1.35; }
.stamm-feld .lm-std-feld { margin-top: 0; }
.stamm-tabelle { width: 100%; overflow-x: auto; }
.stamm-tabelle table { width: 100%; }
.stamm-roh { margin-top: 20px; }
.stamm-roh summary { cursor: pointer; font-weight: 600; }

th.zb-modus { cursor: pointer; user-select: none; }
th.zb-modus:hover { background: #fff6b0; }
th.zb-modus.on { background: #feee19; font-weight: 700; }
th.zb-modus.on::after { content: " ⇄"; font-weight: 400; opacity: .7; }

/* Software-Schritt 4: Stammdaten-Tabellenstil (Bezeichnung | Wert | Standard) */
.lm-sw-stamm { margin: 0 0 14px; }
table.lm.lm-sw-felder { margin-top: 0; }
table.lm.lm-sw-felder td { vertical-align: middle; }
table.lm.lm-sw-felder td:first-child { width: 28%; font-weight: 600; color: #17191d; }
table.lm.lm-sw-felder td:last-child { width: 9.5rem; white-space: nowrap; }
table.lm.lm-sw-felder .lm-sw-wert { display: inline-flex; align-items: center; gap: 8px; }
table.lm.lm-sw-felder .lm-sw-wert input.num { max-width: 120px; }
table.lm.lm-sw-felder .stamm-einheit { color: #555; font-weight: 400; font-size: 12px; }
table.lm.lm-sw-felder .lm-sw-hint { color: #666; font-size: 11px; font-weight: 400; }
table.lm.lm-sw-felder .lm-sw-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
table.lm.lm-sw-felder .lm-sw-check input[type=checkbox] { width: 16px; height: 16px; max-width: 16px; }
table.lm.lm-sw-felder .lm-msg { margin: 0; font-size: 12px; }
table.lm.lm-sw-felder .lm-seg button { font: inherit; }
