/* Bausteine für Formulare und Abläufe: Feld mit Hilfe und Fehler (Teil feld), Meldung (Teil meldung), Schritte (Teil schritte),
   Auswahlkarten und die Fußzeile eines Assistenten. Grundregeln für label, input und .feld stehen in bausteine.css. */
.feld-hilfe { margin: 0 0 0.35rem; font-size: var(--schrift-s); color: var(--text-leise); }
.feld-fehlertext { margin: 0.35rem 0 0; font-size: var(--schrift-s); color: var(--fehler); font-weight: 600; }
.feld-ungueltig input, .feld-ungueltig textarea { border-color: var(--fehler); }

.meldung { margin: 0 0 var(--abstand); padding: 0.6rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--rand); background: var(--flaeche-leise); }
.meldung-hinweis { background: var(--akzent-leise); border-color: transparent; }
.meldung-erfolg { border-color: var(--st-fertig); }
.meldung-warnung { border-color: var(--prio-hoch); }
.meldung-fehler { color: var(--fehler); background: var(--fehler-bg); border-color: var(--fehler); }

.schritte { margin: 0 0 var(--abstand); }
.schritte ol { list-style: none; margin: 0; padding: 0; }
.schritte-stand { margin: 0 0 0.5rem; font-size: var(--schrift-s); color: var(--text-leise); }
.schritte-assistent ol { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.schritte-assistent .schritt { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-leise); }
.schritt-nr { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: var(--schrift-s); font-weight: 600; flex: none; }
.schritt-aktuell { color: var(--text); font-weight: 600; }
.schritt-aktuell .schritt-nr { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.schritt-erledigt .schritt-nr { border-color: var(--st-fertig); color: var(--st-fertig); }
ol.schritte-einrichtung { list-style: none; padding: 0; }
.schritte-einrichtung .schritt { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rand); }
.schritte-einrichtung .schritt:last-child { border-bottom: 0; }
.schritte-einrichtung .schritt-titel { flex: 1; min-width: 0; }
.schritt-wort { font-size: var(--schrift-s); color: var(--text-leise); white-space: nowrap; }

/* Auswahlkarten: eine Auswahl aus wenigen Möglichkeiten, jede mit Titel und Erklärung (Radioknöpfe, ohne Skript) */
.wahlkarten { border: 0; margin: 0 0 var(--abstand); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.wahlkarten legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.wahlkarte { position: relative; display: block; margin: 0; padding: 0.8rem 0.9rem 0.8rem 2.4rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); font-weight: 400; cursor: pointer; }
.wahlkarte input { position: absolute; left: 0.85rem; top: 1rem; width: 1rem; height: 1rem; margin: 0; }
.wahlkarte:has(input:checked) { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.wahlkarte:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.wahlkarte-titel { display: block; font-weight: 600; }
.wahlkarte-text { display: block; font-size: var(--schrift-s); color: var(--text-leise); margin-top: 0.15rem; }
.wahlkarte-symbol { float: left; font-size: 1.4rem; line-height: 1.3; margin-right: 0.5rem; }
.branchenwahl { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.branchenwahl legend, .branchenwahl .feld-fehlertext { grid-column: 1 / -1; }

.assistent { max-width: 46rem; }
.assistent-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: var(--abstand); }
.assistent-fuss .rechts { display: inline-flex; gap: 0.6rem; margin-left: auto; }
.leitfragen { margin: 0 0 0.6rem; padding-left: 1.2rem; color: var(--text-leise); font-size: var(--schrift-s); }

/* Formulare im Betrieb (PB-4330): eine Spalte von höchstens --formbreite, Felder und Knöpfe gleich hoch (--feldhoehe), Abstand
   zwischen Hauptknopf und "Abbrechen". Der Fokusring kommt für alles aus basis.css (:focus-visible, 3 px) und wird nirgends
   abgeschwächt. Für ein Formular ohne .feld: Klasse .formspalte am Formular oder an seinem Kasten; .knopfzeile für die Knöpfe am Ende. */
body.betrieb main .feld, .formspalte { max-width: var(--formbreite); }
body.betrieb main form:not([class]) > p { max-width: var(--formbreite); }
body.betrieb :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"]), select, button, .knopf) { min-height: var(--feldhoehe); }
body.betrieb main :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"]), select, button, .knopf) { padding-top: 0.375rem; padding-bottom: 0.375rem; }
body.betrieb main :is(input[type="checkbox"], input[type="radio"]) { width: 1rem; height: 1rem; margin: 0 var(--raum-1) 0 0; vertical-align: -0.125rem; accent-color: var(--akzent); }
body.betrieb main p > :is(button, .knopf) + :is(a, button) { margin-left: var(--raum-3); }
.knopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-4); margin: var(--raum-5) 0 0; }
body.betrieb main label:has(> input[type="checkbox"], > input[type="radio"]) { font-weight: 400; }
/* PB-5146 Oberflächenwahl: kleine Skizzen aus Kästchen, ausgegraut was noch nicht wählbar ist */
.wahlkarte-aus { opacity: 0.6; cursor: not-allowed; }
.skizze { display: flex; gap: 0.25rem; height: 2rem; margin-bottom: 0.4rem; }
.skizze i { flex: 1; border: 1px solid var(--rand); border-radius: 3px; background: var(--flaeche); }
.skizze-loop i:first-child { flex: 2; }
.skizze-baukasten { flex-wrap: wrap; }
.skizze-baukasten i { flex: 1 1 40%; }
.skizze-mehr i { border-style: dashed; }

/* PB-4202d: Abstand zwischen Speichern und Zurück, Logbuch-Karte ohne Leerraum oben */
.anrede-zurueck { margin-top: var(--abstand); }
.lb-karte > h2:first-child { margin-top: 0; }
