/*
 * Premium-v2 (Fork, 09.11.2026): Startseite nach dem Designsystem (docs/premium-v2/06-designsystem.md).
 * Signatur: die erste Frage des Anfrage-Ablaufs auf der Kante zwischen Video und Seite. Beweis: die echte Probefläche
 * mit dem Claim. Alles andere ruhig: linksbündige Typografie, eine Fläche je Abschnitt, keine Effekte.
 */

.ds-seite.ds-start {
	padding-top: 0;
}

.ds-start {
	--ds-rand: var(--wp--custom--insel--rand);
	--ds-innen: min(1200px, calc(100% - 2 * var(--wp--preset--spacing--gutter)));
}

.ds-start > section {
	margin-block: 0;
}

.ds-start > section + section {
	margin-top: var(--wp--preset--spacing--section);
}

/* Startbild-Insel */
.ds-start-held {
	position: relative;
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: min(calc(100svh - 2 * var(--ds-rand)), 900px);
	margin: var(--ds-rand) var(--ds-rand) 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--insel);
	background-color: var(--wp--preset--color--navy-deep);
	color: var(--wp--preset--color--white);
	isolation: isolate;
}

.ds-start-held__medien {
	position: absolute;
	z-index: -1;
	inset: 0;
}

.ds-start-held__medien video,
.ds-start-held__medien img,
.ds-start-held__medien .ds-foto {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

/* Schleier nur für die Lesbarkeit der Überschrift */
.ds-start-held__medien::after {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(12 22 38 / 62%) 0%, rgb(12 22 38 / 18%) 34%, rgb(12 22 38 / 74%) 100%),
		linear-gradient(90deg, rgb(12 22 38 / 58%) 0%, rgb(12 22 38 / 0%) 72%);
	content: "";
}

/* Foto vom Einsatz statt Video (15.11.2026). Mobil füllt das Hochformat nicht die ganze Insel: Es steht oben bündig in
   voller Breite, damit Graffiti, Kopf und Gerät (obere 62 % des Fotos) über der Überschrift sichtbar bleiben (Hinweis
   Erik, 15.11.2026); darunter läuft es in das Dunkelblau der Insel aus, auf dem Überschrift und Auswahl stehen. */
@media (max-width: 599px) {
	.ds-start-held--foto .ds-start-held__medien {
		bottom: auto;
	}

	.ds-start-held--foto .ds-start-held__medien img,
	.ds-start-held--foto .ds-start-held__medien .ds-foto {
		height: auto;
		aspect-ratio: 3 / 4;
	}

	.ds-start-held--foto .ds-start-held__medien::after {
		background: linear-gradient(180deg, rgb(12 22 38 / 40%) 0%, rgb(12 22 38 / 12%) 16%, rgb(12 22 38 / 12%) 58%, rgb(12 22 38 / 72%) 74%, rgb(12 22 38) 100%);
	}
}

/* Tablets: Das Foto ist breiter als hoch skaliert und steht höher, damit Kopf und Gerät über der Überschrift liegen;
   unten läuft es wie auf dem Handy ins Dunkelblau aus. */
@media (min-width: 600px) and (max-width: 1023px) {
	.ds-start-held--foto .ds-start-held__medien {
		top: calc(-1 * clamp(150px, 30vw, 240px));
		bottom: auto;
	}

	.ds-start-held--foto .ds-start-held__medien img,
	.ds-start-held--foto .ds-start-held__medien .ds-foto {
		height: auto;
		aspect-ratio: 3 / 4;
	}

	.ds-start-held--foto .ds-start-held__medien::after {
		background: linear-gradient(180deg, rgb(12 22 38 / 12%) 20%, rgb(12 22 38 / 12%) 50%, rgb(12 22 38 / 80%) 64%, rgb(12 22 38) 84%);
	}
}

