/* Zimmerweise · Anwendung (Klassen zw-, gesetzt von static/js/apps/*.js) -----
   Die Anwendung schreibt keine Stile, nur Klassen und data-zustand. Wahrheit: MAQUETTES/2-raeume.html */

.zw-app { position: relative; display: flex; flex-direction: column; gap: var(--a-5); }
.zw-app > .zw-meldung:first-child { margin-top: var(--a-4); }

/* Fortschritt: die Kopfzeile des Formulars */
.zw-fortschritt {
  position: sticky; top: 64px; z-index: 5;
  margin: 0 calc(-1 * var(--rand)); padding: 10px var(--rand) 12px;
  background: rgba(250, 249, 245, 0.95); border-bottom: 1px solid var(--linie);
  display: flex; flex-direction: column-reverse; gap: 8px;
}
@supports (backdrop-filter: blur(8px)) { .zw-fortschritt { background: rgba(250, 249, 245, 0.82); backdrop-filter: blur(10px); } }
.zw-fortschritt__text { font: 500 0.75rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--stift); }
.zw-fortschritt__balken {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0;
  background: var(--stift-linie); color: var(--stift); border-radius: 3px; overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 9 - 3px), transparent calc(100% / 9 - 3px) calc(100% / 9));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 9 - 3px), transparent calc(100% / 9 - 3px) calc(100% / 9));
}
.zw-fortschritt__balken::-webkit-progress-bar { background: var(--stift-linie); }
.zw-fortschritt__balken::-webkit-progress-value { background: var(--stift); transition: width var(--d-mittel) var(--ease); }
.zw-fortschritt__balken::-moz-progress-bar { background: var(--stift); }
@media (min-width: 720px) { .zw-fortschritt { margin-inline: 0; padding-inline: 0; } }
@media (min-width: 1040px) { .zw-fortschritt { top: 72px; } }

.zw-app__meldungen:empty { display: none; }

/* Schritt */
.zw-schritt { display: flex; flex-direction: column; gap: var(--a-5); }
.zw-schritt__titel { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -0.022em; line-height: 1.12; outline: none; }
.zw-schritt__titel:focus-visible { outline: 3px solid var(--stift); outline-offset: 4px; }
.zw-schritt__hinweis { margin-top: calc(-1 * var(--a-3)); color: #3E4163; line-height: 1.55; }

/* Felder */
.zw-feld { display: grid; gap: 6px; min-width: 0; }
.zw-feld__label { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; color: var(--tinte); }
.zw-feld__eingabe {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--f-sans); color: var(--tinte);
  background: var(--original); border: 1.5px solid var(--linie-stark); border-radius: var(--r-feld);
  transition: border-color var(--d-kurz) linear, box-shadow var(--d-kurz) linear;
}
textarea.zw-feld__eingabe { min-height: 84px; resize: vertical; line-height: 1.5; }
select.zw-feld__eingabe { appearance: none; padding-right: 42px; background: var(--original) var(--winkel) right 12px center / 18px no-repeat; }
input[type="date"].zw-feld__eingabe { min-width: 0; }
.zw-feld__eingabe::placeholder { color: #8A8DA0; }
.zw-feld__eingabe:hover { border-color: #A9A595; }
.zw-feld__eingabe:focus { outline: none; border-color: var(--stift); box-shadow: 0 0 0 3px var(--stift-hauch); }
.zw-feld__eingabe[aria-invalid="true"] { border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-hauch); }
.zw-feld__hilfe { color: var(--grau); font-size: 0.875rem; line-height: 1.45; }
.zw-feld__fehler { color: var(--rot); font-size: 0.875rem; font-weight: 500; line-height: 1.4; display: flex; gap: 6px; }
.zw-feld__fehler::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--rot); color: #fff; font: 700 0.75rem/18px var(--f-sans); text-align: center; }
.zw-feld__fehler[hidden] { display: none; }
.zw-feldreihe { display: grid; gap: var(--a-4); }
@media (min-width: 440px) { .zw-feldreihe { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Feldgruppen: Abschnitte des Formulars mit Kopflinie */
.zw-feldgruppe { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--a-4); }
.zw-feldgruppe__titel {
  float: left; width: 100%; padding: 0 0 8px; margin: 0 0 var(--a-1);
  border-bottom: 1.5px solid var(--stift-linie);
  font: 500 0.75rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--stift);
}
.zw-feldgruppe__titel + * { clear: both; }
.zw-feldgruppe--eintrag { padding: var(--a-4); background: var(--original); border: 1px solid var(--linie); border-radius: var(--r-feld); }
.zw-feldgruppe__chips { display: flex; flex-wrap: wrap; gap: var(--a-2); }

