/* Aktionstage – Popup, Karte, Countdown, Knopf zum Wiederöffnen.
   Farben und Maße kommen als CSS-Variablen von der Aktion und aus den Einstellungen. */

.aktg-root,
.aktg-inline {
	--aktg-bg: #ffffff;
	--aktg-fg: #1d1d1f;
	--aktg-accent: #c8102e;
	--aktg-accent-on: #ffffff;
	--aktg-dim: 0.75;
	--aktg-width: 720px;
	--aktg-radius: 14px;
}

.aktg-root *,
.aktg-root *::before,
.aktg-root *::after,
.aktg-inline *,
.aktg-inline *::before,
.aktg-inline *::after {
	box-sizing: border-box;
}

.aktg-root [hidden],
.aktg-inline[hidden],
.aktg-inline [hidden] {
	display: none !important;
}

/* ── Popup ──────────────────────────────────────────────────────────────── */
.aktg-popup {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	color: var(--aktg-fg);
	font-family: inherit;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.aktg-backdrop {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
	transition: opacity 0.26s ease;
}

.aktg-popup.is-in .aktg-backdrop {
	opacity: var(--aktg-dim);
}

.aktg-scroll {
	position: absolute;
	inset: 0;
	display: flex;
	padding: 20px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.aktg-box {
	position: relative;
	width: 100%;
	max-width: var(--aktg-width);
	margin: auto;
	border-radius: var(--aktg-radius);
	background: var(--aktg-bg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	outline: none;
	opacity: 0;
	transform: translateY(18px) scale(0.975);
	transition: opacity 0.26s ease, transform 0.36s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.aktg-popup.is-in .aktg-box {
	opacity: 1;
	transform: none;
}

.aktg-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.42);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.aktg-close:hover {
	background: rgba(0, 0, 0, 0.7);
	transform: scale(1.06);
}

.aktg-close svg {
	width: 16px;
	height: 16px;
}

.aktg-root button:focus-visible,
.aktg-root a:focus-visible,
.aktg-inline button:focus-visible,
.aktg-inline a:focus-visible {
	outline: 3px solid var(--aktg-accent);
	outline-offset: 3px;
}

/* ── Karte ──────────────────────────────────────────────────────────────── */
.aktg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--aktg-bg);
	color: var(--aktg-fg);
	text-align: center;
}

.aktg-media {
	position: relative;
	flex: none;
	overflow: hidden;
	background: rgba(127, 127, 127, 0.18);
}

.aktg-card .aktg-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.aktg-card--top .aktg-media {
	aspect-ratio: 16 / 6;
	max-height: 34vh;
}

.aktg-body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 40px clamp(22px, 6vw, 56px) 36px;
}

.aktg-card--plain .aktg-body {
	padding-top: 56px;
}

.aktg-card .aktg-eyebrow {
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--aktg-accent);
	color: var(--aktg-accent-on);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.aktg-card .aktg-headline {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: clamp(28px, 5.4vw, 46px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.aktg-card .aktg-text {
	max-width: 34em;
	font-size: 17px;
	line-height: 1.55;
	opacity: 0.88;
}

.aktg-card .aktg-text p,
.aktg-card .aktg-note p {
	margin: 0;
	padding: 0;
	color: inherit;
}

.aktg-card .aktg-text p + p,
.aktg-card .aktg-note p + p {
	margin-top: 0.7em;
}

.aktg-card .aktg-text a,
.aktg-card .aktg-note a {
	color: inherit;
	text-decoration: underline;
}

/* Countdown */
.aktg-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.aktg-cd-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.7;
}

.aktg-cd-units {
	display: flex;
	gap: 8px;
}

.aktg-cd-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 66px;
	padding: 10px 8px 8px;
	border: 1px solid rgba(127, 127, 127, 0.38);
	border-radius: calc(var(--aktg-radius) * 0.6);
}

.aktg-cd-num {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.aktg-cd-word {
	margin-top: 5px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
}

/* Angebot: Code, Knopf, Kleingedrucktes */
.aktg-offer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.aktg-offer:empty {
	display: none;
}

.aktg-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	padding: 12px 16px;
	border: 2px dashed var(--aktg-accent);
	border-radius: calc(var(--aktg-radius) * 0.6);
}

.aktg-code-label {
	font-size: 14px;
	opacity: 0.8;
}

.aktg-code-value {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.08em;
	user-select: all;
}

