/**
 * Octoserv Videoplayer
 *
 * Der Player laeuft auch auf Seiten ausserhalb der Octoserv-Oberflaeche
 * (Landingpages, oeffentliche Aufgabenseiten). Dort ist octo-theme.css nicht
 * geladen, deshalb hat jede Farbrolle hier einen Rueckfallwert.
 */

.octo-video {
	position: relative;
	width: 100%;
	aspect-ratio: var(--octo-video-seitenverhaeltnis, 16 / 9);
	overflow: hidden;
	border-radius: var(--octo-video-radius, 0);
	background: var(--octo-c-inverse, #111827);
}

.octo-video-element,
.octo-video iframe,
.octo-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.octo-video video {
	object-fit: contain;
	background: var(--octo-c-inverse, #111827);
}

/* Klick-zum-Laden vor Fremdanbietern */

.octo-video-vorschalter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: var(--octo-c-inverse, #111827);
}

.octo-video-vorschaubild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
}

.octo-video-abspielen {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	border: none;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.45);
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.octo-video-abspielen:hover,
.octo-video-abspielen:focus-visible {
	background: rgba(0, 0, 0, 0.65);
}

.octo-video-abspielen:focus-visible {
	outline: 2px solid var(--octo-c-accent, #e09000);
	outline-offset: 2px;
}

/* Dreieck als Abspielsymbol - kein Bild, keine Schriftart noetig */
.octo-video-abspielen-symbol {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #ffffff;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.octo-video-abspielen-text {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.octo-video-hinweis {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	text-align: center;
	color: #ffffff;
	font-size: 14px;
}
