/* Hinweis vor externen Inhalten (external-content.php) */
.kbh-external {
	position: relative;
	display: flex;
	width: 100%;
	container-type: inline-size;
	color: #020202;
	background: #f4f4f4;
	border: 1px solid #767676;
}

/* Seitenverhältnis bzw. Höhe als Mindestgröße: ist der Hinweis länger (schmale Spalte), wächst die Box mit.
   Der Abstandshalter (Innenabstand in % der Breite) gibt das Format vor */
.kbh-external--ratio::before {
	content: '';
	width: 0;
	padding-top: var(--kbh-external-ratio, 56.25%);
}

.kbh-external--height {
	min-height: var(--kbh-external-height, 400px);
}

.kbh-external__notice {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 20px;
	text-align: center;
}

@container (max-width: 400px) {
	.kbh-external__notice {
		gap: 10px;
		padding: 12px;
	}

	.kbh-external__text {
		font-size: 1.2rem;
		line-height: 1.7rem;
	}
}

.kbh-external__text {
	max-width: 520px;
	margin: 0;
	font-size: 1.4rem;
	line-height: 2rem;
}

.kbh-external__load {
	min-height: 44px;
	padding: 10px 24px;
	color: #fff;
	font-family: inherit;
	font-size: 1.4rem;
	background: #020202;
	border: 2px solid #020202;
	border-radius: 5px;
	cursor: pointer;
}

.kbh-external__load:hover {
	background: #333;
}

/* Nach dem Laden: Rahmen und Hintergrund weg, iframe füllt die Fläche */
.kbh-external.is-loaded {
	background: none;
	border: 0;
}

.kbh-external iframe {
	display: block;
	width: 100%;
	border: 0;
}

.kbh-external--ratio iframe {
	position: absolute;
	inset: 0;
	height: 100%;
}

.kbh-external--height iframe {
	height: var(--kbh-external-height, 400px);
}
