/* =====================================
   Header Container
===================================== */

.header-container {
    width: min(100% - 80px, 1600px);
    margin-inline: auto;
}

/* =====================================
   Header
===================================== */

.site-header {
    position: relative;

    width: 100%;
    min-height: 240px;

    overflow: hidden;
}

.site-header__inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 240px;
    padding-block: 20px;
}

/* =====================================
   Automatischer Adventskranz
===================================== */

.site-header__advent {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;

    width: clamp(300px, 36vw, 560px);
    aspect-ratio: 1832 / 859;

    pointer-events: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 9px 18px rgba(0, 0, 0, .58));
}

.site-header__advent > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.site-header__flame {
    position: absolute;
    z-index: 2;
    top: 8.5%;

    display: none;
    width: 2.1%;
    min-width: 7px;
    aspect-ratio: .48;

    border-radius: 48% 52% 48% 52% / 64% 64% 36% 36%;
    background:
        radial-gradient(circle at 52% 72%, #fff8c9 0 12%, transparent 13%),
        radial-gradient(ellipse at 50% 68%, #ffd66a 0 34%, #ee8d17 55%, #9f3e08 76%, transparent 78%);
    box-shadow:
        0 0 8px rgba(255, 216, 100, .95),
        0 0 20px rgba(230, 142, 28, .72),
        0 0 36px rgba(230, 196, 106, .35);
    transform: translateX(-50%) rotate(2deg);
    transform-origin: 50% 100%;
}

.site-header__flame::after {
    content: '';
    position: absolute;
    inset: -120% -230% -90%;
    z-index: -1;

    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 196, 106, .20), transparent 68%);
}

.site-header__flame.is-lit {
    display: block;
    animation: yvette-flame-flicker 1.15s ease-in-out infinite alternate;
}

.site-header__flame--1 { left: 27.2%; animation-delay: -.23s !important; animation-duration: 1.08s !important; }
.site-header__flame--2 { left: 43.1%; animation-delay: -.71s !important; animation-duration: 1.24s !important; }
.site-header__flame--3 { left: 58.6%; animation-delay: -.42s !important; animation-duration: .98s !important; }
.site-header__flame--4 { left: 74.5%; animation-delay: -.86s !important; animation-duration: 1.31s !important; }

@keyframes yvette-flame-flicker {
    0% {
        opacity: .86;
        filter: brightness(.94);
        transform: translateX(-50%) rotate(-4deg) scale(.92, 1.02) skewX(-2deg);
    }
    36% {
        opacity: 1;
        filter: brightness(1.12);
        transform: translateX(-50%) rotate(3deg) scale(1.04, .96) skewX(2deg);
    }
    67% {
        opacity: .9;
        filter: brightness(1.02);
        transform: translateX(-50%) rotate(-1deg) scale(.96, 1.07);
    }
    100% {
        opacity: 1;
        filter: brightness(1.18);
        transform: translateX(-50%) rotate(5deg) scale(1.06, .93) skewX(3deg);
    }
}

/* =====================================
   Weitere automatische Festmotive
===================================== */

.site-header__seasonal {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;

    width: clamp(260px, 25vw, 380px);

    pointer-events: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .62));
}

.site-header__seasonal--christmas,
.site-header__seasonal--new-year {
    width: clamp(235px, 22vw, 320px);
}

.site-header__seasonal > img {
    position: relative;
    z-index: 1;

    display: block;
    width: 100%;
    height: auto;

    object-fit: contain;
}

.site-header__seasonal-effects {
    position: absolute;
    z-index: 2;
    inset: 0;
}

.site-header__seasonal-label {
    position: absolute;
    z-index: 3;
    bottom: 2%;
    left: 50%;

    padding: 4px 13px;

    color: #E8E4DA;
    border: 1px solid rgba(230, 196, 106, .42);
    border-radius: 999px;
    background: rgba(1, 10, 6, .72);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .38);

    font-family: Georgia, serif;
    font-size: clamp(10px, .82vw, 13px);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;

    transform: translate(-50%, 55%);
}

.site-header__seasonal-particle {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    opacity: 0;
    border-radius: 50%;
    background: #e6c46a;
    box-shadow: 0 0 8px rgba(230, 196, 106, .9);
}

