/* Halloween-Theme – nur aktiv mit html.season-halloween */

html.season-halloween {
    color-scheme: dark;
    --bg: #0c0814;
    --card: #171024;
    --border-color: rgba(249, 115, 22, 0.2);
    --season-brand: 249, 115, 22;
    --season-brand-light: 251, 146, 60;
    --season-brand-lighter: 253, 186, 116;
    --season-brand-dark: 194, 65, 12;
    --season-orange: 249, 115, 22;
    --season-purple: 168, 85, 247;
    --season-violet: 124, 58, 237;
    --season-ember: 251, 146, 60;
    --season-pastel: 253, 186, 116;
    --season-pastel-soft: 196, 181, 253;
    --season-pastel-deep: 234, 88, 12;
    --season-accent-rgb: var(--season-orange);
    --season-accent-2-rgb: var(--season-purple);
    --hero-glow: rgba(249, 115, 22, 0.06);
    --hero-spot: rgba(168, 85, 247, 0.05);
    --hero-spotlight: rgba(249, 115, 22, 0.05);
    --hero-grid: rgba(249, 115, 22, 0.05);
    --hero-grid-fine: rgba(168, 85, 247, 0.04);
    --mouse-tracker-glow: rgba(249, 115, 22, 0.1);
    --mouse-tracker-border: rgba(168, 85, 247, 0.3);
    --wiki-logo-accent-filter: invert(58%) sepia(72%) saturate(1200%) hue-rotate(358deg) brightness(98%) contrast(96%);
}

html.season-halloween body {
    position: relative;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(88, 28, 135, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 35%, rgba(249, 115, 22, 0.1), transparent 50%),
        radial-gradient(ellipse 60% 45% at 0% 80%, rgba(124, 58, 237, 0.08), transparent 45%),
        radial-gradient(ellipse 45% 30% at 78% 92%, rgba(249, 115, 22, 0.06), transparent 50%),
        linear-gradient(180deg, #08050f 0%, #0c0814 42%, #120a1c 100%);
}

html.season-halloween body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 35;
    opacity: 0.2;
    background:
        radial-gradient(ellipse 35% 28% at 88% 8%, rgba(249, 115, 22, 0.18), transparent 72%),
        radial-gradient(ellipse 30% 24% at 12% 85%, rgba(168, 85, 247, 0.14), transparent 70%);
}
.dark html.season-halloween body::before {
    opacity: 0.14;
}

/* Große Glow-Objekte – Hero (teilweise außerhalb, weiche Kanten) */
html.season-halloween .season-hero-glows {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}

html.season-halloween .season-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: season-hero-glow-drift 18s ease-in-out infinite alternate;
}

html.season-halloween .season-hero-glow-orange {
    width: clamp(468px, 65vw, 832px);
    height: clamp(468px, 65vw, 832px);
    background: radial-gradient(
        circle,
        rgba(251, 146, 60, 0.32) 0%,
        rgba(249, 115, 22, 0.16) 18%,
        rgba(194, 65, 12, 0.05) 34%,
        transparent 52%
    );
    box-shadow: 0 0 80px 36px rgba(249, 115, 22, 0.06);
    filter: blur(20px);
}

html.season-halloween .season-hero-glow-purple {
    width: clamp(286px, 36.4vw, 520px);
    height: clamp(286px, 36.4vw, 520px);
    background: radial-gradient(
        circle,
        rgba(196, 181, 253, 0.28) 0%,
        rgba(168, 85, 247, 0.14) 20%,
        rgba(124, 58, 237, 0.05) 36%,
        transparent 54%
    );
    box-shadow: 0 0 56px 24px rgba(168, 85, 247, 0.05);
    filter: blur(18px);
}

html.season-halloween .season-hero-glow-violet {
    width: clamp(220px, 28vw, 380px);
    height: clamp(220px, 28vw, 380px);
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.24) 0%,
        rgba(124, 58, 237, 0.11) 24%,
        transparent 54%
    );
    filter: blur(16px);
}