/* Knöpfe der Anwendung */
.zw-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 18px; border: 1.5px solid transparent; border-radius: var(--r-feld);
  font: 600 1rem/1.2 var(--f-sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform var(--d-kurz) var(--ease), background-color var(--d-kurz) linear, border-color var(--d-kurz) linear, box-shadow var(--d-kurz) linear;
}
.zw-knopf:active { transform: translateY(1px) scale(0.99); }
.zw-knopf:disabled, .zw-knopf[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.zw-knopf--haupt { background: var(--stift); color: #fff; box-shadow: var(--s-knopf); }
.zw-knopf--haupt:hover { background: var(--stift-tief); }
.zw-knopf--neben { background: var(--original); color: var(--stift); border-color: var(--stift); }
.zw-knopf--neben:hover { background: var(--stift-hauch); }
.zw-knopf--still { background: transparent; color: var(--stift); padding-inline: 6px; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; font-weight: 500; min-height: 44px; }
.zw-knopf--still:hover { text-decoration-thickness: 2px; }
.zw-knopf--gefahr { background: var(--original); color: var(--rot); border-color: var(--rot); }
.zw-knopf--gefahr:hover { background: var(--rot-hauch); }
.zw-knopf[aria-busy="true"] { position: relative; color: transparent !important; }
.zw-knopf[aria-busy="true"]::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; animation: zw-dreh 0.8s linear infinite; }
.zw-knopf--neben[aria-busy="true"]::after { border-color: var(--stift); border-right-color: transparent; }
@keyframes zw-dreh { to { transform: rotate(360deg); } }

/* Auswahlkarten (Radio, Checkbox) */
.zw-wahl { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--a-2); }
.zw-wahl > .zw-feldgruppe__titel { margin-bottom: var(--a-2); }
.zw-wahl__option {
  position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  min-height: 60px; padding: 14px 16px; cursor: pointer;
  background: var(--original); border: 1.5px solid var(--linie-stark); border-radius: var(--r-feld);
  transition: border-color var(--d-kurz) linear, box-shadow var(--d-mittel) var(--ease), background-color var(--d-kurz) linear;
}
.zw-wahl__option:hover { border-color: var(--stift); }
.zw-wahl__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zw-wahl__option::before {
  content: ""; grid-row: 1 / span 2; width: 26px; height: 26px; border: 2px solid var(--tinte); border-radius: 3px; background: var(--original) no-repeat center / 30px;
}
.zw-wahl__option:has(input:focus-visible) { outline: 3px solid var(--stift); outline-offset: 3px; }
.zw-wahl__option[data-zustand="gewaehlt"], .zw-wahl__option:has(input:checked) { border-color: var(--stift); box-shadow: 0 12px 26px -20px rgba(59, 47, 143, 0.7); background: #FDFDFF; }
.zw-wahl__option[data-zustand="gewaehlt"]::before, .zw-wahl__option:has(input:checked)::before { background-image: var(--kreuz); }
.zw-wahl__titel { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.zw-wahl__text { grid-column: 2; color: var(--grau); font-size: 0.875rem; line-height: 1.45; }
.zw-wahl__option:has(input[value="einzug"]) { border-left: 6px solid var(--gelb-kante); }
.zw-wahl__option:has(input[value="auszug"]) { border-left: 6px solid var(--rosa-kante); }
.zw-wahl__option:has(input[value="einzug"]:checked) { background: var(--gelb-hell); }
.zw-wahl__option:has(input[value="auszug"]:checked) { background: var(--rosa-hell); }
@media (min-width: 520px) {
  .zw-wahl:has(input[value="einzug"]) { grid-template-columns: 1fr 1fr; }
  .zw-wahl:has(input[value="einzug"]) > .zw-feldgruppe__titel { grid-column: 1 / -1; }
  .zw-wahl:has(input[value="ja"]) { grid-template-columns: 1fr 1fr; }
}

/* Räume */
.zw-raumliste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a-3); }
.zw-raum {
  background: var(--original); border: 1px solid #E5E2D6; border-left: 5px solid var(--stift-linie);
  border-radius: var(--r-feld); box-shadow: 0 1px 0 rgba(27, 29, 58, 0.04);
  transition: box-shadow var(--d-mittel) var(--ease);
}
.zw-raum[data-zustand="ok"] { border-left-color: var(--gruen); }
.zw-raum[data-zustand="mangel"] { border-left-color: var(--rot); }
.zw-raum[open] { box-shadow: var(--s-blatt); }
.zw-raum__kopf {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 26px; grid-template-areas: "n p" "c p"; align-items: center; gap: 4px 10px;
  min-height: 60px; padding: 10px 14px 10px 16px;
}
.zw-raum__kopf > .zw-raum__name { grid-area: n; }
.zw-raum__kopf > .zw-chip { grid-area: c; justify-self: start; }
.zw-raum__kopf::after { grid-area: p; }
@media (min-width: 520px) {
  .zw-raum__kopf { grid-template-columns: minmax(0, 1fr) auto 26px; grid-template-areas: "n c p"; }
}
.zw-raum__kopf::-webkit-details-marker { display: none; }
.zw-raum__kopf::after { content: ""; width: 24px; height: 24px; border: 1.5px solid var(--stift); border-radius: 3px; background: var(--winkel) center / 16px no-repeat; transition: transform var(--d-mittel) var(--ease); }
.zw-raum[open] > .zw-raum__kopf::after { transform: rotate(180deg); }
.zw-raum[open] > .zw-raum__kopf { border-bottom: 1px solid var(--linie); }
.zw-raum__name { font-weight: 600; font-size: 1.125rem; line-height: 1.25; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.zw-raum > :not(summary) { margin-inline: 16px; }
.zw-raum > .zw-feld:first-of-type { margin-top: var(--a-4); }
.zw-raum > * + * { margin-top: var(--a-4); }
.zw-raum > :last-child:not(summary) { margin-bottom: var(--a-4); }
.zw-raum > .zw-knopf--neben { width: calc(100% - 32px); }
.zw-raum__elemente { display: grid; border-top: 1px solid var(--linie); }
.zw-raum__entfernen { justify-self: start; color: var(--rot); }

/* Ein Element: Name, Schalter « In Ordnung | Mangel », Bemerkung */
.zw-element { border: 0; margin: 0; padding: 12px 0 14px; min-width: 0; border-bottom: 1px solid var(--linie); }
.zw-element__name { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 500; font-size: 1rem; line-height: 1.35; }
.zw-element__zustand { clear: both; }
.zw-element > .zw-element__bemerkung, .zw-element > .zw-vergleich { clear: both; margin-top: 10px; }
.zw-element > .zw-knopf--still.zw-element__bemerkung { margin-top: 4px; padding-left: 0; font-size: 0.875rem; }
.zw-element[data-zustand="mangel"] .zw-element__bemerkung .zw-feld__eingabe { border-color: #E2A49D; background: #FFFCFB; }
@media (min-width: 520px) {
  .zw-element { display: flow-root; }
  .zw-element__name { width: calc(100% - 300px); margin: 12px 0 0; }
  .zw-element__zustand { clear: none; float: right; width: 288px; }
}

.zw-schalter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zw-schalter__option {
  position: relative; display: flex; white-space: nowrap; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 10px; cursor: pointer;
  border: 1.5px solid var(--linie-stark); border-radius: 8px; background: var(--original);
  font-weight: 600; font-size: 0.9375rem; color: var(--grau);
  transition: background-color var(--d-kurz) linear, border-color var(--d-kurz) linear, color var(--d-kurz) linear;
}
.zw-schalter__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zw-schalter__option::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 2px; background: no-repeat center / 22px; }
.zw-schalter__option:hover { border-color: var(--tinte); color: var(--tinte); }
.zw-schalter__option:has(input:focus-visible) { outline: 3px solid var(--stift); outline-offset: 2px; }
.zw-schalter__option:active { transform: scale(0.98); }
.zw-schalter[data-zustand="ok"] .zw-schalter__option[data-zustand="gewaehlt"],
.zw-schalter__option:has(input[value="ok"]:checked) { background: var(--gruen-hauch); border-color: var(--gruen); color: var(--gruen); }
.zw-schalter[data-zustand="ok"] .zw-schalter__option[data-zustand="gewaehlt"]::before,
.zw-schalter__option:has(input[value="ok"]:checked)::before { background-image: var(--kreuz); border-color: var(--gruen); }
.zw-schalter[data-zustand="mangel"] .zw-schalter__option[data-zustand="gewaehlt"],
.zw-schalter__option:has(input[value="mangel"]:checked) { background: var(--rot-hauch); border-color: var(--rot); color: var(--rot); }
.zw-schalter[data-zustand="mangel"] .zw-schalter__option[data-zustand="gewaehlt"]::before,
.zw-schalter__option:has(input[value="mangel"]:checked)::before { background-image: var(--kreuz-rot); border-color: var(--rot); }

/* Vergleich mit dem Einzug (beim Auszug) : ein gelber Durchschlag-Streifen */
.zw-vergleich {
  display: block; padding: 7px 10px 7px 12px; border-radius: 4px;
  background: var(--gelb-hell); border-left: 4px solid var(--gelb-kante);
  font: 400 0.8125rem/1.45 var(--f-mono); color: var(--gelb-text);
}
.zw-vergleich[data-zustand="mangel"] { color: var(--rot); }

/* Fotos */
.zw-fotos { display: grid; gap: var(--a-3); }
.zw-fotos__gitter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-3); }
@media (min-width: 560px) { .zw-fotos__gitter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zw-fotos__bild { margin: 0; display: grid; gap: 6px; padding: 6px 6px 8px; background: var(--original); border: 1px solid #E5E2D6; border-radius: 8px; box-shadow: 0 10px 20px -16px rgba(27, 29, 58, 0.45); }
.zw-fotos__bild img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--papier-tief); }
.zw-fotos__bild figcaption { min-width: 0; }
.zw-fotos__legende { min-height: 44px; padding: 8px 10px; font-size: 1rem; border-radius: 6px; }
.zw-fotos__entfernen { justify-self: start; font-size: 0.875rem; color: var(--rot); padding-left: 2px; }
.zw-fotos__aktionen { display: flex; flex-wrap: wrap; gap: var(--a-2); align-items: center; }
.zw-fotos__hinzu[data-quelle="kamera"]::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--kamera) center / contain no-repeat; mask: var(--kamera) center / contain no-repeat; }
.zw-fotos[data-zustand="leer"] .zw-fotos__hinzu[data-quelle="kamera"] { border-style: dashed; background: var(--stift-hauch); }
.zw-fotos__meldung:empty { display: none; }

