/* Feestsfeer (kerst en eindejaar) - enkel geladen tussen 1 december en 6 januari, zie sidebar.ascx.
   Alles hangt aan body.feest, dus zonder dit bestand verandert er niets. */

body.feest { position: relative; }

/* 1. Lichtjesslinger: dunne draad met warmwitte lampjes over de volle breedte (ook boven de zijbalk) */
.feest-slinger {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 44px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}
.feest-slinger svg { display: block; width: 100%; height: 44px; }
.feest-slinger .draad { fill: none; stroke: #24403a; stroke-opacity: .85; stroke-width: 1.5; }
.feest-slinger .fitting { fill: #24403a; }
.feest-slinger .lamp { animation: feest-lamp 3s ease-in-out infinite; }
.feest-slinger .gloed { fill: url(#feest-gloed); }
.feest-slinger .peer { fill: #f5a623; }
.feest-slinger .lamp.rood .peer { fill: #e8545a; }
.feest-slinger .lamp.rood .gloed { fill: url(#feest-gloed-rood); }
.feest-slinger .glans { fill: #fff; fill-opacity: .6; }
@keyframes feest-lamp {
    0%, 100% { opacity: 1; }
    50%      { opacity: .55; }
}

/* 2. Sneeuw: lichtblauwe vlokjes (wit zie je niet op de witte site) */
.feest-sneeuw {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9000;
}
.feest-sneeuw i {
    position: absolute;
    top: -30px;
    font-style: normal;
    line-height: 1;
    color: #a9cbe3;
    text-shadow: 0 0 2px rgba(255, 255, 255, .9);
    animation: feest-val linear infinite;
    will-change: transform;
}
.feest-sneeuw i b {
    display: block;
    font-weight: normal;
    color: inherit;
    animation: feest-zwaai ease-in-out infinite alternate;
}
@keyframes feest-val {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(100vh + 60px)); }
}
@keyframes feest-zwaai {
    from { transform: translateX(-14px) rotate(0deg); }
    to   { transform: translateX(14px) rotate(120deg); }
}

/* 3. Kop en zijbalk: boompje naast de stadsnaam, hulst bij Menu */
body.feest #header .logo strong:after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1.45em;
    margin-left: .45em;
    vertical-align: -0.3em;
    background: url("/images/feest/kerstboom-klein.svg") no-repeat center bottom / contain;
}

body.feest #sidebar { background-color: #f7f5f1; }
body.feest #sidebar #menu > header.major h2:after {
    content: "";
    display: inline-block;
    width: 1.5em;
    height: 1em;
    margin-left: .4em;
    vertical-align: -0.1em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cpath d='M22 20C14 22 6 18 2 10c5 1 7-2 9-5 2 4 5 5 9 4-1 4 0 7 2 11z' fill='%232a7d4f'/%3E%3Cpath d='M26 20c8 2 16-2 20-10-5 1-7-2-9-5-2 4-5 5-9 4 1 4 0 7-2 11z' fill='%23358f5c'/%3E%3Ccircle cx='20' cy='23' r='4' fill='%23d62839'/%3E%3Ccircle cx='28' cy='23' r='4' fill='%23e63946'/%3E%3Ccircle cx='24' cy='17' r='4' fill='%23c1121f'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 4 en 5. Banner op de homepage */
.feest-banner {
    position: relative;
    overflow: hidden;
    margin: 0 0 2em 0;
    padding: 1.6em 1.8em 1.5em 1.8em;
    min-height: 13em;
    border-radius: 10px;
    color: #fdf8ec;
    background: #14402c linear-gradient(135deg, #14402c 0%, #1d5a3c 55%, #7a1626 140%);
    box-shadow: 0 6px 18px rgba(20, 64, 44, .18);
}
.feest-banner.is-wens,
.feest-banner.is-nieuwjaar {
    background: #13203f linear-gradient(135deg, #13203f 0%, #23366b 60%, #5b2a6e 140%);
    box-shadow: 0 6px 18px rgba(19, 32, 63, .2);
}
.feest-banner .feest-kicker {
    margin: 0 0 .35em 0;
    font-size: .8em;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f4c95d;
}
.feest-banner .feest-titel {
    margin: 0 0 .45em 0;
    font-size: 1.55em;
    line-height: 1.25;
    color: #fff;
}
.feest-banner .feest-tekst {
    margin: 0 0 1.1em 0;
    max-width: 44em;
    line-height: 1.6;
    color: #f1ead9;
}
.feest-banner .feest-knop {
    display: inline-block;
    padding: .55em 1.3em;
    border: 0;
    border-radius: 6px;
    background: #f4c95d;
    color: #1f2a1f !important;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.feest-banner .feest-knop:hover { background: #ffd978; transform: translateY(-1px); }
.feest-banner .feest-inhoud { position: relative; z-index: 1; padding-right: 17em; }

/* versiering rechts: kerstboom met lichtjes, of sterretjes */
.feest-banner .feest-deco {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 19em;
    pointer-events: none;
}
.feest-banner .feest-boom { position: absolute; right: 1.6em; bottom: .9em; height: 11.5em; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.feest-banner .feest-boom2 { position: absolute; right: 9.6em; bottom: .9em; height: 7.5em; width: auto; opacity: .95; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25)); }
.feest-banner .feest-ster {
    position: absolute;
    color: #f4c95d;
    font-size: 1em;
    line-height: 1;
    animation: feest-flonker 2.4s ease-in-out infinite;
}
@keyframes feest-flonker {
    0%, 100% { opacity: .25; transform: scale(.7); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

@media screen and (max-width: 736px) {
    .feest-banner { padding: 1.3em 1.2em; }
    .feest-banner .feest-titel { font-size: 1.3em; padding-right: 3.4em; }
    .feest-banner .feest-inhoud { padding-right: 0; }
    .feest-banner .feest-deco { width: 5em; }
    .feest-banner .feest-boom { height: 5em; right: .6em; top: .7em; bottom: auto; }
    .feest-banner .feest-boom2 { display: none; }
    .feest-banner:not(.is-nieuwjaar) .feest-ster { display: none; }
}

/* Wie minder beweging wil: geen sneeuw en geen geflikker */
@media (prefers-reduced-motion: reduce) {
    .feest-sneeuw { display: none; }
    .feest-slinger .lamp,
    .feest-banner .feest-ster { animation: none; }
}
@media print {
    .feest-sneeuw, .feest-slinger, .feest-banner { display: none !important; }
}