html.season-halloween .season-hero-glow-orange-a {
    top: 22%;
    left: 16%;
    animation-delay: -4s;
}

html.season-halloween .season-hero-glow-orange-b {
    top: 74%;
    left: 84%;
    animation-delay: -11s;
}

html.season-halloween .season-hero-glow-purple-a {
    top: 20%;
    left: 80%;
    animation-duration: 14s;
    animation-delay: -2s;
}

html.season-halloween .season-hero-glow-violet-a {
    top: 62%;
    left: 8%;
    animation-duration: 16s;
    animation-delay: -7s;
}

html.season-halloween .hero-bg-orb-sky,
html.season-halloween .hero-bg-orb-green,
html.season-halloween .hero-bg-orb-indigo {
    opacity: 0;
}

html.season-halloween .hero-bg-grid,
html.season-halloween .hero-bg-grid-fine {
    z-index: 0;
}

html.season-halloween .hero-bg-glow,
html.season-halloween .hero-bg-spotlight {
    z-index: 1;
}

@keyframes season-hero-glow-drift {
    0% {
        transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) translate3d(14px, -18px, 0) scale(1.04);
    }
}

/* Bokeh-Dots – nur in der Hero-Section */
#season-halloween-dots-layer {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
html.season-halloween #season-halloween-dots-layer {
    display: block;
    z-index: 4;
}

/* Große Deko-Elemente – Wiki-Bereiche Section */
#season-halloween-wiki-decor-layer {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

html.season-halloween #season-halloween-wiki-decor-layer {
    display: block;
}

.season-bokeh-flake {
    position: absolute;
    line-height: 1;
    transform: translate(-50%, -50%);
    will-change: transform;
    animation: season-flake-drift var(--flake-duration, 24s) ease-in-out infinite;
    animation-delay: var(--flake-delay, 0s);
}

@keyframes season-flake-drift {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(var(--flake-rotate, 0deg)) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(calc(var(--flake-rotate, 0deg) + 8deg)) scale(1.05);
    }
}

.season-bokeh-dot {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    animation: season-dot-drift var(--dot-duration, 22s) ease-in-out infinite;
    animation-delay: var(--dot-delay, 0s);
}

@keyframes season-dot-drift {
    0%, 100% {
        transform: translate(-50%, -50%) translate(0, 0);
    }
    25% {
        transform: translate(-50%, -50%) translate(var(--dot-drift-x, 10px), calc(var(--dot-drift-y, 8px) * -0.7));
    }
    50% {
        transform: translate(-50%, -50%) translate(calc(var(--dot-drift-x, 10px) * -0.65), var(--dot-drift-y, 8px));
    }
    75% {
        transform: translate(-50%, -50%) translate(calc(var(--dot-drift-x, 10px) * 0.45), calc(var(--dot-drift-y, 8px) * 0.55));
    }
}

/* Glut & Spuk – hinter dem Seiteninhalt */
#season-halloween-embers-layer {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
html.season-halloween #season-halloween-embers-layer {
    display: block;
}
.season-embers-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Inhalt über Dots & Glut & Spuk */
html.season-halloween #navbar {
    isolation: isolate;
}
html.season-halloween main,
html.season-halloween footer,
html.season-halloween section[data-page-hero] {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.season-halloween-only {
    display: none !important;
}
html.season-halloween .season-halloween-only {
    display: block !important;
}
html.season-halloween .season-halloween-only.flex {
    display: flex !important;
}
html.season-halloween .season-halloween-only.inline-flex {
    display: inline-flex !important;
}

/* Logo – Kürbis-Akzent */
html.season-halloween .wiki-logo-stack::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -4px;
    width: 12px;
    height: 12px;
    background:
        radial-gradient(circle at 40% 35%, rgba(251, 146, 60, 0.95) 0 2px, transparent 2.5px),
        radial-gradient(circle at 62% 62%, rgba(168, 85, 247, 0.75) 0 1.5px, transparent 2px);
    z-index: 5;
    pointer-events: none;
}
html.season-halloween .wiki-logo-stack::after {
    content: '🎃';
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 12px;
    filter: saturate(1.1) brightness(1.05);
    transform: rotate(-12deg);
    z-index: 4;
    pointer-events: none;
}

