/* Dunkles Weihnachts-/Winter-Theme – nur aktiv mit html.season-christmas */

html.season-christmas {
    color-scheme: dark;
    --bg: #060a12;
    --card: #0f1628;
    --border-color: rgba(67, 125, 107, 0.18);
    --season-brand: 67, 125, 107;
    --season-brand-light: 111, 168, 150;
    --season-brand-lighter: 143, 191, 176;
    --season-brand-dark: 54, 95, 82;
    --season-gold: 163, 196, 154;
    --season-red: 67, 125, 107;
    --season-green: 67, 125, 107;
    --season-pine: 67, 125, 107;
    --season-moss: 111, 168, 150;
    --season-pastel: 143, 191, 176;
    --season-pastel-soft: 167, 201, 191;
    --season-pastel-deep: 67, 125, 107;
    --season-ice: 147, 197, 253;
    --season-accent-rgb: var(--season-pine);
    --season-accent-2-rgb: var(--season-moss);
    --hero-glow: rgba(15, 40, 80, 0.06);
    --hero-spot: rgba(67, 125, 107, 0.05);
    --hero-spotlight: rgba(147, 197, 253, 0.05);
    --hero-grid: rgba(147, 197, 253, 0.05);
    --hero-grid-fine: rgba(147, 197, 253, 0.04);
    --mouse-tracker-glow: rgba(147, 197, 253, 0.08);
    --mouse-tracker-border: rgba(67, 125, 107, 0.32);
    --wiki-logo-accent-filter: invert(48%) sepia(22%) saturate(620%) hue-rotate(118deg) brightness(92%) contrast(88%);
}

html.season-christmas body {
    position: relative;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(15, 40, 80, 0.55), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 50%, rgba(30, 58, 95, 0.1), transparent 50%),
        radial-gradient(ellipse 60% 45% at 0% 80%, rgba(67, 125, 107, 0.04), transparent 45%),
        linear-gradient(180deg, #04070f 0%, #060a12 40%, #080d18 100%);
}

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

html.season-christmas .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-christmas .season-hero-glow-green {
    width: clamp(468px, 65vw, 832px);
    height: clamp(468px, 65vw, 832px);
    background: radial-gradient(
        circle,
        rgba(111, 168, 150, 0.28) 0%,
        rgba(67, 125, 107, 0.14) 18%,
        rgba(67, 125, 107, 0.05) 34%,
        transparent 52%
    );
    box-shadow: 0 0 80px 36px rgba(67, 125, 107, 0.05);
    filter: blur(20px);
}

html.season-christmas .season-hero-glow-purple {
    width: clamp(286px, 36.4vw, 520px);
    height: clamp(286px, 36.4vw, 520px);
    background: radial-gradient(
        circle,
        rgba(192, 132, 252, 0.22) 0%,
        rgba(168, 85, 247, 0.11) 20%,
        rgba(124, 58, 237, 0.04) 36%,
        transparent 54%
    );
    box-shadow: 0 0 56px 24px rgba(168, 85, 247, 0.04);
    filter: blur(18px);
}

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

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

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

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

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

html.season-christmas .hero-bg-glow,
html.season-christmas .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-dots-layer {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
html.season-christmas #season-dots-layer {
    display: block;
    z-index: 4;
}

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

html.season-christmas #season-wiki-flakes-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));
    }
}

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

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

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

/* Logo – dezente Tannennadeln */
html.season-christmas .wiki-logo-stack::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -4px;
    width: 12px;
    height: 12px;
    background:
        radial-gradient(circle at 40% 35%, rgba(111, 168, 150, 0.85) 0 2px, transparent 2.5px),
        radial-gradient(circle at 62% 62%, rgba(90, 148, 132, 0.75) 0 1.5px, transparent 2px);
    z-index: 5;
    pointer-events: none;
}
html.season-christmas .wiki-logo-stack::after {
    content: '🌿';
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 12px;
    filter: hue-rotate(12deg) saturate(1.05) brightness(1.02);
    transform: scaleX(-1) rotate(-18deg);
    z-index: 4;
    pointer-events: none;
}

