/*!
 * Auftragshebel Core – Qualifizierungsfunnel.
 * Uses the design tokens of the Landingpage v1 (theme variables if available).
 */

.ah-funnel {
	--f-blue: var(--ah-blue, #3E52E7);
	--f-blue-h: var(--ah-blue-hover, #3043CC);
	--f-ink: var(--ah-ink, #0F1115);
	--f-muted: var(--ah-muted, #3F424A);
	--f-muted-2: var(--ah-muted-2, #62656D);
	--f-line: var(--ah-line, #D8D8D3);
	--f-bg: var(--ah-bg, #F4F4F2);
	--f-white: #FFFFFF;
	--f-err: #B42318;
	--f-ff-d: var(--ah-ff-d, 'Bricolage Grotesque', system-ui, sans-serif);
	--f-ff-b: var(--ah-ff-b, 'Instrument Sans', system-ui, sans-serif);
	--f-gutter: var(--ah-gutter, clamp(20px, 4vw, 48px));

	position: relative;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
	font-family: var(--f-ff-b);
	font-size: 17px;
	line-height: 1.55;
	color: var(--f-ink);
	box-sizing: border-box;
}

.ah-funnel *,
.ah-funnel *::before,
.ah-funnel *::after {
	box-sizing: border-box;
}

.ah-funnel [hidden] {
	display: none !important;
}

.ah-funnel--done,
.ah-funnel[data-ah-current="done"] {
	max-width: 1040px;
}

.ah-funnel h2,
.ah-funnel h3,
.ah-funnel p,
.ah-funnel ul,
.ah-funnel fieldset,
.ah-funnel legend {
	margin: 0;
}

.ah-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ah-hp {
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------- steps */

html.ah-js .ah-funnel .ah-step:not(.is-active):not([data-step="intro"]) {
	display: none;
}

html.ah-js .ah-funnel[data-ah-current] .ah-step:not(.is-active) {
	display: none;
}

/* Without JavaScript: one long form. */
html:not(.ah-js) .ah-funnel .ah-step + .ah-step {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--f-line);
}

html:not(.ah-js) .ah-funnel [data-ah-action],
html:not(.ah-js) .ah-funnel .ah-intro__actions,
html:not(.ah-js) .ah-funnel .ah-progress {
	display: none !important;
}

html:not(.ah-js) .ah-funnel .ah-step__nav {
	justify-content: flex-end;
}

/* ------------------------------------------------------------ typography */

.ah-funnel .ah-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--f-muted-2);
}

.ah-funnel .ah-eyebrow--accent {
	color: var(--f-blue);
}

.ah-funnel .ah-dot {
	display: inline-block;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--f-blue);
}

.ah-funnel .ah-title {
	margin-top: 22px;
	font-family: var(--f-ff-d);
	font-size: clamp(32px, 3.4vw, 50px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--f-ink);
	text-wrap: balance;
}

.ah-funnel .ah-title--q {
	font-size: clamp(26px, 2.9vw, 38px);
	line-height: 1.12;
}

.ah-funnel .ah-title label {
	cursor: text;
}

.ah-funnel .ah-title:focus,
.ah-funnel .ah-result:focus {
	outline: none;
}

.ah-funnel .ah-light {
	font-weight: 400;
}

.ah-funnel .ah-lead {
	margin-top: 24px;
	font-size: 19px;
	line-height: 1.55;
	color: var(--f-muted);
	max-width: 560px;
	text-wrap: pretty;
}

.ah-funnel .ah-hint {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--f-muted);
	max-width: 600px;
	text-wrap: pretty;
}

.ah-funnel .ah-note {
	font-size: 14px;
	line-height: 1.5;
	color: var(--f-muted-2);
}

/* ---------------------------------------------------------------- intro */

.ah-funnel .ah-intro {
	background: var(--f-white);
	border: 1px solid var(--f-ink);
	padding: clamp(28px, 4.5vw, 56px);
}

.ah-funnel .ah-intro__actions {
	margin-top: 36px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

/* ------------------------------------------------------------- progress */

.ah-funnel .ah-progress {
	position: relative;
	height: 2px;
	margin-bottom: 28px;
	background: var(--f-line);
	overflow: hidden;
}

.ah-funnel .ah-progress__bar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: var(--f-blue);
}

/* -------------------------------------------------------------- options */

.ah-funnel .ah-fieldset {
	border: 0;
	padding: 0;
	min-width: 0;
}

.ah-funnel .ah-legend {
	display: block;
	width: 100%;
	padding: 0;
}

.ah-funnel .ah-options {
	display: grid;
	gap: 10px;
	margin-top: 28px;
}

.ah-funnel .ah-options--inline {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 16px;
	max-width: 420px;
}

.ah-funnel .ah-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 14px 18px;
	background: var(--f-white);
	border: 1px solid var(--f-line);
	border-radius: 3px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ah-funnel .ah-option:hover {
	border-color: var(--f-ink);
}

.ah-funnel .ah-option__input {
	position: absolute;
	left: 18px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0;
	opacity: 0;
	cursor: pointer;
}

.ah-funnel .ah-option__mark {
	flex: none;
	position: relative;
	width: 20px;
	height: 20px;
	border: 1px solid var(--f-ink);
	border-radius: 50%;
	background: var(--f-white);
	transition: background-color .15s ease;
}

.ah-funnel .ah-option--multi .ah-option__mark {
	border-radius: 3px;
}

.ah-funnel .ah-option__input:checked + .ah-option__mark {
	background: var(--f-blue);
	border: 2px solid var(--f-ink);
}

.ah-funnel .ah-option--multi .ah-option__input:checked + .ah-option__mark::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #FFFFFF;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ah-funnel .ah-option:has(.ah-option__input:checked) {
	border-color: var(--f-ink);
	box-shadow: inset 0 0 0 1px var(--f-ink);
}

.ah-funnel .ah-option__input:focus-visible + .ah-option__mark {
	outline: 2px solid var(--f-blue);
	outline-offset: 3px;
}

.ah-funnel .ah-option:has(.ah-option__input:focus-visible) {
	outline: 2px solid var(--f-blue);
	outline-offset: 2px;
}

.ah-funnel .ah-option:has(.ah-option__input:focus-visible) .ah-option__mark {
	outline: none;
}

.ah-funnel .has-error .ah-option {
	border-color: var(--f-err);
}

.ah-funnel .ah-followup {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--f-ink);
}

.ah-funnel .ah-legend--sub {
	font-family: var(--f-ff-d);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

/* --------------------------------------------------------------- inputs */

.ah-funnel .ah-label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--f-ink);
}

