.realfox-bw {
	--realfox-bw-accent: #8F8071;
	--realfox-bw-ink: #000000;
	--realfox-bw-muted: #000000;
	--realfox-bw-line: #E0E0E0;
	--realfox-bw-line-strong: #000000;
	--realfox-bw-tint: #F0F0F0;

	max-width: 1200px;
	margin: 0 auto;
	background: transparent;
	color: var(--realfox-bw-ink);
	position: relative;
}
.realfox-bw *, .realfox-bw *::before, .realfox-bw *::after { box-sizing: border-box; }
.realfox-bw h3, .realfox-bw h4 { margin: 0; line-height: 1.25; }

/* --- Fortschrittsanzeige: nummerierte Kreise --- */
.realfox-bw__progress { margin-bottom: 32px; }
.realfox-bw__dots {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}
.realfox-bw__dot {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #E0E0E0;
	color: #8A8A8A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	transition: background 0.25s ease, color 0.25s ease;
}
.realfox-bw__dot-line {
	flex: 1 1 auto;
	height: 2px;
	background: #E0E0E0;
	transition: background 0.25s ease;
}
.realfox-bw__dot.is-current,
.realfox-bw__dot.is-done {
	background: var(--realfox-bw-accent);
	color: #FFFFFF;
}
.realfox-bw__dot-line.is-done {
	background: var(--realfox-bw-accent);
}
.realfox-bw__step-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

/* --- Felder --- */
.realfox-bw__step { display: flex; flex-direction: column; gap: 22px; }
.realfox-bw__step[hidden] { display: none; }
.realfox-bw__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.realfox-bw__field { display: flex; flex-direction: column; }
.realfox-bw__field[hidden] { display: none; }
.realfox-bw__field label {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}
.realfox-bw__field input,
.realfox-bw__field textarea {
	font-size: 16px;
	font-family: inherit;
	color: var(--realfox-bw-ink);
	background: #FFFFFF;
	border: none;
	border-bottom: 1px solid var(--realfox-bw-line-strong);
	padding: 10px 2px;
	border-radius: 0;
	outline: none;
}
.realfox-bw__field select {
	font-size: 16px;
	font-family: inherit;
	color: var(--realfox-bw-ink);
	background-color: #FFFFFF;
	border: none;
	border-bottom: 1px solid var(--realfox-bw-line-strong);
	padding: 10px 28px 10px 2px;
	border-radius: 0;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 16px;
}
.realfox-bw__field input:focus,
.realfox-bw__field select:focus,
.realfox-bw__field textarea:focus {
	border-bottom: 2px solid var(--realfox-bw-accent);
	padding-bottom: 9px;
}
.realfox-bw__field textarea { resize: vertical; }

/* --- Regler (Wohnfläche, Zimmer, Baujahr) --- */
.realfox-bw__slider-row {
	display: flex;
	align-items: center;
	gap: 16px;
}
.realfox-bw__slider-value {
	min-width: 90px;
	text-align: right;
	font-weight: 700;
	font-size: 17px;
	font-variant-numeric: tabular-nums;
}
.realfox-bw__field input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	height: 3px;
	border-radius: 999px;
	background: var(--realfox-bw-line);
	outline: none;
	cursor: pointer;
}
.realfox-bw__field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--realfox-bw-accent);
	border: 2px solid #FFFFFF;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.12);
	cursor: pointer;
	margin-top: -6.5px;
}
.realfox-bw__field input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--realfox-bw-accent);
	border: 2px solid #FFFFFF;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.12);
	cursor: pointer;
}
.realfox-bw__field input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: transparent; }
.realfox-bw__field input[type="range"]::-moz-range-track { height: 3px; border-radius: 999px; background: transparent; }
.realfox-bw__field input[type="range"]::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--realfox-bw-accent); }

