/* ------------------------------------------------------------------
   local.css - Ergaenzungen fuer die statische Fassung
   Enthaelt die Styles, die WordPress vorher inline ausgegeben hat,
   sowie die Darstellung der Klick-zum-Laden-Videos.
   ------------------------------------------------------------------ */

/* vormals inline von WordPress (custom-background) */
body.custom-background { background-color: #000; }

/* vormals inline von WPBakery/js_composer */
.wpb_animate_when_almost_visible { opacity: 1; }

/* Bilder nie breiter als ihr Container */
.entry-content img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------
   YouTube: Klick-zum-Laden
   Kein Request an Google, solange nicht geklickt wird.
   ------------------------------------------------------------------ */
.yt-embed {
	position: relative;
	width: 100%;
	max-width: 625px;
	margin: 0 auto 1em;
	aspect-ratio: 625 / 352;
	background: #111;
	overflow: hidden;
}
/* Fallback fuer Browser ohne aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
	.yt-embed { height: 0; padding-bottom: 56.32%; }
}

.yt-embed iframe,
.yt-embed__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.yt-embed__btn {
	display: block;
	padding: 0;
	margin: 0;
	cursor: pointer;
	background: #111;
	color: #fff;
	font: inherit;
	text-align: center;
}

.yt-embed__btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: .78;
	transition: opacity .2s ease;
}

.yt-embed__btn:hover img,
.yt-embed__btn:focus-visible img { opacity: 1; }

/* Play-Dreieck */
.yt-embed__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .72);
	transition: background .2s ease;
}
.yt-embed__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}
.yt-embed__btn:hover .yt-embed__play,
.yt-embed__btn:focus-visible .yt-embed__play { background: #f8b34b; }
.yt-embed__btn:hover .yt-embed__play::before,
.yt-embed__btn:focus-visible .yt-embed__play::before { border-left-color: #000; }

/* Hinweiszeile */
.yt-embed__hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: .5em .75em;
	font-size: 12px;
	line-height: 1.4;
	background: rgba(0, 0, 0, .72);
	color: #e8e8e8;
}
.yt-embed__hint b { color: #f8b34b; font-weight: 700; }

.yt-embed__btn:focus-visible { outline: 3px solid #f8b34b; outline-offset: -3px; }

/* Fallback ohne JavaScript */
.yt-embed__nojs {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
	background: rgba(0, 0, 0, .8);
	text-align: center;
}
