/* Formular aus Izzy Bausteine (inc/formular.php). Nur Abstände, Fehler und Meldungen; Farben, Schriften, Felder und
   Knopf kommen vom Theme. Werte über die Variablen der CI mit Rückfallwert, damit es auch ohne sie lesbar bleibt.
   Zustände nie nur über Farbe (Rot-Grün-Schwäche): Fehler tragen ✕ und einen dickeren Rahmen, Erfolg ✓. */

.izzy-formular [hidden] { display: none !important; }

.izzy-formular__feld { margin: 0 0 var(--raum-6, 24px); }
.izzy-formular__feld label { display: block; margin: 0 0 var(--raum-2, 8px); }
.izzy-formular__feld input,
.izzy-formular__feld textarea { box-sizing: border-box; width: 100%; max-width: 100%; }
.izzy-formular__feld textarea { min-height: 8em; resize: vertical; }
.izzy-formular__pflicht { font-weight: 400; color: var(--gedaempft, inherit); }

.izzy-formular__fehler { margin: var(--raum-2, 8px) 0 0; font-weight: 600; color: var(--fehler, #b3261e); }
.izzy-formular [aria-invalid="true"] { border-color: var(--fehler, #b3261e); border-width: 2px; }

.izzy-formular__knopf { cursor: pointer; }
.izzy-formular__knopf[disabled] { opacity: 0.6; cursor: progress; }

.izzy-formular__datenschutz { margin: var(--raum-4, 16px) 0 0; font-size: var(--klein-groesse, 0.875em); }

.izzy-formular__meldung { margin: var(--raum-4, 16px) 0 0; padding: var(--raum-3, 12px) var(--raum-4, 16px); border: 2px solid currentColor; border-radius: var(--radius, 6px); }
.izzy-formular__meldung--ok { color: var(--ok, #1b5e20); }
.izzy-formular__meldung--fehler { color: var(--fehler, #b3261e); }
.izzy-formular__zeichen { font-weight: 700; }
.izzy-formular__hinweis { margin: 0; }

/* Verstecktes Feld (Spamschutz): außerhalb des Bildes statt display:none, das manche Programme erkennen. */
.izzy-formular__falle { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Auswahl (0.3.0): fieldset ohne Rahmen und Innenabstand, Optionen untereinander, Kästchen in eigener Breite (sonst
   zöge .izzy-formular__feld input sie auf 100 %), Beschriftung neben dem Kästchen. */
.izzy-formular__auswahl { padding: 0; border: 0; min-width: 0; }
.izzy-formular__auswahl legend { padding: 0; margin: 0 0 var(--raum-2, 8px); }
.izzy-formular__option { display: block; margin: 0 0 var(--raum-2, 8px); }
.izzy-formular__option input { width: auto; max-width: none; margin: 0; }
.izzy-formular__option label { display: inline; margin: 0; }

/* Nur für Vorleseprogramme (titel_versteckt): Beschriftung oder Legende bleibt im Baum, ist aber nicht zu sehen. */
.izzy-formular .izzy-formular__vorleser { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: no-preference) {
	.izzy-formular__knopf { transition: opacity var(--tempo, 0.2s) ease; }
}
