/* Umland Beschriftung – Konfigurator Embed Styles */

.uk-embed-wrapper {
	box-sizing: border-box;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 1.5rem auto;
	background-color: #0b0b0c;
	border-radius: var(--uk-radius, 12px);
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.uk-embed-wrapper *,
.uk-embed-wrapper *::before,
.uk-embed-wrapper *::after {
	box-sizing: border-box;
}

/* Optional: Aus schmalen Theme-Spalten auf volle Breite ausbrechen */
.uk-embed-wrapper.uk-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	border-left: 0;
	border-right: 0;
}

/* Obere kompakte Steuerleiste (verhindert Überlappung mit Konfigurator-Buttons) */
.uk-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 14px;
	background-color: #0b0b0c;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #f3f3f5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.3;
}

.uk-toolbar-label {
	font-weight: 600;
	color: rgba(243, 243, 245, 0.82);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uk-fullscreen-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	margin: 0;
	background-color: #141315;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
	flex-shrink: 0;
}

.uk-fullscreen-btn:hover,
.uk-fullscreen-btn:focus-visible {
	background-color: #d82d7e;
	border-color: #d82d7e;
	color: #ffffff;
	outline: none;
}

.uk-fullscreen-btn .uk-icon-exit {
	display: none;
}

.uk-embed-wrapper.uk-is-fullscreen .uk-fullscreen-btn .uk-icon-enter {
	display: none;
}

.uk-embed-wrapper.uk-is-fullscreen .uk-fullscreen-btn .uk-icon-exit {
	display: inline-block;
}

/* Bühnenbereich für iFrame & Ladeanzeige */
.uk-stage {
	position: relative;
	width: 100%;
	height: var(--uk-height, 85vh);
	min-height: var(--uk-min-height, 750px);
	background-color: #0b0b0c;
}

.uk-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	padding: 0;
	background-color: #0b0b0c;
	opacity: 1;
	transition: opacity 0.25s ease;
}

.uk-embed-wrapper.uk-is-loading .uk-iframe {
	opacity: 0;
}

/* Ladeanzeige */
.uk-loader {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	background-color: #0b0b0c;
	color: #f3f3f5;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.uk-embed-wrapper.uk-is-loaded .uk-loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.uk-spinner {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.14);
	border-top-color: #d82d7e;
	animation: uk-spin 0.8s linear infinite;
}

@keyframes uk-spin {
	to {
		transform: rotate(360deg);
	}
}

.uk-loader-text {
	margin: 0;
	font-size: 14px;
	color: rgba(243, 243, 245, 0.85);
}

.uk-loader-fallback {
	margin: 4px 0 0;
	font-size: 13px;
	color: rgba(243, 243, 245, 0.65);
}

.uk-loader-fallback a {
	color: #d82d7e;
	text-decoration: underline;
}

/* Vollbild-Modus (Native Top-Layer + CSS-Fallback inkl. Stacking-Context-Fix) */
body.uk-body-fullscreen {
	overflow: hidden !important;
}

body.uk-body-fullscreen #wpadminbar {
	display: none !important;
}

.uk-fullscreen-ancestor {
	z-index: 2147483640 !important;
	transform: none !important;
	filter: none !important;
	backdrop-filter: none !important;
	perspective: none !important;
	contain: none !important;
	clip-path: none !important;
	overflow: visible !important;
	isolation: auto !important;
	will-change: auto !important;
}

.uk-embed-wrapper.uk-is-fullscreen,
.uk-embed-wrapper:fullscreen,
.uk-embed-wrapper:-webkit-full-screen {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	max-width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	border: 0 !important;
	z-index: 2147483647 !important;
	background-color: #0b0b0c !important;
}

.uk-embed-wrapper.uk-is-fullscreen .uk-stage,
.uk-embed-wrapper:fullscreen .uk-stage,
.uk-embed-wrapper:-webkit-full-screen .uk-stage {
	flex: 1 1 auto !important;
	height: auto !important;
	min-height: 0 !important;
}

.uk-embed-wrapper.uk-is-fullscreen .uk-toolbar,
.uk-embed-wrapper:fullscreen .uk-toolbar,
.uk-embed-wrapper:-webkit-full-screen .uk-toolbar {
	position: relative;
	z-index: 2147483647;
}

@media (max-width: 760px) {
	.uk-stage {
		min-height: min(var(--uk-min-height, 750px), 88dvh);
	}

	.uk-toolbar-label {
		font-size: 12px;
	}
}
