/* Messort-Eingabe (01.11.2026): der Block „Messortvergleich“ der Maske bauprotokoll im Layout des Musters docs/muster/ac-pruefung.html —
   links die Schritte, rechts die Begründung, unter 900 px je ein Reiter. Mobil zuerst: nichts läuft waagrecht über (min-width: 0, overflow-wrap),
   Ziele ab 44 px (R20). ⛔ Jede Regel hängt an .bp-messort bzw. .bp-mo-*: ohne dieses Markup (Riegel PVM_BEFUND_TICKET zu) trifft keine von ihnen etwas. */
.bp-messort { margin: 0 0 var(--ab-4); min-width: 0; overflow-wrap: anywhere; }
.bp-messort h3 { margin: 0 0 var(--ab-2); }
.bp-messort h4, .bp-messort h5 { margin: 0 0 var(--ab-alt-6); font-size: var(--gr-alt-1rem); font-weight: 700; }
.bp-messort .btn { min-height: 44px; max-width: 100%; white-space: normal; }
.bp-mo-klein { font-size: var(--gr-klein); color: var(--text-muted); }
.bp-mo-fehler, .bp-mo-satz { padding: var(--ab-2) var(--ab-alt-10); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: var(--radius-sm); background: var(--bg-card); }
.bp-mo-ok { color: var(--success-text); font-weight: 600; }
.bp-mo-eingabe > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.bp-mo-typ, .bp-mo-werte { display: flex; flex-direction: column; gap: var(--ab-alt-10); margin: var(--ab-2) 0 var(--ab-alt-14); min-width: 0; }
.bp-mo-zeile { display: flex; flex-wrap: wrap; gap: var(--ab-alt-10); align-items: flex-end; min-width: 0; }
.bp-mo-feld { display: flex; flex-direction: column; gap: var(--ab-1); flex: 1 1 11rem; min-width: 0; font-weight: 600; }
.bp-mo-feld input, .bp-mo-feld select { width: 100%; max-width: 100%; min-height: 44px; font-size: 1.1rem; }
.bp-mo-einheit { font-weight: 400; color: var(--text-muted); }
.bp-mo-haken { display: flex; align-items: center; gap: var(--ab-alt-10); min-height: 44px; font-weight: 600; }
.bp-mo-haken input { flex: none; width: 24px; height: 24px; margin: 0; }
.bp-mo-auswahl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ab-alt-6); }
.bp-mo-grenze > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }

/* Ergebnis: das Wichtigste zuerst */
.bp-mo-ergebnis { margin: var(--ab-alt-10) 0; padding: var(--ab-alt-10) var(--ab-3); border: 2px solid var(--text-primary); border-radius: var(--radius-sm); background: var(--bg-card); }
.bp-mo-ergebnis p { margin: var(--ab-1) 0; }
.bp-mo-strecke { font-size: 1.15rem; }

/* Zwei Spalten wie das Muster: links 2fr Schritte, rechts 3fr Begründung */
.bp-mo-haupt { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--ab-4); min-width: 0; }
.bp-mo-links, .bp-mo-rechts { min-width: 0; padding: var(--ab-alt-10); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); }
.bp-mo-schritte { list-style: none; margin: 0; padding: 0; }
.bp-mo-schritte li { min-width: 0; }
.bp-mo-schritt { display: flex; align-items: center; gap: var(--ab-alt-10); width: 100%; min-height: 52px; min-width: 0; margin: var(--ab-1) 0; padding: var(--ab-alt-6) var(--ab-alt-10); text-align: left; font: inherit; color: var(--text-primary);
    background: var(--bg-card); border: 2px solid var(--border); border-radius: 10px; cursor: pointer; }
.bp-mo-nr { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg-surface); }
.bp-mo-tx { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bp-mo-st { flex: none; max-width: 40%; font-size: var(--gr-alt-13); font-weight: 700; padding: var(--ab-alt-3) var(--ab-2); border-radius: 6px; background: var(--bg-surface); color: var(--text-secondary); text-align: right; }
.bp-mo-schritt.bp-mo-gewaehlt { border-color: var(--text-primary); box-shadow: 0 0 0 3px var(--accent); }
.bp-mo-schritt.bp-mo-ok .bp-mo-nr { background: var(--success-text); color: #fff; }
.bp-mo-schritt.bp-mo-befund .bp-mo-nr { background: var(--danger-text); color: #fff; }
.bp-mo-schritt.bp-mo-befund .bp-mo-st { color: var(--danger-text); }
.bp-mo-zust { display: inline-block; padding: var(--ab-alt-3) var(--ab-alt-10); border-radius: 6px; font-weight: 700; background: var(--bg-surface); }
.bp-mo-zust.bp-mo-befund { color: var(--danger-text); }
.bp-mo-saetze, .bp-mo-grenzen { margin: var(--ab-alt-6) 0; padding-left: var(--ab-alt-20); }
.bp-mo-saetze li, .bp-mo-grenzen li { margin: var(--ab-1) 0; }
.bp-mo-beleg { display: block; color: var(--text-muted); }
.bp-mo-nachrangig { font-style: italic; } /* Welle 1: Kursiv statt 75 % Deckkraft */
.bp-mo-rechts dl { margin: 0; } .bp-mo-rechts dt { font-weight: 700; color: var(--text-muted); font-size: var(--gr-klein); margin-top: var(--ab-2); } .bp-mo-rechts dd { margin: var(--ab-alt-2) 0 0; }

/* Reiter und Zurück-Knopf: nur schmal sichtbar */
.bp-mo-reiter { display: none; gap: var(--ab-2); margin: var(--ab-2) 0; }
.bp-mo-reiter button { flex: 1; min-height: 56px; font: inherit; font-weight: 700; border: 2px solid var(--text-primary); background: var(--bg-card); border-radius: 10px; }
.bp-mo-reiter button[aria-selected="true"] { background: var(--accent); }
.bp-mo-zurueck { display: none; width: 100%; margin-bottom: var(--ab-alt-10); }
@media (max-width: 899px) {
    .bp-mo-haupt { grid-template-columns: minmax(0, 1fr); gap: var(--ab-2); }
    .bp-mo-reiter { display: flex; }
    .bp-mo-zurueck { display: block; }
    .bp-mo-haupt[data-ansicht="schritt"] .bp-mo-rechts, .bp-mo-haupt[data-ansicht="anforderung"] .bp-mo-links { display: none; }
}
.bp-mo-erfasst > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.bp-mo-erfasst ul { margin: var(--ab-1) 0 var(--ab-2); padding-left: 18px; font-size: var(--gr-klein); }
.bp-mo-uebergabe { margin: var(--ab-alt-10) 0; padding: var(--ab-2) var(--ab-3); border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--radius-sm); background: var(--bg-card); }
