/* ============================================================
   AnnaShop — Halloween-Theme (saisonal, 1. Okt – 2. Nov)
   ------------------------------------------------------------
   Komplett unter `body.halloween` gekapselt: Ist die Klasse weg,
   ist das Theme weg. Die Palette wird ueber die bestehenden
   CSS-Variablen von app.css umgeschaltet (rosa → kürbis/violett),
   der Inhalt bleibt hell und lesbar. Der Decor-Layer (.hw-layer)
   ist rein dekorativ: pointer-events:none, aria-hidden.
   ============================================================ */

body.halloween {
    /* Kürbis-Orange ersetzt das Signature-Rosé */
    --pink: #e8710a;
    --pink-light: #fce3c9;
    --pink-lighter: #fdf0e0;
    --pink-dark: #b34e0b;
    /* Gold bleibt warm, etwas tiefer */
    --gold: #d99a2b;
    --gold-light: #ecc98a;
    --gold-soft: #f9eed3;
    /* Leicht violett-warme Flächen, Text bleibt dunkel & lesbar */
    --bg: #f7f0f3;
    --cream: #faf3f0;
    --border: #ecd9d4;
    /* Schatten mit Violettstich statt Rosé */
    --shadow-sm: 0 2px 14px rgba(60,25,90,.09);
    --shadow: 0 10px 34px rgba(70,30,100,.16);
    --shadow-lg: 0 22px 60px rgba(70,30,100,.24);
    --shadow-gold: 0 8px 26px rgba(217,154,43,.3);
    /* Footer/Nav-Dunkelton: tiefes Pflaumen-Violett */
    --ink: #241530;
}

