.zmk-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 10, 10, 0.65);
}

.zmk-popup-overlay.is-visible {
	display: flex;
}

/* Mobile-first: Bild oben, Text-Panel darunter, normaler Blockfluss. */
.zmk-popup-box {
	position: relative;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
	animation: zmk-popup-in 0.25s ease-out;
}

@keyframes zmk-popup-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.zmk-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #222;
}

.zmk-popup-close:hover {
	background: #f2f2f2;
}

.zmk-popup-image {
	width: 100%;
	height: 200px;
}

.zmk-popup-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zmk-popup-content {
	padding: 28px 20px 24px;
}

.zmk-popup-badge {
	display: inline-block;
	background: var(--zmk-accent, #c8154c);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 14px;
}

.zmk-popup-headline {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1a1a1a;
}

.zmk-popup-highlight {
	color: var(--zmk-accent, #c8154c);
}

.zmk-popup-body {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
	margin: 0 0 20px;
}

.zmk-popup-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.zmk-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border: 2px solid var(--zmk-accent, #c8154c);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.zmk-popup-btn-outline {
	background: transparent;
	color: var(--zmk-accent, #c8154c);
}

.zmk-popup-btn-outline:hover {
	background: var(--zmk-accent, #c8154c);
	color: #fff;
}

.zmk-popup-btn-solid {
	background: var(--zmk-accent, #c8154c);
	color: #fff;
}

.zmk-popup-btn-solid:hover {
	opacity: 0.9;
}

/* Wenn das Bild auf Mobil per Einstellung ausgeblendet ist, braucht der
   Text oben Platz, damit der Close-Button nicht über der Überschrift schwebt.
   Gilt nur unterhalb der Desktop-Breite - ab 768px bleibt das Bild als
   Hintergrund immer sichtbar. */
@media (max-width: 767px) {
	.zmk-popup-hide-image-mobile .zmk-popup-image {
		display: none;
	}

	.zmk-popup-hide-image-mobile .zmk-popup-content {
		padding-top: 56px;
	}
}

/* Ab Tablet/Desktop: Bild wird vollflächiger Hintergrund, Text schwebt
   als eigenes Panel darüber. */
@media (min-width: 768px) {
	.zmk-popup-box {
		min-height: 520px;
		border-radius: 16px;
	}

	.zmk-popup-image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		z-index: 0;
	}

	.zmk-popup-content {
		position: relative;
		z-index: 1;
		max-width: 480px;
		padding: 40px;
	}

	.zmk-popup-headline {
		font-size: 32px;
		margin-bottom: 16px;
	}

	.zmk-popup-body {
		font-size: 16px;
		margin-bottom: 28px;
	}

	.zmk-popup-badge {
		margin-bottom: 18px;
	}

	.zmk-popup-buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.zmk-popup-btn {
		width: auto;
	}

	.zmk-popup-close {
		top: 16px;
		right: 16px;
		width: 40px;
		height: 40px;
		font-size: 22px;
	}

	.zmk-popup-hide-image-mobile .zmk-popup-content {
		padding-top: 40px;
	}
}
