/* =========================================================================
   Themen – große Ausbaustufe (02.10.2026, siehe App\Services\ThemeService
   und assets/js/theme-effects.js). Wird nur geladen, wenn ein Thema aktiv ist.

   body.theme-<key>  Farben (Grundfarben stehen in main.css)
   body.theme-fx     Szene, Deko und Animationen (nicht auf Stream-, Studio-
                     und Admin-Seiten)
   body.theme-fx-paused  Besucher hat "Effekte aus" gewählt

   Grundregel: Deko fängt NIE Klicks ab (pointer-events: none). Hintergrund-
   Ebenen liegen mit z-index -1 hinter dem Inhalt, Vordergrund-Figuren unter
   dem Seitenkopf (z-index 15) und unter allen Dialogen.
   ========================================================================= */

/* ---- Allgemein ----------------------------------------------------------- */
body.theme-fx { background-attachment: fixed; }
body.theme-fx .site-header::after { display: none; } /* einfache Emoji-Leiste ersetzt die Girlande */
.theme-layer { position: fixed; pointer-events: none; z-index: -1; }
.theme-front { position: fixed; pointer-events: none; z-index: 15; }
.theme-scene {
    left: 0; right: 0; bottom: 0; height: clamp(110px, 15vw, 230px);
    background-repeat: repeat-x; background-position: center bottom; background-size: auto 100%;
}
.theme-garland {
    position: absolute; left: 0; right: 0; top: 100%; height: 34px;
    pointer-events: none; overflow: visible;
}
.theme-garland svg { display: block; width: 100%; height: 34px; overflow: visible; }
.brand { position: relative; }
.theme-hat {
    position: absolute; pointer-events: none; z-index: 2;
    left: -12px; top: -17px; width: 34px; height: 34px;
    transform: rotate(-20deg); transform-origin: 50% 90%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.theme-hat svg { width: 100%; height: 100%; display: block; }
.site-footer { position: relative; }
body.theme-fx .site-footer { background: linear-gradient(180deg, rgba(8, 8, 12, 0.35) 0%, rgba(6, 6, 9, 0.92) 40%); }
body.theme-fx .stream-card, body.theme-fx .card { transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
body.theme-fx .stream-card:hover, body.theme-fx .card:hover { box-shadow: 0 0 0 1px var(--color-primary), 0 10px 34px var(--theme-glow, rgba(0, 0, 0, 0.4)); }
body.theme-fx .hero h1, body.theme-fx .page-banner h1 { text-shadow: 0 0 26px var(--theme-glow), 0 2px 18px rgba(0, 0, 0, 0.6); }
body.theme-fx ::selection { background: var(--color-primary); color: #fff; }
body.theme-fx .btn--primary { position: relative; overflow: hidden; }
body.theme-fx .btn--primary::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 0.7s ease;
}
body.theme-fx .btn--primary:hover::after { transform: translateX(120%); }

/* Gruß-Banner: festlicher, mit Countdown */
body[class*="theme-"] .theme-banner {
    padding: 9px 52px 9px 16px; gap: 10px 16px; flex-wrap: wrap;
    background: var(--theme-banner-bg, var(--gradient-brand)); background-size: 200% 100%;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    animation: theme-banner-flow 14s linear infinite;
}
.theme-banner__count {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.theme-banner__count:empty { display: none; }
@keyframes theme-banner-flow { to { background-position: -200% 0; } }

/* Klick-Effekt-Ebene und Effekt-Leinwände */
.theme-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.theme-canvas--back { z-index: -1; }
.theme-canvas--front { z-index: 900; }

/* Figuren, die ab und zu vorbeikommen */
.theme-flyby { position: fixed; pointer-events: none; z-index: 15; left: 0; top: 0; will-change: transform; }

/* ---- Flächen nehmen die Stimmung des Themas an ------------------------------ */
body.theme-christmas.theme-fx { --color-surface: #101624; --color-surface-2: #172036; --color-surface-3: #1f2a44; --color-border: #24304a; --color-border-strong: #33415f; --color-bg-alt: #0c111d; }
body.theme-halloween.theme-fx { --color-surface: #170f20; --color-surface-2: #21162d; --color-surface-3: #2b1d3a; --color-border: #33213f; --color-border-strong: #47305a; --color-bg-alt: #120b19; }
body.theme-silvester.theme-fx { --color-surface: #13112a; --color-surface-2: #1c1938; --color-surface-3: #262246; --color-border: #2c2750; --color-border-strong: #3d3768; --color-bg-alt: #0f0d22; }
body.theme-easter.theme-fx { --color-surface: #121b1d; --color-surface-2: #192528; --color-surface-3: #213034; --color-border: #26363a; --color-border-strong: #35494e; --color-bg-alt: #0e1617; }
body.theme-christmas.theme-fx .card, body.theme-christmas.theme-fx .stream-card { background-image: linear-gradient(160deg, rgba(227, 38, 59, 0.06), transparent 40%, rgba(31, 138, 76, 0.06)); }
body.theme-halloween.theme-fx .card, body.theme-halloween.theme-fx .stream-card { background-image: linear-gradient(160deg, rgba(255, 122, 26, 0.07), transparent 45%, rgba(162, 89, 255, 0.08)); }
body.theme-silvester.theme-fx .card, body.theme-silvester.theme-fx .stream-card { background-image: linear-gradient(160deg, rgba(242, 182, 50, 0.07), transparent 45%, rgba(180, 108, 255, 0.08)); }
body.theme-easter.theme-fx .card, body.theme-easter.theme-fx .stream-card { background-image: linear-gradient(160deg, rgba(255, 122, 168, 0.07), transparent 45%, rgba(143, 209, 106, 0.07)); }

/* ---- Lichterkette -------------------------------------------------------- */
.theme-garland .wire { fill: none; stroke: #1a1a1a; stroke-width: 1.6; }
.theme-garland .bulb { transform-box: fill-box; transform-origin: 50% 0; }
.theme-garland .bulb ellipse { filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 9px currentColor); }
.theme-garland .bulb rect { fill: #2b2b2b; }
.theme-garland .bulb:nth-child(4n+1) { animation: theme-bulb 2.4s infinite; }
.theme-garland .bulb:nth-child(4n+2) { animation: theme-bulb 2.4s 0.6s infinite; }
.theme-garland .bulb:nth-child(4n+3) { animation: theme-bulb 2.4s 1.2s infinite; }
.theme-garland .bulb:nth-child(4n) { animation: theme-bulb 2.4s 1.8s infinite; }
@keyframes theme-bulb { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 55% { opacity: 0.35; } 70% { opacity: 1; } }
.theme-garland .swing { transform-box: fill-box; transform-origin: 50% 0; animation: theme-swing 3.6s ease-in-out infinite alternate; }
.theme-garland .swing:nth-of-type(2n) { animation-duration: 4.4s; animation-delay: -1.5s; }
@keyframes theme-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.theme-garland .pennant { transform-box: fill-box; transform-origin: 50% 0; animation: theme-swing 3s ease-in-out infinite alternate; }
.theme-garland .pennant:nth-of-type(3n) { animation-delay: -1s; }
.theme-garland .pennant:nth-of-type(3n+1) { animation-delay: -2s; }

/* =========================================================================
   WEIHNACHTEN
   ========================================================================= */
body.theme-christmas { --theme-glow: rgba(255, 196, 92, 0.38); --theme-banner-bg: linear-gradient(90deg, #a5122a, #d42a41, #1f7a45, #d42a41, #a5122a); }
body.theme-christmas.theme-fx {
    background:
        radial-gradient(ellipse 1100px 520px at 85% -8%, rgba(60, 120, 205, 0.32), transparent 70%),
        radial-gradient(ellipse 900px 480px at -5% 0%, rgba(214, 38, 62, 0.16), transparent 70%),
        linear-gradient(180deg, #060a14 0%, #0a0e1a 55%, #0d111a 100%) fixed;
}
body.theme-christmas .theme-scene { background-image: url("../img/themes/christmas-scene.svg"); }
/* Polarlicht */
.theme-aurora {
    top: 0; left: -10%; right: -10%; height: 46vh; opacity: 0.32; filter: blur(38px);
    background:
        radial-gradient(ellipse 40% 60% at 25% 30%, rgba(60, 230, 160, 0.9), transparent 70%),
        radial-gradient(ellipse 35% 55% at 60% 22%, rgba(70, 160, 255, 0.8), transparent 70%),
        radial-gradient(ellipse 30% 50% at 85% 35%, rgba(160, 90, 255, 0.6), transparent 70%);
    animation: theme-aurora 26s ease-in-out infinite alternate;
}
@keyframes theme-aurora { from { transform: translateX(-4%) skewX(-6deg); opacity: 0.22; } to { transform: translateX(4%) skewX(6deg); opacity: 0.4; } }
/* Sternenhimmel (Punkte per box-shadow aus theme-effects.js) */
.theme-stars { top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%; background: transparent; }
.theme-stars--a { animation: theme-twinkle 4s ease-in-out infinite alternate; }
.theme-stars--b { animation: theme-twinkle 5.5s ease-in-out -2s infinite alternate; }
@keyframes theme-twinkle { from { opacity: 0.35; } to { opacity: 1; } }
/* Schneehauben auf Karten */
body.theme-christmas.theme-fx :is(.card, .stream-card, .hero, .page-banner, .empty-card, .coin-promo, .hero__features > li, .upcoming-card, .vod-card__thumb, .home-wallpapers__item) { position: relative; }
body.theme-christmas.theme-fx :is(.card, .stream-card, .hero, .page-banner, .empty-card, .coin-promo, .hero__features > li, .upcoming-card, .vod-card__thumb, .home-wallpapers__item)::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 13px; z-index: 3; pointer-events: none;
    background: url("../img/themes/snowcap.svg") repeat-x 0 0 / 160px 13px;
    border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}
body.theme-christmas.theme-fx .hero::after, body.theme-christmas.theme-fx .page-banner::after { height: 18px; background-size: 220px 18px; }
/* Christbaumkugeln an den Seitenrändern (nur breite Bildschirme) */
.theme-baubles { top: 0; bottom: 0; width: 120px; display: none; }
.theme-baubles--l { left: 0; }
.theme-baubles--r { right: 0; }
@media (min-width: 1420px) { .theme-baubles { display: block; } }
.theme-bauble { position: absolute; top: 0; width: 2px; transform-origin: 50% 0; animation: theme-swing 4s ease-in-out infinite alternate; }
.theme-bauble::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: var(--len); background: linear-gradient(#d9b45a, rgba(217, 180, 90, 0.5)); }
.theme-bauble svg { position: absolute; top: var(--len); left: calc(var(--size) / -2); width: var(--size); height: calc(var(--size) * 1.18); filter: drop-shadow(0 0 10px var(--c)); }
/* Logo-Mütze wackelt leicht */
body.theme-christmas .theme-hat { animation: theme-hat 5s ease-in-out infinite; }
@keyframes theme-hat { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-13deg); } }

/* =========================================================================
   HALLOWEEN
   ========================================================================= */
body.theme-halloween { --theme-glow: rgba(255, 122, 26, 0.45); --theme-banner-bg: linear-gradient(90deg, #6a2bc4, #ff6a00, #2b1145, #ff6a00, #6a2bc4); }
body.theme-halloween.theme-fx {
    background:
        radial-gradient(ellipse 900px 600px at 82% 6%, rgba(255, 170, 70, 0.12), transparent 65%),
        radial-gradient(ellipse 1200px 600px at 10% 100%, rgba(120, 50, 200, 0.22), transparent 70%),
        linear-gradient(180deg, #0a0610 0%, #120a1c 60%, #0b0710 100%) fixed;
}
body.theme-halloween .theme-scene { background-image: url("../img/themes/halloween-scene.svg"); }
/* Vollmond mit Kratern und Wolken */
.theme-moon {
    top: 96px; right: 7vw; width: clamp(110px, 12vw, 190px); aspect-ratio: 1; border-radius: 50%;
    background:
        radial-gradient(circle at 30% 34%, rgba(170, 140, 90, 0.35) 0 7%, transparent 8%),
        radial-gradient(circle at 62% 58%, rgba(170, 140, 90, 0.3) 0 10%, transparent 11%),
        radial-gradient(circle at 70% 28%, rgba(170, 140, 90, 0.25) 0 5%, transparent 6%),
        radial-gradient(circle at 38% 70%, rgba(170, 140, 90, 0.22) 0 6%, transparent 7%),
        radial-gradient(circle at 40% 38%, #fff6d8, #f5d98e 55%, #d9a94e 100%);
    box-shadow: 0 0 60px 12px rgba(255, 210, 120, 0.35), 0 0 160px 50px rgba(255, 150, 60, 0.16);
}
.theme-cloud {
    top: 120px; width: 340px; height: 70px; border-radius: 50px; opacity: 0.55; filter: blur(6px);
    background: radial-gradient(ellipse at 30% 60%, #2b1d3c 0 40%, transparent 41%), radial-gradient(ellipse at 60% 40%, #2b1d3c 0 45%, transparent 46%), radial-gradient(ellipse at 80% 65%, #2b1d3c 0 35%, transparent 36%);
    animation: theme-cloud 70s linear infinite;
}
.theme-cloud--2 { top: 190px; width: 260px; opacity: 0.4; animation-duration: 95s; animation-delay: -40s; }
@keyframes theme-cloud { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
/* Nebel am Boden */
.theme-fog { left: -50%; width: 200%; bottom: 0; height: 30vh; opacity: 0.5;
    background: radial-gradient(ellipse 18% 60% at 10% 100%, rgba(190, 170, 220, 0.35), transparent 70%),
                radial-gradient(ellipse 22% 55% at 35% 100%, rgba(190, 170, 220, 0.3), transparent 70%),
                radial-gradient(ellipse 20% 65% at 62% 100%, rgba(190, 170, 220, 0.32), transparent 70%),
                radial-gradient(ellipse 18% 50% at 88% 100%, rgba(190, 170, 220, 0.3), transparent 70%);
    filter: blur(14px); animation: theme-fog 48s linear infinite alternate; }
.theme-fog--2 { opacity: 0.35; height: 22vh; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes theme-fog { from { transform: translateX(0); } to { transform: translateX(25%); } }
/* Spinnennetze in den Ecken */
.theme-web { top: 64px; width: clamp(130px, 14vw, 230px); aspect-ratio: 1; opacity: 0.22; background: url("../img/themes/web-corner.svg") no-repeat 0 0 / contain; }
.theme-web--l { left: 0; }
.theme-web--r { right: 0; transform: scaleX(-1); }
body.theme-halloween.theme-fx .hero, body.theme-halloween.theme-fx .page-banner { position: relative; }
body.theme-halloween.theme-fx .hero::after, body.theme-halloween.theme-fx .page-banner::after {
    content: ''; position: absolute; right: 0; top: 0; width: 120px; height: 120px; z-index: 2; pointer-events: none;
    background: url("../img/themes/web-corner.svg") no-repeat 0 0 / contain; transform: scaleX(-1); opacity: 0.28;
}
/* Spinne am Faden */
.theme-spider { top: 0; right: 13vw; width: 30px; z-index: 16; animation: theme-spider 9s ease-in-out infinite; transform-origin: 50% 0; }
.theme-spider::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 100vh; background: rgba(230, 225, 240, 0.55); }
.theme-spider svg { display: block; width: 30px; height: 30px; }
@keyframes theme-spider { 0%, 100% { transform: translateY(70px); } 40% { transform: translateY(150px); } 55% { transform: translateY(140px) rotate(4deg); } 70% { transform: translateY(165px) rotate(-3deg); } }
/* flackernde Überschrift */
body.theme-halloween.theme-fx .hero h1 { animation: theme-flicker 6s infinite; }
@keyframes theme-flicker { 0%, 100% { text-shadow: 0 0 22px rgba(255, 122, 26, 0.55), 0 2px 18px rgba(0, 0, 0, 0.6); } 48% { text-shadow: 0 0 30px rgba(255, 140, 40, 0.75), 0 2px 18px rgba(0, 0, 0, 0.6); } 50% { text-shadow: 0 0 8px rgba(255, 122, 26, 0.25), 0 2px 18px rgba(0, 0, 0, 0.6); } 52% { text-shadow: 0 0 28px rgba(255, 140, 40, 0.7), 0 2px 18px rgba(0, 0, 0, 0.6); } }
body.theme-halloween.theme-fx .btn--primary:hover { box-shadow: 0 0 22px rgba(255, 122, 26, 0.65); }

/* Leuchtende Augen im Dunkeln (blinzeln ab und zu) */
.theme-eyes { inset: 0; }
.theme-eyes__pair { position: absolute; width: 26px; height: 8px; animation: theme-eyes 9s infinite; }
.theme-eyes__pair::before, .theme-eyes__pair::after {
    content: ''; position: absolute; top: 0; width: 9px; height: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 50% 55%, #fff6a0 0 18%, #ffb000 40%, rgba(255, 120, 0, 0.6) 70%, transparent 72%);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}
.theme-eyes__pair::before { left: 0; }
.theme-eyes__pair::after { right: 0; }
@keyframes theme-eyes { 0%, 30%, 100% { opacity: 0; transform: scaleY(1); } 36%, 60% { opacity: 0.85; transform: scaleY(1); } 62% { transform: scaleY(0.1); } 64%, 70% { opacity: 0.85; transform: scaleY(1); } 76% { opacity: 0; } }
/* Wetterleuchten */
.theme-lightning { position: fixed; inset: 0; pointer-events: none; z-index: 940; background: radial-gradient(ellipse at 70% 0%, #f3ecff, #b9a6ff 40%, transparent 75%); opacity: 0; animation: theme-lightning 0.9s ease-out forwards; }
@keyframes theme-lightning { 0% { opacity: 0; } 8% { opacity: var(--flash, 0.3); } 20% { opacity: calc(var(--flash, 0.3) * 0.25); } 30% { opacity: calc(var(--flash, 0.3) * 0.8); } 100% { opacity: 0; } }
/* Schreckmoment auf der Startseite (einmal am Tag, < 2,5 s, fängt keine Klicks ab) */
.theme-scare { position: fixed; inset: 0; pointer-events: none; z-index: 950; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(20, 0, 30, 0.35), rgba(0, 0, 0, 0.85)); animation: theme-scare-bg 2.3s ease forwards; }
.theme-scare__ghost { width: min(46vw, 340px); animation: theme-scare-ghost 2.3s cubic-bezier(.2, .9, .3, 1.2) forwards; filter: drop-shadow(0 0 40px rgba(190, 160, 255, 0.7)); }
.theme-scare__ghost svg { width: 100%; display: block; }
.theme-scare__text { margin-top: 10px; font-size: clamp(42px, 9vw, 96px); font-weight: 900; letter-spacing: 0.04em; color: #ff7a1a; text-shadow: 0 0 30px rgba(255, 122, 26, 0.9), 0 4px 0 #3b1200; animation: theme-scare-text 2.3s ease forwards; }
@keyframes theme-scare-bg { 0% { opacity: 0; } 8% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes theme-scare-ghost { 0% { transform: scale(0.15) translateY(40px); opacity: 0; } 18% { transform: scale(1.15); opacity: 1; } 24% { transform: scale(1) rotate(-4deg); } 30% { transform: scale(1.05) rotate(4deg); } 36% { transform: scale(1) rotate(-3deg); } 42% { transform: scale(1.02) rotate(0); } 78% { transform: scale(1.02); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes theme-scare-text { 0%, 15% { transform: scale(0.4); opacity: 0; } 24% { transform: scale(1.15); opacity: 1; } 30% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }

/* =========================================================================
   SILVESTER
   ========================================================================= */
body.theme-silvester { --theme-glow: rgba(242, 182, 50, 0.42); --theme-banner-bg: linear-gradient(90deg, #8a5a00, #e8a91c, #7b2fd0, #e8a91c, #8a5a00); }
body.theme-silvester.theme-fx {
    background:
        radial-gradient(ellipse 1000px 520px at 50% -10%, rgba(140, 70, 230, 0.28), transparent 70%),
        radial-gradient(ellipse 800px 400px at 100% 100%, rgba(242, 182, 50, 0.1), transparent 70%),
        linear-gradient(180deg, #07061a 0%, #0c0a22 55%, #0b0a16 100%) fixed;
}
body.theme-silvester .theme-scene { background-image: url("../img/themes/silvester-scene.svg"); }
body.theme-silvester.theme-fx .stream-card:hover, body.theme-silvester.theme-fx .card:hover {
    box-shadow: 0 0 0 1px #f2b632, 0 0 26px rgba(242, 182, 50, 0.35), 0 10px 34px rgba(140, 70, 230, 0.3);
}
body.theme-silvester.theme-fx .hero h1 .text-gradient { background: linear-gradient(90deg, #ffe08a, #f2b632, #ff8ad8, #f2b632, #ffe08a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: theme-banner-flow 6s linear infinite; }

/* =========================================================================
   OSTERN
   ========================================================================= */
body.theme-easter { --theme-glow: rgba(255, 122, 168, 0.4); --theme-banner-bg: linear-gradient(90deg, #e2588d, #f0b52b, #5fb04a, #4aa8e8, #e2588d); }
body.theme-easter.theme-fx {
    background:
        radial-gradient(ellipse 1000px 520px at 15% -10%, rgba(255, 140, 190, 0.2), transparent 70%),
        radial-gradient(ellipse 900px 500px at 95% 0%, rgba(255, 214, 90, 0.14), transparent 70%),
        linear-gradient(180deg, #0b1016 0%, #0d1315 60%, #0c1110 100%) fixed;
}
body.theme-easter .theme-scene { background-image: url("../img/themes/easter-scene.svg"); }
/* Osterhase schaut unten links heraus */
.theme-bunny { left: 3vw; bottom: 40px; width: 92px; transform: translateY(120%); animation: theme-bunny 22s ease-in-out infinite; }
.theme-bunny svg { width: 100%; display: block; }
.theme-bunny .ear { transform-box: fill-box; transform-origin: 50% 100%; animation: theme-ear 1.6s ease-in-out infinite alternate; }
@keyframes theme-bunny { 0%, 62%, 100% { transform: translateY(120%); } 68%, 88% { transform: translateY(18%); } 74% { transform: translateY(12%) rotate(-4deg); } 80% { transform: translateY(16%) rotate(3deg); } }
@keyframes theme-ear { from { transform: rotate(-4deg); } to { transform: rotate(6deg); } }

/* ---- Pause / ruhige Darstellung ------------------------------------------ */
body.theme-fx-paused .theme-layer, body.theme-fx-paused .theme-front,
body.theme-fx-paused .theme-garland *, body.theme-fx-paused .theme-hat,
body.theme-fx-paused .theme-banner, body.theme-fx-paused .hero h1 { animation-play-state: paused !important; }
body.theme-fx-paused .theme-flyby, body.theme-fx-paused .theme-bunny, body.theme-fx-paused .theme-scare, body.theme-fx-paused .theme-eyes { display: none; }
@media (prefers-reduced-motion: reduce) {
    .theme-layer, .theme-front, .theme-garland *, .theme-hat, body[class*="theme-"] .theme-banner, body.theme-fx .hero h1 { animation: none !important; }
    .theme-flyby, .theme-bunny, .theme-spider, .theme-scare, .theme-lightning, .theme-eyes { display: none; }
}

/* ---- Handy --------------------------------------------------------------- */
@media (max-width: 700px) {
    .theme-scene { height: 90px; }
    .theme-web, .theme-cloud--2, .theme-spider { display: none; }
    .theme-moon { width: 84px; top: 84px; right: 5vw; }
    .theme-hat { width: 28px; height: 28px; left: -10px; top: -14px; }
    .theme-bunny { width: 64px; bottom: 20px; }
    body[class*="theme-"] .theme-banner { font-size: 12px; gap: 4px 8px; padding: 6px 44px 6px 10px; line-height: 1.3; }
    .theme-banner__count { padding: 1px 8px; }
    .theme-banner__fx { padding: 1px 8px; font-size: 11px; }
    .theme-banner__close { width: 26px; height: 26px; }
    .theme-preview-bar { gap: 4px 8px; padding: 6px 10px; bottom: 10px; font-size: 12px; }
    .theme-preview-bar small, .theme-preview-bar__admin { display: none; }
    .theme-preview-bar__switch a { width: 28px; height: 28px; font-size: 15px; }
}

/* ---- Admin: Themen-Seite --------------------------------------------------- */
.theme-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-5); }
.theme-status__main { display: flex; align-items: center; gap: var(--space-3); flex: 1 1 260px; }
.theme-status__main > div, .theme-status__next { display: flex; flex-direction: column; gap: 2px; }
.theme-status small { color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 700; }
.theme-status strong { font-size: var(--fs-lg); }
.theme-status__emoji { font-size: 42px; line-height: 1; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--color-surface-2); }
.theme-status--christmas .theme-status__emoji { background: linear-gradient(135deg, #e3263b, #1f8a4c); }
.theme-status--halloween .theme-status__emoji { background: linear-gradient(135deg, #ff7a1a, #6a2bc4); }
.theme-status--silvester .theme-status__emoji { background: linear-gradient(135deg, #f2b632, #8a3fe0); }
.theme-status--easter .theme-status__emoji { background: linear-gradient(135deg, #ff7aa8, #8fd16a); }
.theme-status__switch { display: flex; gap: var(--space-2); }
.theme-status__switch form { margin: 0; }
.theme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); margin: var(--space-3) 0 var(--space-5); }
.theme-gallery__item { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface); }
.theme-gallery__item.is-on { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.theme-gallery__art { position: relative; height: 150px; background-repeat: repeat-x; background-position: center bottom; background-size: auto 72%; }
.theme-gallery__emoji { position: absolute; left: 14px; top: 10px; font-size: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.theme-gallery__live { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: #22c55e; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.theme-gallery__live--preview { background: #6366f1; top: 36px; }
.theme-art--christmas .theme-gallery__art { background-image: url("../img/themes/christmas-scene.svg"), radial-gradient(ellipse at 80% 0%, rgba(60, 120, 205, 0.55), transparent 70%), linear-gradient(180deg, #060a14, #101a30); }
.theme-art--halloween .theme-gallery__art { background-image: url("../img/themes/halloween-scene.svg"), radial-gradient(circle at 80% 26%, #fff1c4 0 9%, rgba(255, 190, 90, 0.35) 10%, transparent 26%), linear-gradient(180deg, #0a0610, #1d1030); }
.theme-art--silvester .theme-gallery__art { background-image: url("../img/themes/silvester-scene.svg"), radial-gradient(circle at 30% 30%, rgba(255, 210, 110, 0.6) 0 2%, transparent 14%), radial-gradient(circle at 70% 22%, rgba(255, 110, 200, 0.55) 0 2%, transparent 13%), linear-gradient(180deg, #07061a, #1b1240); }
.theme-art--easter .theme-gallery__art { background-image: url("../img/themes/easter-scene.svg"), radial-gradient(ellipse at 20% 0%, rgba(255, 160, 200, 0.45), transparent 70%), linear-gradient(180deg, #13202a, #1d3a2c); }
.theme-art--christmas .theme-gallery__art, .theme-art--halloween .theme-gallery__art, .theme-art--silvester .theme-gallery__art, .theme-art--easter .theme-gallery__art { background-size: auto 72%, 100% 100%, 100% 100%, 100% 100%; background-repeat: repeat-x, no-repeat, no-repeat, no-repeat; }
/* Startbilder vom Inhaber (Wunschliste Nr. 21-24) als Kachelbild */
.theme-art--christmas .theme-gallery__art { background: url("../img/themes/christmas-hero-sm.webp") 72% center / cover no-repeat; }
.theme-art--halloween .theme-gallery__art { background: url("../img/themes/halloween-hero-sm.webp") 72% center / cover no-repeat; }
.theme-art--silvester .theme-gallery__art { background: url("../img/themes/silvester-hero-sm.webp") 72% center / cover no-repeat; }
.theme-art--easter .theme-gallery__art { background: url("../img/themes/easter-hero-sm.webp") 72% center / cover no-repeat; }
.theme-gallery__art { height: 170px; }
.theme-gallery__body { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); flex: 1; }
.theme-gallery__body h3 { margin: 0; }
.theme-gallery__dates { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: var(--fs-sm); }
.theme-gallery__dates .icon { width: 16px; height: 16px; color: var(--color-primary); }
.theme-gallery__features { margin: 0; font-size: var(--fs-xs); line-height: 1.5; }
.theme-gallery__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: 6px; }
.theme-gallery__actions form { margin: 0; }
.theme-admin__notes { margin: 0; padding-left: 1.2em; }
.theme-admin__notes li { margin-bottom: 6px; }
