/*
 * Finale Fassung, Einstieg „Auswahl“ nach Comp W2
 * (design/.impeccable/mocks/hero/comp-w2-auswahl.png, Stil nach WorkOS): links Titel,
 * rechts „Wann ihr uns ruft“ als Selbstcheck mit Kästchen auf feinen Linien. Logos in
 * Kacheln. Zähler und Umschalten ohne JavaScript, nur mit :checked und CSS-Zählern.
 */

:root {
	--schrift-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	/* EGM Green allein hat auf Weiß 2,9:1, mit einem Viertel Wald gemischt reicht es für große Schrift und Kästchen */
	--gruen-tief: color-mix(in oklab, var(--gruen) 72%, var(--wald));
}

/* Auswahl und Fokus aus der Palette: Grün als Ring hat auf Weiß nur 2,9:1, Wald 14:1 */

::selection {
	background: var(--gruen-40);
	color: var(--wald);
}

a:focus-visible,
summary:focus-visible {
	outline: 0.1875rem solid var(--wald);
	outline-offset: 0.1875rem;
}

/* Sprung zum Inhalt, nur bei Tastaturfokus sichtbar (aus Fassung E) */

.springen {
	position: absolute;
	top: -10rem;
	left: var(--rand);
	z-index: 30;
	padding: 0.75rem 1.125rem;
	border-radius: var(--radius);
	background: var(--wald);
	color: var(--weiss);
	font-family: var(--schrift-titel);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.springen:focus {
	top: 0.75rem;
}

.pfeil-link {
	min-height: 2.75rem;
}

/* Pfeil als gezeichnete Form statt Textzeichen, damit die Unterstreichung des Links nicht unter ihm durchläuft */

.pfeil-link::after {
	content: "";
	flex: none;
	width: 1.125rem;
	height: 0.75rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.75'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.75'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Kopf: mobil mit Menü ohne JavaScript (aus Fassung E) */

.kopf__innen {
	position: relative;
}

.kopf__logo {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
}

.kopf__knopf-kurz {
	display: none;
}

.menue {
	display: none;
}

.menue__knopf {
	display: inline-flex;
	gap: 0.625rem;
	align-items: center;
	min-height: 2.75rem;
	padding-inline: 0.25rem;
	color: var(--tinte);
	font-family: var(--schrift-titel);
	font-size: 0.9375rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.menue__knopf::-webkit-details-marker {
	display: none;
}

.menue__zeichen {
	position: relative;
	width: 1.125rem;
	height: 0.75rem;
	border-block: 0.125rem solid currentColor;
}

.menue__zeichen::before,
.menue[open] .menue__zeichen::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	margin-top: -0.0625rem;
	border-top: 0.125rem solid currentColor;
}

.menue[open] .menue__zeichen {
	border-color: transparent;
}

.menue[open] .menue__zeichen::before {
	transform: rotate(45deg);
}

.menue[open] .menue__zeichen::after {
	transform: rotate(-45deg);
}

.menue__flaeche {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	padding: 0.5rem var(--rand) 1.5rem;
	border-bottom: 0.0625rem solid var(--linie);
	background: var(--weiss);
	box-shadow: 0 1rem 2rem rgb(17 42 40 / 0.08);
}

.menue__flaeche a {
	padding-block: 0.9375rem;
	border-bottom: 0.0625rem solid var(--linie);
	color: var(--tinte);
	font-family: var(--schrift-titel);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 56rem) {
	.menue {
		display: block;
	}

	.kopf__innen {
		gap: 1.25rem;
	}
}

@media (max-width: 30rem) {
	.kopf__knopf-lang {
		display: none;
	}

	.kopf__knopf-kurz {
		display: inline;
	}
}


/* Einstieg */

.einstieg {
	padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.einstieg__raster {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: start;
}

.einstieg__kicker {
	margin-bottom: 1.5rem;
	color: var(--text);
	font-family: var(--schrift-mono);
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

.einstieg__titel {
	font-size: clamp(2.125rem, 4.2vw, 3.75rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.einstieg__titel > span {
	display: block;
}

.einstieg__satz {
	max-width: 32rem;
	margin-top: 1.75rem;
	font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
}

.einstieg__aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	align-items: center;
	margin-top: 2.5rem;
}

/* „Wann ihr uns ruft“ als Selbstcheck nach Comp V2 „Tiefe“
   (design/.impeccable/mocks/hero/comp-v2-tiefe.png). Die Kästchen sind echte Checkboxen,
   der Zähler darunter zählt per CSS-Zähler mit. Die blassen Zeilen oben und unten sind
   Schmuck (aria-hidden): Sie liegen als helle Flächen hinter den aktiven Zeilen und deuten
   an, dass es mehr solcher Momente gibt. */

.auswahl {
	position: relative;
	isolation: isolate;
	counter-reset: treffer;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.auswahl__titel {
	float: left;
	width: 100%;
	margin-bottom: 1rem;
	padding: 0;
	color: var(--text);
	font-family: var(--schrift-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.auswahl__zeile {
	clear: both;
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	column-gap: 1.125rem;
	align-items: center;
	position: relative;
	z-index: 1;
	width: calc(100% - 3rem);
	margin: 0 0 0.5rem;
	padding: 1.0625rem 1.375rem;
	border: 0.0625rem solid var(--linie);
	border-radius: 0.5rem;
	background: var(--weiss);
	box-shadow: 0 0.375rem 1.125rem rgb(17 42 40 / 0.06);
	color: var(--tinte);
	font-size: 1.0625rem;
	line-height: 1.4;
}

/* Versatz nach links und rechts wie in der Vorlage */
.auswahl__zeile:nth-child(3),
.auswahl__zeile:nth-child(5) {
	margin-inline-start: 1.5rem;
}

.auswahl__zeile:nth-child(4) {
	margin-inline-start: 3rem;
}

label.auswahl__zeile {
	cursor: pointer;
}

label.auswahl__zeile:hover {
	border-color: var(--wald-20);
}

/* Blasse Zeilen: helle Fläche ohne Rand, etwas schmaler, halb unter der Nachbarzeile */
.auswahl__zeile--rand {
	z-index: 0;
	width: calc(100% - 4.5rem);
	border-color: transparent;
	background: var(--hell);
	box-shadow: 0 0.25rem 0.75rem rgb(17 42 40 / 0.04);
	color: var(--wald-40);
}

.auswahl__zeile--rand:nth-child(2) {
	margin-bottom: -0.5rem;
	padding-bottom: 1.5625rem;
}

.auswahl__zeile--rand:nth-child(6) {
	margin-top: -1rem;
	padding-top: 1.5625rem;
}

.auswahl__zeile input {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.auswahl__zeile input:checked {
	counter-increment: treffer;
}

.auswahl__kasten {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
	border: 0.09375rem solid var(--wald-40);
	border-radius: 0.25rem;
	background: var(--weiss);
}

.auswahl__zeile--rand .auswahl__kasten {
	border-color: var(--wald-20);
}

input:checked + .auswahl__kasten {
	border-color: var(--gruen-tief);
	background: var(--gruen-tief);
}

/* Häkchen aus zwei Rändern */
input:checked + .auswahl__kasten::after {
	content: "";
	position: absolute;
	top: 0.1875rem;
	left: 0.375rem;
	width: 0.3125rem;
	height: 0.625rem;
	border: solid var(--weiss);
	border-width: 0 0.125rem 0.125rem 0;
	transform: rotate(45deg);
}

label.auswahl__zeile:has(input:focus-visible) {
	outline: 0.1875rem solid var(--wald);
	outline-offset: 0.1875rem;
}

/* Zähler und Knopf zum Erstgespräch: erst abhaken, dann anfragen (Comp E2, .impeccable/mocks/einstieg/).
   Der Knopf schließt rechts bündig mit den aktiven Zeilen ab. Raster statt Umbruch, damit der Knopf
   nicht springt, wenn der Zähler zwischen „Kreuzt an, was zutrifft“ und „1 von 3 treffen zu“ wechselt. */

.auswahl__fuss {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem 2rem;
	align-items: center;
	margin-top: 1.75rem;
	padding-inline: 1.5rem;
}

.auswahl__stand {
	color: var(--text);
	font-family: var(--schrift-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.auswahl__stand::before {
	content: counter(treffer) " von 3 treffen zu";
}

.auswahl:not(:has(input:checked)) .auswahl__stand::before {
	content: "Kreuzt an, was zutrifft";
}

/* Schmale Spalte: Zähler über dem Knopf, sonst bricht „Kreuzt an, was zutrifft“ in drei Zeilen */

@media (max-width: 72rem) {
	.auswahl__fuss {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}
}

/* Kundenband: Logos in hellen Kacheln, eine Reihe */

.kunden {
	padding-block: 1rem clamp(3.5rem, 7vw, 6rem);
}

.kunden__titel {
	margin-bottom: 1.25rem;
	color: var(--text);
	font-family: var(--schrift-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kunden__liste {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kunden__liste li {
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(5rem, 8vw, 7rem);
	padding: 1.25rem;
	border-radius: 0.5rem;
	background: var(--hell);
}

.kunden__liste img {
	width: auto;
	max-width: min(100%, 8rem);
	height: auto;
	max-height: 2.75rem;
	mix-blend-mode: multiply;
}

/* Schmale Bildschirme: eine Spalte, kleinerer Versatz, ohne blasse Zeilen */

@media (max-width: 56rem) {
	.einstieg {
		padding-block: 2rem 2.5rem;
	}

	.einstieg__raster {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.einstieg__titel {
		font-size: clamp(2.125rem, 7vw, 3.25rem);
	}

	.einstieg__kicker {
		margin-bottom: 1rem;
	}

	.einstieg__satz {
		margin-top: 1.25rem;
	}

	.einstieg__aktionen {
		gap: 0.5rem 2rem;
		margin-top: 1.75rem;
	}

	/* Versatz bleibt, nur kleiner */
	.auswahl__zeile {
		width: calc(100% - 1rem);
	}

	.auswahl__zeile:nth-child(3),
	.auswahl__zeile:nth-child(5) {
		margin-inline-start: 0;
	}

	.auswahl__zeile:nth-child(4) {
		margin-inline-start: 1rem;
	}

	.auswahl__zeile--rand {
		display: none;
	}

	.auswahl__fuss {
		padding-inline: 0 1rem;
	}

	.kunden__liste {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 30rem) {
	.auswahl__fuss {
		grid-template-columns: minmax(0, 1fr);
	}

	.auswahl__knopf {
		width: 100%;
	}

	.auswahl__zeile {
		padding: 0.9375rem 1rem;
		font-size: 1rem;
	}

	.kunden__liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
