/* ==========================================================================
   SYLT ANTIK (WordPress) – Weihnachtsdekoration Startseite
   --------------------------------------------------------------------------
   Eigenständige Datei: wirkt NUR auf der Startseite (body.home).
   Entfernen: Einbindung in der functions.php löschen.
   Kein JavaScript nötig.
   ========================================================================== */

body.home {
	--xmas-gold: #c4a751;
	--xmas-flake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='none' stroke='%23c4a751' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M0.0 -6.0L0.0 -46.0M0.0 -30.0L-10.0 -40.0M0.0 -30.0L10.0 -40.0M0.0 -17.0L-7.0 -24.0M0.0 -17.0L7.0 -24.0M0.0 -40.0L-4.0 -45.0M0.0 -40.0L4.0 -45.0M5.2 -3.0L39.8 -23.0M26.0 -15.0L29.6 -28.7M26.0 -15.0L39.6 -11.3M14.7 -8.5L17.3 -18.1M14.7 -8.5L24.3 -5.9M34.6 -20.0L37.0 -26.0M34.6 -20.0L41.0 -19.0M5.2 3.0L39.8 23.0M26.0 15.0L39.6 11.3M26.0 15.0L29.6 28.7M14.7 8.5L24.3 5.9M14.7 8.5L17.3 18.1M34.6 20.0L41.0 19.0M34.6 20.0L37.0 26.0M0.0 6.0L0.0 46.0M0.0 30.0L10.0 40.0M0.0 30.0L-10.0 40.0M0.0 17.0L7.0 24.0M0.0 17.0L-7.0 24.0M0.0 40.0L4.0 45.0M0.0 40.0L-4.0 45.0M-5.2 3.0L-39.8 23.0M-26.0 15.0L-29.6 28.7M-26.0 15.0L-39.6 11.3M-14.7 8.5L-17.3 18.1M-14.7 8.5L-24.3 5.9M-34.6 20.0L-37.0 26.0M-34.6 20.0L-41.0 19.0M-5.2 -3.0L-39.8 -23.0M-26.0 -15.0L-39.6 -11.3M-26.0 -15.0L-29.6 -28.7M-14.7 -8.5L-24.3 -5.9M-14.7 -8.5L-17.3 -18.1M-34.6 -20.0L-41.0 -19.0M-34.6 -20.0L-37.0 -26.0'/%3E%3Cpolygon points='0.0,-6.0 5.2,-3.0 5.2,3.0 0.0,6.0 -5.2,3.0 -5.2,-3.0'/%3E%3C/g%3E%3C/svg%3E");
	--xmas-flake-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M0.0 -6.0L0.0 -46.0M0.0 -30.0L-10.0 -40.0M0.0 -30.0L10.0 -40.0M0.0 -17.0L-7.0 -24.0M0.0 -17.0L7.0 -24.0M0.0 -40.0L-4.0 -45.0M0.0 -40.0L4.0 -45.0M5.2 -3.0L39.8 -23.0M26.0 -15.0L29.6 -28.7M26.0 -15.0L39.6 -11.3M14.7 -8.5L17.3 -18.1M14.7 -8.5L24.3 -5.9M34.6 -20.0L37.0 -26.0M34.6 -20.0L41.0 -19.0M5.2 3.0L39.8 23.0M26.0 15.0L39.6 11.3M26.0 15.0L29.6 28.7M14.7 8.5L24.3 5.9M14.7 8.5L17.3 18.1M34.6 20.0L41.0 19.0M34.6 20.0L37.0 26.0M0.0 6.0L0.0 46.0M0.0 30.0L10.0 40.0M0.0 30.0L-10.0 40.0M0.0 17.0L7.0 24.0M0.0 17.0L-7.0 24.0M0.0 40.0L4.0 45.0M0.0 40.0L-4.0 45.0M-5.2 3.0L-39.8 23.0M-26.0 15.0L-29.6 28.7M-26.0 15.0L-39.6 11.3M-14.7 8.5L-17.3 18.1M-14.7 8.5L-24.3 5.9M-34.6 20.0L-37.0 26.0M-34.6 20.0L-41.0 19.0M-5.2 -3.0L-39.8 -23.0M-26.0 -15.0L-39.6 -11.3M-26.0 -15.0L-29.6 -28.7M-14.7 -8.5L-24.3 -5.9M-14.7 -8.5L-17.3 -18.1M-34.6 -20.0L-41.0 -19.0M-34.6 -20.0L-37.0 -26.0'/%3E%3Cpolygon points='0.0,-6.0 5.2,-3.0 5.2,3.0 0.0,6.0 -5.2,3.0 -5.2,-3.0'/%3E%3C/g%3E%3C/svg%3E");
	--xmas-bulb: radial-gradient(circle at 15px 9px, #fff1c4 0 1.4px, #f2c14e 1.6px 2.8px, #a77d22 3.1px 3.4px, rgba(242,193,78,.35) 3.6px, transparent 7px);
}

/* --------------------------------------------------------------------------
   1. Grußzeile links im goldenen Kontakt-Balken
   -------------------------------------------------------------------------- */
body.home aside::before {
	content: "\2726\00a0\00a0Frohe Weihnachten & ein glückliches neues Jahr\00a0\00a0\2726";
	position: absolute;
	left: 40px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	letter-spacing: .08em;
	color: #fff;
	white-space: nowrap;
	pointer-events: none;
	animation: xmas-fade-in 1.6s ease-out both;
}

/* --------------------------------------------------------------------------
   2. Lichterkette unter dem goldenen Balken
   -------------------------------------------------------------------------- */
/* Kabel + erste Lämpchen-Gruppe (leuchtet ruhig) */
body.home aside::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -10px;
	height: 16px;
	pointer-events: none;
	background:
		var(--xmas-bulb) 0 0 / 120px 16px repeat-x,
		var(--xmas-bulb) 30px 0 / 120px 16px repeat-x,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='14'%3E%3Cpath d='M0 2 Q30 12 60 2' fill='none' stroke='%237a6530' stroke-width='1' opacity='.8'/%3E%3C/svg%3E") 0 0 / 60px 14px repeat-x;
}
/* zweite Gruppe – glimmt */
body.home header nav::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 135px; /* Höhe Navigation (115) + Balken (30) - 10 */
	height: 16px;
	pointer-events: none;
	z-index: 102;
	background:
		var(--xmas-bulb) 60px 0 / 120px 16px repeat-x,
		var(--xmas-bulb) 90px 0 / 120px 16px repeat-x;
	animation: xmas-twinkle 3.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   3. Rieselnder Schnee (zwei Ebenen für Tiefe)
   -------------------------------------------------------------------------- */
