/* Marken-Rabatt: Angel-Animation «Der Fang des Tages» (brand-deal-wheel.js) */

.af-bdw {
	--af-red: var(--e-global-color-secondary, #e11a27);
	--water-y: 60vh;
	--fw: 100px;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	overflow: hidden;
	opacity: 0;
	transition: opacity .35s ease;
	font-family: inherit;
	color: #ffffff;
	-webkit-user-select: none;
	user-select: none;
}
.af-bdw.is-open { opacity: 1; }
.af-bdw [hidden] { display: none !important; }

.af-bdw-bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 10%, rgba(40, 70, 95, .92) 0%, rgba(8, 22, 36, .95) 60%);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* Wasser */
.af-bdw-water { position: absolute; left: 0; right: 0; top: var(--water-y); bottom: 0; }
.af-bdw-depth { position: absolute; inset: 14px 0 0 0; background: linear-gradient(180deg, rgba(30, 110, 150, .55) 0%, rgba(6, 40, 64, .9) 100%); }
.af-bdw-wave { position: absolute; left: 0; top: -12px; width: 200%; height: 28px; }
.af-bdw-wave path { fill: rgba(30, 110, 150, .55); }
.af-bdw-wave-back { opacity: .6; animation: af-bdw-wave 7s linear infinite reverse; top: -18px; }
.af-bdw-wave-front { animation: af-bdw-wave 5s linear infinite; }
@keyframes af-bdw-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.af-bdw-bubble {
	position: absolute;
	bottom: -20px;
	width: var(--s, 8px);
	height: var(--s, 8px);
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	animation: af-bdw-bubble 4s ease-in infinite;
}
@keyframes af-bdw-bubble {
	0% { transform: translate(0, 0); opacity: 0; }
	15% { opacity: .9; }
	100% { transform: translate(14px, calc(-1 * (100vh - var(--water-y)) + 10px)); opacity: 0; }
}

