/* Zwei-Klick-Lösung für YouTube-Einbettungen (DSGVO-konform)
   Einbau siehe YOUTUBE-ZUSTIMMUNG.md
   <div class="yt-consent" data-yt-id="VIDEO_ID" data-yt-title="Titel"></div>
   optional: data-yt-poster="/pfad/vorschau.webp"  data-yt-policy="/privacy-policy/" */

.yt-consent {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #041C5C;
	overflow: hidden;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yt-consent iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.yt-consent__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
	pointer-events: none;
}

.yt-consent__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 20px;
	text-align: center;
}

.yt-consent__load {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid #0ABBEA;
	border-radius: 3px;
	background: #0ABBEA;
	color: #041C5C;
	font: 600 16px/1.2 "Roboto", sans-serif;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.yt-consent__load:hover,
.yt-consent__load:focus-visible {
	background: transparent;
	color: #ffffff;
	outline: none;
}

.yt-consent__load:focus-visible {
	box-shadow: 0 0 0 3px #ffffff;
}

.yt-consent__icon {
	font-size: 12px;
	line-height: 1;
}

.yt-consent__note {
	max-width: 46ch;
	margin: 0;
	color: #ffffff;
	font: 400 13px/1.5 "Roboto", sans-serif;
	opacity: .9;
}

.yt-consent__note a {
	color: #0ABBEA;
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.yt-consent__load {
		transition: none;
	}
}
