/* Baustein „messplatz“: Messplatz-Planer für den Anpassraum (bausteine/messplatz.html, assets/bs-messplatz.js).
   Präfix .mp-, alle Farben über die Token aus site.css/marke.css (body.p-au), damit Hell/Dunkel mitläuft. */
.mp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap, 2rem); align-items: start; }
@media (max-width: 860px) { .mp { grid-template-columns: minmax(0, 1fr); } }

/* Skizze */
.mp-skizze { margin: 0; padding: 1rem; background: var(--surface); border: var(--hair, 1px) solid var(--line-strong, var(--line)); border-radius: var(--radius); }
@media (min-width: 861px) { .mp-skizze { position: sticky; top: 5.5rem; } }
.mp-skizze svg { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; overflow: visible; }
.mp-skizze figcaption { margin-top: .6rem; }
/* Zwei Skizzen: quer (Standard) und hochkant mit größerer Schrift. Hochkant, sobald die Querskizze weniger als 360 px Platz hat,
   denn dann fiele ihre 11-px-Schrift unter 11 px. Ohne Container-Abfragen bleibt die Querskizze stehen. */
.mp-skizze { container-type: inline-size; }
.mp-skizze .mp-hoch { display: none; max-width: 300px; }
.mp-hoch .mp-lbl { font-size: 12.5px; }
.mp-hoch .mp-lbl--klein { font-size: 12px; }
@container (max-width: 359.98px) {
  .mp-skizze .mp-quer { display: none; }
  .mp-skizze .mp-hoch { display: block; }
}
.mp-zaehler { margin: .6rem 0 0; }

.mp-basis rect, .mp-basis circle { fill: var(--band); stroke: var(--muted); stroke-width: 1.2; }
.mp-wand { fill: none; stroke: var(--line-strong, var(--ink)); stroke-width: 3; stroke-linejoin: miter; }
.mp-tuer { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.mp-lbl { font-size: 11px; font-weight: 600; fill: var(--ink); font-family: inherit; }
.mp-lbl--leise { font-weight: 500; fill: var(--muted); }
.mp-lbl--gruen { fill: var(--cyan); }

.mp-teil rect, .mp-teil circle, .mp-teil path { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; }
.mp-teil .mp-linie { fill: none; stroke-width: 1; }
.mp-teil .mp-kachel { fill: var(--green); stroke: none; }
.mp-teil .mp-kabel { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
.mp-teil .mp-welle { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.mp-teil .mp-sonde { fill: none; stroke: var(--ear-r); stroke-width: 2.5; }
.mp-teil .mp-sonde-punkt { fill: var(--ear-r); stroke: none; }
.mp-teil .mp-haken { fill: none; stroke: var(--ok); stroke-width: 2; }
.mp-teil .mp-daemmung { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 2 4; }

/* Mit JavaScript: nur gewählte Teile zeigen */
.mp--js .mp-teil { opacity: 0; transform: translateY(6px); transition: opacity .35s ease-out, transform .35s ease-out; }
.mp--js .mp-teil.mp-an { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mp--js .mp-teil { transform: none; transition: none; } }

/* Statischer Inhalt ohne JavaScript */
.mp-statisch { display: grid; gap: 1rem; }
.mp-statisch-liste { margin: 0; display: grid; gap: .35rem; }
.mp-statisch-liste dt { font-weight: 700; color: var(--head); margin-top: .5rem; }
.mp-statisch-liste dd { margin: 0; }

/* Steuerung */
.mp-steuerung { display: grid; gap: 1rem; min-width: 0; }
.mp-schritte ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-schritte .chip { font: inherit; font-size: var(--step--1); padding: .45rem .75rem; cursor: pointer; }
.mp-schritte .chip[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mp-zahl { font-variant-numeric: tabular-nums; opacity: .8; }

.mp-panel { display: grid; gap: 1rem; padding: clamp(1rem, .7rem + 1vw, 1.5rem); background: var(--surface);
  border: var(--hair, 1px) solid var(--line-strong, var(--line)); border-radius: var(--radius); }
.mp-panel[hidden] { display: none; }
.mp-panel h3 { font-size: var(--step-1); }
.mp-panel h3:focus { outline: none; }
.mp-panel h3:focus-visible { outline: 3px solid var(--focus, var(--cyan)); outline-offset: 3px; }
.mp-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mp-panel legend { padding: 0; margin-bottom: .6rem; font-weight: 700; color: var(--head); }

.mp-wahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .6rem; }
.mp-wahl { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; cursor: pointer;
  background: var(--surface); border: var(--hair, 1px) solid var(--field-line, var(--line)); border-radius: var(--radius);
  transition: background .15s, border-color .15s; }
@media (hover: hover) and (pointer: fine) { .mp-wahl:hover { border-color: var(--blue); } }
.mp-wahl:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.mp-wahl:has(input:focus-visible) { outline: 3px solid var(--focus, var(--cyan)); outline-offset: 2px; }
.mp-wahl input { flex: none; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--blue); }
.mp-wahl input:focus-visible { outline: none; }
.mp-wahl strong { display: block; color: var(--ink); line-height: 1.3; }
.mp-wahl small { display: block; margin-top: .2rem; color: var(--muted); font-size: var(--step--1); line-height: 1.45; }

.mp-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }
.mp-nav [data-mp-weiter] { margin-left: auto; }
.mp-nav [hidden] { display: none; }

/* Anfrageliste */
.mp-zusammenfassung { color: var(--muted); }
.mp-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem 1.5rem; }
.mp-liste:empty { display: none; }
.mp-liste h4 { margin: 0 0 .3rem; font-size: var(--step-0); color: var(--head); }
.mp-liste ul { margin: 0; padding-left: 1.1rem; }
.mp-liste li { margin: .15rem 0; }
.mp-hinweis { display: grid; gap: .6rem; justify-items: start; padding: .85rem 1rem; border-left: 3px solid var(--warn); background: var(--band); }
.mp-hinweis[hidden] { display: none; }
.mp-status:empty { display: none; }
.mp-steuerung .btn-row { margin: 0; }
/* Zurück-Knopf: Pfeil der Marke gespiegelt und vorn */
.mp-zurueck { flex-direction: row-reverse; }
.mp-zurueck::after { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .mp-zurueck:hover::after { transform: scaleX(-1) translateX(4px); } }