.site-header__seasonal-particle--1 { left: 13%; top: 24%; animation-delay: -1.2s !important; }
.site-header__seasonal-particle--2 { left: 25%; top: 9%; animation-delay: -3.4s !important; }
.site-header__seasonal-particle--3 { left: 37%; top: 31%; animation-delay: -2.1s !important; }
.site-header__seasonal-particle--4 { left: 48%; top: 7%; animation-delay: -4.6s !important; }
.site-header__seasonal-particle--5 { left: 60%; top: 25%; animation-delay: -.7s !important; }
.site-header__seasonal-particle--6 { left: 72%; top: 12%; animation-delay: -2.8s !important; }
.site-header__seasonal-particle--7 { left: 84%; top: 35%; animation-delay: -4s !important; }
.site-header__seasonal-particle--8 { left: 31%; top: 45%; animation-delay: -1.8s !important; }
.site-header__seasonal-particle--9 { left: 68%; top: 48%; animation-delay: -3.1s !important; }

/* =====================================
   Eigenes Event aus Yvette Studio
===================================== */

.header-event-motif {
    display: block;
    width: 200px;
    aspect-ratio: 1;

    background-image: url('../images/events/header-event-presets-v2.png');
    background-repeat: no-repeat;
    background-size: 300% 200%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .62));
}

.header-event-motif--birthday { background-position: 0 0; }
.header-event-motif--anniversary { background-position: 50% 0; }
.header-event-motif--valentine { background-position: 100% 0; }
.header-event-motif--city-festival { background-position: 0 100%; }
.header-event-motif--summer { background-position: 50% 100%; }
.header-event-motif--voucher { background-position: 100% 100%; }

.site-header__custom-event {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;

    display: grid;
    width: clamp(250px, 25vw, 380px);
    height: 210px;

    pointer-events: none;
    transform: translate(-50%, -50%);
    place-items: center;
}

.site-header__custom-event > .header-event-motif {
    position: relative;
    z-index: 1;

    width: 200px;
}

.site-header__custom-event-effects {
    position: absolute;
    z-index: 2;
    inset: 0;
}

.site-header__custom-event-label {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 50%;

    max-width: 94%;
    padding: 5px 14px;
    overflow: hidden;

    color: #E8E4DA;
    border: 1px solid rgba(230, 196, 106, .48);
    border-radius: 999px;
    background: rgba(1, 10, 6, .78);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .42);

    font-family: Georgia, serif;
    font-size: clamp(10px, .82vw, 13px);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;

    transform: translate(-50%, 35%);
}

.site-header__custom-event--glow > .header-event-motif {
    animation: yvette-custom-event-glow 4.6s ease-in-out infinite alternate;
}

.site-header__custom-event--float > .header-event-motif {
    animation: yvette-custom-event-float 5.2s ease-in-out infinite alternate;
}

.site-header__custom-event--sparkle > .header-event-motif {
    animation: yvette-custom-event-glow 4.6s ease-in-out infinite alternate;
}

.site-header__custom-event--sparkle .site-header__seasonal-particle {
    animation: yvette-gold-spark 3.6s ease-out infinite;
}

.site-header__seasonal--christmas > img {
    animation: yvette-christmas-glow 4.8s ease-in-out infinite alternate;
}

.site-header__seasonal--christmas .site-header__seasonal-particle {
    width: 3px;
    height: 3px;
    border-radius: 60% 40% 55% 45%;
    background: #e8e4da;
    animation: yvette-snowfall 6s linear infinite;
}

.site-header__seasonal--new-year > img {
    animation: yvette-clock-glow 3.6s ease-in-out infinite alternate;
}

.site-header__seasonal--new-year .site-header__seasonal-particle {
    animation: yvette-gold-spark 3.3s ease-out infinite;
}