/* Hero-Titel */
html.season-halloween .season-hero-headline {
    position: relative;
    filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.28));
}
html.season-halloween .season-hero-headline .season-hero-gradient {
    background-image: linear-gradient(to right, #fb923c, #f97316, #a855f7) !important;
}

html.season-halloween .text-transparent.bg-clip-text.bg-gradient-to-r.from-sky-400 {
    background-image: linear-gradient(to right, #fb923c, #f97316, #a855f7) !important;
}

/* Suchleiste */
html.season-halloween .season-search-box {
    border-color: rgba(249, 115, 22, 0.22) !important;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.1), 0 12px 40px -12px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: visible;
}
html.season-halloween .season-search-box .input-group {
    border-color: rgba(251, 146, 60, 0.28) !important;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
}
html.season-halloween .season-search-box #searchBtn {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    box-shadow: 0 4px 16px -4px rgba(249, 115, 22, 0.5);
}
html.season-halloween .season-search-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    margin: 0;
}
html.season-halloween .season-search-decor span {
    position: absolute;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    line-height: 1;
    opacity: 0.92;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}
html.season-halloween .season-search-decor span:first-child {
    left: 0;
    bottom: 0;
    transform: translate(-28%, 38%) rotate(-22deg);
}
html.season-halloween .season-search-decor span:last-child {
    right: 0;
    bottom: 0;
    transform: translate(28%, 38%) rotate(22deg);
}

/* Schwebende Hero-Karten */
html.season-halloween .season-hero-card {
    position: relative;
    overflow: hidden;
}
html.season-halloween .season-hero-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    z-index: 7;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ── Spinnennetz-Trim auf Karten (::before) – kein Schnee/Gras ── */
html.season-halloween .season-snow-card,
html.season-halloween .season-hero-card,
html.season-halloween [data-index-card][data-index-static] {
    position: relative;
    overflow: hidden;
}

html.season-halloween .season-snow-card.overflow-hidden {
    overflow: visible;
}

html.season-halloween [data-index-card]:has([data-index-topics]) {
    overflow: visible;
}

html.season-halloween [data-index-category-toggle] {
    overflow: visible;
}

html.season-halloween .season-snow-card::before,
html.season-halloween .season-hero-card::before,
html.season-halloween .season-search-box::before,
html.season-halloween [data-index-card][data-index-static]::before,
html.season-halloween [data-index-category-toggle]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 13px;
    background:
        radial-gradient(circle at 8% 30%, rgba(168, 85, 247, 0.55) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 22% 55%, rgba(249, 115, 22, 0.45) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 38% 25%, rgba(196, 181, 253, 0.5) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 52% 60%, rgba(249, 115, 22, 0.4) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 68% 28%, rgba(168, 85, 247, 0.5) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 84% 52%, rgba(251, 146, 60, 0.45) 0 0.5px, transparent 0.6px),
        repeating-linear-gradient(
            118deg,
            transparent 0 10px,
            rgba(168, 85, 247, 0.22) 10px 10.5px,
            transparent 10.5px 20px
        ),
        repeating-linear-gradient(
            62deg,
            transparent 0 14px,
            rgba(249, 115, 22, 0.16) 14px 14.5px,
            transparent 14.5px 28px
        ),
        linear-gradient(
            180deg,
            rgba(30, 18, 48, 0.92) 0%,
            rgba(45, 25, 70, 0.55) 48%,
            rgba(30, 18, 48, 0.12) 82%,
            transparent 100%
        );
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 68%,
        96% 100%,
        88% 72%,
        80% 96%,
        72% 70%,
        64% 94%,
        56% 74%,
        48% 98%,
        40% 72%,
        32% 90%,
        24% 68%,
        16% 88%,
        8% 70%,
        0% 92%
    );
    -webkit-mask-image: none;
    mask-image: none;
    box-shadow: inset 0 -1px 0 rgba(249, 115, 22, 0.15);
    filter: none;
    pointer-events: none;
    z-index: 6;
}

