/* minoka-kern Video: Platzhalter statt YouTube-iframe, bis jemand tippt (modul.php). */
.minoka-video {
	margin: 0 0 1em;
	max-width: 100%;
}
/* core/embed hält das Format über ein ::before mit padding-top; der Platzhalter bringt sein eigenes mit.
   !important, weil die Regel von WordPress über .wp-has-aspect-ratio spezifischer ist: ohne es stand über jedem Video
   eine Lücke von der Höhe des Videos (threedom.de 2026-11-04, 224 px bei 390 px). */
.wp-block-embed__wrapper:has(.minoka-video)::before {
	content: none !important;
	display: none !important;
}
.wp-block-embed__wrapper > .minoka-video {
	position: static;
}
.minoka-video-start,
.minoka-video-rahmen {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--minoka-video-format, 16/9);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #1f2933;
	color: #fff;
	cursor: pointer;
	font: inherit;
	text-align: left;
}
.minoka-video-rahmen {
	cursor: auto;
}
.minoka-video-rahmen iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.minoka-video-bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	margin: 0;
}
.minoka-video-titel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	/* Der untere Abstand ist ein Rand, kein padding: overflow:hidden schneidet an der Innenfläche, im padding bliebe die dritte Zeile sichtbar. */
	padding: 0.7em 0.9em 0;
	border-bottom: 1.6em solid transparent;
	background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)) border-box;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
	/* Höchstens zwei Zeilen, sonst läuft ein langer Titel am Handy in den Abspielknopf (390 px, Docker-Prüfstand 2026-11-04). */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.minoka-video-knopf {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: rgba(23, 23, 23, 0.85);
	transition: background-color 0.15s;
}
.minoka-video-knopf::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -7px;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #fff;
}
.minoka-video-start:hover .minoka-video-knopf,
.minoka-video-start:focus-visible .minoka-video-knopf {
	background: #c00;
}
.minoka-video-start:focus-visible {
	outline: 3px solid #37aecf;
	outline-offset: 2px;
}
.minoka-video-hinweis {
	margin: 0.4em 0 0;
	font-size: 0.85em;
	line-height: 1.4;
	opacity: 0.85;
}

/* Fläche nur für wpautop (regeln.php), für das Layout nicht vorhanden. */
.minoka-video-flaeche{display:contents}