.site-header__clock-sweep {
    position: absolute;
    top: 33.6%;
    left: 50%;

    width: 2px;
    height: 22.1%;
    margin-left: -1px;
    border-radius: 99px;
    opacity: .48;
    background: linear-gradient(#f5de8c, #e6c46a 65%, transparent);
    box-shadow: 0 0 7px rgba(230, 196, 106, .65);

    transform: rotate(0deg);
    transform-origin: 50% 100%;
    transition: transform 1s linear;
}

.site-header__seasonal[data-preview="1"] .site-header__clock-sweep {
    transition-duration: .12s;
}

.site-header__fireworks {
    position: absolute;
    z-index: 5;
    inset: -18%;

    overflow: visible;
    pointer-events: none;
}

.site-header__firework-particle {
    position: absolute;

    width: var(--spark-size, 3px);
    height: var(--spark-size, 3px);
    border-radius: 50%;
    opacity: 0;
    background: #f4d36c;
    box-shadow: 0 0 6px #e6c46a, 0 0 12px rgba(230, 142, 28, .72);

    animation: yvette-midnight-firework var(--spark-duration, 1.45s) cubic-bezier(.16, .68, .25, 1) var(--spark-delay, 0s) forwards;
}

.site-header__fireworks.is-midnight::before {
    content: '';
    position: absolute;
    inset: 18%;

    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 226, 125, .26), transparent 58%);
    animation: yvette-midnight-flash 1.1s ease-out both;
}

.site-header__seasonal--easter > img {
    animation: yvette-easter-shimmer 5.5s ease-in-out infinite alternate;
}

.site-header__seasonal--easter .site-header__seasonal-particle {
    background: #cfe18d;
    box-shadow: 0 0 9px rgba(193, 220, 121, .8);
    animation: yvette-spring-mote 5.2s ease-in-out infinite;
}

.site-header__seasonal--halloween .site-header__seasonal-particle {
    animation: yvette-halloween-ember 4.6s ease-out infinite;
}

.site-header__halloween-lit {
    position: absolute !important;
    z-index: 3 !important;
    inset: 0;

    width: 100% !important;
    height: 100% !important;
    opacity: .2;

    object-fit: contain;
    animation: yvette-halloween-eyes 3.8s ease-in-out infinite alternate;
}

.site-header__halloween-mist {
    position: absolute;
    right: 9%;
    bottom: 15%;
    left: 9%;

    height: 26%;
    opacity: .24;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 28% 60%, rgba(110, 142, 74, .45), transparent 46%),
        radial-gradient(ellipse at 70% 45%, rgba(89, 125, 68, .36), transparent 48%);
    filter: blur(8px);
    animation: yvette-halloween-mist 8s ease-in-out infinite alternate;
}

@keyframes yvette-christmas-glow {
    from { filter: brightness(.94) drop-shadow(0 0 3px rgba(230, 196, 106, .18)); }
    to { filter: brightness(1.08) drop-shadow(0 0 12px rgba(230, 196, 106, .38)); }
}

@keyframes yvette-custom-event-glow {
    from { filter: brightness(.94) drop-shadow(0 10px 20px rgba(0, 0, 0, .62)) drop-shadow(0 0 3px rgba(230, 196, 106, .14)); }
    to { filter: brightness(1.08) drop-shadow(0 10px 20px rgba(0, 0, 0, .62)) drop-shadow(0 0 13px rgba(230, 196, 106, .38)); }
}

@keyframes yvette-custom-event-float {
    from { transform: translateY(3px); filter: brightness(.96) drop-shadow(0 10px 20px rgba(0, 0, 0, .62)); }
    to { transform: translateY(-4px); filter: brightness(1.04) drop-shadow(0 13px 22px rgba(0, 0, 0, .66)); }
}

@keyframes yvette-snowfall {
    0% { opacity: 0; transform: translate3d(0, -12px, 0) rotate(0); }
    18% { opacity: .7; }
    82% { opacity: .55; }
    100% { opacity: 0; transform: translate3d(13px, 82px, 0) rotate(180deg); }
}

@keyframes yvette-clock-glow {
    from { filter: brightness(.92) drop-shadow(0 0 3px rgba(230, 196, 106, .15)); }
    to { filter: brightness(1.07) drop-shadow(0 0 13px rgba(230, 196, 106, .32)); }
}

@keyframes yvette-gold-spark {
    0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.45); }
    25% { opacity: .9; }
    70% { opacity: .55; }
    100% { opacity: 0; transform: translate3d(10px, -55px, 0) scale(1.25); }
}

@keyframes yvette-midnight-firework {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(.35);
    }
    14% {
        opacity: 1;
    }
    76% {
        opacity: .86;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(.7);
    }
}