html.season-halloween .season-search-box.mouse-tracker::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 13px;
    border-radius: 0.65rem 0.65rem 0 0;
    opacity: 1;
    background:
        radial-gradient(circle at 12% 35%, rgba(168, 85, 247, 0.5) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 35% 58%, rgba(249, 115, 22, 0.4) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 58% 30%, rgba(196, 181, 253, 0.45) 0 0.5px, transparent 0.6px),
        radial-gradient(circle at 78% 55%, rgba(249, 115, 22, 0.4) 0 0.5px, transparent 0.6px),
        repeating-linear-gradient(115deg, transparent 0 12px, rgba(168, 85, 247, 0.2) 12px 12.5px),
        linear-gradient(180deg, rgba(30, 18, 48, 0.9) 0%, rgba(45, 25, 70, 0.4) 60%, transparent 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 68%, 92% 100%, 84% 72%, 76% 94%, 68% 70%, 60% 92%, 52% 74%, 44% 96%, 36% 72%, 28% 90%, 20% 70%, 12% 88%, 6% 74%, 0% 92%);
}

html.season-halloween .season-search-box.mouse-tracker:hover::before {
    opacity: 1;
}

/* Thematische Kategorie-Icons */
html.season-halloween [data-index-icon] i {
    position: relative;
}
html.season-halloween [data-index-icon] {
    position: relative;
}
html.season-halloween [data-index-icon] .fa-screwdriver-wrench::after,
html.season-halloween [data-index-icon] .fa-wrench::after {
    content: '🕷';
    position: absolute;
    top: -7px;
    right: -8px;
    font-size: 11px;
    line-height: 1;
}
html.season-halloween [data-index-icon] .fa-users-gear::after,
html.season-halloween [data-index-icon] .fa-users::after {
    content: '👻';
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 10px;
}
html.season-halloween [data-index-icon] .fa-gift::after,
html.season-halloween [data-index-icon] .fa-box::after {
    content: '🎃';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 9px;
}
html.season-halloween [data-index-icon] .fa-globe::after,
html.season-halloween [data-index-icon] .fa-comments::after {
    content: '🦇';
    position: absolute;
    top: -6px;
    right: -7px;
    font-size: 10px;
}

/* Akzentfarben – Orange & Violett */
html.season-halloween .text-sky-500,
html.season-halloween .text-sky-600,
html.season-halloween .dark .text-sky-400 {
    color: #fb923c !important;
}
html.season-halloween .bg-sky-500,
html.season-halloween #searchBtn {
    background-color: #f97316 !important;
}
html.season-halloween .border-sky-500\/20,
html.season-halloween .border-sky-500\/25 {
    border-color: rgba(249, 115, 22, 0.26) !important;
}
html.season-halloween .bg-sky-500\/10 {
    background-color: rgba(249, 115, 22, 0.12) !important;
}
html.season-halloween .group-hover\:text-sky-500:hover,
html.season-halloween .hover\:text-sky-500:hover {
    color: #fdba74 !important;
}
html.season-halloween .hover\:bg-sky-500\/10:hover {
    background-color: rgba(249, 115, 22, 0.14) !important;
}
html.season-halloween .fa-heart.text-sky-500 {
    color: #f97316 !important;
}