body.halloween ::selection { background: #f6d9b8; color: #7a3a05; }

/* ── Promo-Bar: Nacht-Gradient ────────────────────────────── */
body.halloween .promo-bar {
    background: linear-gradient(90deg, #2a1445, #6d28a8 55%, #e8710a 135%);
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
body.halloween .promo-bar .container::before { content: '🎃 '; }
body.halloween .promo-bar .container::after { content: ' 🎃'; }

/* ── Header: zarter Veilchen-Hauch, bleibt hell ───────────── */
body.halloween .header {
    background: rgba(255,248,242,.93);
    border-bottom-color: var(--border);
}
body.halloween .logo::after {
    content: '🎃';
    font-size: 1.15rem;
    margin-left: 8px;
    animation: hw-pumpkin-bob 3.2s ease-in-out infinite;
}

/* ── Hauptnavigation: Mitternachts-Violett ────────────────── */
body.halloween .main-nav {
    background: linear-gradient(90deg, #241435, #33204e);
    border-bottom-color: #3d2760;
}
body.halloween .nav-list li > a { color: #e6dcf4; }
body.halloween .nav-list li > a::after { background: #e8710a; }
body.halloween .nav-list li > a:hover,
body.halloween .nav-list li > a.active { color: #ffb26b; }
body.halloween .dropdown { border-color: var(--border); }

/* ── Hero: Abenddämmerung statt Rosé ──────────────────────── */
body.halloween .home-hero {
    background: radial-gradient(120% 130% at 50% 0%, #3b2158 0%, #5a2f7d 38%, #8a4a7a 68%, var(--cream) 100%);
    border-bottom-color: rgba(217,154,43,.25);
}
body.halloween .home-hero-title { color: #fdf2ff; text-shadow: 0 3px 18px rgba(20,5,40,.55); }
body.halloween .home-hero-sub { color: #e4d3ee; }
body.halloween .home-hero-eyebrow {
    background: rgba(232,113,10,.18);
    color: #ffc98f;
    border: 1px solid rgba(232,113,10,.4);
}

/* ── Buttons & Akzente ────────────────────────────────────── */
body.halloween .btn-primary {
    box-shadow: 0 6px 18px rgba(232,113,10,.32);
}
body.halloween .btn-primary:hover {
    box-shadow: 0 12px 28px rgba(232,113,10,.42);
}
body.halloween .search-form button { background: var(--pink); }
body.halloween .search-form button:hover { background: var(--pink-dark); }
body.halloween .search-form:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-light); }

/* ── Footer: etwas mehr Violett ───────────────────────────── */
body.halloween .footer { background: #22122f; }
body.halloween .footer-col a:hover { color: #ffb26b; }
body.halloween .footer-bottom a:hover { color: #ffb26b; }

/* ── Mobile-Bar / Back-to-top folgen den Variablen ────────── */
body.halloween .mobile-bar {
    background: linear-gradient(90deg, #4a1e6e, #b34e0b);
}
body.halloween #back-to-top {
    box-shadow: 0 6px 18px rgba(232,113,10,.45);
}

/* ============================================================
   Decor-Layer: Mond, Spinnweben, Dovleac, Nebel, Lilieci/Fantome
   (werden vom JS gespawnt). Alles pointer-events:none.
   ============================================================ */
.hw-layer {
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
    overflow: hidden;
}

/* ── Mond oben rechts ─────────────────────────────────────── */
.hw-moon {
    position: absolute;
    top: 64px;
    right: 26px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 32%, rgba(180,150,80,.5) 0 8%, transparent 9%),
        radial-gradient(circle at 62% 55%, rgba(180,150,80,.45) 0 11%, transparent 12%),
        radial-gradient(circle at 45% 72%, rgba(180,150,80,.4) 0 6%, transparent 7%),
        radial-gradient(circle at 40% 40%, #ffe9b0 0%, #f3cd7a 62%, #d9a94e 100%);
    box-shadow:
        0 0 22px 6px rgba(255,214,130,.55),
        0 0 70px 26px rgba(255,190,90,.22);
    animation: hw-moon-glow 6s ease-in-out infinite;
}

/* ── Spinnweben in den oberen Ecken (SVG, inline im Partial) ── */
.hw-web {
    position: absolute;
    top: 0;
    width: 120px;
    height: 120px;
    opacity: .55;
}
.hw-web svg { display: block; width: 100%; height: 100%; }
.hw-web-l { left: 0; }
.hw-web-r { right: 0; transform: scaleX(-1); }
.hw-web path, .hw-web line, .hw-web circle {
    stroke: rgba(90,55,120,.55);
    stroke-width: 1.1;
    fill: none;
}

/* ── Spinne am Faden unter dem rechten Web ────────────────── */
.hw-spider {
    position: absolute;
    top: 0;
    right: 74px;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: hw-spider-drop 16s ease-in-out infinite;
}
.hw-spider-thread {
    width: 2px;
    height: 90px;
    background: linear-gradient(#7a5a96, #a084be);
    animation: hw-thread-stretch 16s ease-in-out infinite;
}
.hw-spider-body {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
    animation: hw-spider-sway 3.4s ease-in-out infinite;
}

/* ── Kürbisse unten in den Ecken (mit Kerzenflackern) ─────── */
.hw-pumpkin {
    position: absolute;
    bottom: 14px;
    font-size: 2.6rem;
    line-height: 1;
    animation:
        hw-pumpkin-bob 4s ease-in-out infinite,
        hw-pumpkin-flicker 2.6s ease-in-out infinite;
}
.hw-pumpkin-l { left: 18px; }
.hw-pumpkin-r { right: 18px; animation-delay: -2s, -1.3s; }

/* ── Schwarze Katze neben dem rechten Kürbis ──────────────── */
.hw-cat {
    position: absolute;
    bottom: 14px;
    right: 78px;
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
    animation: hw-cat-tilt 5s ease-in-out infinite;
    transform-origin: bottom center;
}

/* ── Sanfter Wetterleuchten-Blitz (subtil, kein Strobo) ───── */
.hw-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(214,190,255,.9), rgba(150,110,255,.4) 60%, transparent 100%);
    opacity: 0;
}
.hw-flash.on { animation: hw-flash .7s ease-out 1; }

/* ── Vom JS gespawnt: Sterne, Hexe, Augen, Blätter ────────── */
.hw-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255,255,255,.7);
    animation: hw-twinkle 2.8s ease-in-out infinite;
}

.hw-witch { position: absolute; font-size: 2rem; will-change: transform; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.hw-eyes  { position: absolute; font-size: 1.15rem; opacity: 0; will-change: opacity; }
.hw-leaf  { position: absolute; font-size: 1.2rem; will-change: transform; opacity: .9; }

/* ── Nebelschwaden über dem Footer ────────────────────────── */
.hw-fog {
    position: absolute;
    bottom: -30px;
    left: -20%;
    width: 140%;
    height: 130px;
    background:
        radial-gradient(50% 90% at 20% 100%, rgba(122,74,160,.30), transparent 70%),
        radial-gradient(50% 90% at 55% 100%, rgba(90,50,130,.26), transparent 70%),
        radial-gradient(50% 90% at 85% 100%, rgba(122,74,160,.30), transparent 70%);
    filter: blur(18px);
    animation: hw-fog-drift 26s ease-in-out infinite alternate;
}

/* ── Vom JS gespawnt: Fledermaus & Geist ──────────────────── */
.hw-bat {
    position: absolute;
    font-size: 1.5rem;
    will-change: transform;
    animation: hw-bat-flap .55s ease-in-out infinite;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}

.hw-ghost {
    position: absolute;
    font-size: 1.7rem;
    opacity: .85;
    will-change: transform;
    filter: drop-shadow(0 0 8px rgba(200,170,255,.6));
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes hw-moon-glow {
    0%, 100% { box-shadow: 0 0 22px 6px rgba(255,214,130,.55), 0 0 70px 26px rgba(255,190,90,.22); }
    50%      { box-shadow: 0 0 30px 10px rgba(255,214,130,.68), 0 0 90px 34px rgba(255,190,90,.3); }
}

@keyframes hw-spider-drop {
    0%, 55%, 100% { transform: translateY(0); }
    62%, 78%      { transform: translateY(120px); }
    88%           { transform: translateY(0); }
}
@keyframes hw-thread-stretch {
    0%, 55%, 100% { height: 90px; }
    62%, 78%      { height: 210px; }
    88%           { height: 90px; }
}
@keyframes hw-spider-sway {
    0%, 100% { transform: rotate(-7deg); }
    50%      { transform: rotate(7deg); }
}

@keyframes hw-pumpkin-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-6px) rotate(2deg); }
}
@keyframes hw-pumpkin-flicker {
    0%, 100% { filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)) drop-shadow(0 0 14px rgba(255,140,30,.45)); }
    45%      { filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)) drop-shadow(0 0 22px rgba(255,160,40,.7)); }
    60%      { filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)) drop-shadow(0 0 10px rgba(255,120,20,.35)); }
}

@keyframes hw-cat-tilt {
    0%, 100% { transform: rotate(0); }
    45%      { transform: rotate(-5deg); }
    55%      { transform: rotate(4deg); }
}

@keyframes hw-flash {
    0%   { opacity: 0; }
    12%  { opacity: .14; }
    30%  { opacity: .05; }
    45%  { opacity: .11; }
    100% { opacity: 0; }
}

@keyframes hw-twinkle {
    0%, 100% { opacity: .25; transform: scale(.8); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

@keyframes hw-fog-drift {
    from { transform: translateX(-4%); }
    to   { transform: translateX(4%); }
}

@keyframes hw-bat-flap {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(.62); }
}
.hw-bat.flip { animation-name: hw-bat-flap-flip; }
@keyframes hw-bat-flap-flip {
    0%, 100% { transform: scaleX(-1) scaleY(1); }
    50%      { transform: scaleX(-1) scaleY(.62); }
}

/* ── Reduzierte Bewegung: alles statisch, keine Spawns ────── */
@media (prefers-reduced-motion: reduce) {
    .hw-moon, .hw-spider, .hw-spider-thread, .hw-spider-body,
    .hw-pumpkin, .hw-fog, .hw-bat, .hw-ghost, .hw-cat, .hw-star,
    .hw-witch, .hw-eyes, .hw-leaf, .hw-flash.on,
    body.halloween .logo::after {
        animation: none !important;
    }
}

/* ── Mobil: kleiner, dezenter ─────────────────────────────── */
@media (max-width: 768px) {
    .hw-moon { width: 54px; height: 54px; top: 58px; right: 14px; }
    .hw-web { width: 84px; height: 84px; }
    .hw-spider { right: 52px; transform: scale(.8); }
    .hw-pumpkin { font-size: 1.9rem; bottom: 62px; } /* über der Mobile-Bar */
    .hw-cat { font-size: 1.5rem; right: 60px; bottom: 62px; }
}
