/** singulary-ui/leistungen — Verkaufsprozess als Karten-Schiene; die Schiene läuft bis zu beiden Fensterkanten. */

.fyh-leist {
	--fyh-leist-gutter: var(--wp--custom--layout--gutter, var(--wp--style--root--padding-left, 1.5rem));
	--fyh-leist-accent: var(--wp--preset--color--navy, var(--wp--preset--color--ink));
	background: var(--wp--preset--color--base);
	border-block: 1px solid color-mix( in srgb, var(--wp--preset--color--hairline) 78%, transparent );
	padding-block: clamp( 3.5rem, 5vw, 5rem );
	padding-inline: var(--fyh-leist-gutter);
}

/* --- Head: SectionHeading pattern (two columns from 1024px, lead aligned to the title's foot) --- */
.fyh-leist__head {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 2rem;
}

.fyh-leist__heading {
	min-width: 0;
}

.fyh-leist__eyebrow {
	--sgui-rubric-color: var(--fyh-leist-accent);
	margin: 0 0 1rem;
}

/* Optional mark between rule and label (eyebrowIcon), e.g. a plane for a pilot's checklist. */
.fyh-leist__eyebrow-icon {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
}

.fyh-leist__h2 {
	margin: 0;
	font-size: var(--wp--custom--type--section-size, clamp(1.875rem, 3vw, 2.75rem));
	font-weight: var(--wp--custom--type--section-weight, 650);
	letter-spacing: var(--wp--custom--type--section-tracking, -.035em);
	line-height: var(--wp--custom--type--section-leading, 1.15);
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

.fyh-leist__h2 span {
	color: var(--wp--preset--color--muted);
}

.fyh-leist__lead {
	margin: 0;
	max-width: 54ch;
	font-size: 1rem;
	line-height: 1.625;
	color: var(--wp--preset--color--muted);
	text-wrap: pretty;
}

@media ( min-width: 1024px ) {
	.fyh-leist__head {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 4rem;
	}

	.fyh-leist__lead {
		align-self: end;
		font-size: 1.125rem;
	}
}

/* --- Process rail: full-bleed scrollport, content-axis start, like .fyh-listings --- */
.fyh-leist__rail {
	min-width: 0;
}

.fyh-leist__process {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp( 16.5rem, 22vw, 19.75rem );
	gap: 1rem;
	margin: 0 calc( -1 * var(--fyh-leist-gutter) );
	padding: .25rem var(--fyh-leist-gutter);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--fyh-leist-gutter);
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.fyh-leist__process::-webkit-scrollbar {
	display: none;
}

.fyh-leist__process-item {
	display: flex;
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}

/* Card: service card language in the brand navy (tinted surface, hairline, step label, outline icon). */
.fyh-leist__process-card {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	width: 100%;
	min-width: 0;
	padding: 1.75rem 1.5rem;
	border-radius: var(--wp--custom--radius--md, 16px);
	background: color-mix( in srgb, var(--fyh-leist-accent) 4%, var(--wp--preset--color--base) );
	box-shadow: inset 0 0 0 1px color-mix( in srgb, var(--fyh-leist-accent) 10%, var(--wp--preset--color--hairline) );
	transition: background-color .2s ease, box-shadow .2s ease;
}

.fyh-leist__process-card:hover {
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px color-mix( in srgb, var(--fyh-leist-accent) 32%, var(--wp--preset--color--hairline) ), 0 18px 40px -30px color-mix( in srgb, var(--fyh-leist-accent) 55%, transparent );
}

.fyh-leist__process-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.fyh-leist__process-number {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .07em;
	color: var(--fyh-leist-accent);
}

.fyh-leist__process-number span {
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.fyh-leist__process-icon {
	display: inline-flex;
	color: var(--fyh-leist-accent);
}

.fyh-leist__process-icon svg {
	width: 22px;
	height: 22px;
}

.fyh-leist__process-copy {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	min-width: 0;
}

.fyh-leist__process-title {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
	hyphens: auto;
}

.fyh-leist__process-text {
	font-size: 1rem;
	line-height: 1.625;
	color: var(--wp--preset--color--muted);
	text-wrap: pretty;
}

/* --- Controls under the rail, on the content's right edge --- */
.fyh-leist__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .5rem;
	margin-top: 1.5rem;
}

.fyh-leist__progress {
	position: relative;
	width: clamp( 4.5rem, 9vw, 7.5rem );
	height: 2px;
	margin-right: .75rem;
	border-radius: 999px;
	background: color-mix( in srgb, var(--fyh-leist-accent) 14%, var(--wp--preset--color--hairline) );
	overflow: hidden;
}

.fyh-leist__progress > span {
	display: block;
	width: 30%;
	height: 100%;
	border-radius: inherit;
	background: var(--fyh-leist-accent);
	transition: transform .25s ease;
}

.fyh-leist__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--fyh-leist-accent);
	border-radius: 999px;
	background: var(--fyh-leist-accent);
	color: var(--wp--preset--color--on-dark, #fff);
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.fyh-leist__arrow svg {
	width: 18px;
	height: 18px;
}

.fyh-leist__arrow:hover:not( :disabled ) {
	border-color: color-mix( in srgb, var(--fyh-leist-accent) 82%, #000 );
	background: color-mix( in srgb, var(--fyh-leist-accent) 82%, #000 );
}

.fyh-leist__arrow:disabled {
	border-color: var(--wp--preset--color--hairline);
	background: var(--wp--preset--color--base);
	color: var(--fyh-leist-accent);
	opacity: .45;
	cursor: default;
}

.fyh-leist__arrow:focus-visible,
.fyh-leist__process:focus-visible {
	outline: 2px solid var(--fyh-leist-accent);
	outline-offset: 3px;
}

@media ( max-width: 720px ) {
	.fyh-leist {
		padding-block: clamp( 3.75rem, 14vw, 5rem );
	}

	.fyh-leist__process {
		grid-auto-columns: min( 80vw, 19rem );
		gap: .75rem;
	}

	/* Phones swipe; the progress line stays as the only hint. */
	.fyh-leist__arrow {
		display: none;
	}

	.fyh-leist__controls {
		justify-content: flex-start;
		margin-top: 1.25rem;
	}

	.fyh-leist__progress {
		width: 5rem;
		margin-right: 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.fyh-leist__progress > span,
	.fyh-leist__process-card,
	.fyh-leist__arrow {
		transition: none;
	}

	.fyh-leist__process {
		scroll-behavior: auto;
	}
}
