/**
 * Einstiegsseite Online-Vorsorgeberater (/bestattungsvorsorge/online-vorsorgeberater/).
 * Lädt nur, wenn der Inhalt die Klasse himml-ovb trägt (inc/assets.php).
 * Aufbau wie die alte Seite: helle Karte mit Text und großem Video-Bild, darunter
 * Fragen in grauer Karte, blaues Band, Vorteile als Karte mit Foto und Icon-Liste.
 */

:root {
	--himml-ovb-overlap: clamp(56px, 8vw, 120px);
}

/* Karte: Text- und Bildspalte ohne Abstand, Bild randlos bis zur Kante. */
.himml-ovb-card {
	gap: 0 !important;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--x-large);
	background: var(--wp--preset--color--cream);
	box-shadow: 0 34px 70px -40px rgba(7, 22, 51, .55);
	color: var(--wp--preset--color--body);
	--himml-focus: var(--wp--preset--color--blue);
}

.himml-ovb-card > .wp-block-column {
	align-self: stretch !important;
	margin: 0 !important;
}

.himml-ovb-card :is(h1, h2, h3) {
	color: var(--wp--preset--color--ink);
}

.himml-ovb-card .wp-block-button:not(.is-style-glass) .wp-block-button__link {
	background: var(--wp--preset--color--blue);
	color: #fff;
	box-shadow: var(--wp--preset--shadow--blue);
}

.himml-ovb-card .wp-block-button:not(.is-style-glass) .wp-block-button__link:hover {
	background: var(--wp--preset--color--blue-bright);
}

/* Hero: Karte ragt aus dem dunklen Kopf in die weiße Fläche darunter. */
/* flow-root: sonst fällt der negative Abstand der Karte durch den Abschnitt hindurch.
 * z-index: .himml-sky isoliert seine Ebene; ohne Anheben läge der folgende Abschnitt
 * über dem unteren Teil der Karte und finge Klicks (Video-Button) ab. */
.himml-ovb.himml-sky {
	display: flow-root;
	z-index: 2;
	overflow: visible;
	padding-bottom: 0 !important;
}

/* Breite und Aufteilung wie auf der alten Seite: höchstens 1500 px, Text zu Bild
 * etwa 28 : 72, Bild im Seitenverhältnis des Videos. */
.himml-ovb > .himml-ovb-hero {
	position: relative;
	z-index: 2;
	display: grid !important;
	grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.85fr);
	align-items: center;
	gap: clamp(1.25rem, 3.5vw, 3.75rem) !important;
	width: 100%;
	max-width: min(1500px, 100vw - clamp(2rem, 4vw, 5rem)) !important;
	margin-top: 0 !important;
	margin-bottom: calc(-1 * var(--himml-ovb-overlap)) !important;
}

.himml-ovb > .himml-ovb-hero > .wp-block-column {
	min-width: 0;
}

.himml-ovb-after-hero {
	padding-top: calc(var(--himml-ovb-overlap) + var(--wp--preset--spacing--50)) !important;
}

.himml-ovb-hero__content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(20px, 2.2vw, 40px) 0 clamp(20px, 2.2vw, 40px) clamp(24px, 2.6vw, 44px) !important;
}

.himml-ovb-hero__content > * {
	margin: 0;
}

.himml-ovb-hero__content > * + * {
	margin-top: clamp(12px, 1.2vw, 18px);
}

.himml-ovb-hero__title {
	font-size: clamp(26px, .55rem + 1.3vw, 34px);
	font-weight: 300;
	line-height: 1.1;
	hyphens: manual;
}

.himml-ovb-hero__title strong {
	font-weight: 700;
}

.himml-ovb-hero__content .is-style-lead {
	color: var(--wp--preset--color--body);
	font-size: clamp(16.5px, .7rem + .45vw, 18.5px);
	line-height: 1.5;
}

/* Häkchen-Liste wie früher: Kästchen mit grünem Haken (Grafik aus himml26). */
.himml-ovb-hero__content .is-style-check {
	--himml-ovb-check: 1.15em;
	display: block !important;
	padding-left: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	list-style: none;
}

.himml-ovb-hero__content .is-style-check li {
	position: relative;
	margin: 0;
	padding-left: calc(var(--himml-ovb-check) + .65em);
	font-size: clamp(16.5px, .7rem + .45vw, 18.5px);
	line-height: 1.4;
}

.himml-ovb-hero__content .is-style-check li + li {
	margin-top: 6px;
}

.himml-ovb-hero__content .is-style-check li::before {
	content: "";
	position: absolute;
	top: .18em;
	left: 0;
	width: var(--himml-ovb-check);
	height: var(--himml-ovb-check);
	border: 0;
	border-radius: 0;
	background: url("../images/brand/himml-checkmark.png") center / contain no-repeat;
	-webkit-mask: none;
	mask: none;
}

