/**
 * Popup / "Störer" – Frontend-Design inspiriert vom Flyer
 * Farben werden per CSS-Variablen von PHP injiziert, Defaults sind hier hinterlegt.
 */
.aa-popup-root {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: 'Montserrat', 'Open Sans', Helvetica, Arial, sans-serif;
}

.aa-popup-root.is-open {
	display: flex;
	animation: aaPopFade 0.25s ease-out;
}

.aa-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 10, 15, 0.55);
	backdrop-filter: blur(2px);
}

.aa-popup-card {
	--aap-bg:     #f3d4c9;
	--aap-accent: #c97b7b;
	--aap-badge:  #f4e6a8;
	--aap-text:   #ffffff;
	--aap-dark:   #8a4a4a;

	position: relative;
	background: var(--aap-bg);
	color: var(--aap-text);
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	animation: aaPopIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
	display: flex;
	flex-direction: column;
}

.aa-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.85);
	color: var(--aap-dark);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
}

.aa-popup-close:hover {
	background: #ffffff;
	transform: rotate(90deg);
}

.aa-popup-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 0;
	flex: 1 1 auto;
	overflow: auto;
}

.aa-popup-side {
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

/* ─── Vorderseite (Aktion) ─── */

.aa-popup-side--front {
	text-align: center;
	align-items: center;
	background:
		radial-gradient(circle at 50% 110%, rgba(255,255,255,0.35), transparent 60%),
		var(--aap-bg);
}

.aa-popup-eyebrow {
	font-size: 0.95em;
	letter-spacing: 0.06em;
	color: var(--aap-accent);
	margin-bottom: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.aa-popup-headline {
	font-family: 'Raleway', 'Montserrat', sans-serif;
	font-size: 2.4em;
	line-height: 1;
	margin: 0 0 26px;
	color: var(--aap-text);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.aa-popup-badge {
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: var(--aap-badge);
	border: 5px solid #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--aap-accent);
	margin: 4px auto 24px;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	transform: rotate(-4deg);
}

.aa-popup-badge__main {
	font-family: 'Raleway', 'Montserrat', sans-serif;
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.aa-popup-badge__sub {
	margin-top: 8px;
	font-size: 0.85em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	text-align: center;
	line-height: 1.25;
	color: var(--aap-accent);
}

.aa-popup-tagline {
	margin: 4px 0 24px;
	font-size: 1em;
	line-height: 1.35;
	color: var(--aap-accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
	max-width: 320px;
}

.aa-popup-cta {
	display: inline-block;
	padding: 14px 32px;
	background: var(--aap-accent);
	color: #ffffff;
	text-decoration: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.aa-popup-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
	color: #ffffff;
	filter: brightness(1.05);
}

/* Kleingedruckter Hinweis (z. B. Buchungszeitpunkt und Aktionspreise) */
.aa-popup-notice {
	margin: 18px 0 0;
	padding: 0 6px;
	max-width: 340px;
	font-size: 0.78em;
	line-height: 1.45;
	font-weight: 500;
	color: var(--aap-accent);
	text-align: center;
	opacity: 0.92;
}

/* ─── Rückseite (Preisliste) ─── */

.aa-popup-side--back {
	background: linear-gradient(160deg, var(--aap-bg) 0%, color-mix(in srgb, var(--aap-bg) 85%, #ffffff) 100%);
	color: var(--aap-text);
	border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.aa-popup-price-intro {
	font-family: 'Raleway', 'Montserrat', sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 1.05em;
	letter-spacing: 0.04em;
	margin: 0 0 18px;
	color: var(--aap-text);
	line-height: 1.3;
	border-top: 2px solid rgba(255, 255, 255, 0.7);
	border-bottom: 2px solid rgba(255, 255, 255, 0.7);
	padding: 10px 0;
	text-align: center;
}

.aa-popup-price-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aa-popup-price-item {
	padding: 6px 0;
}

.aa-popup-price-item:not(:last-child) {
	border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
	padding-bottom: 14px;
}

.aa-popup-price-title {
	font-family: 'Raleway', 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--aap-accent);
	margin-bottom: 2px;
}

.aa-popup-price-desc {
	font-size: 0.82em;
	line-height: 1.4;
	color: var(--aap-text);
	margin-bottom: 4px;
	opacity: 0.92;
}

.aa-popup-price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 0.95em;
}

.aa-popup-price-old {
	text-decoration: line-through;
	color: var(--aap-text);
	opacity: 0.65;
	font-size: 0.9em;
}

.aa-popup-price-new {
	color: var(--aap-accent);
	font-weight: 700;
}

.aa-popup-footer {
	margin: 20px 0 0;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 600;
	color: var(--aap-text);
	text-align: center;
	opacity: 0.9;
	line-height: 1.3;
}

/* ─── Animationen ─── */

@keyframes aaPopFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes aaPopIn {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ─── Responsive ─── */

@media (max-width: 720px) {
	.aa-popup-card {
		max-height: 92vh;
	}
	.aa-popup-body {
		grid-template-columns: 1fr;
	}
	.aa-popup-side {
		padding: 32px 24px;
	}
	.aa-popup-side--back {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.4);
	}
	.aa-popup-headline {
		font-size: 2em;
	}
	.aa-popup-badge {
		width: 160px;
		height: 160px;
	}
	.aa-popup-badge__main {
		font-size: 2em;
	}
}

@media (max-width: 420px) {
	.aa-popup-root {
		padding: 10px;
	}
	.aa-popup-side {
		padding: 26px 18px;
	}
	.aa-popup-headline {
		font-size: 1.7em;
	}
	.aa-popup-badge {
		width: 140px;
		height: 140px;
	}
	.aa-popup-badge__main {
		font-size: 1.7em;
	}
	.aa-popup-cta {
		padding: 12px 24px;
		font-size: 0.9em;
	}
}

/* ─── Admin-Vorschau-Overlay ─── */

.aa-popup-preview-wrap {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 15, 0.55);
	backdrop-filter: blur(2px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: 'Montserrat', 'Open Sans', Helvetica, Arial, sans-serif;
}

.aa-popup-preview-wrap.is-open {
	display: flex;
}

body.aa-popup-preview-open {
	overflow: hidden;
}

.aa-popup-card--preview {
	max-width: 900px;
	width: 100%;
}
