/**
 * Saisonale Dekorationen - Styles
 * Version: 2.0.0 - Optimiert für Canvas
 * 
 * Entfernt: DOM-basierte Snowflake & Feuerwerk Styles (jetzt Canvas)
 * Behalten: Schneelandschaft, Geschenke, Ostern, Halloween
 */

/* ========================================
   SCHNEELANDSCHAFT (SVG-basiert)
   ======================================== */

.snow-landscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    animation: snow-landscape-fade-in 2.5s ease-out forwards;
}

@keyframes snow-landscape-fade-in {
    to { opacity: 1; }
}

.snow-landscape svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 -10px 20px rgba(255, 255, 255, 0.4));
}

.layer-back {
    filter: blur(4px);
    opacity: 0.6;
}

.layer-mid {
    filter: blur(2px);
    opacity: 0.8;
}

.layer-front {
    filter: blur(0px);
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    .snow-landscape svg path {
        fill-opacity: 0.15;
    }
    
    .snow-landscape svg path.layer-front {
        fill-opacity: 0.25;
    }
}

/* ========================================
   LUXURY CHRISTMAS - Geschenke
   ======================================== */

.christmas-gift-group {
    position: absolute;
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 15px 20px rgba(44, 24, 16, 0.2));
}

.hero-statsx.has-christmas-gifts {
    margin-top: 110px !important;
}

.christmas-gift {
    position: relative;
    opacity: 0;
    transform-origin: bottom center;
    transform: translateY(30px) scale(0.8) rotate(var(--rotate));
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    margin: 0 -8px;
}

.christmas-gift.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rotate));
}

.christmas-gift:hover {
    transform: translateY(-10px) scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
}

.christmas-gift:nth-child(1) { z-index: 1; }
.christmas-gift:nth-child(2) { z-index: 3; margin-bottom: -4px; }
.christmas-gift:nth-child(3) { z-index: 2; }

.gift-box {
    width: 100%;
    height: 100%;
    background: var(--gift-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.1),
        inset 0 -5px 15px rgba(0,0,0,0.2);
}

.gift-ribbon-v, .gift-ribbon-h, .gift-bow, .gift-bow::before, .gift-bow::after {
    background: var(--ribbon-color);
    background-image: linear-gradient(
        135deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%
    );
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.gift-ribbon-v {
    position: absolute;
    width: 16%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.gift-ribbon-h {
    position: absolute;
    width: 100%;
    height: 16%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.gift-bow {
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: 18%;
    height: 14%;
    border-radius: 4px;
    z-index: 5;
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    width: 160%;
    height: 220%;
    top: 50%;
    border-radius: 50%;
    z-index: -1;
}

.gift-bow::before {
    left: -140%;
    transform: translateY(-50%) rotate(-25deg);
    border-radius: 50% 50% 0 50%;
}

.gift-bow::after {
    right: -140%;
    transform: translateY(-50%) rotate(25deg);
    border-radius: 50% 50% 50% 0;
}

/* ========================================
   OSTERN - Hasenohren
   ======================================== */

.bunny-ears {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

.bunny-ear {
    position: absolute;
    width: 30px;
    height: 70px;
    top: 0;
    transform-origin: bottom center;
}

.bunny-ear.left {
    left: 15px;
    transform: rotate(-15deg);
}

.bunny-ear.right {
    right: 15px;
    transform: rotate(15deg) scale(1.1);
}

.ear-outer {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.ear-inner {
    position: absolute;
    width: 60%;
    height: 70%;
    background: linear-gradient(
        to bottom,
        var(--accent-light) 0%, 
        var(--secondary-light) 100%
    );
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
}

.bunny-ear.wiggle.left {
    animation: ear-wiggle-left 0.5s ease-in-out infinite alternate;
}

@keyframes ear-wiggle-left {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(-25deg); }
}

.bunny-ear.wiggle.right {
    animation: ear-wiggle-right 0.5s ease-in-out infinite alternate;
}

@keyframes ear-wiggle-right {
    0% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(25deg) scale(1.1); }
}

/* ========================================
   OSTERN - Eier
   ======================================== */

.hero-statsx.has-easter-eggs {
    margin-top: 110px !important;
}

.easter-egg-group {
    position: absolute;
    top: -95px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 15px 20px rgba(44, 24, 16, 0.2));
}

.easter-egg {
    position: relative;
    opacity: 0;
    transform-origin: bottom center;
    transform: translateY(30px) scale(0.8) rotate(var(--rotate));
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    margin: 0 -5px; 
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    box-shadow: inset -4px -4px 12px rgba(0,0,0,0.15);
}

.easter-egg.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rotate));
}