/* Zähler und Schlüssel */
.zw-zaehler { border: 1px solid #E5E2D6; margin: 0; padding: var(--a-4); min-width: 0; display: grid; gap: var(--a-4); background: var(--original); border-radius: var(--r-feld); }
.zw-zaehler > .zw-feldgruppe__titel { width: 100%; }
.zw-zaehler[data-zustand="gefuellt"] { border-left: 5px solid var(--gruen); }
.zw-schluessel {
  display: grid; grid-template-columns: 1fr 48px 64px 48px; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--original); border: 1px solid #E5E2D6; border-radius: var(--r-feld);
}
.zw-schluessel > .zw-feld__label { font-size: 1rem; }
.zw-schluessel > .zw-knopf { min-height: 48px; padding: 0; font-size: 1.25rem; }
.zw-schluessel > .zw-feld__eingabe { text-align: center; padding: 8px 4px; font: 600 1.375rem/1 var(--f-hand); color: var(--stift); -moz-appearance: textfield; }
.zw-schluessel > .zw-feld__eingabe::-webkit-inner-spin-button, .zw-schluessel > .zw-feld__eingabe::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.zw-schluessel > .zw-feld, .zw-schluessel > .zw-vergleich { grid-column: 1 / -1; }

/* Unterschriften: der Zustand steht am Block (Rand, Plakette), nie hinter einem Knopf */
.zw-unterschrift {
  position: relative; display: grid; gap: 8px; padding: var(--a-4);
  background: var(--original); border: 1px solid #E5E2D6; border-left: 5px solid var(--stift-linie); border-radius: var(--r-feld);
  -webkit-user-select: none; user-select: none;
}
.zw-unterschrift[data-zustand="unterschrieben"] { border-left-color: var(--gruen); }
.zw-unterschrift__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 0.75rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--stift); }
.zw-unterschrift__name::after {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; border: 1.5px solid var(--stift-linie); border-radius: 3px;
  background: var(--original) no-repeat center / 26px;
}
.zw-unterschrift[data-zustand="unterschrieben"] .zw-unterschrift__name::after { border-color: var(--gruen); background-image: var(--kreuz); }
.zw-unterschrift__flaeche {
  display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair;
  border: 1.5px dashed var(--stift-linie); border-radius: 8px;
  background:
    linear-gradient(var(--tinte), var(--tinte)) 16px calc(100% - 44px) / calc(100% - 32px) 1px no-repeat,
    var(--original);
}
.zw-unterschrift[data-zustand="unterschrieben"] .zw-unterschrift__flaeche { border-style: solid; border-color: var(--stift); }
.zw-unterschrift__flaeche:focus-visible { outline: 3px solid var(--stift); outline-offset: 2px; }
.zw-unterschrift .zw-feld__hilfe { font-size: 0.8125rem; }
.zw-unterschrift__loeschen { justify-self: start; }
.zw-unterschrift ::selection { background: transparent; }
@media (min-width: 640px) { .zw-unterschrift__flaeche { height: 220px; } }

