/* Between Water Formulare · Frontend
   Farben und Schriften über Variablen, Standard aus den Astra Global Colors.
   Anpassen z. B. per .bwf { --bwf-accent: #c8102e; } im Zusätzlichen CSS. */
.bwf {
	--bwf-accent: var(--ast-global-color-1, #c8102e);
	--bwf-ink: var(--ast-global-color-2, #1f3a44);
	--bwf-muted: var(--ast-global-color-3, #6b7780);
	--bwf-line: var(--ast-global-color-6, #d5d8da);
	--bwf-bg: #fff;
	--bwf-font: "Roboto Mono", ui-monospace, monospace;
	--bwf-head: Syne, sans-serif;
	font-family: var(--bwf-font);
	color: var(--bwf-ink);
	width: 100%;
	max-width: 100%;
	position: relative;
}
.bwf *, .bwf *::before, .bwf *::after { box-sizing: border-box; }
.bwf [hidden] { display: none !important; }

.bwf-progress { display: flex; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0; }
.bwf-progress li { flex: 1; height: 3px; margin: 0; background: var(--bwf-line); transition: background .2s; }
.bwf-progress li.is-active, .bwf-progress li.is-done { background: var(--bwf-accent); }

.bwf-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.bwf-legend { font-family: var(--bwf-head); font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.25; margin: 0 0 20px; padding: 0; float: left; width: 100%; }
.bwf-legend + * { clear: both; }
.bwf-intro { margin: 0 0 20px; font-size: 14px; line-height: 1.6; }

.bwf-grid { display: flex; flex-wrap: wrap; gap: 0 20px; }
.bwf-field { flex: 1 1 100%; margin: 0 0 20px; min-width: 0; border: 0; padding: 0; }
.bwf-half { flex: 1 1 calc(50% - 10px); }
/* Halbe Felder untereinander, sobald das Formular selbst schmal ist (z. B. in einer Rasterspalte) */
.bwf { container-type: inline-size; }
@container (max-width: 520px) { .bwf-half { flex-basis: 100%; } }
@supports not (container-type: inline-size) { @media (max-width: 600px) { .bwf-half { flex-basis: 100%; } } }

.bwf-field > label:not(.bwf-opt):not(.bwf-consent), .bwf-field > legend { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; margin: 0 0 8px; padding: 0; }
.bwf-req { font-style: normal; color: var(--bwf-accent); }
.bwf-help { display: block; font-size: 12px; color: var(--bwf-muted); margin-top: 6px; }

.bwf input[type=text], .bwf input[type=email], .bwf input[type=tel], .bwf input[type=url],
.bwf input[type=number], .bwf input[type=date], .bwf select, .bwf textarea {
	display: block; width: 100%; max-width: 100%; margin: 0;
	font: inherit; font-size: 15px; font-weight: 400; color: inherit;
	height: auto; min-height: 48px; line-height: 1.5;
	background: var(--bwf-bg); border: 1px solid var(--bwf-line); border-radius: 0;
	padding: 12px 14px; box-shadow: none;
}
.bwf textarea { resize: vertical; min-height: 120px; }
/* Kein Fokusrahmen (Entscheidung Jordan 19.10.2026), auch nicht vom Theme */
.bwf input:focus, .bwf select:focus, .bwf textarea:focus, .bwf button:focus, .bwf input:focus-visible, .bwf select:focus-visible, .bwf textarea:focus-visible, .bwf button:focus-visible { outline: none !important; box-shadow: none !important; }
.bwf input:focus, .bwf select:focus, .bwf textarea:focus { border-color: var(--bwf-line) !important; }
.bwf .is-invalid input:focus, .bwf .is-invalid select:focus, .bwf .is-invalid textarea:focus { border-color: var(--bwf-accent) !important; }

.bwf .bwf-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bwf-line); padding: 12px 14px; margin: 0 0 -1px; cursor: pointer; font-size: 14px; line-height: 1.4; text-transform: none; letter-spacing: 0; background: var(--bwf-bg); }
.bwf-opt input, .bwf-consent input { accent-color: var(--bwf-accent); margin: 0; flex: none; width: 18px; height: 18px; }
.bwf .bwf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; text-transform: none; letter-spacing: 0; cursor: pointer; }
.bwf-type-info p { margin: 0; font-size: 13px; line-height: 1.6; }
.bwf-type-info a, .bwf-consent a { color: inherit; text-decoration: underline; }

.bwf .is-invalid input, .bwf .is-invalid select, .bwf .is-invalid textarea, .bwf .is-invalid .bwf-opt { border-color: var(--bwf-accent); }
.bwf .is-invalid > label:not(.bwf-opt):not(.bwf-consent), .bwf .is-invalid > legend { color: var(--bwf-accent); }

.bwf-sum-toggle { background: none; border: 0; padding: 0; margin: 4px 0 0; font: inherit; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: underline; color: inherit; cursor: pointer; }
.bwf-summary { margin: 16px 0 0; font-size: 13px; display: grid; grid-template-columns: minmax(0, 35%) minmax(0, 1fr); gap: 8px 16px; }
.bwf-summary dt { color: var(--bwf-muted); }
.bwf-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 480px) { .bwf-summary { grid-template-columns: 1fr; gap: 2px; } .bwf-summary dd { margin-bottom: 10px; } }

.bwf-error { color: var(--bwf-accent); font-size: 13px; line-height: 1.5; margin: 16px 0 0; }
.bwf-success { font-family: var(--bwf-head); font-size: 22px; line-height: 1.3; padding: 8px 0; }

.bwf-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bwf .bwf-btn {
	font-family: var(--bwf-font) !important; font-weight: 600 !important; font-size: 14px; line-height: 1.2;
	text-transform: uppercase; letter-spacing: 1px; border: 0; border-radius: 0;
	padding: 14px 26px; cursor: pointer; color: #fff; background: var(--bwf-accent);
}
.bwf .bwf-btn:hover { filter: brightness(.88); color: #fff; background: var(--bwf-accent); }
.bwf .bwf-back, .bwf .bwf-back:hover { background: var(--bwf-ink); }
.bwf .bwf-btn[disabled] { opacity: .6; cursor: wait; }

.bwf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bwf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.bwf-preview-note { background: #fff7d6; border: 1px solid #e8d48a; padding: 10px 14px; font-size: 13px; margin: 0 0 24px; }
.bwf-preview-out { background: #f4f5f6; padding: 16px; font-size: 12px; white-space: pre-wrap; overflow: auto; margin-top: 20px; }