/* Schritte – Kürbislichter-Girlande */
html.season-halloween .season-steps-wrap {
    position: relative;
    padding-top: 1.75rem;
}
html.season-halloween .season-steps-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background:
        radial-gradient(circle at 4% 50%, rgba(251, 146, 60, 0.95) 0 3px, transparent 4px),
        radial-gradient(circle at 12% 50%, rgba(168, 85, 247, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 28% 50%, rgba(196, 181, 253, 0.88) 0 3px, transparent 4px),
        radial-gradient(circle at 36% 50%, rgba(251, 146, 60, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 44% 50%, rgba(124, 58, 237, 0.88) 0 3px, transparent 4px),
        radial-gradient(circle at 52% 50%, rgba(249, 115, 22, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 60% 50%, rgba(168, 85, 247, 0.88) 0 3px, transparent 4px),
        radial-gradient(circle at 68% 50%, rgba(251, 146, 60, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 76% 50%, rgba(196, 181, 253, 0.88) 0 3px, transparent 4px),
        radial-gradient(circle at 84% 50%, rgba(249, 115, 22, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 92% 50%, rgba(168, 85, 247, 0.88) 0 3px, transparent 4px);
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.32));
    animation: season-halloween-lights-twinkle 3s ease-in-out infinite alternate;
}
html.season-halloween .season-steps-wrap::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 2%;
    right: 2%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
    border-radius: 2px;
}
@keyframes season-halloween-lights-twinkle {
    0% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.22)); }
    100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.38)); }
}

html.season-halloween .season-step-card {
    position: relative;
    border-color: rgba(249, 115, 22, 0.22) !important;
    background: linear-gradient(165deg, rgba(249, 115, 22, 0.08), rgba(23, 16, 36, 0.95)) !important;
    border-radius: 0.35rem 0.35rem 0.75rem 0.75rem !important;
    padding-top: 1.25rem !important;
}
html.season-halloween .season-step-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fb923c, #f97316);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.28);
}
html.season-halloween .season-step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: rgba(249, 115, 22, 0.45);
}
html.season-halloween .season-step-card .fa-solid {
    color: #fb923c !important;
}
html.season-halloween .season-step-card span.w-7 {
    background-color: rgba(249, 115, 22, 0.16) !important;
    border-color: rgba(168, 85, 247, 0.24) !important;
    color: #fdba74 !important;
}

/* Zuletzt bearbeitet */
html.season-halloween .season-recent-item .fa-file-lines::before {
    content: '\f6e2';
}
html.season-halloween .season-recent-item > span:first-child {
    background: rgba(249, 115, 22, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.22) !important;
    color: #fb923c !important;
}

/* Footer */
html.season-halloween footer .season-social-link {
    position: relative;
    border-radius: 9999px !important;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.15), rgba(249, 115, 22, 0.1) 40%, rgba(23, 16, 36, 0.92) 72%) !important;
    border: 1px solid rgba(249, 115, 22, 0.22) !important;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), inset 0 -8px 12px -8px rgba(0, 0, 0, 0.35);
    overflow: visible;
}
html.season-halloween footer .season-social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fb923c, #ea580c);
}
html.season-halloween footer .absolute.top-0 {
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.22), transparent) !important;
}

/* Hero-Orbs */
html.season-halloween .hero-bg-orb-sky {
    background-color: rgba(249, 115, 22, 0.1) !important;
}
html.season-halloween .hero-bg-orb-green,
html.season-halloween .hero-bg-orb-indigo {
    background-color: rgba(168, 85, 247, 0.08) !important;
}

@media (prefers-reduced-motion: reduce) {
    html.season-halloween .season-steps-wrap::before {
        animation: none !important;
    }
    html.season-halloween #season-halloween-embers-layer {
        display: none !important;
    }
    html.season-halloween #season-halloween-dots-layer {
        opacity: 0.65;
    }
    html.season-halloween .season-bokeh-dot {
        animation: none !important;
    }
    html.season-halloween .season-bokeh-flake {
        animation: none !important;
    }
    html.season-halloween .season-hero-glow {
        animation: none !important;
    }
}