/* Fertig */
.zw-fertig { display: grid; gap: var(--a-4); padding: var(--a-5) var(--a-4); background: var(--original); border: 1px solid #E5E2D6; border-radius: var(--r-blatt); box-shadow: var(--s-blatt); position: relative; }
.zw-fertig[data-zustand="pdf"] { border-top: 5px solid var(--gruen); }
.zw-fertig__aktionen { display: grid; gap: var(--a-2); }
@media (min-width: 520px) { .zw-fertig__aktionen { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.zw-fertig__status:empty { display: none; }
.zw-fertig__offen { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zw-fertig__offen .zw-knopf--still { text-align: left; justify-content: flex-start; padding-left: 0; }
.zw-fertig__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a-2); }
.zw-fertig__links li { display: flex; align-items: center; justify-content: space-between; gap: var(--a-3); padding: 6px 14px; background: var(--original); border: 1px solid var(--linie); border-radius: var(--r-feld); }
.zw-fertig__links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Leiste unten: Zurück / Weiter */
.zw-leiste {
  position: sticky; bottom: 0; z-index: var(--z-leiste);
  display: flex; gap: var(--a-2);
  margin: var(--a-4) calc(-1 * var(--rand)) 0; padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--linie);
  box-shadow: 0 -12px 24px -20px rgba(27, 29, 58, 0.45);
}
@supports (backdrop-filter: blur(8px)) { .zw-leiste { background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(10px); } }
.zw-leiste .zw-knopf { flex: 1 1 0; }
.zw-leiste .zw-knopf--haupt { flex-grow: 1.7; }
.zw-leiste .zw-knopf--haupt::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--pfeil) center / contain no-repeat; mask: var(--pfeil) center / contain no-repeat; }
@media (min-width: 720px) {
  .zw-leiste { margin-inline: 0; border-radius: var(--r-feld); border: 1px solid var(--linie); bottom: 12px; padding: 10px; }
  .zw-leiste .zw-knopf { flex: 0 1 auto; min-width: 150px; }
  .zw-leiste .zw-knopf--haupt { margin-left: auto; min-width: 220px; }
}

