/* ==========================================================================
   Seasonal Decorations
   Canvas-Layer und statische Dekorationen fuer saisonale Themes
   ========================================================================== */

/* ==========================================================================
   Canvas Layer (Desktop)
   ========================================================================== */

.seasonal-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* ==========================================================================
   Statische Dekorationen (Mobile & Reduced Motion)
   ========================================================================== */

.seasonal-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.seasonal-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0.6;
    animation: seasonal-float 6s ease-in-out infinite;
}

.seasonal-icon svg {
    width: 100%;
    height: 100%;
}

/* Schneeflocken */
.seasonal-snowflake {
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Sterne */
.seasonal-star {
    color: var(--color-christmas-gold, #ffd700);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
    animation: seasonal-twinkle 3s ease-in-out infinite;
}

/* Ostereier */
.seasonal-egg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Kuerbisse */
.seasonal-pumpkin {
    color: #e86010;
    filter: drop-shadow(0 0 8px rgba(232, 96, 16, 0.3));
}

/* ==========================================================================
   Float Animation
   ========================================================================== */

@keyframes seasonal-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(-3px) rotate(-1deg);
    }
    75% {
        transform: translateY(-7px) rotate(1deg);
    }
}

@keyframes seasonal-twinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ==========================================================================
   Weihnachten: Lichterkette (Top Border)
   ========================================================================== */

.theme-weihnachten .nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 20px,
        #c41e3a 20px,
        #c41e3a 24px,
        transparent 24px,
        transparent 44px,
        #228b22 44px,
        #228b22 48px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-weihnachten .nav.scrolled::after {
    opacity: 0.6;
}

/* Lichterketten-Glow Animation */
@keyframes lights-glow {
    0%, 100% {
        filter: brightness(1) blur(0px);
    }
    50% {
        filter: brightness(1.3) blur(1px);
    }
}

/* ==========================================================================
   Halloween: Spinnweben in Ecken
   ========================================================================== */

.theme-halloween body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 99;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='0.5' d='M200 0 L100 100 L200 100 M200 0 L150 100 M200 0 L100 50 M200 0 L175 100 M200 0 L100 75 M200 0 L125 100 M200 0 L100 25 M100 100 Q150 80 200 100 M100 100 Q140 60 175 100 M100 100 Q130 70 150 100 M100 100 Q120 80 125 100'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
}

/* Nebel-Overlay am unteren Rand */
.theme-halloween .footer::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(96, 64, 160, 0.15) 0%,
        transparent 100%
    );
    animation: fog-drift 20s ease-in-out infinite;
}

@keyframes fog-drift {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateX(20px);
    }
}

/* ==========================================================================
   Silvester: Glitzer-Overlay
   ========================================================================== */

.theme-silvester .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: radial-gradient(
        circle at 20% 30%,
        rgba(255, 215, 0, 0.15) 0%,
        transparent 2%
    ),
    radial-gradient(
        circle at 80% 20%,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 1.5%
    ),
    radial-gradient(
        circle at 40% 70%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 1%
    ),
    radial-gradient(
        circle at 90% 80%,
        rgba(255, 215, 0, 0.12) 0%,
        transparent 1.8%
    ),
    radial-gradient(
        circle at 10% 60%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 1%
    );
    animation: sparkle-shift 8s ease-in-out infinite;
}

@keyframes sparkle-shift {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ==========================================================================
   Ostern: Blumen-Akzente
   ========================================================================== */

.theme-ostern .hero-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -40px;
    width: 30px;
    height: 30px;
    pointer-events: none;
    opacity: 0.5;
    background: radial-gradient(
        circle,
        #ffb6c1 30%,
        transparent 70%
    );
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
}

.theme-ostern .hero-title::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -35px;
    width: 25px;
    height: 25px;
    pointer-events: none;
    opacity: 0.4;
    background: radial-gradient(
        circle,
        #98d8aa 30%,
        transparent 70%
    );
    border-radius: 50% 50% 0 50%;
    transform: rotate(45deg);
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .seasonal-icon,
    .seasonal-star,
    .theme-silvester .hero::after,
    .theme-halloween .footer::before {
        animation: none;
    }

    .seasonal-canvas {
        display: none;
    }
}

/* ==========================================================================
   Mobile: Deaktivierte Canvas-Effekte
   ========================================================================== */

@media (max-width: 768px) {
    .seasonal-canvas {
        display: none;
    }

    /* Dezentere statische Dekorationen */
    .seasonal-icon {
        width: 20px;
        height: 20px;
        opacity: 0.4;
    }

    /* Keine CSS-Deko-Effekte auf Mobile */
    .theme-halloween body::after,
    .theme-halloween .footer::before,
    .theme-silvester .hero::after,
    .theme-ostern .hero-title::before,
    .theme-ostern .hero-title::after,
    .theme-weihnachten .nav::after {
        display: none;
    }
}

/* ==========================================================================
   Print: Alle Effekte ausblenden
   ========================================================================== */

@media print {
    .seasonal-canvas,
    .seasonal-decorations,
    .theme-halloween body::after,
    .theme-weihnachten .nav::after {
        display: none !important;
    }
}