.ah-funnel .ah-optional {
	font-weight: 400;
	color: var(--f-muted-2);
}

.ah-funnel .ah-input {
	display: block;
	width: 100%;
	height: 56px;
	padding: 0 16px;
	border: 1px solid var(--f-line);
	border-radius: 3px;
	background: var(--f-white);
	color: var(--f-ink);
	font: inherit;
	font-size: 17px;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease;
}

.ah-funnel .ah-question > .ah-input {
	margin-top: 28px;
}

.ah-funnel .ah-input::placeholder {
	color: #8B8E95;
	opacity: 1;
}

.ah-funnel .ah-input:hover {
	border-color: #9A9CA3;
}

.ah-funnel .ah-input:focus {
	border-color: var(--f-ink);
	outline: 2px solid var(--f-blue);
	outline-offset: 2px;
}

.ah-funnel .ah-input[aria-invalid="true"] {
	border-color: var(--f-err);
}

.ah-funnel .ah-error {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 500;
	color: var(--f-err);
}

.ah-funnel .ah-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	margin-top: 32px;
}

.ah-funnel .ah-field--website {
	grid-column: 1 / -1;
}

@media (max-width: 640px) {
	.ah-funnel .ah-fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------- consent */

.ah-funnel .ah-consent {
	margin-top: 28px;
}

.ah-funnel .ah-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--f-muted);
	cursor: pointer;
}

.ah-funnel .ah-check__input {
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ah-funnel .ah-check__mark {
	flex: none;
	position: relative;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid var(--f-ink);
	border-radius: 3px;
	background: var(--f-white);
}

.ah-funnel .ah-check__input:checked + .ah-check__mark {
	background: var(--f-blue);
	border: 2px solid var(--f-ink);
}

.ah-funnel .ah-check__input:checked + .ah-check__mark::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #FFFFFF;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ah-funnel .ah-check__input:focus-visible + .ah-check__mark {
	outline: 2px solid var(--f-blue);
	outline-offset: 3px;
}

.ah-funnel .has-error .ah-check__mark {
	border-color: var(--f-err);
}

.ah-funnel .ah-check a {
	color: var(--f-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ah-funnel .ah-check a:hover {
	color: var(--f-blue);
}

/* ---------------------------------------------------------- navigation */

.ah-funnel .ah-step__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 36px;
}

.ah-funnel .ah-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--f-ink);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
	cursor: pointer;
}

.ah-funnel .ah-back:hover {
	color: var(--f-blue);
}

.ah-funnel .ah-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 52px;
	padding: 0 22px;
	background: var(--f-blue);
	color: #FFFFFF;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}

.ah-funnel .ah-btn::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #FFFFFF;
}

.ah-funnel .ah-btn:hover {
	background: var(--f-blue-h);
	color: #FFFFFF;
}

