/* ==========================================================
   Frisurenschmiede – saisonale Weihnachtsgestaltung
   Enthält: Weihnachtshero und Weihnachtsbaum der Seitenleiste
   ========================================================== */

/* ==========================================================
   1. HERO – WEIHNACHTSKUGELN UND WEIHNACHTSINHALT
   ========================================================== */

.hero-card-primary:has(.hero-xmas-balls) {
    overflow: hidden;
}

.hero-card-primary:has(.hero-xmas-balls) .hero-card-scroll {
    overflow: visible !important;
}

.hero-wbce-content:has(.hero-xmas-balls) {
    position: relative;
    height: 100%;
    min-height: 100%;
    padding-bottom: 58px;
    box-sizing: border-box;
}

.hero-wbce-content:has(.hero-xmas-balls) > p:first-of-type {
    margin: 0 0 12px !important;
}

.hero-wbce-content:has(.hero-xmas-balls)
    > p:not(:first-of-type):not(.hero-xmas-actions) {
    margin: 0 !important;
    line-height: 1.45;
}

.hero-xmas-balls {
    position: absolute;
    top: -34px;
    right: 4px;
    z-index: 3;
    width: 125px;
    height: 150px;
    pointer-events: none;
}

.hero-xmas-ball {
    position: absolute;
    display: block;
    border-radius: 50%;
    transform-origin: 50% -90px;
    box-shadow:
        inset -8px -10px 14px rgba(0, 0, 0, 0.18),
        inset 7px 7px 12px rgba(255, 255, 255, 0.28),
        0 5px 10px rgba(48, 39, 28, 0.18);
    animation: hero-xmas-swing 4.5s ease-in-out infinite;
}

.hero-xmas-ball::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 1px;
    height: 130px;
    background: rgba(175, 137, 76, 0.75);
}

.hero-xmas-ball::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% - 3px);
    width: 11px;
    height: 8px;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(90deg, #a77b38, #e1c080, #9f7334);
    transform: translateX(-50%);
}

.hero-xmas-ball.ball-olive {
    top: 32px;
    left: 0;
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 32% 28%, #b2b48a, #797a59 48%, #55563d 100%);
}

.hero-xmas-ball.ball-copper {
    top: 45px;
    right: 0;
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 32% 28%, #e3a276, #bd6937 50%, #82401f 100%);
    animation-delay: -1.2s;
}

.hero-xmas-ball.ball-gold {
    top: 56px;
    left: 46px;
    width: 46px;
    height: 46px;
    background: radial-gradient(circle at 32% 28%, #f3dca5, #c6a56a 50%, #96733c 100%);
    animation-delay: -2.1s;
}

.hero-xmas-title {
    max-width: 100%;
    margin: 0 0 14px !important;
    font-size: 38px !important;
    line-height: 1.04 !important;
}

.hero-xmas-title::after {
    margin-top: 14px !important;
}

.hero-xmas-actions {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 !important;
}

.hero-xmas-button {
    display: inline-flex;
    flex: 1 1 50%;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid var(--fs-button);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-xmas-button-primary {
    color: #fff !important;
    background: var(--fs-button);
}

.hero-xmas-button-secondary {
    color: var(--fs-button) !important;
    background: transparent;
}

.hero-xmas-button-primary:hover,
.hero-xmas-button-primary:focus-visible {
    color: #fff !important;
    background: var(--fs-button-hover);
    border-color: var(--fs-button-hover);
}

.hero-xmas-button-secondary:hover,
.hero-xmas-button-secondary:focus-visible {
    color: var(--fs-button-hover) !important;
    background: var(--fs-button-soft);
    border-color: var(--fs-button-hover);
}

.hero-xmas-button:focus-visible {
    outline: 2px solid var(--fs-button);
    outline-offset: 2px;
}

@keyframes hero-xmas-swing {
    0%, 100% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
}

/* ==========================================================
   2. SEITENLEISTE – WEIHNACHTSBAUM
   ========================================================== */

.xmas-sidebar {
    width: 100%;
    padding: 8px 0 18px;
    overflow: visible;
    color: #51523b;
    text-align: center;
}

.xmas-sidebar__visual {
    position: relative;
    isolation: isolate;
    width: min(300px, 100%);
    margin: 0 auto;
}

.xmas-sidebar__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 12px rgba(42, 36, 26, 0.14));
}

.xmas-sidebar__light {
    position: absolute;
    z-index: 2;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5d88f;
    box-shadow:
        0 0 4px #f5d88f,
        0 0 10px rgba(245, 216, 143, 0.82),
        0 0 18px rgba(245, 216, 143, 0.46);
    pointer-events: none;
    animation: xmas-light-twinkle 3s ease-in-out infinite;
}

.xmas-sidebar__light--1 { top: 20%; left: 50%; animation-delay: -0.2s; }
.xmas-sidebar__light--2 { top: 31%; left: 42%; animation-delay: -1.4s; }
.xmas-sidebar__light--3 { top: 38%; left: 61%; animation-delay: -2.2s; }
.xmas-sidebar__light--4 { top: 47%; left: 35%; animation-delay: -0.8s; }
.xmas-sidebar__light--5 { top: 51%; left: 53%; animation-delay: -1.9s; }
.xmas-sidebar__light--6 { top: 58%; left: 68%; animation-delay: -2.6s; }
.xmas-sidebar__light--7 { top: 67%; left: 44%; animation-delay: -1.1s; }
.xmas-sidebar__light--8 { top: 72%; left: 61%; animation-delay: -2.4s; }

.xmas-sidebar__title {
    margin: 2px 0 0;
    color: #5f6045;
    font-family: HoneyScript-Light, Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
}

@keyframes xmas-light-twinkle {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* ==========================================================
   3. MOBILE ANSICHT
   ========================================================== */

@media (max-width: 600px) {
    .hero-wbce-content:has(.hero-xmas-balls) {
        padding-bottom: 102px;
    }

    .hero-xmas-balls {
        top: -27px;
        right: 0;
        width: 108px;
        height: 130px;
    }

    .hero-xmas-ball {
        transform-origin: 50% -75px;
    }

    .hero-xmas-ball::before {
        height: 110px;
    }

    .hero-xmas-ball.ball-olive {
        top: 28px;
        left: 0;
        width: 36px;
        height: 36px;
    }

    .hero-xmas-ball.ball-copper {
        top: 42px;
        right: 0;
        width: 32px;
        height: 32px;
    }

    .hero-xmas-ball.ball-gold {
        top: 54px;
        left: 40px;
        width: 40px;
        height: 40px;
    }

    .hero-xmas-title {
        margin: 0 0 12px !important;
        font-size: 34px !important;
        line-height: 1.03 !important;
    }

    .hero-xmas-title::after {
        margin-top: 11px !important;
    }

    .hero-wbce-content:has(.hero-xmas-balls) > p:first-of-type {
        margin-bottom: 10px !important;
    }

    .hero-wbce-content:has(.hero-xmas-balls)
        > p:not(:first-of-type):not(.hero-xmas-actions) {
        line-height: 1.4;
    }

    .hero-xmas-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-xmas-button {
        flex: 1 1 100%;
        min-height: 40px;
        padding: 8px 7px;
        font-size: 0.76rem;
    }

    .xmas-sidebar {
        padding: 6px 0 14px;
    }

    .xmas-sidebar__visual {
        width: min(245px, 92vw);
    }

    .xmas-sidebar__title {
        font-size: 2rem;
    }
}

/* ==========================================================
   4. REDUZIERTE BEWEGUNG
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-xmas-ball,
    .xmas-sidebar__light {
        animation: none;
    }
}
