/* css/f2l-advent.css
   Fusion2Life Adventskalender 2026 - külső oldal: menüpont, kezdőlapi doboz, rénszarvas hószánon (vissza a tetejére), teszt sáv.
   2026.11.26. Betű és méret a sablonból (Montserrat / Poppins, h3, .button) - itt csak színek, háttér és elrendezés.
   Csak akkor töltődik be, ha az advent látható (inc/f2l_advent_config.php, inc/config.php $advent_2026_public). */

/* ===================== Menüpont ===================== */
.mega-menu .menu-links > li.f2l-adv26-menu > a { color: #d12326; }
.mega-menu .menu-links > li.f2l-adv26-menu > a:hover,
.mega-menu .menu-links > li.f2l-adv26-menu > a:focus-visible { color: #1d2152; }
.mega-menu .menu-links > li.f2l-adv26-menu > a .fa { margin-right: 4px; }

/* ===================== Kezdőlapi doboz ===================== */
.adv26-home { position: relative; z-index: 2; padding: 30px 0 10px; }

.adv26-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #dfe3f6;
    background:
        radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, .85) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 28% 78%, rgba(255, 255, 255, .6) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 46% 14%, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(1.1px 1.1px at 63% 64%, rgba(255, 255, 255, .55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 81% 26%, rgba(255, 255, 255, .75) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 93% 72%, rgba(255, 255, 255, .6) 50%, transparent 51%),
        radial-gradient(120% 140% at 100% 0%, #2d3489 0%, #1d2152 48%, #11143a 100%);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(17, 20, 58, .22);
}

.adv26-box--home { padding: 28px 32px 34px; }

/* arany szegély felül, mint egy szalag */
.adv26-box::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #d12326 0%, #f6c33b 50%, #d12326 100%);
}

.adv26-box__bild {
    position: relative;
    flex: none;
    width: 210px;
}

.adv26-box__rahmen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 210px;
    overflow: hidden;
    background: #fff;
    border: 5px solid #f6c33b;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 10px 22px rgba(0, 0, 0, .35);
}