/* Hero-Titel */
html.season-christmas .season-hero-headline {
    position: relative;
    filter: drop-shadow(0 0 18px rgba(67, 125, 107, 0.22));
}
html.season-christmas .season-hero-headline .season-hero-gradient {
    background-image: linear-gradient(to right, #8fbfb0, #437D6B, #6fa896) !important;
}

/* Suchleiste */
html.season-christmas .season-search-box {
    border-color: rgba(67, 125, 107, 0.18) !important;
    box-shadow: 0 0 0 1px rgba(67, 125, 107, 0.1), 0 12px 40px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: visible;
}
html.season-christmas .season-search-box .input-group {
    border-color: rgba(90, 148, 132, 0.28) !important;
    box-shadow: inset 0 0 0 1px rgba(67, 125, 107, 0.08);
}
html.season-christmas .season-search-box #searchBtn {
    background: linear-gradient(135deg, #437D6B, #365f52) !important;
    box-shadow: 0 4px 16px -4px rgba(67, 125, 107, 0.45);
}
html.season-christmas .season-search-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    margin: 0;
}
html.season-christmas .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-christmas .season-search-decor span:first-child {
    left: 0;
    bottom: 0;
    transform: translate(-28%, 38%) rotate(-22deg);
}
html.season-christmas .season-search-decor span:last-child {
    right: 0;
    bottom: 0;
    transform: translate(28%, 38%) rotate(22deg);
}

/* Schwebende Hero-Karten */
html.season-christmas .season-hero-card {
    position: relative;
    overflow: hidden;
}
html.season-christmas .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));
}

/* ── Organische Schneeschicht auf Karten (::before) ── */
html.season-christmas .season-snow-card,
html.season-christmas .season-hero-card,
html.season-christmas [data-index-card][data-index-static] {
    position: relative;
    overflow: hidden;
}

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

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

html.season-christmas .season-snow-card::before,
html.season-christmas .season-hero-card::before,
html.season-christmas .season-search-box::before,
html.season-christmas [data-index-card][data-index-static]::before,
html.season-christmas [data-index-category-toggle]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 10' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 H240 V3.2 C215,9 195,2.5 175,7.8 C155,10.2 135,2.8 115,8.2 C95,10.5 75,2.5 55,7.5 C35,9.8 15,3 0,7.2 Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 6px,
        linear-gradient(to bottom, #ffffff 60%, #e0f2fe 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 38%,
        96% 82%,
        90% 48%,
        84% 88%,
        77% 52%,
        70% 86%,
        63% 54%,
        56% 92%,
        48% 50%,
        40% 84%,
        33% 56%,
        26% 90%,
        18% 52%,
        10% 78%,
        5% 54%,
        0% 72%
    );
    pointer-events: none;
    z-index: 6;
}

html.season-christmas .season-search-box.mouse-tracker::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 8px;
    border-radius: 0.65rem 0.65rem 4px 4px;
    opacity: 1;
}

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

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

/* Akzentfarben – #437D6B */
html.season-christmas .text-sky-500,
html.season-christmas .text-sky-600,
html.season-christmas .dark .text-sky-400 {
    color: #6fa896 !important;
}
html.season-christmas .bg-sky-500,
html.season-christmas #searchBtn {
    background-color: #437D6B !important;
}
html.season-christmas .border-sky-500\/20,
html.season-christmas .border-sky-500\/25 {
    border-color: rgba(67, 125, 107, 0.22) !important;
}
html.season-christmas .bg-sky-500\/10 {
    background-color: rgba(90, 148, 132, 0.14) !important;
}
html.season-christmas .group-hover\:text-sky-500:hover,
html.season-christmas .hover\:text-sky-500:hover {
    color: #8fbfb0 !important;
}
html.season-christmas .hover\:bg-sky-500\/10:hover {
    background-color: rgba(67, 125, 107, 0.14) !important;
}
html.season-christmas .fa-heart.text-sky-500 {
    color: #437D6B !important;
}