@keyframes yvette-midnight-flash {
    from { opacity: .9; transform: scale(.35); }
    to { opacity: 0; transform: scale(1.35); }
}

@keyframes yvette-easter-shimmer {
    from { filter: brightness(.94) saturate(.9); }
    to { filter: brightness(1.08) saturate(1.08) drop-shadow(0 0 9px rgba(166, 195, 99, .22)); }
}

@keyframes yvette-spring-mote {
    0%, 100% { opacity: 0; transform: translate3d(-4px, 16px, 0) scale(.6); }
    35% { opacity: .75; }
    65% { opacity: .42; transform: translate3d(8px, -18px, 0) scale(1.1); }
}

@keyframes yvette-halloween-eyes {
    0% { opacity: .18; filter: brightness(.82); }
    24% { opacity: .48; filter: brightness(.94); }
    43% { opacity: .31; filter: brightness(.88); }
    68% { opacity: .78; filter: brightness(1.04); }
    82% { opacity: .42; filter: brightness(.92); }
    100% { opacity: .68; filter: brightness(1); }
}

@keyframes yvette-halloween-ember {
    0% { opacity: 0; transform: translate3d(0, 15px, 0) scale(.4); }
    30% { opacity: .68; }
    100% { opacity: 0; transform: translate3d(-9px, -38px, 0) scale(1); }
}

@keyframes yvette-halloween-mist {
    from { transform: translate3d(-9px, 1px, 0) scaleX(.95); }
    to { transform: translate3d(10px, -3px, 0) scaleX(1.05); }
}

@media (max-width: 767px) {
    .site-header__advent {
        width: clamp(210px, 47vw, 300px);
        opacity: .82;
    }

    .site-header__seasonal {
        width: clamp(185px, 43vw, 265px);
        opacity: .82;
    }

    .site-header__seasonal--christmas,
    .site-header__seasonal--new-year {
        width: clamp(175px, 40vw, 245px);
    }

    .site-header__seasonal-label {
        bottom: 5%;
        transform: translate(-50%, 0);
    }

    .site-header__custom-event {
        width: clamp(185px, 43vw, 265px);
        height: 160px;
        opacity: .86;
    }

    .site-header__custom-event > .header-event-motif {
        width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header__flame.is-lit {
        animation: none;
    }

    .site-header__seasonal *,
    .site-header__seasonal > img {
        animation: none !important;
    }

    .site-header__custom-event *,
    .site-header__custom-event > .header-event-motif {
        animation: none !important;
    }

    .site-header__halloween-lit {
        opacity: .62;
    }
}

.site-header__logo {
    flex: 0 0 45%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 20px;
}

.site-header__logo a {
    display: flex;
    align-items: center;
    width: min(100%, 450px);
}

.site-header__logo img {
    display: block;

    width: auto;
    height: auto;
    max-width: 450px;
    max-height: 210px;

    object-fit: contain;
    filter: brightness(1.04) saturate(1.05) drop-shadow(0 8px 18px rgba(0, 0, 0, .2));
}

.site-header__right {
    flex: 0 0 55%;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;

    padding-right: 20px;
}

.site-header__graphic {
    flex: 0 1 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 360px;
    margin-right: -40px;
}

.site-header__graphic > * {
    max-width: 100%;
}

.site-header__graphic img,
.site-header__graphic svg,
.site-header__graphic canvas,
.site-header__graphic video {
    display: block;

    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 150px;

    object-fit: contain;
}

/* =====================================
   Datum, Uhrzeit und Status
===================================== */

.site-header__hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 260px;

    text-align: center;
}

.site-header__date {
    margin-bottom: 2px;

    color: #E8E4DA;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.site-header__time {
    margin: 0;

    color: #E8E4DA;

    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}

.site-header__time span {
    margin-left: 2px;

    color: #E8E4DA;

    font-size: 40px;
    font-weight: 400;

    vertical-align: middle;
}

.site-header__status {
    margin-top: 2px;

    font-size: 30px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

/* =====================================
   Business Hours Indicator
===================================== */

.mb-bhi-open {
    color: #9FBF4A;
}

.mb-bhi-closed {
    color: #A63D3D;
}

.site-header__status .mb-bhi-display {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.site-header__status .mb-bhi-oc-text {
    color: inherit;
}