body.home::before,
body.home::after {
	content: "";
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 8000; /* über Navigation, Klicks gehen durch */
}
/* kleine Flocken */
body.home::before {
	background-image:
		radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 70%),
		radial-gradient(3.5px 3.5px at 140px 120px, #fff 50%, transparent 70%),
		radial-gradient(2.5px 2.5px at 260px 60px, #fff 50%, transparent 70%),
		radial-gradient(3px 3px at 330px 200px, #fff 50%, transparent 70%),
		radial-gradient(2.5px 2.5px at 90px 210px, #fff 50%, transparent 70%),
		radial-gradient(3px 3px at 210px 170px, #fff 50%, transparent 70%);
	background-size: 360px 260px;
	top: -260px;
	filter: drop-shadow(0 0 1.5px rgba(90,100,120,.55));
	animation: xmas-snow 11s linear infinite;
}
/* große Flocken, etwas schneller */
body.home::after {
	background-image:
		radial-gradient(5px 5px at 60px 90px, #fff 50%, transparent 70%),
		radial-gradient(4px 4px at 300px 30px, #fff 50%, transparent 70%),
		radial-gradient(5.5px 5.5px at 480px 260px, #fff 50%, transparent 70%),
		radial-gradient(4.5px 4.5px at 200px 330px, #fff 50%, transparent 70%);
	background-size: 540px 380px;
	top: -380px;
	opacity: .95;
	filter: drop-shadow(0 0 2px rgba(90,100,120,.5));
	animation: xmas-snow-big 9s linear infinite;
}

/* --------------------------------------------------------------------------
   4. Warmer Kerzenlicht-Schimmer über dem Titelslider
   -------------------------------------------------------------------------- */
body.home .slider::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background:
		radial-gradient(ellipse at 15% 80%, rgba(255,190,90,.25), transparent 55%),
		radial-gradient(ellipse at 85% 15%, rgba(255,215,140,.16), transparent 50%),
		radial-gradient(ellipse at center, transparent 55%, rgba(40,25,10,.25) 100%);
	mix-blend-mode: soft-light;
	animation: xmas-glow 7s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   5. Schneeflocken im Hintergrund der Abschnitte
   -------------------------------------------------------------------------- */
body.home #einleitung,
body.home #produkte,
body.home #stoerer-slogan,
body.home footer {
	position: relative;
}
body.home #einleitung > *,
body.home #produkte > *,
body.home #stoerer-slogan > *,
body.home #faq > *,
body.home footer > * {
	position: relative;
	z-index: 1;
}
body.home #einleitung::before,
body.home #produkte::before,
body.home #stoerer-slogan::before,
body.home #faq::before,
body.home footer::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-repeat: no-repeat;
}
/* goldene Flocken auf hellem Grund */
body.home #einleitung::before {
	background-image: var(--xmas-flake), var(--xmas-flake), var(--xmas-flake), var(--xmas-flake), var(--xmas-flake);
	background-size: 110px, 46px, 64px, 34px, 52px;
	background-position: 3% 18%, 8% 46%, 96% 8%, 92% 34%, 4% 88%;
	opacity: .3;
}
body.home #produkte::before {
	background-image: var(--xmas-flake), var(--xmas-flake), var(--xmas-flake), var(--xmas-flake);
	background-size: 90px, 40px, 70px, 32px;
	background-position: 3% 12%, 7% 80%, 97% 20%, 94% 90%;
	opacity: .28;
}
body.home #faq::before {
	background-image: var(--xmas-flake), var(--xmas-flake), var(--xmas-flake), var(--xmas-flake), var(--xmas-flake);
	background-size: 120px, 50px, 36px, 80px, 30px;
	background-position: 4% 10%, 12% 26%, 6% 70%, 95% 14%, 90% 60%;
	opacity: .3;
}
/* weiße Flocken auf goldenem Grund */
body.home #stoerer-slogan::before {
	background-image: var(--xmas-flake-white), var(--xmas-flake-white), var(--xmas-flake-white);
	background-size: 70px, 34px, 46px;
	background-position: 4% 30%, 12% 78%, 48% 14%;
	opacity: .45;
}
body.home footer::before {
	background-image: var(--xmas-flake-white), var(--xmas-flake-white), var(--xmas-flake-white), var(--xmas-flake-white);
	background-size: 90px, 40px, 56px, 30px;
	background-position: calc(50% - 640px) 45%, calc(50% - 600px) 85%, calc(50% + 620px) 30%, calc(50% + 600px) 92%;
	opacity: .4;
}

/* --------------------------------------------------------------------------
   Animationen
   -------------------------------------------------------------------------- */
@keyframes xmas-snow {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(0, 260px, 0); }
}
@keyframes xmas-snow-big {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(0, 380px, 0); }
}
@keyframes xmas-twinkle {
	0%, 100% { opacity: 1; }
	50%      { opacity: .2; }
}
@keyframes xmas-glow {
	from { opacity: .75; }
	to   { opacity: 1; }
}
@keyframes xmas-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Tablet / Handy
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	body.home aside::before {
		content: "\2726\00a0Frohe Weihnachten\00a0\2726";
		left: 20px;
		font-size: 12px;
	}
}
@media (max-width: 600px) {
	body.home aside::before { display: none; }
}

/* Nutzer mit „Bewegung reduzieren“: alles still */
@media (prefers-reduced-motion: reduce) {
	body.home::before,
	body.home::after { display: none; }
	body.home *,
	body.home *::before,
	body.home *::after { animation: none !important; }
}