/* Schritte – Geschenkanhänger + dezente Tannen-Girlande */
html.season-christmas .season-steps-wrap {
    position: relative;
    padding-top: 1.75rem;
}
html.season-christmas .season-steps-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background:
        radial-gradient(circle at 4% 50%, rgba(111, 168, 150, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 12% 50%, rgba(67, 125, 107, 0.8) 0 3px, transparent 4px),
        radial-gradient(circle at 20% 50%, rgba(143, 191, 176, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 28% 50%, rgba(90, 148, 132, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 36% 50%, rgba(111, 168, 150, 0.8) 0 3px, transparent 4px),
        radial-gradient(circle at 44% 50%, rgba(67, 125, 107, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 52% 50%, rgba(143, 191, 176, 0.8) 0 3px, transparent 4px),
        radial-gradient(circle at 60% 50%, rgba(90, 148, 132, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 68% 50%, rgba(111, 168, 150, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 76% 50%, rgba(67, 125, 107, 0.8) 0 3px, transparent 4px),
        radial-gradient(circle at 84% 50%, rgba(143, 191, 176, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 92% 50%, rgba(90, 148, 132, 0.8) 0 3px, transparent 4px);
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(67, 125, 107, 0.28));
    animation: season-lights-twinkle 3s ease-in-out infinite alternate;
}
html.season-christmas .season-steps-wrap::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 2%;
    right: 2%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(80, 80, 80, 0.5), transparent);
    border-radius: 2px;
}
@keyframes season-lights-twinkle {
    0% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(67, 125, 107, 0.2)); }
    100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(111, 168, 150, 0.38)); }
}

html.season-christmas .season-step-card {
    position: relative;
    border-color: rgba(67, 125, 107, 0.18) !important;
    background: linear-gradient(165deg, rgba(67, 125, 107, 0.06), rgba(15, 22, 40, 0.95)) !important;
    border-radius: 0.35rem 0.35rem 0.75rem 0.75rem !important;
    padding-top: 1.25rem !important;
}
html.season-christmas .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%, #6fa896, #437D6B);
    box-shadow: 0 0 0 2px rgba(67, 125, 107, 0.25);
}
html.season-christmas .season-step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: rgba(67, 125, 107, 0.45);
}
html.season-christmas .season-step-card .fa-solid {
    color: #6fa896 !important;
}
html.season-christmas .season-step-card span.w-7 {
    background-color: rgba(67, 125, 107, 0.18) !important;
    border-color: rgba(67, 125, 107, 0.24) !important;
    color: #8fbfb0 !important;
}

/* Zuletzt bearbeitet – frostige Sterne */
html.season-christmas .season-recent-item .fa-file-lines::before {
    content: '\f005';
}
html.season-christmas .season-recent-item > span:first-child {
    background: rgba(90, 148, 132, 0.12) !important;
    border-color: rgba(67, 125, 107, 0.2) !important;
    color: #6fa896 !important;
}

/* Footer – Schneekugeln */
html.season-christmas footer .season-social-link {
    position: relative;
    border-radius: 9999px !important;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), rgba(147, 197, 253, 0.08) 40%, rgba(15, 22, 40, 0.9) 72%) !important;
    border: 1px solid rgba(67, 125, 107, 0.18) !important;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5), inset 0 -8px 12px -8px rgba(0, 0, 0, 0.3);
    overflow: visible;
}
html.season-christmas 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, #4a6d62, #2d4a42);
}
html.season-christmas footer .absolute.top-0 {
    background: linear-gradient(90deg, transparent, rgba(67, 125, 107, 0.18), transparent) !important;
}

/* Hero-Orbs winterlich */
html.season-christmas .hero-bg-orb-sky {
    background-color: rgba(59, 130, 246, 0.1) !important;
}
html.season-christmas .hero-bg-orb-green,
html.season-christmas .hero-bg-orb-indigo {
    background-color: rgba(67, 125, 107, 0.07) !important;
}

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