.himml-ovb-hero__login {
	color: var(--wp--preset--color--muted);
}

.himml-ovb-hero__login a {
	color: var(--wp--preset--color--blue);
}

/* Bild exakt im Videoformat (16 : 9) und senkrecht mittig wie auf der alten Seite:
 * Der Player füllt es dann ohne schwarze Streifen. */
.himml-ovb-card > .himml-ovb-hero__media {
	align-self: center !important;
}

.himml-ovb-hero__media .himml-video-cover {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	min-height: 0 !important;
	border-radius: 0 !important;
	box-shadow: none;
}

/* Unter 1200 px wird die Textspalte zu schmal (Text höher als Video): Video oben, Text darunter. */
@media (max-width: 1199px) {
	.himml-ovb > .himml-ovb-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 0 !important;
		max-width: min(100%, 100vw - 32px) !important;
	}

	.himml-ovb-hero__media {
		order: -1;
	}

	.himml-ovb-hero__content {
		padding: 28px 24px 32px !important;
	}
}

/* Video-Cover: Seitenverhältnis wie das alte Hero-Video, Player füllt das Cover. */
.himml-video-cover {
	aspect-ratio: 426 / 240;
	min-height: 0 !important;
	overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.himml-video-cover__play .wp-block-button__link {
	gap: 12px;
	padding-left: 14px;
}

/* Play-Symbol: Kreis mit Dreieck vor dem Text. */
.himml-video-cover__play .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.4);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.himml-video-cover__play .wp-block-button__link::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 9px solid currentColor;
	transform: translate(-30%, -50%);
}

.himml-video-cover__play .wp-block-button__link {
	position: relative;
}

.himml-video-cover__play .wp-block-button__link:hover::before {
	transform: scale(1.06);
	background-color: rgba(255, 255, 255, 0.28);
}

.himml-video-cover__player,
.himml-video-cover__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.himml-video-cover__player {
	z-index: 3;
	background: #000;
}

.himml-video-cover.is-playing > .wp-block-cover__inner-container {
	visibility: hidden;
}

/* Fragen: graue Karte mit einfacher Liste (wie die alte Seite). */
.himml-ovb-questions {
	padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
	border-radius: var(--wp--preset--border-radius--x-large);
	background: var(--wp--preset--color--sand);
}

.himml-ovb-questions > * {
	margin: 0;
}

.himml-ovb-questions h2 {
	color: var(--wp--preset--color--ink);
	font-weight: 300;
	line-height: 1.2;
}

.himml-ovb-questions ul {
	margin-top: 20px;
	padding-left: 1.2em;
	color: var(--wp--preset--color--ink);
}

.himml-ovb-questions li + li {
	margin-top: 8px;
}

/* Blaues Band. */
.himml-ovb-band {
	gap: 24px;
	margin-top: var(--wp--preset--spacing--40) !important;
	--himml-focus: var(--wp--preset--color--base);
}

/* Am Desktop je Satz etwa eine Zeile (Preset-Klasse setzt die Größe mit !important). */
.himml-ovb-band h2 {
	max-width: none;
	margin: 0;
	font-size: clamp(24px, 1rem + 1vw, 31px) !important;
	font-weight: 300;
	line-height: 1.25;
}

.himml-ovb-band h2 strong {
	font-weight: 700;
}

/* Vorteile: Foto mit Start-Button links, Icon-Liste rechts in einer Karte. */
.himml-ovb-features__photo {
	height: 100%;
	min-height: 420px !important;
	padding: clamp(20px, 3vw, 32px) !important;
	border-radius: 0 !important;
}

.himml-ovb-features__panel {
	box-sizing: border-box;
	padding: clamp(28px, 4vw, 52px) !important;
}

.himml-ovb-feature-list {
	margin: 0 !important;
}

.himml-ovb-feature {
	gap: 20px !important;
	padding-block: 12px;
}

.himml-ovb-feature .wp-block-image {
	flex: none;
	margin: 0;
}

.himml-ovb-feature h3 {
	margin: 0 0 4px;
	font-weight: 700;
}

.himml-ovb-feature p {
	margin: 0;
	color: var(--wp--preset--color--body);
	font-size: 16.5px;
}

/* Das Kontaktband im Fuß ragt über 900 px um die halbe Höhe nach oben. */
@media (min-width: 901px) {
	.himml-ovb-features {
		margin-bottom: 64px !important;
	}
}

@media (max-width: 781px) {
	.himml-ovb-features__photo {
		min-height: 300px !important;
	}
}