/* Kleine Handys (unter 700 px Höhe): Foto etwas höher, sonst läge das Gerät hinter der Überschrift. */
@media (max-width: 599px) and (max-height: 699px) {
	.ds-start-held--foto .ds-start-held__medien {
		top: -14%;
	}
}

.ds-start-held__inhalt {
	align-self: end;
	box-sizing: border-box;
	width: var(--ds-innen);
	margin-inline: auto;
	padding-top: calc(var(--ds-kopf-raum) + clamp(120px, 18vh, 220px));
	padding-bottom: clamp(28px, 16px + 3vw, 56px);
}

/* Ohne automatische Silbentrennung (Erik, 08.11.2026). */
.ds-start-held__titel {
	max-width: 15em;
	margin: 0;
	-webkit-hyphens: manual;
	hyphens: manual;
	color: var(--wp--preset--color--white);
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.375rem);
	line-height: 1.06;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* Die Kante: weiße Fläche mit gerader Oberkante, unten bündig mit der Insel und der Seite */
.ds-start-held__kante {
	box-sizing: border-box;
	width: var(--ds-innen);
	margin-inline: auto;
	padding: clamp(20px, 12px + 1.6vw, 32px) clamp(16px, 8px + 2vw, 36px) clamp(16px, 10px + 1vw, 24px);
	border-radius: var(--wp--custom--radius--large) var(--wp--custom--radius--large) 0 0;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* Faktenzeile und Kurzprofil */
.ds-start-profil__innen {
	box-sizing: border-box;
	width: var(--ds-innen);
	margin-inline: auto;
}

.ds-faktenzeile {
	display: grid;
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--32);
	margin: 0;
	padding: var(--wp--preset--spacing--24) 0 0;
	list-style: none;
}

.ds-faktenzeile li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.ds-faktenzeile__haken {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--wp--preset--color--navy);
}

.ds-faktenzeile p {
	margin: 0;
	color: var(--wp--preset--color--body-text);
	font-size: 15px;
	line-height: 1.45;
}

.ds-faktenzeile strong {
	display: block;
	color: var(--wp--preset--color--navy);
	font-weight: 500;
}

.ds-start-profil__text {
	max-width: 34em;
	margin: var(--wp--preset--spacing--section) 0 0;
	color: var(--wp--preset--color--navy);
	font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.875rem);
	line-height: 1.38;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

@media (min-width: 640px) {
	.ds-faktenzeile {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ds-faktenzeile {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Kopfzeile eines Abschnitts: Überschrift, ein Satz, optional ein Weg rechts */
.ds-start-kopfzeile {
	display: grid;
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--48);
	box-sizing: border-box;
	width: var(--ds-innen);
	margin: 0 auto var(--wp--preset--spacing--48);
}

.ds-start-kopfzeile > * {
	margin: 0;
}

.ds-start-kopfzeile h2 {
	max-width: 16em;
	text-wrap: balance;
}

.ds-start-kopfzeile p {
	max-width: 38em;
	color: var(--wp--preset--color--body-text);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}

.ds-start-kopfzeile .ds-knopf {
	justify-self: start;
}

@media (min-width: 900px) {
	.ds-start-kopfzeile {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}

	.ds-start-kopfzeile h2,
	.ds-start-kopfzeile p {
		grid-column: 1;
	}

	.ds-start-kopfzeile .ds-knopf {
		grid-row: 1 / span 2;
		grid-column: 2;
		align-self: end;
	}
}

/* Leistungen: vier gleich gewichtete Bildkarten */
.ds-leistungen {
	display: grid;
	gap: var(--wp--preset--spacing--16);
	box-sizing: border-box;
	width: var(--ds-innen);
	margin-inline: auto;
}

@media (min-width: 768px) {
	.ds-leistungen {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--24);
	}
}

.ds-leistung {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 8px;
	border-radius: var(--wp--custom--radius--large);
	background-color: var(--wp--preset--color--surface);
}

.ds-leistung__bild {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--kachel);
}

