/* dh-video.css — Filmblock auf den öffentlichen Seiten.
 *
 * Idee: Der Ruhezustand ist KEIN totes Standbild, sondern eine stumme 5-Sekunden-Schleife
 * in einem Goldrahmen. Sie zieht den Blick, ohne zu stören — es plärrt nichts.
 * Erst der Klick öffnet den Film mit Ton über der abgedunkelten Seite.
 *
 * Farben aus dh-brand.css: Nachtblau #0c1626, Gold #C9A54A, CTA-Blau #4f9be0.
 */

.dh-video {
	max-width: 980px;
	margin: 4rem auto;
	padding: 0 1rem;
	text-align: center;
}

.dh-video__titel {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	margin: 0 0 1.4rem;
	color: inherit;
}

/* Der Rahmen ist ein Button — Tastaturbedienung und Vorlesehilfen funktionieren damit
   von selbst, ohne zusätzliche ARIA-Krücken. */
.dh-video__rahmen {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #0c1626;
	border-radius: 18px;
	overflow: hidden;
	cursor: pointer;
	line-height: 0;
	box-shadow: 0 0 0 1px rgba(201, 165, 74, .45), 0 18px 50px rgba(0, 0, 0, .45);
	transition: box-shadow .35s ease, transform .35s ease;
}

.dh-video__rahmen:hover,
.dh-video__rahmen:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 0 0 2px rgba(201, 165, 74, .95), 0 0 42px rgba(201, 165, 74, .30),
		0 22px 60px rgba(0, 0, 0, .5);
	outline: none;
}

.dh-video__loop {
	display: block;
	width: 100%;
	height: auto;
	opacity: .82;
	transition: opacity .35s ease;
}

.dh-video__rahmen:hover .dh-video__loop {
	opacity: 1;
}

/* Abspielknopf: goldener Ring, der ruhig atmet — Bewegung ohne Hektik. */
.dh-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: rgba(12, 22, 38, .72);
	border: 2px solid #C9A54A;
	backdrop-filter: blur(4px);
	transition: transform .3s ease, background .3s ease;
}

/* Dreieck */
.dh-video__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 15px 0 15px 25px;
	border-color: transparent transparent transparent #C9A54A;
}

/* Der atmende Ring */
.dh-video__play::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid rgba(201, 165, 74, .6);
	animation: dh-video-puls 2.6s ease-out infinite;
}

@keyframes dh-video-puls {
	0%   { transform: scale(1);    opacity: .75; }
	70%  { transform: scale(1.45); opacity: 0; }
	100% { transform: scale(1.45); opacity: 0; }
}

.dh-video__rahmen:hover .dh-video__play {
	transform: scale(1.08);
	background: rgba(12, 22, 38, .85);
}

.dh-video__dauer {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 4px 10px;
	font-size: .82rem;
	line-height: 1.4;
	color: #fff;
	background: rgba(12, 22, 38, .78);
	border: 1px solid rgba(201, 165, 74, .5);
	border-radius: 999px;
	letter-spacing: .04em;
}

.dh-video__hinweis {
	margin: .9rem 0 0;
	font-size: .9rem;
	opacity: .7;
}

/* Handlungsknopf unter dem Film — im CTA-Blau der Marke, damit er als
   Aktion erkennbar ist und sich vom Goldrahmen des Films absetzt. */
.dh-video__cta {
	display: inline-block;
	margin-top: 1.1rem;
	padding: 13px 26px;
	border-radius: 999px;
	background: #4f9be0;
	color: #fff;
	font-weight: 650;
	font-size: 1rem;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(79, 155, 224, .32);
	transition: transform .2s ease, box-shadow .2s ease;
}

.dh-video__cta:hover,
.dh-video__cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(79, 155, 224, .45);
	color: #fff;
}

/* ---- Overlay mit dem vollen Film ---- */

.dh-video-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2vh 2vw;
	background: rgba(6, 12, 22, .88);
	backdrop-filter: blur(10px);
	opacity: 0;
	/* ⚠ Ohne die nächsten zwei Zeilen liegt das geschlossene Overlay UNSICHTBAR über der
	   ganzen Seite und schluckt jeden Klick — scrollen geht dann noch, klicken nicht mehr.
	   Genau dieser Fehler ist am 31.07. in der ersten Fassung aufgetreten. */
	visibility: hidden;
	pointer-events: none;
	transition: opacity .28s ease, visibility 0s linear .28s;
}

.dh-video-overlay.ist-offen {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .28s ease, visibility 0s;
}

.dh-video-overlay__buehne {
	position: relative;
	width: min(1200px, 96vw);
	transform: scale(.965);
	transition: transform .28s ease;
}

.dh-video-overlay.ist-offen .dh-video-overlay__buehne {
	transform: scale(1);
}

.dh-video-overlay video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 88vh;
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(201, 165, 74, .55), 0 30px 80px rgba(0, 0, 0, .6);
	background: #000;
}

.dh-video-overlay__zu {
	position: absolute;
	top: -46px;
	right: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(201, 165, 74, .55);
	border-radius: 50%;
	background: rgba(12, 22, 38, .8);
	color: #C9A54A;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.dh-video-overlay__zu:hover {
	background: rgba(201, 165, 74, .18);
	transform: rotate(90deg);
}

/* Solange das Overlay offen ist, soll die Seite dahinter nicht mitscrollen. */
body.dh-video-offen {
	overflow: hidden;
}

@media (max-width: 720px) {
	/* Auf dem Handy zaehlt jeder Zentimeter: schmalerer Rahmen, kleinere Schrift,
	   weniger Luft — der Block soll informieren, nicht den Bildschirm besetzen. */
	.dh-video { margin: 1.8rem auto; padding: 0 .8rem; }
	.dh-video__titel { font-size: 1.15rem; margin-bottom: .8rem; }
	.dh-video__hinweis { font-size: .8rem; margin-top: .6rem; }
	.dh-video__rahmen { border-radius: 14px; }
	.dh-video__dauer { right: 9px; bottom: 9px; font-size: .74rem; padding: 3px 8px; }
	.dh-video__cta { margin-top: .9rem; padding: 12px 22px; font-size: .95rem; }
	.dh-video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.dh-video__play::before { border-width: 11px 0 11px 19px; }
	.dh-video-overlay__zu { top: -42px; }
}

/* Wer Bewegung im System abgestellt hat, bekommt keine Animationen. */
@media (prefers-reduced-motion: reduce) {
	.dh-video__play::after { animation: none; }
	.dh-video__rahmen,
	.dh-video__loop,
	.dh-video-overlay,
	.dh-video-overlay__buehne { transition: none; }
}
