/* db-video – Player für Designblog-Beiträge */

.db-video {
	margin: 1.5em 0;
	max-width: 100%;
}

.db-video__stage {
	position: relative;
	width: 100%;
	height: 0;              /* Höhe kommt aus padding-top (setzt das JS) */
	overflow: hidden;
	background: #000;
	border-radius: 4px;
}

.db-video__el {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	background: #000;
}

/* Startknopf – liegt über dem Video, bis einmal geklickt wurde */
.db-video__start {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.25);
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-appearance: none;
	appearance: none;
}

.db-video__start:focus {
	outline: none;
}

.db-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Play-Dreieck */
.db-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -6px;
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #222;
}

.db-video__start:focus-visible .db-video__icon {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #333;
}

.db-video__start--poster {
	background-color: #000;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

/* Abdunklung liegt beim Vorschaubild ueber dem Bild, nicht statt dessen */
.db-video__start--poster::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.12);
}

/* Fehlerfall */
.db-video__msg {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	margin: 0;
	padding: 0 1em;
	transform: translateY(-50%);
	box-sizing: border-box;
	text-align: center;
	color: #fff;
	font-size: 0.95em;
	line-height: 1.4;
}

.db-video__msg a { color: #fff; text-decoration: underline; }

.db-video--error {
	padding: 1em;
	border: 1px solid #d9534f;
	border-radius: 4px;
	background: #fdf3f3;
}

.db-video--error .db-video__msg {
	position: static;
	transform: none;
	color: #a94442;
	text-align: left;
	padding: 0;
}