.ah-funnel .ah-btn:focus-visible,
.ah-funnel .ah-back:focus-visible,
.ah-funnel .ah-wa__link:focus-visible,
.ah-funnel a:focus-visible {
	outline: 2px solid var(--f-blue);
	outline-offset: 3px;
}

.ah-funnel .ah-btn[disabled] {
	opacity: .72;
	cursor: progress;
}

.ah-funnel .ah-form-error,
.ah-funnel .ah-funnel__notice {
	margin-top: 24px;
	padding: 16px 18px;
	border: 1px solid var(--f-err);
	background: #FDF3F2;
	font-size: 15px;
	line-height: 1.5;
	color: var(--f-ink);
}

.ah-funnel .ah-funnel__notice {
	margin: 0 0 32px;
}

.ah-funnel .ah-form-error p + p,
.ah-funnel .ah-funnel__notice ul {
	margin-top: 8px;
}

.ah-funnel .ah-funnel__notice ul {
	padding-left: 18px;
}

.ah-funnel .ah-form-error a {
	color: var(--f-ink);
}

@media (max-width: 959px) {
	html.ah-js .ah-funnel .ah-step__nav {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 32px calc(-1 * var(--f-gutter)) 0;
		padding: 12px var(--f-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
		background: rgba(244, 244, 242, .96);
		border-top: 1px solid var(--f-line);
	}

	html.ah-js .ah-funnel .ah-step__nav .ah-btn {
		flex: 1 1 auto;
	}

	.ah-funnel .ah-intro__actions .ah-btn {
		width: 100%;
	}
}

/* --------------------------------------------------------------- result */

.ah-funnel .ah-result__title {
	font-family: var(--f-ff-d);
	font-size: clamp(32px, 3.6vw, 52px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-wrap: balance;
}

.ah-funnel .ah-result__lead {
	margin-top: 24px;
	font-size: 19px;
	line-height: 1.55;
	color: var(--f-muted);
	max-width: 640px;
	text-wrap: pretty;
}

.ah-funnel .ah-result__status {
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--f-ink);
	max-width: 680px;
}

.ah-funnel .ah-result__subtitle {
	font-family: var(--f-ff-d);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.ah-funnel .ah-result__status .ah-result__lead {
	margin-top: 10px;
	font-size: 17px;
}

.ah-funnel .ah-result__options {
	margin-top: clamp(40px, 5vw, 64px);
	display: grid;
	gap: 48px;
}

.ah-funnel .ah-result__options--two {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 48px 56px;
}

.ah-funnel .ah-card {
	min-width: 0;
	padding-top: 24px;
	border-top: 1px solid var(--f-ink);
}

.ah-funnel .ah-card__title {
	font-family: var(--f-ff-d);
	font-size: clamp(22px, 2.3vw, 30px);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.12;
	text-wrap: balance;
}

.ah-funnel .ah-card__text {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--f-muted);
	max-width: 460px;
	text-wrap: pretty;
}

.ah-funnel .ah-card__actions {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.ah-funnel .ah-calendly {
	margin-top: 28px;
}

.ah-funnel .ah-calendly iframe {
	display: block;
	width: 100%;
	height: 720px;
	border: 1px solid var(--f-line);
	background: var(--f-white);
}

.ah-funnel .ah-calendly__fallback {
	margin-top: 12px;
	font-size: 15px;
}

.ah-funnel .ah-calendly__fallback a {
	color: var(--f-ink);
	text-underline-offset: 4px;
}

.ah-funnel .ah-wa {
	list-style: none;
	margin-top: 20px;
	padding: 0;
	border-bottom: 1px solid var(--f-line);
}

.ah-funnel .ah-wa__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 14px 0;
	border-top: 1px solid var(--f-line);
	color: var(--f-ink);
	text-decoration: none;
}

.ah-funnel .ah-wa__name {
	display: block;
	font-family: var(--f-ff-d);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.ah-funnel .ah-wa__phone {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--f-muted-2);
	font-variant-numeric: tabular-nums;
}

.ah-funnel .ah-wa__arrow {
	flex: none;
	font-size: 20px;
	line-height: 1;
}

.ah-funnel .ah-wa__link:hover {
	color: var(--f-blue);
}

.ah-funnel .ah-wa__link:hover .ah-wa__phone {
	color: var(--f-blue);
}

.ah-funnel .ah-result__done {
	margin-top: clamp(40px, 5vw, 64px);
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: 680px;
	font-family: var(--f-ff-d);
	font-size: clamp(19px, 2vw, 24px);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	text-wrap: balance;
}

.ah-funnel .ah-result__done .ah-dot {
	width: 10px;
	height: 10px;
	margin-top: 9px;
}

@media (prefers-reduced-motion: reduce) {
	.ah-funnel *,
	.ah-funnel *::before,
	.ah-funnel *::after {
		transition: none !important;
		animation: none !important;
	}
}