.realfox-bw__map {
	margin-top: 12px;
	width: 100%;
	height: 220px;
	border: 1px solid var(--realfox-bw-line-strong);
	background: var(--realfox-bw-tint);
}
.realfox-bw__address-hint {
	display: block;
	font-size: 13px;
	color: #A85A2E;
	margin-bottom: 10px;
}

/* Google Autocomplete-Dropdown an Design angleichen */
.pac-container {
	border-radius: 0;
	border: 1px solid #000;
	box-shadow: none;
	font-family: inherit;
	margin-top: 2px;
}
.pac-item { padding: 8px 10px; font-size: 14px; }
.pac-item:hover { background: #F6F1ED; }

/* --- Icon-Kacheln: Immobilientyp --- */
.realfox-bw__type-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.realfox-bw__type-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 28px 16px;
	background: #FFFFFF;
	border: 1px solid var(--realfox-bw-line-strong);
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	color: var(--realfox-bw-ink);
	text-align: center;
}
.realfox-bw__type-tile svg {
	width: 60px;
	height: 60px;
	color: var(--realfox-bw-ink);
}
.realfox-bw__type-tile span {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}
.realfox-bw__type-tile:hover {
	border-color: var(--realfox-bw-accent);
}
.realfox-bw__type-tile:focus-visible,
.realfox-bw__subtype-tile:focus-visible,
.realfox-bw__toggle-tile:focus-visible,
.realfox-bw__button:focus-visible,
.realfox-bw__field input:focus-visible,
.realfox-bw__field select:focus-visible {
	outline: 2px solid var(--realfox-bw-accent);
	outline-offset: 2px;
}
.realfox-bw__type-tile.is-selected {
	background: var(--realfox-bw-accent);
	border-color: var(--realfox-bw-accent);
}
.realfox-bw__type-tile.is-selected svg,
.realfox-bw__type-tile.is-selected span {
	color: #FFFFFF;
}
.realfox-bw__type-error {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #C43D31;
}

/* --- Unterkategorien (nach Auswahl von Einfamilienhaus/Eigentumswohnung) --- */
.realfox-bw__subtype-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.realfox-bw__subtype-grid[hidden] {
	display: none;
}
.realfox-bw__subtype-tile {
	background: #FFFFFF;
	border: 1px solid var(--realfox-bw-line-strong);
	border-radius: 0;
	padding: 13px 18px;
	font-size: 15px;
	font-family: inherit;
	color: var(--realfox-bw-ink);
	cursor: pointer;
}
.realfox-bw__subtype-tile:hover { border-color: var(--realfox-bw-accent); }
.realfox-bw__subtype-tile.is-selected {
	background: var(--realfox-bw-accent);
	border-color: var(--realfox-bw-accent);
	color: #FFFFFF;
}

/* --- Toggle-Kacheln (Pool Ja/Nein, Besichtigungszeit) --- */
.realfox-bw__toggle-grid {
	display: flex;
	gap: 8px;
}
.realfox-bw__toggle-tile {
	flex: 1;
	background: #FFFFFF;
	border: 1px solid var(--realfox-bw-line-strong);
	border-radius: 0;
	padding: 16px 18px;
	font-size: 16px;
	font-family: inherit;
	color: var(--realfox-bw-ink);
	cursor: pointer;
	text-align: center;
}
.realfox-bw__toggle-tile:hover { border-color: var(--realfox-bw-accent); }
.realfox-bw__toggle-tile.is-selected {
	background: var(--realfox-bw-accent);
	border-color: var(--realfox-bw-accent);
	color: #FFFFFF;
}

@media (max-width: 420px) {
	.realfox-bw__type-tile { padding: 16px 16px; }
	.realfox-bw__type-tile svg { width: 44px; height: 44px; }
	.realfox-bw__type-tile span { font-size: 15px; }
}

.realfox-bw__honeypot { position: absolute; left: -9999px; top: -9999px; }

