/* Videos der Webseite: Übersicht (videoUebersicht.xhtml) und Einzelseite (video.xhtml), Skript js/videos.js */

/* Spieler */
.video-spieler {
	position: relative;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	margin: 10px 0 14px;
}

.video-film {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	background: #000;
}

.video-start {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-start:hover .video-start-knopf,
.video-start:focus-visible .video-start-knopf,
.video-kachel:hover .video-start-knopf,
.video-kachel:focus-visible .video-start-knopf {
	background: #e3000b;
	transform: scale(1.06);
}

.video-start:focus-visible {
	outline: 3px solid #e3000b;
	outline-offset: -3px;
}

.video-spieler.video-laeuft .video-start {
	display: none;
}

.video-start-knopf {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(20, 22, 25, .78);
	color: #fff;
	font-size: 34px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	transition: background .15s, transform .15s;
}

.video-start-knopf .fa {
	margin-left: 6px; /* Dreieck optisch mittig */
}

.video-dauer {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: rgba(0, 0, 0, .75);
	color: #fff;
	font-size: 13px;
	line-height: 1.6;
	padding: 0 7px;
	border-radius: 3px;
}

.video-fehler {
	padding: 10px 14px;
	background: #fbeaea;
	border: 1px solid #ebc4c4;
	border-radius: 4px;
	color: #a12622;
}

.video-fehler[hidden] {
	display: none;
}

.video-leiste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-bottom: 18px;
}

.video-leiste .btn {
	margin: 0;
}

.video-info {
	color: #666;
	font-size: 14px;
}

.video-beschreibung {
	white-space: pre-line;
	font-size: 16px;
	line-height: 1.6;
}

.video-hinweis {
	background: #f7f7f7;
	border: 1px solid #e5e5e5;
	border-left: 3px solid #e3000b;
	border-radius: 4px;
	padding: 14px 18px;
	margin: 20px 0;
}

.video-hinweis p:last-child {
	margin-bottom: 0;
}

.video-zurueck a {
	color: #e3000b;
}

/* Teilen */
.video-teilen {
	border: 1px solid #e5e5e5;
	border-top: 3px solid #e3000b;
	border-radius: 4px;
	padding: 16px 18px;
	margin: 20px 0;
}

/* Bootstrap-Knöpfe schlagen sonst das hidden-Attribut */
.video-teilen [hidden] {
	display: none !important;
}

h2.video-teilen-titel {
	font-size: 20px;
	margin: 0 0 12px;
}

.video-teilen-link {
	display: flex;
	gap: 8px;
}

.video-teilen-adresse.form-control {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
	color: #333;
	cursor: text;
	font-size: 15px;
	height: auto;
}

.video-teilen .btn {
	margin: 0;
	white-space: nowrap;
}

.video-ab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	font-weight: normal;
	cursor: pointer;
}

.video-ab input {
	margin: 0;
}

.video-teilen-knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.video-ab-start {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(0, 0, 0, .75);
	color: #fff;
	font-size: 13px;
	line-height: 1.6;
	padding: 0 7px;
	border-radius: 3px;
}

/* QR-Code groß zum Abscannen, z. B. vom Bildschirm im Besprechungsraum */
.video-qr {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(20, 22, 25, .7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.video-qr-box {
	background: #fff;
	border-radius: 6px;
	padding: 20px 24px;
	max-width: 420px;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.video-qr-box h2 {
	font-size: 18px;
	margin: 0 0 12px;
	overflow-wrap: break-word;
}

.video-qr-bild {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	aspect-ratio: 1;
	margin: 0 auto 10px;
	image-rendering: pixelated;
}

.video-qr-adresse {
	font-weight: bold;
	word-break: break-all;
}

.video-qr-knoepfe {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.video-qr-knoepfe .btn {
	margin: 0;
}

/* Vollbild: Video füllt den Bildschirm, ohne abgeschnitten zu werden */
.video-film:fullscreen {
	max-height: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.video-film:-webkit-full-screen {
	max-height: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Übersicht */
.video-kacheln {
	padding-left: 30px;
	padding-right: 30px;
}

.video-kacheln .row > [class*="col-"] {
	margin-bottom: 30px;
}

.video-leer {
	color: #666;
}

.video-kachel {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-top: 3px solid #e3000b;
	border-radius: 4px;
	overflow: hidden;
	color: #333;
	text-decoration: none !important;
}

.video-kachel:hover,
.video-kachel:focus {
	color: #333;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.video-kachel-bild {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1b1d20;
	overflow: hidden;
}

.video-kachel-bild img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-kachel-bild .video-start-knopf {
	position: relative;
	width: 62px;
	height: 62px;
	font-size: 24px;
}

.video-kachel-text {
	display: block;
	padding: 14px 16px 16px;
}

.video-kachel-titel {
	display: block;
	font-family: Raleway, sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #e3000b;
	margin-bottom: 4px;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

.video-kachel-beschreibung {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

@media (max-width: 767px) {
	.video-teilen-link {
		flex-direction: column;
	}

	.video-kacheln {
		padding-left: 15px;
		padding-right: 15px;
	}

	.video-start-knopf {
		width: 64px;
		height: 64px;
		font-size: 26px;
	}
}