.adv26-box__rahmen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.adv26-box__ikon { display: flex; color: #d12326; }
.adv26-box__geschenk { width: 96px; height: 96px; }

.adv26-box__nr {
    position: absolute;
    top: -12px;
    left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #d12326;
    border: 3px solid #f6c33b;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.adv26-box__text { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }

.adv26-box .adv26-box__marke {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f6c33b;
}

.adv26-box__tag { display: inline-flex; align-items: center; gap: 12px; color: #c9cdea; }
.adv26-box__tag::before { content: ''; width: 1px; height: 13px; background: #f6c33b; }

.adv26-box .adv26-box__titel { margin: 0 0 10px; color: #fff !important; text-transform: none; } /* gym.css: h1-h6 { color: #1d2152 !important; text-transform: capitalize } */
.adv26-box .adv26-box__lead { max-width: 640px; margin: 0 0 14px; color: #dfe3f6; }

.adv26-box .adv26-box__gueltig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 5px 12px;
    font-weight: 600;
    color: #1d2152;
    background: #f6c33b;
    border-radius: 30px;
}

.adv26-box__gueltig svg { flex: none; }

.adv26-box__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.adv26-box__btns .button + .button { margin-left: 0; }
.adv26-box--home .adv26-box__cta .fa { margin-left: 6px; }
.adv26-box--home .adv26-box__cta:hover,
.adv26-box--home .adv26-box__cta:focus { color: #d12326; background: #fff; border-color: #fff; }

.adv26-box .adv26-box__btns a:focus-visible {
    outline: 3px solid #f6c33b !important; /* typography.css: a { outline: none !important } */
    outline-offset: 3px;
}

/* díszek a doboz jobb felső sarkában (asztali nézet) */
.adv26-box__deko { position: absolute; top: 0; right: 36px; width: 220px; height: 170px; pointer-events: none; }
.adv26-box__deko svg { display: block; width: 100%; height: 100%; }
@media (max-width: 1199px) { .adv26-box__deko { right: 12px; width: 160px; height: 124px; opacity: .6; } }
@media (max-width: 991px) { .adv26-box__deko { display: none; } }
/* MÓDOSÍTÁS 2026.11.27. - hosszú cím (pl. 1. ablak) ne fusson a díszgömbök alá */
@media (min-width: 1200px) { .adv26-box__text { padding-right: 230px; } }
@media (min-width: 992px) and (max-width: 1199px) { .adv26-box__text { padding-right: 150px; } }

/* 24 ablak - kis sáv a doboz alján (elmúlt / mai / zárt) */
.adv26-box__leiste {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 12px;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.adv26-box__leiste li { flex: 1 1 0; height: 4px; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.adv26-box__leiste li.is-offen { background: rgba(246, 195, 59, .55); }
.adv26-box__leiste li.is-heute { background: #d12326; box-shadow: 0 0 6px rgba(209, 35, 38, .9); }

.adv26-box--vorher .adv26-box__leiste { display: none; }

@media (max-width: 991px) {
    .adv26-box__bild, .adv26-box__rahmen { width: 170px; }
    .adv26-box__rahmen { height: 170px; }
}

@media (max-width: 767px) {
    .adv26-home { padding-top: 24px; }
    .adv26-box--home { flex-direction: column; align-items: flex-start; gap: 22px; padding: 26px 20px 30px; }
    .adv26-box__leiste { left: 20px; right: 20px; }
    .adv26-box__bild { margin-left: 10px; }
    .adv26-box__btns .button { flex: 1 1 auto; }
}

/* ===================== Rénszarvas hószánon (vissza a tetejére) ===================== */
body.f2l-adv26-rentier-an #back-to-top { display: none !important; } /* a JS teszi a body-ra, ha a rénszarvas tényleg ott van */
body.f2l-adv26--rentier .bw26-katze { display: none !important; } /* a Black Weekend macska helyett */

.adv26-rentier {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 990;
    width: 128px;
    height: 86px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    visibility: hidden;
    transform: translateX(170%);
    transition: transform 1.1s cubic-bezier(.25, .7, .3, 1), visibility 0s linear 1.1s;
}

.adv26-rentier.is-da {
    visibility: visible;
    transform: none;
    transition: transform 1.1s cubic-bezier(.25, .7, .3, 1), visibility 0s;
}

.adv26-rentier.is-ohne { transition: none !important; }

@media (max-width: 767px) {
    .adv26-rentier { right: 6px; bottom: 74px; width: 102px; height: 68px; }
}

.adv26-rentier__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 3px 5px rgba(0, 0, 0, .28));
}

.adv26-rentier.is-weg .adv26-rentier__svg { transform: scaleX(-1); }

.adv26-rentier__tipp {
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 6px;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    background: #1d2152;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease;
    pointer-events: none;
}

.adv26-rentier:hover .adv26-rentier__tipp,
.adv26-rentier:focus-visible .adv26-rentier__tipp { opacity: 1; }

.adv26-rentier.is-faehrt .adv26-rentier__tipp,
.adv26-rentier.is-faehrt .adv26-r-pfeil { opacity: 0; }

.adv26-rentier:focus-visible {
    outline: 3px solid #f6c33b !important;
    outline-offset: 3px;
}

.adv26-r-pfeil { transition: opacity .2s ease; }
.adv26-r-schnee { opacity: 0; transition: opacity .3s ease; }
.adv26-rentier.is-faehrt .adv26-r-schnee { opacity: 1; }
.adv26-r-flocke { transform-box: fill-box; transform-origin: center; }
.adv26-r-kopf { transform-box: view-box; transform-origin: 50px 42px; }
.adv26-r-schal { transform-box: view-box; transform-origin: 63px 45px; }
.adv26-r-auge { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
    .adv26-rentier.is-faehrt .adv26-r-schlitten,
    .adv26-rentier.is-faehrt .adv26-r-tier { animation: adv26-rumpel .22s ease-in-out infinite alternate; }
    .adv26-rentier.is-faehrt .adv26-r-schal { animation: adv26-schal .3s ease-in-out infinite alternate; }
    .adv26-rentier.is-faehrt .adv26-r-f1 { animation: adv26-stieben .6s linear infinite; }
    .adv26-rentier.is-faehrt .adv26-r-f2 { animation: adv26-stieben .6s linear infinite -.15s; }
    .adv26-rentier.is-faehrt .adv26-r-f3 { animation: adv26-stieben .6s linear infinite -.3s; }
    .adv26-rentier.is-faehrt .adv26-r-f4 { animation: adv26-stieben .6s linear infinite -.45s; }
    .adv26-rentier.is-faehrt .adv26-r-f5 { animation: adv26-stieben .6s linear infinite -.22s; }
    .adv26-rentier.is-ruht .adv26-r-kopf { animation: adv26-nicken 2.6s ease-in-out 2 .3s; }
    .adv26-rentier.is-ruht .adv26-r-auge { animation: adv26-blinzeln 3.8s ease-in-out 2 .9s; }
    .adv26-rentier.is-ruht .adv26-r-schal { animation: adv26-schal 1.4s ease-in-out 3 alternate; }
    .adv26-rentier:hover .adv26-r-kopf { animation: adv26-nicken 1.2s ease-in-out infinite; }

    /* 2026.11.30. - kattintásra (a lap tetejére visz) ünnepélyesen kivonul jobbról balra, a képernyő bal szélén túl */
    .adv26-rentier.is-zieht {
        visibility: visible;
        transform: translateX(calc(-100vw - 40px));
        transition: transform 3.2s cubic-bezier(.42, 0, .5, 1), visibility 0s;
    }
    .adv26-rentier.is-zieht .adv26-rentier__svg { animation: adv26-hopsen .55s ease-in-out infinite alternate; }
    .adv26-rentier.is-zieht .adv26-r-kopf { animation: adv26-nicken .9s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
    .adv26-rentier {
        opacity: 0;
        transform: none;
        transition: opacity .3s ease, visibility 0s linear .3s;
    }

    .adv26-rentier.is-da {
        opacity: 1;
        transition: opacity .3s ease, visibility 0s;
    }

    .adv26-rentier.is-weg .adv26-rentier__svg { transform: none; }
}

@keyframes adv26-hopsen {
    from { transform: translateY(0) rotate(0); }
    to { transform: translateY(-5px) rotate(-1.5deg); }
}

@keyframes adv26-rumpel {
    from { transform: translateY(0); }
    to { transform: translateY(-1.6px); }
}

@keyframes adv26-schal {
    from { transform: rotate(-4deg) scaleX(1); }
    to { transform: rotate(5deg) scaleX(1.08); }
}

@keyframes adv26-stieben {
    0% { transform: translate(0, 0) scale(1); opacity: .95; }
    100% { transform: translate(16px, -9px) scale(.3); opacity: 0; }
}

@keyframes adv26-nicken {
    0%, 100% { transform: rotate(0); }
    30% { transform: rotate(-6deg); }
    60% { transform: rotate(3deg); }
}

@keyframes adv26-blinzeln {
    0%, 44%, 50%, 100% { transform: scaleY(1); }
    47% { transform: scaleY(.1); }
}

/* ===================== Teszt sáv (csak a tesztelő látja, $advent_2026_public = 0) ===================== */
.adv26-test {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 991;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    max-width: calc(100vw - 150px);
    padding: 6px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
    background: rgba(29, 33, 82, .94);
    border-left: 4px solid #f6c33b;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.adv26-test__badge { font-weight: 700; letter-spacing: .5px; color: #f6c33b; }
.adv26-test__form { display: flex; align-items: center; gap: 6px; margin: 0; }
.adv26-test__form label { display: flex; align-items: center; gap: 6px; margin: 0; color: #fff; }
.adv26-test__form select { height: 28px; max-width: 220px; padding: 0 6px; font-size: 12px; color: #1d2152; background: #fff; border: 0; border-radius: 3px; }
.adv26-test__form button { height: 28px; padding: 0 10px; font-size: 12px; font-weight: 700; color: #1d2152; background: #f6c33b; border: 0; border-radius: 3px; cursor: pointer; }
/* 2026.11.30. - fejlesztői sáv: popup újra, vissza a valós időre, figyelmeztetés (ha teszt-nap van kiválasztva) */
.adv26-test__btn { height: 28px; padding: 0 10px; font-size: 12px; font-weight: 700; color: #fff; background: #d12326; border: 0; border-radius: 3px; cursor: pointer; }
.adv26-test__reset { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12px; font-weight: 700; color: #1d2152 !important; background: #fff; border-radius: 3px; text-decoration: none !important; }
.adv26-test__warn { flex: 1 1 100%; font-weight: 600; color: #ffd27a; }
.adv26-test--aktiv { border-left-color: #d12326; background: rgba(120, 14, 20, .95); }

@media (max-width: 767px) {
    .adv26-test { position: relative; left: auto; bottom: auto; max-width: none; margin: 0; border-radius: 0; padding: 10px 12px 80px; } /* mobilon a lap legalján, a helyén (nem takar semmit) */
}

/* ===================== 2026.11.30. - popup (a Black Week popupja mintájára): előszakasz = teaser, dec. 1-24. = kalendárium ===================== */
.adv26-popup:not([open]) { display: none; }

.adv26-popup {
    width: min(92vw, 470px);
    max-width: none;
    max-height: calc(100vh - 24px);
    margin: auto;
    padding: 0;
    color: #eef0fb;
    background: transparent;
    border: 0;
    overflow: auto;
    overscroll-behavior: contain;
    font: inherit;
}

.adv26-popup::backdrop {
    background: rgba(12, 14, 40, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.adv26-popup { transition: opacity .35s ease-out; }
.adv26-popup[open] { opacity: 1; }
@starting-style { .adv26-popup[open] { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
    .adv26-popup { transition: opacity .35s ease-out, transform .45s cubic-bezier(.2, .8, .2, 1); }
    .adv26-popup[open] { transform: none; }
    @starting-style { .adv26-popup[open] { transform: translateY(16px) scale(.98); } }
    .adv26-popup[open] .adv26-p-kopf { animation: adv26-p-nick 3.6s ease-in-out 1s infinite; transform-origin: 52px 34px; }
    @keyframes adv26-p-nick { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-7deg); } 88% { transform: rotate(3deg); } }
}

.adv26-popup__inner { position: relative; padding-top: 92px; }

.adv26-popup__tier {
    position: absolute;
    top: 0;
    right: 26px;
    z-index: 2;
    width: 150px;
    height: auto;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}

.adv26-popup__card {
    position: relative;
    overflow: hidden;
    padding: 30px 28px 28px;
    border-radius: 8px;
    background:
        radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, .85) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 28% 62%, rgba(255, 255, 255, .55) 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 46% 30%, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 64% 78%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 82% 44%, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 92% 86%, rgba(255, 255, 255, .55) 50%, transparent 51%),
        radial-gradient(130% 95% at 88% 0%, #2d3489 0%, #1d2152 46%, #11143a 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.adv26-popup__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d12326 0%, #f6c33b 50%, #d12326 100%);
}

.adv26-popup__text { position: relative; z-index: 1; }

.adv26-popup__x-form { position: absolute; top: 12px; right: 12px; z-index: 3; margin: 0; }

.adv26-popup .adv26-popup__x {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #dfe3f6;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    cursor: pointer;
}

.adv26-popup .adv26-popup__x:hover,
.adv26-popup .adv26-popup__x:focus-visible { color: #1d2152; background: #f6c33b; border-color: #f6c33b; }

.adv26-popup__marke {
    margin: 0 0 10px;
    padding-right: 40px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f6c33b;
}

.adv26-popup .adv26-popup__titel {
    margin: 0 0 10px;
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.12;
    font-weight: 800;
    color: #ffffff !important;
    text-transform: none;
}

.adv26-popup__lead { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #d4d8f2; }

.adv26-cd-box { margin: 0 0 20px; }
.adv26-cd-box[hidden] { display: none; }
.adv26-cd-titel { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9aed8; }
.adv26-cd { display: flex; gap: 8px; }
.adv26-cd__teil {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 4px 7px;
    text-align: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
}
.adv26-cd__zahl { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; color: #ffffff; font-variant-numeric: tabular-nums; }
.adv26-cd__einheit { display: block; margin-top: 2px; font-size: 11px; color: #a9aed8; }

.adv26-popup__aktion { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adv26-popup__zu { margin: 0; }

.adv26-popup .adv26-pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 12px 22px;
    font-weight: 700;
    color: #ffffff;
    background: #d12326;
    border: 1px solid #d12326;
    border-radius: 4px;
    text-decoration: none;
}

.adv26-popup .adv26-pbtn:hover,
.adv26-popup .adv26-pbtn:focus-visible { color: #1d2152; background: #f6c33b; border-color: #f6c33b; }

.adv26-popup .adv26-pbtn--leise { color: #dfe3f6; background: transparent; border-color: rgba(255, 255, 255, .3); }
.adv26-popup .adv26-pbtn--leise:hover,
.adv26-popup .adv26-pbtn--leise:focus-visible { color: #1d2152; background: #ffffff; border-color: #ffffff; }

@media (max-width: 480px) {
    .adv26-popup__inner { padding-top: 78px; }
    .adv26-popup__tier { width: 124px; right: 16px; }
    .adv26-popup__card { padding: 26px 20px 22px; }
    .adv26-popup .adv26-pbtn { flex: 1 1 auto; }
}