.aktg-card .aktg-copy {
	margin: 0;
	padding: 7px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.aktg-card .aktg-copy:hover,
.aktg-card .aktg-copy.is-done {
	border-color: var(--aktg-accent);
	background: var(--aktg-accent);
	color: var(--aktg-accent-on);
}

.aktg-card .aktg-btn {
	display: inline-block;
	padding: 16px 34px;
	border-radius: 999px;
	background: var(--aktg-accent);
	color: var(--aktg-accent-on);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.aktg-card .aktg-btn:hover {
	color: var(--aktg-accent-on);
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.aktg-card .aktg-note {
	max-width: 40em;
	font-size: 12.5px;
	line-height: 1.5;
	opacity: 0.62;
}

.aktg-card .aktg-ended {
	margin: 0;
	padding: 0;
	font-weight: 700;
}

.aktg-card.is-ended .aktg-countdown,
.aktg-card.is-ended .aktg-offer {
	display: none;
}

/* Bild links, Text rechts */
@media (min-width: 720px) {
	.aktg-card--side {
		flex-direction: row;
		text-align: left;
	}

	.aktg-card--side .aktg-media {
		width: 42%;
	}

	.aktg-card--side .aktg-body {
		flex: 1;
		align-items: flex-start;
		padding: 48px 44px 40px 36px;
	}

	.aktg-card--side .aktg-countdown,
	.aktg-card--side .aktg-offer {
		align-items: flex-start;
	}

	.aktg-card--side .aktg-code {
		justify-content: flex-start;
	}
}

@media (max-width: 719px) {
	.aktg-card--side .aktg-media {
		aspect-ratio: 16 / 8;
	}
}

/* Bild als Hintergrund */
.aktg-card--background .aktg-media {
	position: absolute;
	inset: 0;
}

.aktg-card--background .aktg-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--aktg-bg);
	opacity: 0.72;
}

.aktg-card--background .aktg-body {
	padding-top: 56px;
	padding-bottom: 48px;
}

/* ── Knopf zum Wiederöffnen ─────────────────────────────────────────────── */
.aktg-launcher {
	position: fixed;
	z-index: 2147482000;
	font-family: inherit;
	line-height: 1.3;
}

.aktg-launcher--right,
.aktg-launcher--left {
	bottom: 18px;
}

.aktg-launcher--right {
	right: 18px;
}

.aktg-launcher--left {
	left: 18px;
}

.aktg-root .aktg-launcher-open {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--aktg-accent);
	color: var(--aktg-accent-on);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.aktg-root .aktg-launcher-open:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

/* Leiste am unteren Rand */
.aktg-launcher--bar {
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: stretch;
	background: var(--aktg-bg);
	color: var(--aktg-fg);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
}

.aktg-root .aktg-launcher--bar .aktg-launcher-open {
	flex: 1;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	padding: 12px 12px 12px 56px;
	border-radius: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.aktg-root .aktg-launcher--bar .aktg-launcher-open:hover {
	transform: none;
}

.aktg-root .aktg-launcher--bar button:focus-visible {
	outline-offset: -4px;
}

.aktg-launcher--bar .aktg-launcher-text {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--aktg-accent);
	color: var(--aktg-accent-on);
}

.aktg-mini {
	font-variant-numeric: tabular-nums;
	text-transform: none;
	letter-spacing: 0.02em;
}

.aktg-root .aktg-launcher-hide {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: 0.65;
	cursor: pointer;
}

.aktg-root .aktg-launcher-hide:hover {
	opacity: 1;
}

.aktg-launcher-hide svg {
	width: 14px;
	height: 14px;
}

/* ── Shortcode [aktion] ─────────────────────────────────────────────────── */
.aktg-inline {
	max-width: var(--aktg-width);
	margin: 0 auto;
	border-radius: var(--aktg-radius);
	overflow: hidden;
	line-height: 1.5;
}

.aktg-inline .aktg-card--plain .aktg-body {
	padding-top: 40px;
}

/* ── Kleine Bildschirme ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.aktg-scroll {
		padding: 12px 10px;
	}

	.aktg-body {
		gap: 14px;
		padding: 30px 20px 28px;
	}

	.aktg-card .aktg-text {
		font-size: 16px;
	}

	.aktg-cd-unit {
		min-width: 58px;
	}

	.aktg-cd-num {
		font-size: 26px;
	}

	.aktg-card .aktg-btn {
		width: 100%;
		padding: 15px 20px;
		text-align: center;
	}

	.aktg-launcher--right,
	.aktg-launcher--left {
		bottom: 12px;
	}

	.aktg-launcher--right {
		right: 12px;
	}

	.aktg-launcher--left {
		left: 12px;
	}

	.aktg-root .aktg-launcher-open {
		padding: 10px 16px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aktg-backdrop,
	.aktg-box,
	.aktg-close,
	.aktg-card .aktg-btn,
	.aktg-root .aktg-launcher-open {
		transition: none;
	}

	.aktg-box {
		transform: none;
	}
}
