/* BIG Winterlook: Nachthimmel, Schneefall, Lichterschild und Baumkronen im Schatten mit leuchtenden Pfahlewern hinter der ganzen Seite.
   Die Szene (assets/szene.html, erzeugt von /opt/big-weihnachtsmarkt/tools/szene.py) steht fest hinter dem Inhalt. */

body.bigw-winter {
	background: #0b1a33;
}

/* Die hellen Flächen des Themes werden durchsichtig, damit die Szene durchscheint; der Fußbereich bleibt hell. */
body.bigw-winter .ocm-effect-wrap,
body.bigw-winter .container-wrap {
	background: transparent !important;
}

body.bigw-winter #footer-outer {
	background: #f4f2ef;
}

.bigw-szene {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	background: #0b1a33;
}

.bigw-szene .bigw-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.bigw-himmel {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(40% 34% at 84% 6%, rgba(255, 238, 205, .14), rgba(255, 238, 205, 0) 70%),
		radial-gradient(80% 55% at 50% 112%, rgba(70, 112, 182, .38), rgba(70, 112, 182, 0) 70%),
		linear-gradient(180deg, #07142a 0%, #0c1f3f 40%, #142f5a 78%, #1b3b6c 100%);
}

/* Bühne 1600 × 1000: deckt den Bildschirm wie ein Titelbild ab, unten verankert */
.bigw-buehne {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: max(100vw, 160vh);
	height: max(100vh, 62.5vw);
	transform: translateX(-50%);
}

.bigw-baeume,
.bigw-funkeln {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.bigw-funkeln {
	will-change: opacity;
}

.bigw-funkeln-a {
	animation: bigw-funkeln-a 3.8s ease-in-out infinite alternate;
}

.bigw-funkeln-b {
	animation: bigw-funkeln-b 5.6s ease-in-out -2s infinite alternate;
}

@keyframes bigw-funkeln-a {
	from {
		opacity: .15;
	}
	to {
		opacity: 1;
	}
}

@keyframes bigw-funkeln-b {
	from {
		opacity: 1;
	}
	to {
		opacity: .2;
	}
}

/* Pfahlewer an Fäden in den Kronen wehen im Wind (25.11.2026): Böen schwenken sie am Faden, dabei drehen sie sich
   leicht um den Faden. Nur Drehungen, der Schein (filter) sitzt am gedrehten Bild und wird nicht neu berechnet. */
.bigw-haenger {
	position: absolute;
	display: block;
	transform-origin: 44% 0;
	animation: bigw-wind var(--dauer, 9s) ease-in-out var(--verzug, 0s) infinite;
	will-change: transform;
}

.bigw-haenger svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	transform-origin: 44% 50%;
	filter: drop-shadow(0 0 3px rgba(255, 205, 110, .95)) drop-shadow(0 0 12px rgba(255, 170, 60, .45));
	animation: bigw-drehen calc(var(--dauer, 9s) * .62) ease-in-out var(--verzug, 0s) infinite alternate;
	will-change: transform;
}

@keyframes bigw-wind {
	0% {
		transform: rotate(calc(var(--winkel, 7deg) * -.3));
	}
	16% {
		transform: rotate(calc(var(--winkel, 7deg) * .85));
	}
	25% {
		transform: rotate(calc(var(--winkel, 7deg) * .5));
	}
	37% {
		transform: rotate(var(--winkel, 7deg));
	}
	49% {
		transform: rotate(calc(var(--winkel, 7deg) * .6));
	}
	60% {
		transform: rotate(calc(var(--winkel, 7deg) * .95));
	}
	76% {
		transform: rotate(calc(var(--winkel, 7deg) * .05));
	}
	89% {
		transform: rotate(calc(var(--winkel, 7deg) * .4));
	}
	100% {
		transform: rotate(calc(var(--winkel, 7deg) * -.3));
	}
}

@keyframes bigw-drehen {
	from {
		transform: perspective(260px) rotateY(-28deg);
	}
	to {
		transform: perspective(260px) rotateY(24deg);
	}
}

.bigw-haenger-faden {
	fill: none;
	stroke: rgba(255, 226, 170, .4);
	stroke-width: 1.4;
}

.bigw-haenger .bigw-boot-draht {
	fill: none;
	stroke: rgba(255, 224, 160, .75);
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bigw-haenger .bigw-boot-lichter {
	fill: none;
	stroke: #fff0c4;
	stroke-width: 5.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 0 10;
	animation: none;
}

/* Lichterschild „Frohe Weihnachten Blankenese“ (25.11.2026): rechts oben im Hintergrund neben der Überschrift, am Handy
   oben in der Mitte. Es leuchtet beim Aufruf langsam auf; zwei Lichterreihen funkeln abwechselnd (nur Deckkraft). */
.bigw-schild {
	position: absolute;
	top: clamp(112px, 15vh, 170px);
	right: clamp(20px, 4vw, 80px);
	width: min(42vw, 620px);
	aspect-ratio: 1000 / 280;
	opacity: var(--schild-deckkraft, .9);
	animation: bigw-schild-an 2.6s ease .4s both;
}

/* Startseite: Dort ziehen Überschriften mittig darüber, das Schild bleibt zurückhaltender */
body.bigw-winter-start .bigw-schild {
	--schild-deckkraft: .5;
}

.bigw-schild svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.bigw-schild-draht {
	stroke: rgba(255, 222, 160, .3);
}

.bigw-schild-lichter {
	stroke: #ffe8b0;
	filter: drop-shadow(0 0 2.5px rgba(255, 205, 110, .95)) drop-shadow(0 0 10px rgba(255, 170, 60, .4));
	will-change: opacity;
}

.bigw-schild-a {
	animation: bigw-schild-funkeln 2.8s ease-in-out infinite alternate;
}

.bigw-schild-b {
	animation: bigw-schild-funkeln 2.8s ease-in-out -1.4s infinite alternate-reverse;
}

@keyframes bigw-schild-funkeln {
	from {
		opacity: .45;
	}
	to {
		opacity: 1;
	}
}

@keyframes bigw-schild-an {
	from {
		opacity: 0;
	}
	to {
		opacity: var(--schild-deckkraft, .9);
	}
}

@media (max-width: 900px) {
	.bigw-schild {
		top: 116px;
		left: 0;
		right: 0;
		width: min(78vw, 420px);
		margin: 0 auto;
	}
}

/* Schneefall in zwei Ebenen hinter dem Inhalt */
.bigw-schneefall {
	position: absolute;
	left: 0;
	right: 0;
	background-repeat: repeat;
	will-change: transform;
}

.bigw-schneefall-fern {
	top: -240px;
	height: calc(100% + 240px);
	opacity: .55;
	background-image:
		radial-gradient(1.3px 1.3px at 10% 14%, #fff 60%, transparent 64%),
		radial-gradient(1px 1px at 33% 58%, #fff 60%, transparent 64%),
		radial-gradient(1.6px 1.6px at 57% 26%, #fff 60%, transparent 64%),
		radial-gradient(1.2px 1.2px at 78% 72%, #fff 60%, transparent 64%),
		radial-gradient(1px 1px at 90% 38%, #fff 60%, transparent 64%),
		radial-gradient(1.4px 1.4px at 22% 90%, #fff 60%, transparent 64%),
		radial-gradient(1.1px 1.1px at 66% 94%, #fff 60%, transparent 64%);
	background-size: 240px 240px;
	animation: bigw-fallen-fern 30s linear infinite;
}

.bigw-schneefall-nah {
	top: -320px;
	height: calc(100% + 320px);
	opacity: .8;
	background-image:
		radial-gradient(2.2px 2.2px at 12% 20%, #fff 55%, transparent 65%),
		radial-gradient(1.8px 1.8px at 46% 64%, #fff 55%, transparent 65%),
		radial-gradient(2.6px 2.6px at 74% 12%, #fff 55%, transparent 65%),
		radial-gradient(2px 2px at 88% 80%, #fff 55%, transparent 65%),
		radial-gradient(1.6px 1.6px at 30% 92%, #fff 55%, transparent 65%);
	background-size: 320px 320px;
	animation: bigw-fallen-nah 19s linear infinite;
}

@keyframes bigw-fallen-fern {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, 240px, 0);
	}
}

@keyframes bigw-fallen-nah {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, 320px, 0);
	}
}

/* Wenige große, weiche Flocken auch vor dem Inhalt, sehr zurückhaltend */
.bigw-schnee-vorne {
	position: fixed;
	left: 0;
	right: 0;
	top: -520px;
	z-index: 40;
	height: calc(100vh + 520px);
	pointer-events: none;
	opacity: .45;
	background-image:
		radial-gradient(3px 3px at 18% 22%, rgba(255, 255, 255, .95) 40%, transparent 70%),
		radial-gradient(2.4px 2.4px at 64% 58%, rgba(255, 255, 255, .9) 40%, transparent 70%),
		radial-gradient(3.4px 3.4px at 86% 12%, rgba(255, 255, 255, .85) 40%, transparent 70%);
	background-size: 520px 520px;
	animation: bigw-fallen-vorne 24s linear infinite;
	will-change: transform;
}

@keyframes bigw-fallen-vorne {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, 520px, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bigw-funkeln,
	.bigw-haenger,
	.bigw-haenger svg,
	.bigw-schild,
	.bigw-schild-lichter,
	.bigw-schneefall,
	.bigw-schnee-vorne {
		animation: none !important;
	}
}

/* Startseite und andere Seiten mit Winter-Kennzeichen (_bigw_winterlook = 1) */

/* Kopfbild: nachtblauer Abendschleier und Schneefall */
body.bigw-winter-start .wpb_row.first-section .row-bg-wrap {
	overflow: hidden;
}

body.bigw-winter-start .wpb_row.first-section .row-bg-overlay {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(6, 17, 38, .78) 0%, rgba(12, 31, 63, .5) 42%, rgba(9, 22, 44, .62) 70%, rgba(7, 15, 29, .9) 100%) !important;
}

body.bigw-winter-start .wpb_row.first-section .row-bg-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -320px;
	z-index: 2;
	height: calc(100% + 320px);
	pointer-events: none;
	opacity: .85;
	background-image:
		radial-gradient(2.2px 2.2px at 12% 20%, #fff 55%, transparent 65%),
		radial-gradient(1.6px 1.6px at 46% 64%, #fff 55%, transparent 65%),
		radial-gradient(2.6px 2.6px at 74% 12%, #fff 55%, transparent 65%),
		radial-gradient(1.8px 1.8px at 88% 80%, #fff 55%, transparent 65%),
		radial-gradient(1.4px 1.4px at 30% 92%, #fff 55%, transparent 65%),
		radial-gradient(1.2px 1.2px at 60% 40%, #fff 55%, transparent 65%);
	background-size: 320px 320px;
	animation: bigw-fallen-nah 19s linear infinite;
	will-change: transform;
}

/* Texte auf dem Nachthimmel hell (nicht im Laufband der Mitglieder und nicht in den Knöpfen) */
body.bigw-winter-start .main-content > .row > .wpb_row:not(.first-section) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, em, blockquote, label, a):not(.bigm *):not(.link_wrap *) {
	color: #fff6e5 !important;
}

body.bigw-winter-start .main-content > .row > .wpb_row:not(.first-section) a.link_text:not(.link_wrap *) {
	color: #ffdc94 !important;
}

/* Knöpfe zur Mitgliedschaft und zu den Mitgliedern golden, andere Links (z. B. „Über Uns“) als goldener Text */
body.bigw-winter-start .main-content .nectar-cta .link_wrap:has(> a[href*="mitglied"]) {
	background: #e9b95a !important;
	box-shadow: 0 0 28px rgba(255, 200, 100, .25);
	transition: box-shadow .3s, transform .3s;
}

body.bigw-winter-start .main-content .nectar-cta .link_wrap:has(> a[href*="mitglied"]):hover {
	transform: translateY(-2px);
	box-shadow: 0 0 36px rgba(255, 200, 100, .45);
}

body.bigw-winter-start .main-content .nectar-cta .link_wrap:has(> a[href*="mitglied"]),
body.bigw-winter-start .main-content .nectar-cta .link_wrap:has(> a[href*="mitglied"]) * {
	color: #0c1a30 !important;
	border-color: #0c1a30 !important;
}

body.bigw-winter-start .main-content .nectar-cta .link_wrap:has(> a[href*="mitglied"]) .line {
	background-color: #0c1a30 !important;
}

body.bigw-winter-start .main-content .nectar-cta .link_wrap:not(:has(> a[href*="mitglied"])),
body.bigw-winter-start .main-content .nectar-cta .link_wrap:not(:has(> a[href*="mitglied"])) * {
	color: #ffdc94 !important;
	border-color: #ffdc94 !important;
}

body.bigw-winter-start .main-content .nectar-cta .link_wrap:not(:has(> a[href*="mitglied"])) .line {
	background-color: #ffdc94 !important;
}

/* Laufband der Mitglieder auf einem hellen Band, damit die Logos lesbar bleiben */
body.bigw-winter-start .bigm-ticker {
	width: auto !important;
	margin: 0 clamp(12px, 3vw, 48px);
	padding: 18px 0;
	overflow: hidden;
	border-radius: 24px;
	background: #fffdf8;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 220, 148, .25);
}

/* Hinweis auf die Weihnachtsaktion */
.bigw-hinweis {
	position: fixed;
	right: clamp(12px, 2vw, 28px);
	bottom: clamp(12px, 2vw, 28px);
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 24px);
	padding: 10px 18px 10px 12px;
	border: 1px solid rgba(255, 220, 148, .55);
	border-radius: 999px;
	color: #fff6e5 !important;
	text-decoration: none !important;
	background: linear-gradient(135deg, rgba(23, 48, 90, .96), rgba(8, 18, 36, .96));
	box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 30px rgba(255, 200, 100, .25);
	animation: bigw-hinweis-rein .9s cubic-bezier(.2, .7, .2, 1) 1s both, bigw-hinweis-glimmen 4s ease-in-out 2s infinite;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.bigw-hinweis:hover,
.bigw-hinweis:focus-visible {
	transform: translateY(-3px);
}

.bigw-hinweis-boot {
	flex: none;
	width: 38px;
	height: 38px;
	overflow: visible;
	filter: drop-shadow(0 0 4px rgba(255, 205, 110, .9));
}

.bigw-hinweis-boot use {
	fill: none;
	stroke: #ffdc94;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bigw-hinweis-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.bigw-hinweis-text strong {
	font-family: "Instrument Serif", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	color: #fff6e5;
}

.bigw-hinweis-text span {
	font-size: 12px;
	color: #ffdc94;
}

@keyframes bigw-hinweis-rein {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bigw-hinweis-glimmen {
	0%, 100% {
		box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 200, 100, .2);
	}
	50% {
		box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 200, 100, .45);
	}
}

@media (max-width: 600px) {
	.bigw-hinweis-text span {
		display: none;
	}

	.bigw-hinweis-text strong {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.bigw-winter-start .wpb_row.first-section .row-bg-wrap::after,
	.bigw-hinweis {
		animation: none !important;
	}
}

/* Lesbarkeit: heller Text über den Lichtern im Hintergrund bekommt einen leichten dunklen Schein */
body.bigw-winter-start .main-content > .row > .wpb_row:not(.first-section) :is(h1, h2, h3, h4, h5, h6, p, li, a):not(.bigm *):not(.link_wrap *),
.bigw-winter .bigw :is(.bigw-kopf h2, .bigw-unterzeile, .bigw-einleitung, .bigw-advent-text, .bigw-collage-text, .bigw-gaeste > h3, .bigw-stand, .bigw-zeitraum, .bigw-dachzeile) {
	text-shadow: 0 1px 10px rgba(4, 10, 22, .85), 0 0 2px rgba(4, 10, 22, .6);
}
