/*
 * Platzhalter für blockierte Embeds. Liegt im normalen Dokument, deshalb bewusst ohne Tailwind,
 * ohne Element-/Global-Selektoren, ohne :root-Variablen und ohne Cascade Layers –
 * ausschließlich eigene .ccb-embed-Klassen, damit nichts im Theme beeinflusst wird.
 */
.ccb-embed {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-height: 200px;
	box-sizing: border-box;
	padding: 24px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #1f2937;
	text-align: center;
}

/*
 * Responsive Block-Embeds (WordPress-Core) reservieren die Höhe per Padding im Wrapper und
 * positionieren das iframe absolut. Der Platzhalter übernimmt dieselbe Rolle.
 */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .ccb-embed {
	position: absolute;
	inset: 0;
	min-height: 0;
	aspect-ratio: auto !important;
	overflow: auto;
}

.ccb-embed .ccb-embed__placeholder {
	max-width: 520px;
}

.ccb-embed .ccb-embed__text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
}

.ccb-embed .ccb-embed__link {
	color: inherit;
	text-decoration: underline;
}

.ccb-embed .ccb-embed__button {
	display: inline-block;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: #1f2937;
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.ccb-embed .ccb-embed__button:hover {
	opacity: 0.9;
}

.ccb-embed .ccb-embed__button:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 2px;
}
