/* PopUp Logos – Frontend Styles */

.popup-logo-trigger img {
	transition: opacity 0.2s ease;
}
.popup-logo-trigger:hover img {
	opacity: 0.85;
}

/* Overlay */
.popup-logo-overlay {
	display: none;
	position: fixed;
	inset: 0;
	/* Max possible z-index + !important — kein Divi-Stylesheet kann dies überschreiben */
	z-index: 2147483647 !important;
	background: rgba(0, 0, 0, 0.72);
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	/* smooth fade */
	opacity: 0;
	transition: opacity 0.25s ease;
}
.popup-logo-overlay.is-open {
	display: flex;
	opacity: 1;
}
.popup-logo-overlay.is-fading-in {
	display: flex;
}

/* Box */
.popup-logo-box {
	position: relative;
	max-width: min(90vw, 720px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
	transform: scale(0.92);
	transition: transform 0.25s ease;
}
.popup-logo-overlay.is-open .popup-logo-box {
	transform: scale(1);
}

/* Bild */
.popup-logo-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
}
.popup-logo-img-link {
	display: block;
	line-height: 0;
	cursor: pointer;
}
.popup-logo-img-link .popup-logo-img {
	transition: opacity 0.2s ease;
}
.popup-logo-img-link:hover .popup-logo-img {
	opacity: 0.88;
}

/* Schließen-Button */
.popup-logo-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	padding: 0;
}
.popup-logo-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

/* Fortschritts-Balken (5 Sek. Auto-Close) */
.popup-logo-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	z-index: 10;
}
.popup-logo-progress-bar {
	height: 100%;
	width: 100%;
	background: rgba(255, 255, 255, 0.75);
	transform-origin: left center;
	transform: scaleX(1);
}
.popup-logo-progress-bar.is-running {
	animation: plProgressDrain 5s linear forwards;
}

@keyframes plProgressDrain {
	from { transform: scaleX(1); }
	to   { transform: scaleX(0); }
}

/* Responsive */
@media (max-width: 600px) {
	.popup-logo-box {
		max-width: 96vw;
		max-height: 80vh;
	}
	.popup-logo-close {
		width: 30px;
		height: 30px;
		font-size: 20px;
	}
}
