/*
 * Zwei-Klick-Loesung fuer Karten und Videos (core/EmbedConsent.php,
 * assets/js/embed-consent.js). Farben und Knopf passend zu main.css.
 */
.embed-consent {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 20px;
	padding: 20px;
	background: #f2f2f2 repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 12px, #ececec 12px, #ececec 24px);
	border: 1px solid #ddd;
	text-align: center;
	box-sizing: border-box;
}
.embed-consent-box { max-width: 520px; font-size: 14px; -webkit-hyphens: manual; hyphens: manual; }
.embed-consent-box p { margin: 0 0 10px; }
.embed-consent-box label { font-weight: normal; cursor: pointer; }
.embed-consent-load {
	padding: 10px 25px;
	font: 16px Open Sans, Arial, Helvetica, sans-serif;
	color: #fff;
	background: #CC0000;
	border: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease;
}
.embed-consent-load:hover,
.embed-consent-load:focus { background: #666; }
.embed-consent.embed-consent-active {
	display: block;
	padding: 0;
	background: none;
	border: 0;
}
.embed-consent.embed-consent-active iframe { max-width: 100%; }

/*
 * Videos (YouTube, Vimeo): Platzhalter und geladenes Video haben dasselbe
 * Seitenverhaeltnis (aspect-ratio kommt als Inline-Style aus EmbedConsent.php,
 * Standard 16:9). Passt der Hinweistext auf schmalen Bildschirmen nicht
 * hinein, wird der Platzhalter automatisch hoeher.
 */
.embed-consent-video {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.embed-consent-video.embed-consent-active {
	position: relative;
}
.embed-consent-video.embed-consent-active > iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media only screen and (max-width: 480px) {
	.embed-consent { padding: 12px; }
	.embed-consent-box { font-size: 13px; }
	.embed-consent-box p { margin: 0 0 6px; }
	.embed-consent-load { padding: 8px 18px; font-size: 14px; }
}
/* Von CKEditor eingebettete Medien: kein Browser-Standardrand (40 px links/rechts) */
.cms-text figure.media {
	margin: 0 0 20px;
}