/* Rute, Schnur, Rolle, Haken */
.af-bdw-gear { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.af-bdw-rod { fill: none; stroke: #2a1a10; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.af-bdw-line { stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; }
.af-bdw-reel-body { fill: #3b4652; stroke: #8796a5; stroke-width: 3; }
.af-bdw-reel-foot { fill: #3b4652; }
.af-bdw-spool circle { fill: #c9a227; stroke: #6b5512; stroke-width: 2; }
.af-bdw-spool line { stroke: #6b5512; stroke-width: 3; }
.af-bdw-spool .af-bdw-spool-hub { fill: #2a2a2a; }
.af-bdw-crank line { stroke: #b8c2cc; stroke-width: 4; stroke-linecap: round; }
.af-bdw-crank circle { fill: #1c1c1c; }
.af-bdw-hook path { fill: none; stroke: #e6e9ec; stroke-width: 2.5; stroke-linecap: round; }
.af-bdw-sinker { fill: var(--af-red); }

/* Fische */
.af-bdw-fishes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.af-bdw-fish {
	position: absolute;
	left: 0;
	top: 0;
	width: var(--fw);
	height: calc(var(--fw) / 2);
	transform-origin: 95% 50%;
	will-change: transform;
	transition: opacity .6s ease, filter .6s ease;
}
.af-bdw-fish-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.af-bdw-fish.is-left .af-bdw-fish-svg { transform: scaleX(-1); }
.af-bdw-logo {
	position: absolute;
	left: 48%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--fw) * .42);
	height: calc(var(--fw) * .42);
	padding: 3px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .4);
	overflow: hidden;
	transform: translate(-50%, -50%);
}
.af-bdw-fish.is-left .af-bdw-logo { left: 52%; }
.af-bdw-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.af-bdw-logo b { color: #111111; font-size: 8px; line-height: 1; text-align: center; }
.af-bdw-name {
	position: absolute;
	left: 50%;
	top: 100%;
	margin-top: 8px;
	padding: 2px 8px;
	background: var(--af-red);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity .3s ease, transform .3s ease;
}
.af-bdw-fish.is-slotted .af-bdw-name { opacity: 1; transform: translate(-50%, 0); }
.af-bdw-fish.is-gone { opacity: 0; filter: blur(3px); }
.af-bdw.is-leaving .af-bdw-name { opacity: 0; }

/* Spritzer, Ringe, «Biss!» */
.af-bdw-drop { position: absolute; left: -3px; top: -3px; z-index: 4; width: 6px; height: 6px; border-radius: 50%; background: #bfe6f7; pointer-events: none; }
.af-bdw-ring {
	position: absolute;
	z-index: 4;
	width: 10px;
	height: 4px;
	border: 2px solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: af-bdw-ring .9s ease-out forwards;
	pointer-events: none;
}
@keyframes af-bdw-ring { to { width: 140px; height: 26px; opacity: 0; } }
.af-bdw-pop {
	position: absolute;
	z-index: 5;
	padding: 4px 12px;
	background: #ffd400;
	color: #111111;
	font-size: 18px;
	font-weight: 800;
	transform: translate(-50%, -50%) rotate(-6deg);
	animation: af-bdw-pop 1.1s ease forwards;
	pointer-events: none;
}
@keyframes af-bdw-pop {
	0% { transform: translate(-50%, -50%) rotate(-6deg) scale(.2); opacity: 0; }
	20% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.15); opacity: 1; }
	35% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
	80% { opacity: 1; }
	100% { transform: translate(-50%, -90%) rotate(-6deg) scale(1); opacity: 0; }
}

/* Texte und Buttons */
.af-bdw-head { position: absolute; left: 16px; right: 16px; top: 4vh; z-index: 5; text-align: center; pointer-events: none; }
.af-bdw-kicker { display: inline-block; margin-bottom: 8px; padding: 2px 10px; background: var(--af-red); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.af-bdw-title { font-size: clamp(20px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.af-bdw-final {
	position: absolute;
	left: 16px;
	right: 16px;
	top: calc(37vh + var(--fw) * .9 + 40px);
	z-index: 6;
	text-align: center;
	animation: af-bdw-rise .4s ease both;
}
.af-bdw-final p { max-width: 520px; margin: 0 auto 16px; font-size: 15px; line-height: 1.5; }
@keyframes af-bdw-rise { from { opacity: 0; transform: translateY(12px); } }
.af-bdw-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.af-bdw.is-leaving .af-bdw-final,
.af-bdw.is-leaving .af-bdw-head { opacity: 0; transition: opacity .25s ease; }

.af-bdw-btn,
.af-bdw-btn:hover,
.af-bdw-btn:focus {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid #ffffff;
	border-radius: 0;
	background: transparent !important;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.af-bdw-btn-primary,
.af-bdw-btn-primary:hover,
.af-bdw-btn-primary:focus { border-color: var(--af-red) !important; background: var(--af-red) !important; color: #ffffff !important; }
.af-bdw-btn:hover { filter: brightness(1.1); }

.af-bdw-skip,
.af-bdw-skip:hover,
.af-bdw-skip:focus {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 7;
	padding: 6px 10px;
	border: 0;
	background: rgba(255, 255, 255, .12) !important;
	color: #ffffff;
	font-size: 12px;
	cursor: pointer;
}

/* Warenkorb-Button hüpft, wenn die Fische ankommen */
#woofc-count.af-bdw-bump { animation: af-bdw-bump .6s ease; }
@keyframes af-bdw-bump {
	0%, 100% { transform: scale(1); }
	30% { transform: scale(1.3) rotate(-8deg); }
	60% { transform: scale(.92) rotate(5deg); }
}

/* Hinweis «Deine Deals» neben dem Warenkorb-Button */
.af-bdw-hint { --af-red: var(--e-global-color-secondary, #e11a27); position: fixed; z-index: 99999; right: 90px; bottom: 30px; }
.af-bdw-hint[hidden] { display: none; }
.af-bdw-hint.is-new { animation: af-bdw-hint-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes af-bdw-hint-in { from { opacity: 0; transform: translateX(30px) scale(.6); } }
/* Gleiche Höhe, Ecken und Schatten wie der Warenkorb-Button (--h setzt das JS) */
.af-bdw-hint .af-bdw-pill,
.af-bdw-hint .af-bdw-pill:hover,
.af-bdw-hint .af-bdw-pill:focus {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	height: var(--h, 60px) !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 16px 0 12px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	box-shadow: 0 0 20px rgba(0, 0, 0, .15) !important;
	color: #111111 !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
}
.af-bdw-pill::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--e-global-color-secondary, #e11a27); animation: af-bdw-ping 1.6s ease-out infinite; }
@keyframes af-bdw-ping { 0% { box-shadow: 0 0 0 0 rgba(225, 26, 39, .6); } 100% { box-shadow: 0 0 0 10px rgba(225, 26, 39, 0); } }
.af-bdw-pill-logos { display: flex; }

/* Vor der Animation: «Deine Deals fangen» */
.af-bdw-pill-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--af-red);
	color: #ffffff;
	animation: af-bdw-bob 2.4s ease-in-out infinite;
}
.af-bdw-pill-icon svg { display: block; width: 18px; height: 18px; }
@keyframes af-bdw-bob {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-3px) rotate(-12deg); }
}
.af-bdw-tip-title { display: block; color: #111111; font-size: 15px; }
.af-bdw-tip button.af-bdw-btn { width: 100%; }
.af-bdw-mini { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 3px; border: 1px solid #e3e3e3; border-radius: 50%; background: #ffffff; overflow: hidden; font-size: 7px; }
.af-bdw-pill-logos .af-bdw-mini + .af-bdw-mini { margin-left: -10px; }
.af-bdw-mini img { display: block; width: 100%; height: 100%; object-fit: contain; }

.af-bdw-tip {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	width: 260px;
	padding: 14px;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 0 20px rgba(0, 0, 0, .15);
	color: #333333;
	font-size: 13px;
	line-height: 1.45;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.af-bdw-tip::after { content: ""; position: absolute; right: 24px; top: 100%; border: 7px solid transparent; border-top-color: #ffffff; }
.af-bdw-tip p { margin: 10px 0 12px; }
.af-bdw-tip-logos { display: flex; gap: 6px; }
.af-bdw-tip-logos .af-bdw-mini { width: 48px; height: 48px; padding: 5px; }
.af-bdw-tip .af-bdw-btn { display: block; text-align: center; }
.af-bdw-hint:hover .af-bdw-tip,
.af-bdw-hint:focus-within .af-bdw-tip,
.af-bdw-hint.is-tip .af-bdw-tip { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 600px) {
	.af-bdw-pill-text { display: none; }
	.af-bdw-hint.is-teaser .af-bdw-pill-text { display: inline; }
	.af-bdw-hint:not(.is-teaser) .af-bdw-pill,
	.af-bdw-hint:not(.is-teaser) .af-bdw-pill:hover,
	.af-bdw-hint:not(.is-teaser) .af-bdw-pill:focus { padding-right: 12px !important; }
	.af-bdw-tip { width: min(260px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
	.af-bdw-wave, .af-bdw-bubble, .af-bdw-pill::before, .af-bdw-pill-icon { animation: none; }
}
