/*!
 * Klick-zum-Laden-Platzhalter für eingebettete Videos und Audios.
 * Vor dem Klick wird nichts von YouTube, Vimeo oder SoundCloud geladen.
 */

.dtm-embed {
	position: relative;
	width: 100%;
	margin: 0 0 20px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background-color: #f3f3f3;
	overflow: hidden;
}

/* Seitenverhältnis halten, damit beim Laden nichts springt. */
.dtm-embed::before {
	content: "";
	display: block;
	padding-top: var(--dtm-embed-ratio, 56.25%);
}

.dtm-embed-inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
}

.dtm-embed-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.dtm-embed-text strong {
	color: #333;
}

.dtm-embed-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font: inherit;
	font-size: 15px;
	line-height: 1;
	color: #fff;
	background-color: #1e73be;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.15s linear;
	-webkit-appearance: none;
	appearance: none;
}

.dtm-embed-btn:hover,
.dtm-embed-btn:focus-visible {
	background-color: #155a96;
}

.dtm-embed-btn:focus-visible {
	outline: 2px solid #1e73be;
	outline-offset: 2px;
}

.dtm-embed-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.dtm-embed-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #888;
}

.dtm-embed-note a {
	color: inherit;
	text-decoration: underline;
}

/* Das geladene iframe füllt den Platzhalter aus. */
.dtm-embed.is-loaded {
	border: none;
	background: none;
}

.dtm-embed.is-loaded iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Dunkles Design. Die Klasse setzt das Darkmode-Plugin – das berücksichtigt
   bereits die Systemeinstellung und eine abweichende Wahl des Besuchers. */
html.dtm-dark .dtm-embed {
	border-color: #2b3137;
	background-color: #1e2227;
}

html.dtm-dark .dtm-embed-text {
	color: #b3b9c0;
}

html.dtm-dark .dtm-embed-text strong {
	color: #dadee3;
}

html.dtm-dark .dtm-embed-note {
	color: #868d96;
}
