/* CSB Schnellbewerbung – Step-Formular */

.csb-sb-form-wrap {
	width: 100%;
	margin: 0 auto;
	font-family: inherit;
}

/* Schritt-Leiste (klickbar) */
.csb-sb-form-wrap .csb-sb-form__steps {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.csb-sb-form-wrap .csb-sb-form__steps li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.csb-sb-form-wrap .csb-sb-form__steps li[hidden] {
	display: none;
}

.csb-sb-form-wrap .csb-sb-form__steps-item {
	display: block;
	margin: 0;
	padding: 6px 18px;
	border: none;
	border-radius: 6px;
	background: #dedede;
	color: #555;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.csb-sb-form-wrap .csb-sb-form__steps-item:hover:not(:disabled):not(.is-current) {
	background: #cfcfcf;
}

.csb-sb-form-wrap .csb-sb-form__steps-item.is-current {
	background: #cb161d;
	color: #fff;
	cursor: default;
}

.csb-sb-form-wrap .csb-sb-form__steps-item:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.csb-sb-form-wrap .csb-sb-form__steps-item:focus-visible {
	outline: 3px solid #cb161d;
	outline-offset: 2px;
}

/* Honeypot – unsichtbar, aber für Screenreader/Bots vorhanden */
.csb-sb-form__hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

.csb-sb-form__step {
	animation: csb-sb-fade-in 0.25s ease;
}

.csb-sb-form__step[hidden] {
	display: none !important;
}

@keyframes csb-sb-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.csb-sb-form-wrap .csb-sb-form__step-title {
	margin: 48px 0 10px;
	text-align: center;
}

.csb-sb-form-wrap .csb-sb-form__step-subtitle {
	margin: 0 0 32px;
	text-align: center;
}

.csb-sb-form__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.csb-sb-form__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 88px;
	padding: 18px 16px;
	border: 2px solid #d9d9d9;
	border-radius: 10px;
	background: #fff;
	font-size: 1em;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.csb-sb-form__tile:hover {
	border-color: #cb161d;
}

.csb-sb-form__tile.is-selected {
	border-color: #cb161d;
	background: #cb161d;
	color: #fff;
}

.csb-sb-form__tile:focus-visible {
	outline: 3px solid #cb161d;
	outline-offset: 2px;
}

.csb-sb-form__field-wrap {
	margin-bottom: 18px;
}

.csb-sb-form__field-wrap label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.csb-sb-form__field-wrap input[type="text"],
.csb-sb-form__field-wrap input[type="tel"],
.csb-sb-form__field-wrap input[type="email"],
.csb-sb-form__field-wrap input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 2px solid #d9d9d9;
	border-radius: 8px;
	font-size: 1em;
}

.csb-sb-form__field-wrap input:focus {
	border-color: #cb161d;
	outline: none;
}

.csb-sb-form__field-wrap input[aria-invalid="true"] {
	border-color: #c0392b;
}

.csb-sb-form__field-error {
	display: none;
	margin-top: 6px;
	color: #c0392b;
	font-size: 0.9em;
}

.csb-sb-form__hint {
	margin: -8px 0 16px;
	font-size: 0.9em;
	color: #666;
}

.csb-sb-form__privacy-wrap label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 0.9em;
}

.csb-sb-form__privacy-wrap input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.csb-sb-form__next {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 0.95em;
	cursor: pointer;
	display: block;
	width: 100%;
	margin-top: 6px;
	border: none;
	background: #cb161d;
	color: #fff;
	font-weight: 600;
}

.csb-sb-form__next:disabled {
	background: #b7c2cd;
	cursor: not-allowed;
}

.csb-sb-form__submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	border: none;
	border-radius: 8px;
	background: #cb161d;
	color: #fff;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
}

.csb-sb-form__submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.csb-sb-form__submit-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: csb-sb-spin 0.7s linear infinite;
}

@keyframes csb-sb-spin {
	to { transform: rotate(360deg); }
}

.csb-sb-form__error-general {
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #fbeaea;
	color: #c0392b;
}

.csb-sb-form__success {
	margin-top: 18px;
	padding: 18px 16px;
	border-radius: 8px;
	background: #eaf5e8;
	color: #2c5f1e;
	text-align: center;
	font-weight: 600;
}

@media (max-width: 480px) {
	.csb-sb-form__tiles {
		grid-template-columns: 1fr;
	}
}