.ds-leistung__bild img {
	border-radius: 0;
	object-position: var(--bildlage, 50% 50%);
	transition: transform 400ms var(--wp--custom--bewegung--kurve);
}

.ds-leistung:hover .ds-leistung__bild img {
	transform: scale(1.03);
}

/* Kennzeichnung „Symbolbild“ als kleines Etikett auf dem Bild */
.ds-leistung__bild figcaption {
	position: absolute;
	top: 12px;
	left: 12px;
	margin: 0;
	padding: 3px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background-color: rgb(12 22 38 / 72%);
	color: var(--wp--preset--color--white);
	font-size: 12px;
	line-height: 1.4;
}

.ds-leistung__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 20px 16px 12px;
}

.ds-leistung__text > * {
	margin: 0;
}

.ds-leistung__titel {
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	line-height: 1.25;
}

.ds-leistung__titel a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

/* Die ganze Karte führt zur Leistungsseite; der Weg zur Anfrage liegt darüber. */
.ds-leistung__titel a::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: var(--wp--custom--radius--large);
	content: "";
}

.ds-leistung__titel a:focus-visible {
	outline: none;
}

.ds-leistung__titel a:focus-visible::after {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--navy);
	outline-offset: var(--wp--custom--focus--offset);
}

.ds-leistung__titel a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.ds-leistung__text > p:not(.ds-leistung__wege) {
	color: var(--wp--preset--color--body-text);
	font-size: 16px;
	line-height: 1.55;
}

.ds-merkmale {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--navy);
	font-size: 15px;
	line-height: 1.4;
}

.ds-merkmale li {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.ds-merkmale .ds-icon {
	flex: none;
	width: 16px;
	height: 16px;
}

.ds-leistung__wege {
	margin-top: auto !important;
	padding-top: 8px;
}

.ds-leistung__anfrage {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color var(--wp--custom--bewegung--kurz) var(--wp--custom--bewegung--kurve), color var(--wp--custom--bewegung--kurz) var(--wp--custom--bewegung--kurve);
}

.ds-leistung__anfrage:hover {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.ds-leistung__anfrage:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--navy);
	outline-offset: var(--wp--custom--focus--offset);
}

/* Beweis: dunkle Insel mit der echten Probefläche */
.ds-beweis__insel {
	display: grid;
	gap: clamp(28px, 16px + 3vw, 72px);
	align-items: center;
	margin-inline: var(--ds-rand);
	padding: clamp(20px, 8px + 4vw, 80px) max(var(--wp--preset--spacing--gutter), calc((100% - 1200px) / 2));
	border-radius: var(--wp--custom--radius--insel);
	background-color: var(--wp--preset--color--navy-deep);
	color: var(--wp--preset--color--white);
}

.ds-beweis__bild img {
	border-radius: var(--wp--custom--radius--large);
}

.ds-beweis__bild figcaption {
	color: rgb(255 255 255 / 72%);
	font-size: 15px;
}

.ds-beweis__text > * {
	margin: 0;
}

.ds-beweis__text > * + * {
	margin-top: var(--wp--preset--spacing--24);
}

.ds-beweis__titel {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--poppins, "Poppins", sans-serif);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.ds-beweis__titel span {
	display: block;
}

.ds-beweis__lead {
	max-width: 32em;
	color: rgb(255 255 255 / 88%);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}

.ds-beweis__liste {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.ds-beweis__liste li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 16px;
	line-height: 1.5;
}

.ds-beweis__liste .ds-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.ds-beweis__geraet {
	max-width: 34em;
	color: rgb(255 255 255 / 72%);
	font-size: 15px;
	line-height: 1.55;
}

.ds-beweis__wege {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	margin-top: var(--wp--preset--spacing--32) !important;
}

.ds-beweis__mehr {
	color: var(--wp--preset--color--white);
	font-size: 16px;
	text-underline-offset: 0.2em;
}

.ds-beweis__mehr:hover {
	color: var(--wp--preset--color--white);
	text-decoration-thickness: 2px;
}

