/* Theme-MBPro – Gestaltung der Ausgabe von NE Formular im Designsystem.
   Über höhere Spezifität (.mbp-form …), ohne Vorrang-Kennzeichnungen. Die Klassen von
   NE Formular waren beim Bau nicht bekannt; gestaltet werden deshalb die
   Formular-Elemente selbst. Sobald die Schnittstelle feststeht, lassen sich
   hier gezielt die Klassen von NE Formular ansprechen. */

.mbp-form{display:block}
.mbp-form form{margin:0}
.mbp-form fieldset{border:0;padding:0;margin:0 0 16px;min-width:0}
.mbp-form legend{font-weight:700;font-size:15px;margin-bottom:8px;padding:0}
.mbp-form label{font-weight:700;font-size:15px}
.mbp-form p{max-width:none}

.mbp-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]),
.mbp-form select,
.mbp-form textarea{width:100%;min-height:48px;padding:11px 14px;border-radius:12px;border:1.5px solid var(--line);background:var(--field);color:var(--fg-strong);font-size:16px;font-family:inherit}
.mbp-form textarea{min-height:96px;resize:vertical}
.mbp-form input:focus,.mbp-form select:focus,.mbp-form textarea:focus{outline:2px solid var(--brand-soft);outline-offset:1px}
.mbp-form input[type="checkbox"],.mbp-form input[type="radio"]{width:20px;height:20px;accent-color:var(--brand);vertical-align:middle;margin:0 8px 0 0}

.mbp-form [aria-invalid="true"]{border-color:var(--errc)}
.mbp-form [role="alert"],.mbp-form .error,.mbp-form .fehler{color:var(--errc);font-weight:600;font-size:14px}

.mbp-form button,.mbp-form input[type="submit"],.mbp-form input[type="button"]{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 24px;border-radius:var(--pill);border:1.5px solid var(--btn-border);background:transparent;color:var(--fg-strong);font:inherit;font-weight:700;font-size:16px;line-height:1.2;cursor:pointer;white-space:nowrap}
.mbp-form button:hover,.mbp-form input[type="submit"]:hover{border-width:2px}
.mbp-form button[type="submit"],.mbp-form input[type="submit"]{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}

/* Im Panel immer dunkel */
.panel .mbp-form{--field:var(--ink);--line:var(--brand)}

/* Lange Begriffe brechen sauber um, statt aus Kacheln und Spalten zu laufen (0.3.0). */
.mbp-form label,.mbp-form legend,.mbp-form fieldset{overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
.mbp-form label:has(input[type="checkbox"]),.mbp-form label:has(input[type="radio"]){display:flex;align-items:flex-start;gap:8px;line-height:1.4}
.mbp-form label:has(input[type="checkbox"]) input,.mbp-form label:has(input[type="radio"]) input{flex:0 0 auto;margin:1px 0 0}