.easter-egg:hover {
    transform: translateY(-10px) scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
}

.easter-egg:nth-child(1) { z-index: 1; }
.easter-egg:nth-child(2) { z-index: 3; margin-bottom: -6px; }
.easter-egg:nth-child(3) { z-index: 2; }

.easter-egg.egg-striped {
    background: repeating-linear-gradient(
        45deg,
        var(--egg-color-1),
        var(--egg-color-1) 10px,
        var(--egg-color-2) 10px,
        var(--egg-color-2) 20px
    );
}

.easter-egg.egg-gradient {
    background: linear-gradient(160deg, var(--egg-color-2) 0%, var(--egg-color-1) 100%);
}

.easter-egg.egg-simple {
    background: var(--egg-color-1);
    background-image: linear-gradient(to bottom, var(--egg-color-2) 35%, var(--egg-color-1) 35%);
}

.egg-shine {
    position: absolute;
    top: 8%;
    left: 15%;
    width: 30%;
    height: 20%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    transform: rotate(-45deg);
    filter: blur(1px);
    pointer-events: none;
}

/* ========================================
   HALLOWEEN - Kürbis & Geister
   ======================================== */

.halloween-pumpkin {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 0, 0.4));
    pointer-events: none;
    z-index: 1;
}

.halloween-ghost {
    position: absolute;
    font-size: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    animation: ghost-float 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.halloween-ghost.visible {
    opacity: 0.7;
    transform: translateY(0);
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Schneelandschaft */
    .snow-landscape {
        height: 150px;
    }
    
    /* Geschenke */
    .hero-statsx.has-christmas-gifts {
        margin-top: 100px !important;
    }
    
    .christmas-gift-group {
        top: -70px;
        gap: -3px;
    }
    
    .christmas-gift {
        transform: scale(0.8) rotate(var(--rotate)) !important;
    }
    
    .christmas-gift:nth-child(1) { margin-right: -6px; }
    .christmas-gift:nth-child(2) { margin-top: -8px; }
    .christmas-gift:nth-child(3) { margin-left: -10px; }
    
    /* Ostern */
    .bunny-ears {
        top: -60px;
        width: 90px;
        height: 60px;
    }
    
    .bunny-ear {
        width: 25px;
        height: 55px;
    }
    
    .hero-statsx.has-easter-eggs {
        margin-top: 100px !important;
    }
    
    .easter-egg-group {
        top: -80px;
        gap: -2px;
    }
    
    .easter-egg {
        transform: scale(0.8) rotate(var(--rotate)) !important;
    }
    
    .hero-subtitle.has-bunny-ears-above {
        margin-top: 25px;
    }
    
    /* Halloween */
    .halloween-pumpkin {
        font-size: 36px;
        top: -50px;
    }
    
    .halloween-ghost {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .snow-landscape {
        height: 120px;
    }
    
    .hero-statsx.has-christmas-gifts {
        margin-top: 80px !important;
    }
    
    .christmas-gift-group {
        top: -55px;
        gap: -2px;
    }
    
    .christmas-gift {
        transform: scale(0.65) rotate(var(--rotate)) !important;
    }
    
    .christmas-gift:nth-child(1) { margin-right: -5px; }
    .christmas-gift:nth-child(2) { margin-top: -6px; }
    .christmas-gift:nth-child(3) { margin-left: -8px; }
    
    .bunny-ears {
        top: -50px;
        width: 70px;
        height: 50px;
    }
    
    .bunny-ear {
        width: 20px;
        height: 45px;
    }
    
    .hero-statsx.has-easter-eggs {
        margin-top: 80px !important;
    }
    
    .easter-egg-group {
        top: -65px;
    }
    
    .easter-egg {
        transform: scale(0.65) rotate(var(--rotate)) !important;
    }
    
    .halloween-pumpkin {
        font-size: 28px;
        top: -40px;
    }
    
    .halloween-ghost {
        font-size: 24px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .christmas-gift:hover,
    .easter-egg:hover {
        transition-duration: 200ms !important;
    }
    
    /* Canvas wird im JS bei reduced-motion gar nicht gestartet */
}

/* ========================================
   VALENTINSTAG - Schwebende Herzen
   ======================================== */

.valentine-heart {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: heart-float 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
}

.valentine-heart.visible {
    opacity: 0.7;
}

@keyframes heart-float {
    0%, 100% { 
        transform: translateY(0) rotate(-5deg) scale(1); 
    }
    50% { 
        transform: translateY(-15px) rotate(5deg) scale(1.1); 
    }
}

@media (max-width: 768px) {
    .valentine-heart {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .valentine-heart {
        font-size: 14px;
    }
}