.ds-beweis .ds-knopf--rot:focus-visible,
.ds-beweis__mehr:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--white);
	outline-offset: var(--wp--custom--focus--offset);
}

@media (min-width: 900px) {
	.ds-beweis__insel {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}

/* Ablauf: vier echte Schritte */
.ds-ablauf2 {
	display: grid;
	gap: var(--wp--preset--spacing--32) var(--wp--preset--spacing--24);
	box-sizing: border-box;
	width: var(--ds-innen);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ds-ablauf2 li {
	padding-top: 0;
}

.ds-ablauf2 li > * {
	margin: 0;
}

.ds-ablauf2__nr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-size: 15px;
	font-weight: 500;
}

.ds-ablauf2 h3 {
	margin-top: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--heading-3);
}

.ds-ablauf2 p {
	margin-top: 8px;
	color: var(--wp--preset--color--body-text);
	font-size: 16px;
	line-height: 1.55;
}

@media (min-width: 640px) {
	.ds-ablauf2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ds-ablauf2 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Hausverwaltungen: helle Insel, Bild und Text */
.ds-teilung {
	display: grid;
	gap: clamp(24px, 12px + 3vw, 64px);
	align-items: center;
	margin-inline: var(--ds-rand);
	padding: clamp(20px, 8px + 4vw, 72px) max(var(--wp--preset--spacing--gutter), calc((100% - 1200px) / 2));
	border-radius: var(--wp--custom--radius--insel);
	background-color: var(--wp--preset--color--surface);
}

.ds-teilung__bild img {
	border-radius: var(--wp--custom--radius--large);
}

.ds-teilung__bild figcaption {
	color: var(--wp--preset--color--body-text);
}

.ds-teilung__text > * {
	margin: 0;
}

.ds-teilung__text > * + * {
	margin-top: var(--wp--preset--spacing--24);
}

.ds-teilung__text p {
	max-width: 34em;
	color: var(--wp--preset--color--body-text);
	font-size: var(--wp--preset--font-size--text);
	line-height: 1.6;
}

@media (min-width: 900px) {
	.ds-teilung {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ds-leistung__bild img,
	.ds-leistung__anfrage {
		transition: none;
	}

	.ds-leistung:hover .ds-leistung__bild img {
		transform: none;
	}
}

/* Handy: kürzere Seite. Leistungen als waagerechte Reihe zum Wischen (die nächste Karte schaut hervor),
 * Bilder flacher, Fakten zweispaltig, Ablauf kompakt. */
@media (max-width: 767px) {
	.ds-leistungen {
		grid-auto-columns: 84%;
		grid-auto-flow: column;
		gap: 12px;
		width: 100%;
		padding-inline: var(--wp--preset--spacing--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--wp--preset--spacing--gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.ds-leistungen::-webkit-scrollbar {
		display: none;
	}

	.ds-leistung {
		scroll-snap-align: start;
	}

	.ds-leistung__bild img {
		aspect-ratio: 16 / 9;
	}

	.ds-leistung__text {
		padding: 16px 12px 8px;
	}

	.ds-faktenzeile {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.ds-beweis__bild img {
		aspect-ratio: 4 / 3;
	}

	.ds-teilung__bild img {
		aspect-ratio: 16 / 9;
	}

	.ds-ablauf2 li {
		display: grid;
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 4px 14px;
	}

	.ds-ablauf2__nr {
		grid-row: 1 / span 2;
	}

	.ds-ablauf2 h3 {
		margin-top: 6px;
	}

	.ds-ablauf2 p {
		margin-top: 0;
	}
}


/* Bewertung direkt unter dem Kurzprofil (Erik, 15.11.2026) */
.ds-start-profil .ds-rezension-gruppe {
	max-width: 46rem;
	margin-top: var(--wp--preset--spacing--32);
}

.ds-start-profil .ds-rezension-gruppe > * + * {
	margin-top: var(--wp--preset--spacing--16);
}