/* --- Buttons --- */
.realfox-bw__button {
	background: var(--realfox-bw-accent) !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 4px;
	padding: 15px 28px;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	cursor: pointer;
	width: 100%;
}
.realfox-bw__button:hover { opacity: 0.9; }
.realfox-bw__button.is-disabled {
	background: #D3D3D3 !important;
	color: #FFFFFF;
	cursor: pointer !important;
}
.realfox-bw__button.is-disabled:hover { opacity: 1; }

/* Absichern: Absenden-Button muss exakt gleich aussehen wie "Weiter" — falls das
   Theme button[id]-Selektoren mit höherer Spezifität verwendet. */
#rbw-submit.realfox-bw__button {
	background: var(--realfox-bw-accent) !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.8px !important;
}
#rbw-submit.realfox-bw__button.is-disabled {
	background: #D3D3D3 !important;
}

.realfox-bw__button--ghost {
	background: transparent;
	color: var(--realfox-bw-ink);
	border: 1px solid var(--realfox-bw-line-strong);
	width: auto;
	flex: 1;
}
.realfox-bw__actions {
	display: flex;
	gap: 14px;
}
.realfox-bw__actions .realfox-bw__button:not(.realfox-bw__button--ghost) { flex: 2; }

.realfox-bw__disclaimer {
	font-size: 13px;
	color: var(--realfox-bw-muted);
	opacity: 0.65;
	margin: 0;
	line-height: 1.5;
}

.realfox-bw__encourage {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 4px;
	color: var(--realfox-bw-accent);
}

.realfox-bw__error {
	margin-top: 18px;
	font-size: 15px;
	color: #C43D31;
}

/* --- Erfolgsanzeige --- */
.realfox-bw__success {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 24px 26px;
	background: #EAF6ED;
	border-radius: 8px;
}
.realfox-bw__success[hidden] {
	display: none;
}
.realfox-bw__footer-logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: 28px;
	opacity: 0.55;
}
.realfox-bw__footer-logo img {
	width: 20px !important;
	max-width: 20px !important;
	height: auto !important;
	flex-shrink: 0;
}
.realfox-bw__footer-logo span {
	font-size: 13px;
	color: var(--realfox-bw-ink);
}
.realfox-bw__success-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #3F9E52;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
}
.realfox-bw__success-icon svg { width: 16px; height: 16px; }
.realfox-bw__success h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #1F5E2C;
}

@media (max-width: 560px) {
	.realfox-bw__row { grid-template-columns: 1fr; }
	.realfox-bw__actions {
		flex-direction: column-reverse;
		gap: 16px;
	}
	.realfox-bw__button--ghost {
		background: none;
		border: none;
		width: auto;
		padding: 4px 0;
		text-align: center;
		text-decoration: underline;
		text-underline-offset: 3px;
		font-size: 14px;
	}
	.realfox-bw__field input,
	.realfox-bw__field select,
	.realfox-bw__field textarea {
		font-size: 16px; /* verhindert Auto-Zoom beim Fokussieren auf iOS */
		padding-top: 12px;
		padding-bottom: 12px;
	}
	.realfox-bw__toggle-tile,
	.realfox-bw__subtype-tile {
		padding: 13px 14px; /* grössere Touch-Fläche */
	}
	.realfox-bw__button {
		padding: 15px 18px;
		font-size: 13px;
		letter-spacing: 0.4px;
	}
	#rbw-submit.realfox-bw__button {
		font-size: 13px !important;
		letter-spacing: 0.4px !important;
	}
	.realfox-bw__step-label { font-size: 13px; }
	.realfox-bw__slider-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.realfox-bw__slider-value {
		min-width: 0;
		text-align: left;
		font-size: 24px;
		font-weight: 700;
	}
	.realfox-bw__footer-logo {
		justify-content: flex-start;
		text-align: left;
		flex-wrap: nowrap;
	}
	.realfox-bw__footer-logo span {
		font-size: 12px;
	}
	.realfox-bw__field input[type="range"] {
		width: 100%;
	}
}
