/* ═══════════════════════════════════════════════════════════════════════════
   MODUL: Abnahmen / Übergaben – Styles (CSS-Namespace: ho-)
   Nutzt die zentralen Design-Tokens aus design-system.css (mit Fallbacks).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Filterleiste ──────────────────────────────────────────────────────────── */
.ho-filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-4, 16px); align-items: flex-end;
  padding: var(--space-4, 16px); background: var(--bg-secondary, #fff);
  border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-xl, 12px);
  margin-bottom: var(--space-4, 16px);
}
.ho-filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
/* `.ho-filter-object` entfiel am 17.08.2026 (ein Objektkontext, in der Hauptnavigation). */
.ho-filter-search { flex: 1 1 220px; }
.ho-filter-label {
  font-size: var(--font-size-xs, 12px); font-weight: 600;
  color: var(--text-muted, #5F6B66); text-transform: uppercase; letter-spacing: .03em;
}
.ho-count-bar { font-size: var(--font-size-sm, 13px); color: var(--text-muted, #5F6B66); margin-bottom: var(--space-2, 8px); }

/* ── Tabelle ──────────────────────────────────────────────────────────────── */
.ho-table-wrap {
  background: var(--bg-secondary, #fff); border: 1px solid var(--border-light, #D8DFDC);
  border-radius: var(--radius-xl, 12px); overflow: hidden;
}
.ho-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm, 13px); }
.ho-table thead { background: var(--bg-tertiary, #EFF2F1); }
.ho-table thead th {
  text-align: left; padding: var(--space-3, 12px) var(--space-4, 16px);
  font-weight: 600; color: var(--text-primary, #263029); white-space: nowrap;
  border-bottom: 2px solid var(--border-light, #D8DFDC);
}
.ho-table tbody td { padding: var(--space-3, 12px) var(--space-4, 16px); border-bottom: 1px solid var(--border-light, #eef2f7); vertical-align: middle; }
.ho-row { cursor: pointer; transition: background .12s; }
.ho-row:hover { background: var(--bg-hover, #FAFBFA); }
.ho-row-actions { text-align: right; white-space: nowrap; }

/* ── Badges / Chips / Pills ────────────────────────────────────────────────── */
.ho-badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; }
.ho-lock { font-size: var(--text-xxs); }

.ho-type-chip { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.ho-type-uebergabe          { background: var(--green-50); color: var(--green-700); }
.ho-type-abnahme            { background: var(--green-50); color: var(--color-success-ink); }
.ho-type-rueckgabe          { background: var(--color-warning-soft); color: var(--color-warning-ink); }
.ho-type-schluesseluebergabe{ background: var(--color-info-soft); color: var(--color-info); }
.ho-type-zustandsprotokoll  { background: var(--color-info-soft); color: var(--color-info-ink); }
.ho-type-maengelprotokoll   { background: var(--color-danger-soft); color: var(--color-danger); }

.ho-pill { display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill); font-size: var(--text-xxs); font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.ho-pill-ok   { background: var(--green-50); color: var(--color-success-ink); }
.ho-pill-warn { background: var(--color-warning-soft); color: var(--color-warning-ink); }
.ho-pill-info { background: var(--green-50); color: var(--green-700); }

/* ── Empty / Error ──────────────────────────────────────────────────────────── */
.ho-empty { text-align: center; padding: 48px 16px; color: var(--text-muted, #5F6B66); background: var(--bg-secondary, #fff); border: 1px dashed var(--border-light, #D8DFDC); border-radius: var(--radius-xl, 12px); }
.ho-empty-title { font-size: var(--text-base); font-weight: 600; color: var(--text-primary, #263029); }
.ho-empty-hint { font-size: var(--text-sm); margin-top: 4px; }
.ho-empty.ho-error { color: var(--color-danger-ink); border-color: var(--color-danger-soft); }
.ho-empty-inline { padding: 16px; text-align: center; color: var(--text-muted, #5F6B66); font-size: var(--text-sm); background: var(--bg-tertiary, #FAFBFA); border-radius: var(--radius-lg, 8px); }

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.ho-modal-overlay {
  position: fixed; inset: 0; background: rgba(40, 30, 20, .5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1200; padding: 24px;
}
.ho-modal {
  background: var(--bg-secondary, #fff); border-radius: var(--radius-xl, 12px);
  box-shadow: 0 24px 64px rgba(40, 30, 20, .3);
  width: 100%; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.ho-modal-sm { max-width: 640px; }
.ho-modal-lg { max-width: 920px; }
.ho-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: var(--space-5, 20px) var(--space-6, 24px); border-bottom: 1px solid var(--border-light, #D8DFDC);
}
.ho-modal-eyebrow { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ho-modal-title { font-size: 19px; font-weight: 700; margin: 0; color: var(--text-primary, #263029); }
.ho-head-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.ho-meta-chip { font-size: var(--text-xs); color: var(--text-secondary, #3A4441); background: var(--bg-tertiary, #EFF2F1); padding: 2px 8px; border-radius: var(--radius-sm); }
.ho-meta-link { cursor: pointer; }
.ho-meta-link:hover { background: var(--green-50); color: var(--green-700); }
.ho-head-actions { display: flex; gap: 8px; align-items: center; }
.ho-modal-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-muted, #5F6B66); padding: 0 4px; }
.ho-modal-close:hover { color: var(--text-primary, #263029); }
.ho-modal-body { padding: var(--space-6, 24px); overflow-y: auto; }
.ho-modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: var(--space-4, 16px) var(--space-6, 24px); border-top: 1px solid var(--border-light, #D8DFDC); background: var(--bg-tertiary, #FAFBFA); }

/* ── Detail-Tabs ──────────────────────────────────────────────────────────── */
.ho-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 var(--space-6, 24px); border-bottom: 1px solid var(--border-light, #D8DFDC); background: var(--bg-secondary, #fff); }
.ho-tab {
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 12px 14px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted, #5F6B66); white-space: nowrap;
}
.ho-tab:hover { color: var(--text-primary, #263029); }
.ho-tab.active { color: var(--color-primary-600, #0F5C42); border-bottom-color: var(--color-primary-600, #0F5C42); }
.ho-tab-count { display: inline-block; background: var(--bg-tertiary, #D8DFDC); border-radius: var(--radius-pill); font-size: var(--text-xxs); padding: 0 6px; margin-left: 4px; }

/* ── Banner / Notes ──────────────────────────────────────────────────────────── */
.ho-lock-banner { background: var(--color-warning-soft); color: var(--color-warning-ink); padding: 10px 24px; font-size: var(--text-sm); border-bottom: 1px solid var(--color-warning-soft); }
.ho-info-banner { background: var(--green-50); color: var(--green-700); padding: 10px 14px; border-radius: var(--radius-lg, 8px); font-size: var(--text-sm); margin-bottom: 16px; }
.ho-info-warn { background: var(--color-warning-soft); color: var(--color-warning-ink); }
.ho-muted-note { color: var(--text-muted, #5F6B66); font-size: var(--text-sm); padding: 8px 0; }
.ho-roadmap-note { background: var(--bg-tertiary, #FAFBFA); border: 1px dashed var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); padding: 12px 14px; font-size: var(--text-xs); color: var(--text-secondary, #3A4441); margin-top: 12px; }
.ho-roadmap-note code { background: var(--gray-300); padding: 1px 5px; border-radius: 4px; font-size: var(--text-xs); }
.ho-linkbtn { background: none; border: none; color: var(--color-primary-600, #0F5C42); cursor: pointer; font-size: var(--text-sm); font-weight: 600; padding: 0; text-decoration: underline; }

/* ── Sektionen / Formulare ─────────────────────────────────────────────────── */
.ho-section { display: block; }
.ho-subhead { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary, #263029); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.ho-hint { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); margin: 0 0 10px; }
.ho-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ho-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.ho-form-error { color: var(--color-danger-ink); font-size: var(--text-sm); margin-top: 8px; }
.ho-check { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-secondary, #3A4441); margin: 8px 0; cursor: pointer; }
.ho-addform { background: var(--bg-tertiary, #FAFBFA); border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); padding: 16px; margin-bottom: 16px; }
.ho-hint { display: inline; }

/* ── Karten / Listen ──────────────────────────────────────────────────────── */
.ho-list { display: flex; flex-direction: column; gap: 8px; }
.ho-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--bg-secondary, #fff); border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); }
.ho-card-click { cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ho-card-click:hover { border-color: var(--color-primary-400, #6FAE86); box-shadow: var(--shadow-sm, 0 1px 3px rgba(40, 30, 20,.1)); }
.ho-card-defect { border-left: 3px solid var(--color-danger); }
.ho-card-main { flex: 1; min-width: 0; }
.ho-card-title { font-size: var(--text-md); font-weight: 600; color: var(--text-primary, #263029); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ho-card-sub { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); margin-top: 3px; }
.ho-card-actions { display: flex; gap: 6px; align-items: center; }
.ho-del { background: none; border: none; color: var(--text-muted, #5F6B66); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ho-del:hover { color: var(--color-danger); }

/* ── Key/Value ──────────────────────────────────────────────────────────────── */
.ho-kv { width: 100%; border-collapse: collapse; }
.ho-kv th { text-align: left; width: 160px; color: var(--text-muted, #5F6B66); font-weight: 600; padding: 6px 8px; vertical-align: top; font-size: var(--text-sm); }
.ho-kv td { padding: 6px 8px; font-size: var(--text-sm); color: var(--text-primary, #263029); }
.ho-abschluss-actions, .ho-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-danger-text { color: var(--color-danger-ink); }

/* ── Timeline ──────────────────────────────────────────────────────────────── */
.ho-timeline { display: flex; flex-direction: column; gap: 0; }
.ho-tl-item { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.ho-tl-item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--border-light, #D8DFDC); }
.ho-tl-item:last-child::before { display: none; }
.ho-tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary-500, #147352); margin-top: 3px; flex-shrink: 0; z-index: 1; }
.ho-tl-head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-sm); }
.ho-tl-date { color: var(--text-muted, #5F6B66); font-size: var(--text-xs); }
.ho-tl-text { font-size: var(--text-sm); color: var(--text-secondary, #3A4441); margin-top: 2px; }
.ho-tl-by { font-size: var(--text-xxs); color: var(--text-muted, #5F6B66); margin-top: 2px; }

/* ── Vorgangs-Tab ──────────────────────────────────────────────────────────── */
.ho-case-loading, .ho-case-section .ho-empty-inline { color: var(--text-muted, #5F6B66); }

/* ── Pflichtfeld-Marker & Tab-Warnung ──────────────────────────────────────── */
.ho-req { color: var(--color-danger); font-weight: 700; }
.ho-tab-warn { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--color-danger-soft); color: var(--color-danger-ink); font-size: var(--text-xxs); font-weight: 700; margin-left: 4px; }
.ho-na { color: var(--color-danger-ink); font-style: italic; font-size: var(--text-xs); }
.ho-step.active { border-color: var(--color-primary-600, #0f766e); box-shadow: 0 0 0 2px rgba(15,118,110,.15); }
.ho-step-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: var(--text-xxs); font-weight: 700; background: var(--gray-300); color: var(--gray-700); }
.ho-step.done .ho-step-num { background: var(--color-success-ink); color: var(--color-surface); }
.ho-step.open .ho-step-num { background: var(--color-warning); color: var(--color-surface); }
.ho-step.opt { opacity: .85; }
.ho-step-lbl { white-space: nowrap; }

/* ── Statements (fachliche Hinweise statt „—") ─────────────────────────────── */
.ho-statement { padding: 10px 14px; border-radius: var(--radius-lg, 8px); background: var(--bg-tertiary, #FAFBFA); border: 1px solid var(--border-light, #D8DFDC); font-size: var(--text-sm); margin-bottom: 12px; color: var(--text-secondary, #3A4441); }
.ho-statement-ok { background: var(--green-50); border-color: var(--green-200); color: var(--color-success-ink); }
.ho-statement-warn { background: var(--color-warning-soft); border-color: var(--color-warning-soft); color: var(--color-warning-ink); }
.ho-cond-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ho-blockers { margin: 6px 0 0; padding-left: 18px; }
.ho-blockers li { margin: 2px 0; }

/* ── Aufgaben/Pill-Farben ───────────────────────────────────────────────────── */
.ho-pill-warn { background: var(--color-warning-soft); color: var(--color-warning-ink); }

/* ── Unterschriften ─────────────────────────────────────────────────────────── */
.ho-sig-note { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); background: var(--bg-tertiary, #FAFBFA); border: 1px dashed var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); padding: 10px 12px; margin-bottom: 14px; }
.ho-sig-thumb { margin-top: 8px; }
.ho-sig-thumb img { max-height: 70px; max-width: 240px; border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-sm); background: var(--color-surface); }
.ho-sig-signer { font-weight: 600; color: var(--text-secondary, #5B5347); margin-bottom: 4px; }
.ho-sigpad-wrap { position: relative; touch-action: none; }
.ho-sigpad { width: 100%; height: clamp(190px, 40vh, 280px); border: 2px dashed var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); background: var(--color-surface); touch-action: none; display: block; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ho-sigpad-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #bdb7ab; font-style: italic; font-size: var(--text-base); pointer-events: none; }
.ho-sigpad-ph.is-hidden { display: none; }
.ho-sigpad-actions { margin-top: 8px; }

/* ── Sekundäres Modal (Dialoge über dem Detail) ────────────────────────────── */
.ho-modal-overlay2 { z-index: 1300; background: rgba(40, 30, 20, .35); }

/* ── Responsive (Tablet / Handy) ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ho-form-row-2, .ho-form-row-3 { grid-template-columns: 1fr; }
  .ho-modal { max-height: 100vh; border-radius: 0; }
  .ho-modal-overlay { padding: 0; }
  .ho-filter-group { min-width: 100%; }
  /* Tabelle → Kartenansicht */
  .ho-table thead { display: none; }
  .ho-table, .ho-table tbody, .ho-table tr, .ho-table td { display: block; width: 100%; }
  .ho-table tr { border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); margin-bottom: 10px; padding: 6px; }
  .ho-table td { border: none; padding: 4px 8px; display: flex; justify-content: space-between; gap: 12px; }
  .ho-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted, #5F6B66); font-size: var(--text-xs); }
  .ho-row-actions { justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BEREICHE & RÄUME — Tab, Bereichskarten, Prüfpunkte, Auswahlbaum
   ═══════════════════════════════════════════════════════════════════════════ */
.ho-seg { border: 1px solid var(--border-light, #D8DFDC); background: var(--bg-secondary, #fff); color: var(--text-secondary, #3A4441);
  padding: 5px 12px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; cursor: pointer; }
.ho-seg.active { background: var(--color-primary-600, #147352); color: var(--color-surface); border-color: var(--color-primary-600, #147352); }
.ho-mini { border: 1px solid var(--border-light, #D8DFDC); background: var(--bg-secondary, #fff); color: var(--text-secondary, #3A4441);
  width: 26px; height: 26px; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-sm); line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.ho-mini:hover { background: var(--bg-hover, #FAFBFA); }
.ho-mini-del:hover { background: #FCEEEB; color: #B4281B; border-color: var(--color-danger-soft); }

.ho-areas-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ho-areas-sum { font-size: var(--text-sm); color: var(--text-secondary, #3A4441); }
.ho-areas-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ho-areas-pdfmode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.ho-areas-pdfmode .ho-seg { padding: 4px 10px; }
.ho-areas-list { display: flex; flex-direction: column; gap: 10px; }

.ho-area-group { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--border-light, #D8DFDC); }
.ho-area-gtitle { font-weight: 700; color: var(--text-primary, #263029); font-size: var(--text-sm); }
.ho-area-card { border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 10px); background: var(--bg-secondary, #fff); padding: 12px 14px; }
.ho-area-card.is-touched { border-left: 3px solid var(--color-primary-600, #147352); }
.ho-area-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ho-area-card-title { font-weight: 700; color: var(--text-primary, #263029); font-size: var(--text-md); }
.ho-area-path { font-size: var(--text-xxs); color: var(--text-muted, #5F6B66); margin: 2px 0 0; }
.ho-area-diff { font-size: var(--text-xs); color: var(--color-warning-ink); background: var(--color-warning-soft); border: 1px solid var(--color-warning-soft); border-radius: var(--radius-md); padding: 6px 10px; margin: 8px 0; }
.ho-area-acts { display: flex; gap: 4px; flex-shrink: 0; }
.ho-area-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }

.ho-checks { display: flex; flex-direction: column; }
.ho-check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border-light, #EFF2F1); }
.ho-check-row.is-mangel { background: #FDF4F2; }
.ho-check-title { flex: 1 1 auto; min-width: 0; font-size: var(--text-sm); color: var(--text-primary, #263029); }
.ho-check-note { display: block; font-size: var(--text-xxs); color: var(--text-muted, #5F6B66); }
.ho-check-seg { display: flex; gap: 3px; flex-wrap: wrap; }
.ho-cseg { border: 1px solid var(--border-light, #D8DFDC); background: var(--bg-secondary, #fff); color: var(--text-muted, #5F6B66);
  padding: 3px 8px; border-radius: var(--radius-sm); font-size: var(--text-xxs); font-weight: 600; cursor: pointer; }
.ho-cseg.active { font-weight: 700; }
.ho-cseg:disabled { cursor: default; opacity: .7; }
.ho-check-acts { display: flex; gap: 3px; flex-shrink: 0; }
.ho-area-findings { margin-top: 10px; border-top: 1px solid var(--border-light, #EFF2F1); padding-top: 8px; }
.ho-area-finding { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 0; font-size: var(--text-xs); }
.ho-area-finding.is-defect .ho-af-t { color: #B4281B; font-weight: 600; }
.ho-af-t { color: var(--text-primary, #263029); }

/* ── Auswahl-Dialog (Baum + Zusammenfassung) ──────────────────────────────── */
.ho-areapick-body { display: flex; gap: 0; padding: 0; }
.ho-ap-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-light, #D8DFDC); }
.ho-ap-right { flex: 0 0 260px; padding: 16px; background: var(--bg-tertiary, #FAFBFA); }
.ho-ap-tools { display: flex; gap: 8px; padding: 12px 14px 6px; }
.ho-ap-tools .form-input { flex: 1 1 auto; } .ho-ap-tools .form-select { flex: 0 0 150px; }
.ho-ap-tools2 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 0 14px 8px; border-bottom: 1px solid var(--border-light, #D8DFDC); }
.ho-ap-tools2 .ho-check { margin: 0; }
.ho-ap-tree { flex: 1 1 auto; overflow: auto; max-height: 52vh; min-height: 240px; padding: 6px 8px 12px; }
.ho-ap-root { font-weight: 700; color: var(--color-primary-600, #147352); font-size: var(--text-sm); padding: 6px 4px; position: sticky; top: 0; background: var(--bg-secondary, #fff); }
.ho-ap-row { display: flex; align-items: center; gap: 6px; padding: 3px 2px; border-radius: var(--radius-sm); }
.ho-ap-row:hover { background: var(--bg-hover, #FAFBFA); }
.ho-ap-tw { width: 16px; height: 16px; flex: 0 0 16px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-muted, #5F6B66); transition: transform .12s; user-select: none; }
.ho-ap-tw.open { transform: rotate(90deg); }
.ho-ap-tw-none { width: 16px; flex: 0 0 16px; }
.ho-ap-cb { width: 17px; height: 17px; flex: 0 0 17px; border: 1.5px solid var(--border-strong, #B9B2A2); border-radius: 4px; cursor: pointer; position: relative; background: var(--color-surface); }
.ho-ap-cb.checked { background: var(--color-primary-600, #147352); border-color: var(--color-primary-600, #147352); }
.ho-ap-cb.checked::after { content: '✓'; color: var(--color-surface); font-size: var(--text-xs); position: absolute; top: -2px; left: 2px; }
.ho-ap-cb.indeterminate { background: var(--color-surface); border-color: var(--color-primary-600, #147352); }
.ho-ap-cb.indeterminate::after { content: ''; position: absolute; top: 6px; left: 3px; right: 3px; height: 3px; background: var(--color-primary-600, #147352); border-radius: 2px; }
.ho-ap-cb.disabled { border-color: var(--border-light, #D8DFDC); background: var(--bg-tertiary, #EFF2F1); cursor: not-allowed; }
.ho-ap-added { width: 17px; height: 17px; flex: 0 0 17px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-primary-600, #147352); font-size: var(--text-sm); }
.ho-ap-name { flex: 1 1 auto; min-width: 0; cursor: pointer; font-size: var(--text-sm); color: var(--text-primary, #263029); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-ap-meta { color: var(--text-muted, #5F6B66); font-size: var(--text-xxs); }
.ho-ap-sect { color: var(--color-primary-600, #147352); font-weight: 700; margin-left: 4px; }
.ho-ap-sumhead { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted, #5F6B66); margin-bottom: 8px; }
.ho-ap-summary { display: flex; flex-direction: column; gap: 4px; }
.ho-ap-sumrow { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-secondary, #3A4441); }
.ho-ap-sumtotal { border-top: 1px solid var(--border-light, #D8DFDC); margin-top: 6px; padding-top: 6px; font-weight: 700; color: var(--text-primary, #263029); }
.ho-ap-count { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); }

@media (max-width: 860px) {
  .ho-areapick-body { flex-direction: column; }
  .ho-ap-left { border-right: none; border-bottom: 1px solid var(--border-light, #D8DFDC); }
  .ho-ap-right { flex-basis: auto; }
  .ho-ap-tree { max-height: 44vh; }
  .ho-check-row { flex-wrap: wrap; }
  .ho-area-card-head { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUSBAUSTUFE 2 — Profile, Nutzungsprofile, Feststellungsarten, Abnahme
   ═══════════════════════════════════════════════════════════════════════════ */
.ho-meta-profile { background: #EEF2FB; color: #33487A; }
.ho-meta-ok { background: var(--green-50); color: var(--color-success-ink); }
.ho-meta-warn { background: var(--color-danger-soft); color: var(--color-danger-ink); }
.ho-area-usage { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; flex-wrap: wrap; }
.ho-uselect { border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-md); padding: 4px 8px; font-size: var(--text-xs); background: var(--bg-secondary, #fff); color: var(--text-primary, #263029); max-width: 240px; }
.ho-ftag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: #EEF1F5; color: #41506B; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ho-dec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 6px 0; }
.ho-dec { text-align: left; border: 1px solid var(--border-light, #D8DFDC); background: var(--bg-secondary, #fff); color: var(--text-primary, #263029); border-radius: var(--radius-lg); padding: 12px 14px; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.ho-dec:hover { background: var(--bg-hover, #FAFBFA); }
.ho-dec.active { border-color: var(--color-primary-600, #147352); box-shadow: inset 0 0 0 1px var(--color-primary-600, #147352); }
.ho-dec.is-ok.active { background: var(--green-50); border-color: var(--color-success-ink); box-shadow: inset 0 0 0 1px var(--color-success-ink); }
.ho-dec.is-danger.active { background: #FBEBE8; border-color: var(--color-danger-ink); box-shadow: inset 0 0 0 1px var(--color-danger-ink); color: var(--color-danger-ink); }
.ho-dec:disabled { cursor: default; opacity: .75; }
@media (max-width: 860px) { .ho-dec-grid { grid-template-columns: 1fr; } }

/* Objekt/Bereich-Zelle in der Protokollliste: führendes Objekt (fett) + Kontextpfad (gedämpft). */
.ho-objcell { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ho-objcell-main { font-weight: 600; color: var(--text-primary, #263029); }
.ho-objcell-sub { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); }

/* Beteiligte aus Adresspool: Vorschlagschips + Adress-Typeahead */
.ho-part-suggest { margin-bottom: 12px; }
.ho-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ho-suggest-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-tertiary, #EFF2F1); border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-pill); padding: 5px 10px; font-size: var(--text-xs); cursor: pointer; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.ho-suggest-chip:hover { background: var(--green-50); border-color: var(--color-success-soft); }
.ho-suggest-name { font-weight: 600; color: var(--text-primary, #263029); }
.ho-suggest-role { color: var(--text-muted, #5F6B66); }
.ho-part-results { position: relative; }
.ho-part-results .adr-search-item { padding: 8px 10px; border: 1px solid var(--border-light, #D8DFDC); border-top: none; cursor: pointer; font-size: var(--text-sm); background: var(--bg-secondary, #fff); }
.ho-part-results .adr-search-item:first-child { border-top: 1px solid var(--border-light, #D8DFDC); border-radius: 6px 6px 0 0; }
.ho-part-results .adr-search-item:last-child { border-radius: 0 0 6px 6px; }
.ho-part-results .adr-search-item:hover { background: var(--bg-hover, #FAFBFA); }
.ho-part-results .adr-muted { color: var(--text-muted, #5F6B66); font-size: var(--text-xs); }
.ho-part-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }

/* Defensiv gegen Textabschnitt (Nutzer-Bug 28.07.): Tab-artige Reihen nie beschneiden. */
.ho-tabs { overflow-x: auto; padding-bottom: 2px; }
.ho-tab { line-height: 1.5; min-height: 40px; white-space: nowrap; overflow: visible; }

/* ══════════════════════════════════════════════════════════════════════════════
   VOLLSEITEN-ARBEITSANSICHT (§7 Zielkonzept) — fixer Kopf · linke Prozess-
   navigation (7 Schritte) · Inhalt · untere Aktionsleiste. KEIN Modal, KEINE
   überfüllte Tab-Leiste (Abnahmekriterien 8 & 9).
   ══════════════════════════════════════════════════════════════════════════════ */
.ho-page { display: flex; flex-direction: column; min-height: calc(100vh - 140px); }
.ho-page-eyebrow { display: flex; align-items: center; gap: 6px; font-size: var(--font-size-xs, 12px); color: var(--text-muted, #5F6B66); margin-bottom: 4px; }
.ho-page-title { font-size: 20px; font-weight: 700; color: var(--text-primary, #263029); margin: 0 0 6px; line-height: 1.3; overflow-wrap: anywhere; }
/* Hauptbereich: linke Prozessnavigation + Inhalt */
.ho-page-main { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: var(--space-4, 16px); align-items: start; flex: 1; }
/* §3: EINE dauerhafte linke Bereichsnavigation (10 Bereiche, nach Phase gruppiert) */
.ho-anav {
  position: sticky; top: 88px; align-self: start;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-secondary, #fff); border: 1px solid var(--border-light, #D8DFDC);
  border-radius: var(--radius-xl, 12px); padding: 8px; max-height: calc(100vh - 108px); overflow-y: auto;
}
.ho-anav-group { display: flex; flex-direction: column; gap: 2px; }
.ho-anav-group + .ho-anav-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-light, #D8DFDC); }
.ho-anav-grouphead { font-size: var(--text-xxs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #5F6B66); padding: 2px 10px 4px; }
.ho-anav-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: none; border-radius: var(--radius-lg, 8px); cursor: pointer;
  padding: 9px 10px; font-size: var(--text-md); font-weight: 600; color: var(--text-secondary, #3A4441);
  line-height: 1.3; position: relative;
}
.ho-anav-item:hover { background: var(--bg-hover, #FAFBFA); color: var(--text-primary, #263029); }
.ho-anav-item.active { background: var(--green-50); color: var(--color-primary-700, #0F5A2F); font-weight: 700; }
.ho-anav-item.active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--color-primary-600, #147352); }
.ho-anav-num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--text-xs); font-weight: 700; background: var(--bg-tertiary, #EFF2F1); color: var(--text-muted, #5F6B66); }
.ho-anav-item.active .ho-anav-num { background: var(--color-primary-600, #147352); color: var(--color-surface); }
.ho-anav-item.done .ho-anav-num { background: var(--color-success-soft); color: var(--color-success-ink); }
.ho-anav-item.attn .ho-anav-num { background: #FBEEDD; color: var(--color-warning-ink); }
.ho-anav-lbl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-anav-ico { font-size: var(--text-sm); flex-shrink: 0; opacity: .85; }
.ho-anav-badge { flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); font-size: var(--text-xxs); font-weight: 800; }
.ho-anav-badge.ok { background: var(--color-success-soft); color: var(--color-success-ink); }
.ho-anav-badge.attn { background: #FBEEDD; color: var(--color-warning-ink); }
/* Bereichskopf im Arbeitsbereich */
.ho-area-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ho-area-num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 800; background: var(--color-primary-600, #147352); color: var(--color-surface); }
.ho-area-title { font-size: var(--text-lg); font-weight: 800; color: var(--text-primary, #263029); }
.ho-area-prog { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted, #5F6B66); margin-left: auto; text-align: right; }
.ho-area-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-light, #D8DFDC); }
/* Technik & Brandschutz */
.ho-switch { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-md); font-weight: 600; color: var(--text-primary, #263029); cursor: pointer; }
.ho-tech-group { margin-top: 14px; }
.ho-tech-group-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--text-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary, #3A4441); padding-bottom: 6px; border-bottom: 1px solid var(--border-light, #D8DFDC); margin-bottom: 6px; }
.ho-tech-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) auto; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bg-tertiary, #EFF2F1); }
.ho-tech-lbl { font-size: var(--text-md); font-weight: 600; color: var(--text-primary, #263029); }
.ho-tech-btns { display: flex; flex-wrap: wrap; gap: 4px; justify-self: end; }
.ho-tbtn { font-size: var(--text-xs); font-weight: 700; padding: 5px 9px; border-radius: var(--radius-sm); border: 1px solid var(--border-light, #D8DFDC); background: var(--bg-secondary, #fff); color: var(--text-secondary, #3A4441); cursor: pointer; white-space: nowrap; }
.ho-tbtn:hover { background: var(--bg-hover, #FAFBFA); }
.ho-tbtn.on.ho-tbtn-ok { background: var(--color-success-soft); border-color: #9FD3AE; color: var(--color-success-ink); }
.ho-tbtn.on.ho-tbtn-bad { background: #FBEAE7; border-color: #E3A99F; color: var(--color-danger-ink); }
.ho-tbtn.on.ho-tbtn-mut { background: var(--bg-tertiary, #EFF2F1); border-color: var(--border-light, #D8DFDC); color: var(--text-secondary, #3A4441); }
.ho-tech-meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.ho-tech-pruef { max-width: 220px; }
.ho-tech-note { flex: 1; min-width: 160px; }
/* Vorschau (In-App-PDF) */
.ho-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ho-preview-state { font-size: var(--text-sm); font-weight: 600; }
.ho-preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ho-pdfwrap { border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); overflow: hidden; background: #F7F6F2; }
.ho-pdf { width: 100%; height: 72vh; min-height: 480px; border: 0; display: block; }
.ho-ptab.active { border-color: var(--color-primary-600, #147352); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--color-primary-600, #147352); }
.ho-ptab:not(.active) { opacity: .82; }
.ho-ptab-num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 800; letter-spacing: .02em; background: var(--bg-tertiary, #D8DFDC); color: var(--text-secondary, #3A4441); }
.ho-ptab.active .ho-ptab-num { background: var(--color-primary-600, #147352); color: var(--color-surface); }
.ho-ptab-body { min-width: 0; display: flex; flex-direction: column; }
.ho-ptab-label { font-size: var(--text-md); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-primary, #263029); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-ptab-status { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-ptab-open { color: var(--color-warning-ink); font-weight: 700; }
.ho-ptab-ok { color: var(--color-success-ink); font-weight: 700; }
.ho-ptab-muted { color: var(--text-muted, #5F6B66); }
.ho-snav-item.active { background: var(--green-50); color: var(--color-primary-600, #147352); }
.ho-snav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--color-primary-600, #147352); }
.ho-snav-item.active .ho-snav-num { background: var(--color-primary-600, #147352); color: var(--color-surface); }
.ho-snav-item.done .ho-snav-num { background: var(--color-success-soft); color: var(--color-success-ink); }
.ho-snav-item.attn .ho-snav-num { background: #FBEEDD; color: var(--color-warning-ink); }
/* fachlicher Unterpunkt-Fortschritt im Arbeitsbereich */
.ho-step-prog { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary, #3A4441); margin-bottom: 12px; }
.ho-step-prog strong { color: var(--text-primary, #263029); }
.ho-pnav-item.active { background: var(--green-50); color: var(--color-primary-600, #147352); }
.ho-pnav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--color-primary-600, #147352); }
.ho-pnav-item.active .ho-pnav-num { background: var(--color-primary-600, #147352); color: var(--color-surface); }
.ho-pnav-item.done .ho-pnav-num { background: var(--color-success-soft); color: var(--color-success-ink); }
.ho-pnav-phase:not(.is-active) .ho-pnav-pnum { background: var(--bg-tertiary, #D8DFDC); color: var(--text-secondary, #3A4441); }
/* Inhaltsspalte */
.ho-page-content { min-width: 0; }
/* Kompakte Prüfgruppen (Zielkonzept) — Gruppentitel + Prüfpunkte darunter */
.ho-cgrp { margin: 8px 0; }
.ho-cgrp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 2px 4px; border-bottom: 1px solid var(--border-light, #D8DFDC); margin-bottom: 2px; }
.ho-cgrp-lbl { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted, #5F6B66); }
.ho-cgrp-ok { font-size: var(--text-xs); font-weight: 600; color: var(--color-success-ink); background: #E2F0DE; border: 1px solid var(--color-success-soft); border-radius: var(--radius-pill); padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.ho-cgrp-ok:hover { background: #D3E9CE; }
/* Prüfplan / Auswahl: Planinfo + reiner Plan-Prüfpunkt (ohne Statussegmente) */
.ho-area-planinfo { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); padding: 6px 2px 2px; }
.ho-check-row.is-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* III.1 Konsolidierte Feststellungen */
.ho-fst-sum { font-size: var(--text-sm); color: var(--text-secondary, #3A4441); margin-bottom: 10px; font-weight: 600; }
.ho-fst-list { display: flex; flex-direction: column; gap: 8px; }
.ho-fst-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-lg, 8px); background: var(--bg-secondary, #fff); }
.ho-fst-row.is-defect { border-left: 3px solid #C0392B; }
.ho-fst-main { min-width: 0; flex: 1; }
.ho-fst-loc { font-size: var(--text-xxs); color: var(--text-muted, #5F6B66); text-transform: uppercase; letter-spacing: .03em; }
.ho-fst-title { font-weight: 600; color: var(--text-primary, #263029); overflow-wrap: anywhere; }
.ho-fst-meta { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); margin-top: 2px; overflow-wrap: anywhere; }
.ho-fst-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ho-fst-add { margin-top: 12px; }
.ho-step-body { display: flex; flex-direction: column; gap: var(--space-4, 16px); }
.ho-step-sec {
  background: var(--bg-secondary, #fff); border: 1px solid var(--border-light, #D8DFDC);
  border-radius: var(--radius-xl, 12px); padding: var(--space-4, 16px) var(--space-5, 20px);
}
.ho-step-sec-h { font-size: var(--text-base); font-weight: 700; color: var(--text-primary, #263029); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light, #D8DFDC); }
.ho-step-sec .ho-section { padding: 0; }
/* Untere Aktionsleiste */
.ho-page-foot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--space-4, 16px);
  padding: var(--space-3, 12px) var(--space-5, 20px); margin-top: var(--space-3, 12px);
  background: var(--bg-secondary, #fff); border: 1px solid var(--border-light, #D8DFDC);
  border-radius: var(--radius-xl, 12px);
}
.ho-page-foot .btn-ghost, .ho-page-foot .btn-primary { white-space: nowrap; }
.ho-page-foot-mid { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ho-page-progress { height: 6px; border-radius: 3px; background: var(--bg-tertiary, #EFF2F1); overflow: hidden; }
.ho-page-progress-fill { height: 100%; background: var(--color-primary-600, #147352); border-radius: 3px; transition: width .25s ease; }
.ho-page-progress-lbl { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); text-align: center; }
/* Begehungs-Banner (mobil-first Hinweis) */
.ho-begehung-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, var(--green-50), #F7FBF8); border: 1px solid var(--color-success-soft);
  border-radius: var(--radius-xl, 12px); padding: 16px 18px;
}
.ho-bb-ico { font-size: 26px; flex-shrink: 0; }
.ho-bb-h { font-size: var(--text-base); font-weight: 700; color: var(--color-primary-700, #0F5A2F); margin-bottom: 4px; }
.ho-bb-sub { font-size: var(--text-sm); color: var(--text-secondary, #3A4441); line-height: 1.5; }
.ho-bb-stat { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); margin-top: 8px; font-weight: 600; }
/* Tablet: Bereichsnavigation über dem Inhalt als horizontale, scrollbare Leiste; Inhalt voll breit */
@media (max-width: 900px) {
  .ho-page-main { grid-template-columns: 1fr; }
  .ho-anav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px; max-height: none; }
  .ho-anav-group { flex-direction: row; gap: 4px; }
  .ho-anav-group + .ho-anav-group { margin-top: 0; padding-top: 0; border-top: none; border-left: 1px solid var(--border-light, #D8DFDC); padding-left: 6px; margin-left: 4px; }
  .ho-anav-grouphead { display: none; }
  .ho-anav-item { flex: 0 0 auto; white-space: nowrap; padding: 8px 10px; }
  .ho-anav-item.active::before { display: none; }
  .ho-anav-lbl { flex: 0 0 auto; }
  .ho-pdf { height: 64vh; }
}
/* Schmale Breiten (Tablet Hochformat): Kopf gestapelt, Bereichsleiste bleibt scrollbar */
@media (max-width: 560px) {
  .ho-anav { position: sticky; top: 0; z-index: 25; background: var(--bg-secondary, #fff); }
  .ho-area-head { flex-wrap: wrap; }
  .ho-area-prog { margin-left: 0; text-align: left; width: 100%; }
  .ho-tech-row { grid-template-columns: 1fr; }
  .ho-tech-btns { justify-self: start; }
  .ho-mtr-body { flex-direction: column; align-items: stretch; }
}
/* Zählerstände (Phase II) */
.ho-mtr-sum { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary, #3A4441); margin-bottom: 12px; }
.ho-mtr-list { display: flex; flex-direction: column; gap: 10px; }
.ho-mtr-card { border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-xl, 12px); background: var(--bg-secondary, #fff); padding: 12px 14px; }
.ho-mtr-card.is-read { border-left: 3px solid var(--color-success-ink); }
.ho-mtr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ho-mtr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ho-mtr-sub { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); margin-top: 3px; overflow-wrap: anywhere; }
.ho-mtr-note-line { font-size: var(--text-sm); color: var(--text-secondary, #3A4441); margin-top: 4px; overflow-wrap: anywhere; white-space: normal; }
.ho-mtr-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ho-mtr-single, .ho-mtr-reg { display: flex; align-items: center; gap: 6px; }
.ho-mtr-regs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ho-mtr-reglbl { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); min-width: 72px; }
.ho-mtr-in { width: 150px; max-width: 46vw; padding: 8px 10px; font-size: var(--text-base); border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-md, 6px); font-variant-numeric: tabular-nums; }
.ho-mtr-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.ho-mtr-unit { font-size: var(--text-xs); color: var(--text-muted, #5F6B66); }
.ho-mtr-status { padding: 7px 10px; border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-md, 6px); font-size: var(--text-sm); background: var(--bg-secondary, #fff); }
.ho-mtr-warn { margin-top: 8px; font-size: var(--text-xs); color: var(--color-warning-ink); background: #FBEEDD; border-radius: var(--radius-md, 6px); padding: 7px 10px; }
.ho-mtr-foot { display: flex; gap: 8px; margin-top: 10px; }
.ho-mtr-note { flex: 1; padding: 7px 10px; border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-md, 6px); font-size: var(--text-sm); }
.ho-mtr-date { padding: 6px 8px; border: 1px solid var(--border-light, #D8DFDC); border-radius: var(--radius-md, 6px); font-size: var(--text-sm); }
.ho-medium { font-weight: 700; }
.ho-madopt-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-bottom: 1px solid var(--border-light, #D8DFDC); cursor: pointer; }
.ho-madopt-row.is-adopted { opacity: .6; cursor: default; }
.ho-madopt-cb { margin-top: 3px; flex-shrink: 0; }
.ho-madopt-main { min-width: 0; }

/* ── Abschlusskette: Vollständigkeit · Vorschau · Signatur · Abschluss ── */
.ho-abschluss-block { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--vi-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.ho-abschluss-block .ho-subhead { margin-top: 0; }
.ho-statement-info { background: #EEF3F8; border-color: #CFE0EE; color: #33506B; }
.ho-jump { background: none; border: 0; padding: 2px 0; color: #2f6f4f; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.ho-jump:hover { color: var(--green-600); }
.ho-field { display: block; margin: 0 0 10px; }
.ho-field-label { display: block; font-size: var(--text-xs); color: var(--gray-500); margin-bottom: 4px; }
.ho-input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--vi-border); border-radius: var(--radius-md); font: inherit; color: var(--gray-800); }
.ho-input:focus { outline: none; border-color: #2f6f4f; box-shadow: 0 0 0 2px rgba(47,111,79,.15); }
.ho-dtable { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ho-dtable th { text-align: left; color: var(--gray-500); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--vi-border); font-size: var(--text-xxs); text-transform: none; letter-spacing: normal; }
.ho-dtable td { padding: 7px 8px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.ho-fu-pill { border: 0; cursor: pointer; font: inherit; }
.ho-fu-pill:hover { filter: brightness(0.96); text-decoration: underline; }
.ho-lc-entry { margin: 0 0 12px; }
.ho-lc-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--vi-border); border-radius: var(--radius-md); margin-top: 8px; }
.ho-lc-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.ho-lc-row:last-child { border-bottom: 0; }
.ho-lc-row:hover { background: var(--gray-50); }
.ho-lc-main { display: flex; flex-direction: column; min-width: 0; }
.ho-lc-title { font-weight: 600; color: var(--gray-800); }
.ho-lc-meta { font-size: var(--text-xs); color: var(--gray-500); }
