/* IMMOVITA – Startseite (Fassung G HP 2): Wissenschaftlicher Standard, Ihre Vorteile, Anfragen-Tool in vier Schritten. */

body .iv-standard { background: var(--iv-ivory); }
body .iv-vorteilehome { background: var(--iv-sand-soft); }
body .iv-anfrage { background: var(--iv-ivory); }
body .iv-standard .iv-display { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }

/* ---------- Anfragen-Tool ---------- */
body .iv-steps-form { display: flex; flex-direction: column; gap: 16px; }
body .iv-steps-form > * { margin: 0; }

body .iv-steps-bar {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}
body .iv-steps-bar li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-top: 8px;
	border-top: 3px solid var(--iv-sand);
	font-size: 11px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--iv-muted);
}
body .iv-steps-bar b {
	font-family: var(--iv-font-display);
	font-size: 22px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0;
}
body .iv-steps-form:not(.is-js) .iv-steps-bar,
body .iv-steps-form:not(.is-js) .iv-steps-text { display: none; }
body .iv-steps-bar li.is-current,
body .iv-steps-bar li.is-done { border-top-color: var(--iv-forest); color: var(--iv-forest); }
body .iv-steps-text { font-size: 12px; line-height: 18px; color: var(--iv-sage); }

body .iv-mstep {
	border: 0;
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--iv-sand);
	min-width: 0;
}
body .iv-steps-form.is-js .iv-mstep { border-top: 0; padding-top: 0; }
body .iv-mstep[hidden] { display: none !important; }
body .iv-mstep legend {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 24px;
	font-weight: 600;
	color: var(--iv-carbon);
}
body .iv-mstep legend:focus { outline: none; }
body .iv-mstep__body { display: flex; flex-direction: column; gap: 16px; }
body .iv-mstep__body > * { margin: 0; }

/* Auswahlkacheln (Vorschau und Contact Form 7 mit use_label_element) */
body .iv-choice,
body .iv-choice .wpcf7-radio {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
body .iv-choice .wpcf7-form-control-wrap { display: block; grid-column: 1 / -1; }
body .iv-choice .wpcf7-list-item { display: block; margin: 0; }
body .iv-choice label {
	display: flex;
	gap: 10px;
	align-items: center;
	height: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	background: var(--iv-ivory);
	border: 1px solid var(--iv-sand);
	border-radius: 2px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--iv-carbon);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body .iv-choice label:hover { border-color: var(--iv-sage); }
body .iv-choice label:has(input:checked) { background: #FFFFFF; border-color: var(--iv-forest); box-shadow: inset 0 0 0 1px var(--iv-forest); }
body .iv-choice input[type="radio"] { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--iv-forest); }

/* Navigation */
body .iv-steps-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
body .iv-steps-nav__back,
body .iv-steps-nav__next {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	padding: 12px 20px;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
body .iv-steps-nav__back { background: transparent; border: 1px solid var(--iv-sand); color: var(--iv-carbon); }
body .iv-steps-nav__back:hover { border-color: var(--iv-forest); }
body .iv-steps-nav__next { margin-left: auto; background: var(--iv-forest); border: 1px solid transparent; color: var(--iv-ivory); }
body .iv-steps-nav__next:hover { background: var(--iv-forest-deep); }
body .iv-steps-nav__back:focus-visible,
body .iv-steps-nav__next:focus-visible { outline: 2px solid var(--iv-sage); outline-offset: 2px; }
body .iv-steps-nav__submit { flex: 1 1 200px; margin: 0; }
body .iv-steps-nav__submit .wpcf7-submit,
body .iv-steps-nav .iv-submit { width: 100%; }
body .iv-steps-nav .wpcf7-spinner { display: none; }

body .iv-steps-error { display: block; grid-column: 1 / -1; margin-top: 4px; font-size: 12px; line-height: 18px; color: #9C3B2E; }

/* Honeypot (Contact Form 7) */
body .iv-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
	body .iv-choice,
	body .iv-choice .wpcf7-radio { grid-template-columns: 1fr; }
	body .iv-steps-bar li { font-size: 9px; letter-spacing: 0.02em; }
	body .iv-steps-nav__next { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	body .iv-choice label,
	body .iv-steps-nav__back,
	body .iv-steps-nav__next { transition: none; }
}
