/* ============================================================
   SAISONALE EFFEKTE – Halloween (verstärkt)
   Aktivierung: <body data-saison="halloween">
   ============================================================ */

body[data-saison="halloween"] {
  --farbe-saison: #E67E22;
  --farbe-saison-dunkel: #C0651A;
}

/* ---------- Farbakzent: Buttons, Links, Überschriften ---------- */
body[data-saison="halloween"] .btn {
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.35);
}
body[data-saison="halloween"] .btn:hover {
  box-shadow: 0 0 0 5px rgba(230, 126, 34, 0.6);
}
body[data-saison="halloween"] a:not(.btn) {
  text-decoration-color: rgba(230, 126, 34, 0.6);
}
body[data-saison="halloween"] .hero-banner__inhalt h2 {
  border-bottom: 3px solid rgba(230, 126, 34, 0.7);
  display: inline-block;
  padding-bottom: 4px;
}

/* ---------- Kürbis neben der H1 ---------- */
body[data-saison="halloween"] .hero-banner__inhalt h1::after {
  content: " 🎃";
  font-size: 1em;
}

/* ---------- Nebel + Vignette im Hero ---------- */
body[data-saison="halloween"] .hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.35), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(230,126,34,0.28), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(192,101,26,0.25), transparent 55%);
  mix-blend-mode: multiply;
}

/* ---------- Flackerndes Licht im Hero ---------- */
body[data-saison="halloween"] .hero-banner {
  animation: kerzenlicht 4s ease-in-out infinite;
}
@keyframes kerzenlicht {
  0%, 100% { filter: brightness(1); }
  45%      { filter: brightness(1.08); }
  50%      { filter: brightness(0.94); }
  55%      { filter: brightness(1.06); }
}

/* ---------- Fledermäuse (größer, schneller) ---------- */
.fledermaus {
  position: absolute;
  width: 80px;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  animation: flattern 0.5s ease-in-out infinite alternate;
}
body[data-saison="halloween"] .fledermaus {
  opacity: 0.92;
  animation:
    fledermaus-flug 10s linear infinite,
    flattern 0.5s ease-in-out infinite alternate;
}
.fledermaus--2 { animation-delay: 3s, 0s !important; animation-duration: 13s, 0.5s !important; top: 30% !important; }
.fledermaus--3 { animation-delay: 6s, 0s !important; animation-duration: 15s, 0.5s !important; top: 55% !important; }
.fledermaus--4 { animation-delay: 9s, 0s !important; animation-duration: 17s, 0.5s !important; top: 12% !important; }

@keyframes fledermaus-flug {
  0%   { transform: translate(-15vw, 0)    scaleX(1); }
  25%  { transform: translate(20vw, -30px) scaleX(1); }
  50%  { transform: translate(50vw, 20px)  scaleX(1); }
  75%  { transform: translate(80vw, -25px) scaleX(1); }
  100% { transform: translate(115vw, 0)    scaleX(1); }
}
@keyframes flattern {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0.7); }
}

/* ---------- Herbstlaub (mehr, größer) ---------- */
.laub {
  position: fixed;
  top: -24px;
  width: 16px;
  height: 16px;
  border-radius: 50% 0 50% 50%;
  background: #E67E22;
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
  animation: laub-fall linear infinite;
}
.laub--2 { background: #C0651A; width: 12px; height: 12px; }
.laub--3 { background: #F0A04B; width: 20px; height: 20px; }
.laub--4 { background: #B23A1A; width: 14px; height: 14px; }

@keyframes laub-fall {
  0%   { transform: translateY(-10vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ---------- Spinnennetz (größer, kontrastreicher) ---------- */
.spinnennetz {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
}
body[data-saison="halloween"] .spinnennetz {
  opacity: 0.8;
}

/* ---------- Kürbis unten rechts (größer, glühend) ---------- */
.kuerbis-ecke {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  animation: kuerbis-glow 2.4s ease-in-out infinite;
}
body[data-saison="halloween"] .kuerbis-ecke {
  opacity: 0.95;
}
@keyframes kuerbis-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,140,0,0.7)); }
  50%      { filter: drop-shadow(0 0 22px rgba(255,140,0,1)); }
}
/* Augen pulsieren zusätzlich */
.kuerbis-ecke .auge { animation: augen-puls 2s ease-in-out infinite; }
@keyframes augen-puls {
  0%, 100% { fill: #2b1a00; }
  50%      { fill: #ffcc66; }
}

/* ---------- Spinnen am Faden ---------- */
.spinne {
  position: fixed;
  top: -80px;
  width: 34px;
  height: 80px;
  pointer-events: none;
  z-index: 5;
  animation: spinne-kriechen linear infinite;
}
@keyframes spinne-kriechen {
  0%   { transform: translateY(-80px); }
  100% { transform: translateY(115vh); }
}

/* ---------- Kürbis-Cursor (Desktop) ---------- */
@media (pointer: fine) {
  body[data-saison="halloween"] {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='18' r='12' fill='%23E67E22'/><path d='M11 15l3 3M21 15l-3 3M12 22h8' stroke='%23222' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>") 16 16, auto;
  }
}

/* ---------- Kürbis-Banner unter dem Hero (neu) ---------- */
.kuerbis-banner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 0;
  background: linear-gradient(90deg,
    rgba(230,126,34,0.06),
    rgba(230,126,34,0.14),
    rgba(230,126,34,0.06));
  font-size: 1.8rem;
  overflow: hidden;
}
.kuerbis-banner span {
  animation: kuerbis-wippen 3s ease-in-out infinite;
  display: inline-block;
}
.kuerbis-banner span:nth-child(2n) { animation-delay: 0.4s; }
.kuerbis-banner span:nth-child(3n) { animation-delay: 0.8s; }
@keyframes kuerbis-wippen {
  0%, 100% { transform: translateY(0)    rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  .fledermaus, .laub, .spinne, .kuerbis-ecke, .kuerbis-banner span,
  body[data-saison="halloween"] .hero-banner {
    animation: none !important;
  }
  .fledermaus, .laub, .spinne, .kuerbis-ecke, .kuerbis-banner {
    display: none !important;
  }
}