/* Weihnachtsversion: wird nur in der Weihnachtsseite nach style.css geladen (tools/weihnachten.py baut sie ein).
   Alles Schmuck, nichts davon trägt Inhalt. Wer „Bewegung reduzieren“ eingestellt hat, sieht alles ohne Animation. */
:root { --tanne: #1f6b3a; --kerze: #ffd45c; }

/* Lichterkette oben über die ganze Breite: Bögen aus abgerundetem Rand, Birnchen blinken versetzt */
.lichterkette {
  position: absolute; inset: 0 0 auto; z-index: 2; height: 2.4rem;
  display: flex; overflow: hidden; pointer-events: none;
}
.lichterkette span {
  flex: none; position: relative; width: 11rem; height: 1.3rem;
  border-bottom: 2px solid var(--tanne); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.lichterkette i {
  position: absolute; width: .55rem; height: .8rem; border-radius: 50% 50% 45% 45%;
  translate: -50% -15%; background: var(--farbe); box-shadow: 0 0 .7rem .15rem var(--farbe);
  animation: blinken 2.4s ease-in-out infinite alternate;
}
/* Position auf dem Bogen (Ellipse): x in %, y = Höhe · √(1 − ((x−50)/50)²) */
.lichterkette i:nth-child(1) { left: 10%; top: 60%; }
.lichterkette i:nth-child(2) { left: 30%; top: 92%; animation-delay: -.6s; }
.lichterkette i:nth-child(3) { left: 50%; top: 100%; animation-delay: -1.2s; }
.lichterkette i:nth-child(4) { left: 70%; top: 92%; animation-delay: -1.8s; }
.lichterkette i:nth-child(5) { left: 90%; top: 60%; animation-delay: -.3s; }
.lichterkette i:nth-child(4n+1) { --farbe: var(--mohn); }
.lichterkette i:nth-child(4n+2) { --farbe: var(--kerze); }
.lichterkette i:nth-child(4n+3) { --farbe: #3fd28a; }
.lichterkette i:nth-child(4n) { --farbe: #ff7ad1; }
.lichterkette span:nth-child(even) i { animation-direction: alternate-reverse; }
@keyframes blinken { from { opacity: 1; } to { opacity: .35; box-shadow: none; } }

/* Schneefall: drei Ebenen Flocken, jede Kachel wandert genau eine Kachelhöhe nach unten (nahtlos) */
.hero, .nacht, .fuss { position: relative; }
.hero > .wrap, .nacht > .wrap, .fuss > .wrap { position: relative; }
.hero::before, .nacht::before, .fuss::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 2px, transparent 2.6px),
    radial-gradient(circle at 70% 80%, #fff 1.6px, transparent 2.2px),
    radial-gradient(circle at 45% 10%, rgb(255 255 255 / .8) 3px, transparent 3.6px),
    radial-gradient(circle at 85% 55%, rgb(255 255 255 / .9) 2.4px, transparent 3px),
    radial-gradient(circle at 10% 70%, rgb(255 255 255 / .7) 1.4px, transparent 2px),
    radial-gradient(circle at 60% 40%, rgb(255 255 255 / .7) 1.2px, transparent 1.8px);
  background-size: 180px 180px, 180px 180px, 260px 260px, 260px 260px, 110px 110px, 110px 110px;
  animation: schnee 14s linear infinite;
}
@keyframes schnee {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 360px, 0 360px, 0 260px, 0 260px, 0 330px, 0 330px; }
}
.fuss::before { opacity: .6; }

/* Schneedecke auf der Vertrauensleiste: Die Tiere im Headerbild stehen im Schnee */
.vertrauen { position: relative; }
.vertrauen::before { /* liegt auf dem türkisen Boden und endet genau an der Oberkante des gelben Balkens */
  content: ""; position: absolute; left: 0; right: 0; top: -1.4rem; height: 1.4rem; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, #fff 62%, transparent 64%) 0 0 / 3rem 1.2rem repeat-x,
    radial-gradient(circle at 50% 100%, #fff 62%, transparent 64%) 1.3rem .25rem / 2.2rem 1rem repeat-x,
    linear-gradient(#fff, #fff) 0 100% / 100% .45rem no-repeat;
}

/* Gutschein als Weihnachtskarte: Stechpalmenzweig in der Ecke */
.stechpalme { position: absolute; width: 5.5rem; height: 4.2rem; left: -1.4rem; top: -1.6rem; rotate: -20deg; }

@media (max-width: 40rem) {
  .lichterkette span { width: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lichterkette i, .hero::before, .nacht::before, .fuss::before { animation: none; }
}