/* Meldungen */
.zw-meldung { padding: 12px 14px; border-radius: 8px; border: 1.5px solid; font-size: 0.9375rem; line-height: 1.5; display: grid; gap: 6px; }
.zw-meldung[data-art="info"] { border-color: var(--stift-linie); background: var(--stift-hauch); color: var(--tinte); }
.zw-meldung[data-art="erfolg"] { border-color: var(--gruen); background: var(--gruen-hauch); color: #134D31; }
.zw-meldung[data-art="fehler"] { border-color: var(--rot); background: var(--rot-hauch); color: #8E241C; }
.zw-meldung p { margin: 0; }
.zw-meldung .zw-knopf--still { padding-left: 0; min-height: 40px; }

/* Chips */
.zw-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 28px;
  border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--original);
  font: 500 0.75rem/1.2 var(--f-mono); letter-spacing: 0.02em; color: var(--grau); white-space: nowrap;
}
button.zw-chip { min-height: 44px; padding: 8px 14px; border-style: dashed; border-color: var(--stift-linie); color: var(--stift); font: 500 0.9375rem/1.2 var(--f-sans); cursor: pointer; }
button.zw-chip:hover { background: var(--stift-hauch); border-style: solid; }
.zw-chip[data-zustand="ok"] { color: var(--gruen); border-color: #A9CDB8; background: var(--gruen-hauch); }
.zw-chip[data-zustand="mangel"] { color: var(--rot); border-color: #E7B1AB; background: var(--rot-hauch); }
.zw-chip[data-zustand="offen"] { color: var(--grau); }
.zw-chip[data-zustand="anzeige"] { color: var(--gelb-text); border-color: var(--gelb-kante); background: var(--gelb-hell); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.6875rem; }
.zw-raum__kopf .zw-chip { white-space: normal; }

/* Legende über die volle Breite, auch in zweispaltigen Auswahlgruppen */
.zw-wahl > legend, .zw-wahl > .zw-feldgruppe__titel { grid-column: 1 / -1; }
@media (min-width: 520px) { .zw-wahl:has(input[value="nein"]) { grid-template-columns: 1fr 1fr; } }
/* Ausschließliche Wahl (Radio) als Kreis mit Punkt, Mehrfachwahl (Checkbox) als Kästchen mit Kreuz */
.zw-wahl__option:has(input[type="radio"])::before { border-radius: 50%; }
.zw-wahl__option[data-zustand="gewaehlt"]:has(input[type="radio"])::before,
.zw-wahl__option:has(input[type="radio"]:checked)::before { background-image: radial-gradient(circle, var(--stift) 0 6px, transparent 6.5px); border-color: var(--stift); }
