/* 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);
	transition: background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.db-video__start:hover,
.db-video__start:focus {
	background: rgba(0, 0, 0, 0.1);
	outline: none;
}

.db-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease;
}

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

.db-video__start:hover .db-video__icon,
.db-video__start:focus .db-video__icon {
	transform: scale(1.08);
}

.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);
	transition: background 0.2s ease;
}

.db-video__start--poster:hover::before,
.db-video__start--poster:focus::before {
	background: rgba(0, 0, 0, 0);
}

/* 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;
}
