/* Schnarchen Formular-Fix – Statusmeldungen */

.sbf-result {
	margin: 0 0 2rem;
	padding: 1.5rem;
	border: 1px solid #c3c4c7;
	border-left-width: 5px;
	border-radius: 8px;
	background: #fff;
	color: #2b2b2b;
	box-shadow: 0 6px 20px rgba(21, 32, 43, 0.08);
}

.sbf-result[hidden] {
	display: none;
}

.sbf-result h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
	line-height: 1.25;
	color: #15202b;
}

.sbf-result p {
	margin: 0.5rem 0 0;
	line-height: 1.65;
}

.sbf-result--success {
	border-color: #2f855a;
	background: #f0fff4;
}

.sbf-result--warning {
	border-color: #b7791f;
	background: #fffaf0;
}

.sbf-result--error {
	border-color: #c53030;
	background: #fff5f5;
}

@media (max-width: 600px) {
	.sbf-result {
		padding: 1.25rem;
	}
}

/* Dynamische Erneuerung des Formular-Sicherheitstokens */
.sbf-token-status {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #4b5563;
}

.sbf-token-status:empty,
.sbf-token-status--ready:empty {
	display: none;
}

.sbf-token-status--loading,
.sbf-token-status--notice {
	color: #526d7a;
}

.sbf-token-status--error {
	padding: 0.75rem 1rem;
	border-left: 4px solid #c53030;
	background: #fff5f5;
	color: #8b1a1a;
}

.sb-form button[aria-busy="true"] {
	cursor: wait;
	opacity: 0.75;
}

/* Pflichtauswahl: Beratung vor Ort oder telefonisch */
.sbf-consultation-mode {
	width: 100%;
	min-width: 0;
	margin-top: 1.25rem;
}

.sbf-consultation-mode__label {
	margin: 0 0 0.65rem;
	font-weight: 700;
}

.sb-form__field .sbf-consultation-mode__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
}

.sb-form__field label.sbf-consultation-choice {
	display: grid;
	grid-template-columns: 1.125rem minmax(0, 1fr);
	align-items: flex-start;
	gap: 0.65rem;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid #b9c8d0;
	border-radius: 8px;
	background: #f7fafb;
	cursor: pointer;
}

.sb-form__field label.sbf-consultation-choice:has(input:checked) {
	border-color: #526d7a;
	background: #edf4f7;
	box-shadow: 0 0 0 1px #526d7a;
}

.sb-form__field label.sbf-consultation-choice > input[type="radio"] {
	display: inline-block;
	box-sizing: border-box;
	width: 1.125rem;
	min-width: 1.125rem;
	height: 1.125rem;
	min-height: 1.125rem;
	margin: 0.2rem 0 0;
	padding: 0;
	border-radius: 50%;
	box-shadow: none;
	accent-color: #526d7a;
}

.sb-form__field label.sbf-consultation-choice > span,
.sb-form__field label.sbf-consultation-choice small,
.sb-form__field label.sbf-consultation-choice strong {
	display: block;
}

.sb-form__field label.sbf-consultation-choice > span {
	width: auto;
	min-width: 0;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.sb-form__field label.sbf-consultation-choice small {
	margin-top: 0.25rem;
	font-size: 0.84rem;
	line-height: 1.45;
	color: #52606d;
}

.sb-form__field label.sbf-consultation-choice > input[type="radio"]:focus {
	outline: 2px solid #526d7a;
	outline-offset: 2px;
	box-shadow: none;
}

@media (max-width: 600px) {
	.sb-form__field .sbf-consultation-mode__choices {
		grid-template-columns: 1fr;
	}
}
