/* Nordstern – Startbereich mit Hintergrundvideo (Logik: assets/js/hero-video.js). */

.nordstern-hero-video .wp-block-cover__video-background {
	object-position: 50% 50%;
}

.nordstern-hero-video h1 {
	font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
	text-wrap: balance;
}

.nordstern-hero-video .wp-block-cover__inner-container p.has-large-font-size {
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem) !important;
}

/* Kennzeile weiß (Stern bleibt cyan) – auf dem bewegten Bild besser lesbar */
.nordstern-hero-video .nordstern-label {
	color: #fff !important;
}

/* Buttons auf dem dunklen Video */
.nordstern-hero-video .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #fff;
	color: #001a5b;
}

.nordstern-hero-video .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: #e6f1fb;
}

.nordstern-hero-video .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.75);
	background: transparent;
	color: #fff;
}

.nordstern-hero-video .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

.nordstern-hero-trust {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/*
 * Desktop/Tablet: Text kleiner und weiter links, damit das Logo am Videoende
 * (Bildmitte, ca. 36–66 % der Breite) frei bleibt. Das Video selbst bleibt unverändert.
 * Der Schleier liegt nur hinter dem Text und läuft vor dem Logo aus.
 */
@media (min-width: 782px) {
	.nordstern-hero-video.wp-block-cover video.wp-block-cover__video-background {
		object-position: 0% 50%;
	}

	.nordstern-hero-video.wp-block-cover.alignfull {
		padding-left: clamp(1.5rem, 4vw, 5rem) !important;
		padding-top: var(--wp--preset--spacing--50) !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}

	/* Flacheres Querformat: der Startbereich nimmt weniger Höhe ein. */
	.nordstern-hero-video.wp-block-cover {
		min-height: clamp(30rem, 64vh, 42rem) !important;
	}

	.nordstern-hero-video .wp-block-buttons {
		gap: 0.5rem;
	}

	.nordstern-hero-video .nordstern-hero-trust {
		margin-top: var(--wp--preset--spacing--40) !important;
		padding-top: var(--wp--preset--spacing--30);
	}

	.nordstern-hero-video .wp-block-cover__inner-container {
		width: 100%;
		max-width: calc(34vw - clamp(1.5rem, 4vw, 5rem) - 1rem);
	}

	.nordstern-hero-video .wp-block-cover__background {
		background: linear-gradient(90deg, rgba(0, 26, 91, 0.86) 0%, rgba(0, 26, 91, 0.82) 24%, rgba(0, 26, 91, 0.72) 32%, rgba(0, 26, 91, 0.22) 39%, rgba(0, 26, 91, 0.08) 100%) !important;
	}

	.nordstern-hero-video h1 {
		font-size: clamp(1.6rem, 0.9rem + 1.3vw, 2.4rem);
	}

	.nordstern-hero-video .wp-block-cover__inner-container p.has-large-font-size {
		font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem) !important;
	}

	.nordstern-hero-video .nordstern-hero-trust {
		font-size: 0.8125rem !important;
	}

	.nordstern-hero-video .wp-block-button__link {
		min-height: 44px;
		padding: 0.55rem 0.95rem;
		font-size: 0.875rem;
	}
}

/*
 * Handy: Video und Text getrennt.
 * Oben das Video im 4:3-Ausschnitt (Bildmitte – das Logo am Videoende bleibt vollständig sichtbar),
 * darunter der Text auf festem Markenblau. Kein Schleier über dem Video.
 */
@media (max-width: 781px) {
	body .nordstern-hero-video.wp-block-cover {
		display: flex;
		flex-direction: column;
		align-items: stretch !important;
		justify-content: flex-start !important;
		min-height: 0 !important;
		padding: 0 !important;
		background: #001a5b;
	}

	body .nordstern-hero-video.wp-block-cover video.wp-block-cover__video-background {
		position: relative;
		inset: auto;
		display: block;
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: 50% 50%;
	}

	body .nordstern-hero-video.wp-block-cover .wp-block-cover__background {
		display: none !important;
	}

	body .nordstern-hero-video.wp-block-cover .wp-block-cover__inner-container {
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		padding: 1.75rem var(--wp--preset--spacing--50) 2.25rem;
	}

	body .nordstern-hero-video.wp-block-cover .wp-block-cover__inner-container > :first-child {
		margin-top: 0;
	}

	body .nordstern-hero-video.wp-block-cover h1 {
		font-size: clamp(1.6rem, 1.15rem + 2vw, 2rem);
	}
}

/* Knopf zum Anhalten des Videos */
.nordstern-hero-video__toggle {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: rgba(0, 26, 91, 0.55);
	color: #fff;
	cursor: pointer;
}

.nordstern-hero-video__toggle:hover {
	background: rgba(0, 26, 91, 0.85);
}

.nordstern-hero-video__toggle:focus-visible {
	outline: 3px solid #01b0ee;
	outline-offset: 2px;
}

.nordstern-hero-video__toggle svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

@media (max-width: 781px) {
	.nordstern-hero-video__toggle {
		top: 1rem;
		bottom: auto;
	}
}

/* Text an der Inhaltskante der übrigen Abschnitte ausrichten (breites Raster). */
.nordstern-hero-video.alignfull {
	padding-right: max(var(--wp--preset--spacing--50), calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2)) !important;
	padding-left: max(var(--wp--preset--spacing--50), calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2)) !important;
}
