/* fitstore24 Adventkalender – own classes use the fs24- prefix, max. border-radius 6px (SPEC 8.1).
   Shop look (www.fitstore24.com): system font stack, white logo bar, blue gradient nav and footer,
   square uppercase buttons. Christmas: night-blue hero with snowfall, doors as wrapped presents. */
:root {
    --fs24-orange: #F39200;
    --fs24-orange-dark: #d07d00;
    --fs24-red: #e30613;
    --fs24-blue: #0d5ea8;
    --fs24-shop-blue: #18a4de;
    --fs24-shop-navy: #005185;
    --fs24-shop-gradient: linear-gradient(331deg, var(--fs24-shop-navy) 0, var(--fs24-shop-blue) 100%);
    --fs24-night: #062c4a;
    --fs24-night-2: #0a3d63;
    --fs24-page-bg: #f4f7fa;
    --fs24-radius: 6px;
    --bs-border-radius: 6px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 6px;
    --bs-border-radius-xl: 6px;
    --bs-border-radius-xxl: 6px;
}

.fs24-body { background: var(--fs24-page-bg); color: #212529; }

/* Header */
.fs24-logo img { max-height: 43px; width: auto; }
.fs24-header-shop { color: #555; font-size: .75rem; white-space: nowrap; }
.fs24-header-shop:hover { color: var(--fs24-orange); }
.fs24-navbar { background: var(--fs24-shop-gradient); color: #fff; }
.fs24-navbar-brand { color: #fff; font-weight: 700; font-size: 1.35rem; display: inline-block; padding: .55rem 0; }
.fs24-navbar-brand:hover { color: #fff; opacity: .9; }

/* Fairy lights in the nav bar */
.fs24-navbar-lights { gap: .9rem; }
.fs24-navbar-lights span {
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--fs24-orange);
    box-shadow: 0 0 8px 2px rgba(243, 146, 0, .7);
    animation: fs24-twinkle 2.4s ease-in-out infinite;
}
.fs24-navbar-lights span:nth-child(3n+2) { background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); animation-delay: .8s; }
.fs24-navbar-lights span:nth-child(3n) { background: #ffd27a; box-shadow: 0 0 8px 2px rgba(255, 210, 122, .8); animation-delay: 1.6s; }
@keyframes fs24-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Preview bar */
.fs24-preview-bar { background: #ffe08a; }

/* Buttons: square, bold, uppercase – like the shop */
.btn { --bs-btn-border-radius: 0; }
.btn-lg { --bs-btn-border-radius: 0; }
.btn-sm { --bs-btn-border-radius: 0; }
.fs24-btn-cta {
    --bs-btn-bg: var(--fs24-orange);
    --bs-btn-border-color: var(--fs24-orange);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--fs24-orange-dark);
    --bs-btn-hover-border-color: var(--fs24-orange-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--fs24-orange-dark);
    --bs-btn-active-border-color: var(--fs24-orange-dark);
    --bs-btn-active-color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}
.fs24-btn-inverse {
    --bs-btn-bg: #fff;
    --bs-btn-color: var(--fs24-shop-blue);
    --bs-btn-border-color: var(--fs24-shop-blue);
    --bs-btn-hover-bg: var(--fs24-shop-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--fs24-shop-blue);
    --bs-btn-active-bg: var(--fs24-shop-navy);
    --bs-btn-active-color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

/* Secondary links: blue */
.fs24-link-secondary, .fs24-link-secondary:hover { color: var(--fs24-blue); }

.fs24-alert, .fs24-hint, .fs24-step, .fs24-mainprize, .fs24-voucher, .fs24-today-card, .fs24-prize-image, .fs24-product {
    border-radius: var(--fs24-radius);
}
.fs24-hint { background: #fff; border: 1px solid #e3e8ee; }

/* Section titles like the shop ("Unsere Top Marken"): centered, medium weight */
.fs24-section-title { text-align: center; font-weight: 500; font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 1.25rem; }
.fs24-section-title::after { content: "\2744"; display: block; color: var(--fs24-shop-blue); font-size: 1rem; margin-top: .25rem; }

.fs24-step { background: #fff; border: 1px solid #e3e8ee; text-align: center; }
.fs24-step .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #fff4e3;
    color: var(--fs24-orange);
}

/* Hero: winter night with snowfall */
.fs24-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 80% 0%, var(--fs24-night-2) 0%, var(--fs24-night) 60%, #041d31 100%);
    padding-bottom: 40px;
}
.fs24-hero .lead { color: rgba(255, 255, 255, .88); }
.fs24-hero-kicker { color: var(--fs24-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .35rem; }
.fs24-hero-title { font-weight: 700; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; }
.fs24-hero-link, .fs24-hero-link:hover { color: #9fdcf5; }
.fs24-hero-gift {
    font-size: 9rem;
    color: var(--fs24-orange);
    text-shadow: 0 0 40px rgba(243, 146, 0, .45);
    display: inline-block;
    animation: fs24-float 4s ease-in-out infinite;
}
@keyframes fs24-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.fs24-hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--fs24-page-bg); }
.fs24-hero .fs24-lots { color: #212529; }

.fs24-snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .85;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
        radial-gradient(3px 3px at 90px 120px, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 160px 60px, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 230px 170px, #fff 50%, transparent 51%),
        radial-gradient(2.5px 2.5px at 50px 200px, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 130px 10px, #fff 50%, transparent 51%);
    background-size: 250px 250px;
    animation: fs24-snowfall 18s linear infinite;
}
.fs24-snow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 40px 80px, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(2px 2px at 140px 150px, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(1px 1px at 100px 40px, rgba(255, 255, 255, .7) 50%, transparent 51%);
    background-size: 180px 180px;
    animation: fs24-snowfall-slow 30s linear infinite;
}
@keyframes fs24-snowfall { from { background-position: 0 0; } to { background-position: 60px 250px; } }
@keyframes fs24-snowfall-slow { from { background-position: 0 0; } to { background-position: -40px 180px; } }

/* Calendar grid: doors as wrapped presents */
.fs24-door {
    aspect-ratio: 1 / 1;
    border-radius: var(--fs24-radius);
    color: #fff;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
    box-shadow: 0 2px 6px rgba(6, 44, 74, .15);
}
.fs24-door:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 6px 14px rgba(6, 44, 74, .22); }
.fs24-door > * { position: relative; z-index: 1; }
.fs24-door-number { font-size: clamp(1.3rem, 4.5vw, 2.2rem); font-weight: 800; line-height: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.fs24-door-label { line-height: 1.15; font-size: .72rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.fs24-door--done .fs24-door-label { text-shadow: none; }

/* Ribbon: vertical + horizontal band */
.fs24-door > .fs24-door-ribbon { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fs24-door-ribbon::before, .fs24-door-ribbon::after { content: ""; position: absolute; background: rgba(255, 255, 255, .2); }
.fs24-door-ribbon::before { top: 0; bottom: 0; right: 22%; width: 12%; }
.fs24-door-ribbon::after { left: 0; right: 0; top: 30%; height: 12%; }

/* Future: night-blue present with snow dots */
.fs24-door--future {
    background:
        radial-gradient(1.5px 1.5px at 20% 70%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 55% 85%, rgba(255, 255, 255, .4) 50%, transparent 51%),
        radial-gradient(1px 1px at 40% 55%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        linear-gradient(160deg, var(--fs24-night-2), var(--fs24-night));
}
.fs24-grid > .col:nth-child(3n+2) .fs24-door--future {
    background:
        radial-gradient(1.5px 1.5px at 30% 75%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        radial-gradient(1px 1px at 60% 60%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        linear-gradient(160deg, #0a6aa8, var(--fs24-shop-navy));
}
.fs24-grid > .col:nth-child(4n+3) .fs24-door--future .fs24-door-ribbon::before,
.fs24-grid > .col:nth-child(4n+3) .fs24-door--future .fs24-door-ribbon::after { background: rgba(243, 146, 0, .55); }
.fs24-door--future .fs24-door-label { color: rgba(255, 255, 255, .75); font-weight: 400; }

/* Today: orange present, glowing */
.fs24-door--open { background: linear-gradient(160deg, #ffad33, var(--fs24-orange)); animation: fs24-glow 2.5s ease-in-out infinite; }
.fs24-door--open .fs24-door-ribbon::before, .fs24-door--open .fs24-door-ribbon::after { background: rgba(255, 255, 255, .5); }
@keyframes fs24-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(243, 146, 0, .6); } 50% { box-shadow: 0 0 0 7px rgba(243, 146, 0, 0); } }
.fs24-door--open.fs24-door--done { background: #fff; color: var(--fs24-orange-dark); border-color: var(--fs24-orange); animation: none; }
.fs24-door--open.fs24-door--done:hover { color: var(--fs24-orange-dark); }
.fs24-door--open.fs24-door--done .fs24-door-number { text-shadow: none; }

/* Past: prize image, dimmed */
.fs24-door--closed_pending_draw, .fs24-door--drawn {
    background: #9fb3c4 var(--fs24-door-image, none) center / cover no-repeat;
}
.fs24-door--closed_pending_draw::before, .fs24-door--drawn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 44, 74, .55);
    z-index: 0;
}

/* Mobile: today big on top */
.fs24-today-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #ffad33, var(--fs24-orange));
    color: #fff;
    box-shadow: 0 4px 14px rgba(243, 146, 0, .35);
}
.fs24-today-card > * { position: relative; }
.fs24-today-card::after {
    content: "\f3ec"; /* bi-gift */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 3.5rem;
    bottom: -1.75rem;
    font-size: 6rem;
    opacity: .18;
}
.fs24-today-card:hover { color: #fff; }
.fs24-today-card.fs24-door--done { background: #fff; color: var(--fs24-orange-dark); border: 2px solid var(--fs24-orange); box-shadow: none; }
.fs24-today-number { font-size: 3rem; font-weight: 800; line-height: 1; }

/* Main prize */
.fs24-mainprize {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 100% 0%, var(--fs24-night-2), var(--fs24-night) 70%);
    border-top: 4px solid var(--fs24-orange);
    padding-right: 7rem !important;
}
.fs24-mainprize-star {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4.5rem;
    color: var(--fs24-orange);
    text-shadow: 0 0 30px rgba(243, 146, 0, .6);
}
@media (max-width: 575.98px) {
    .fs24-mainprize { padding-right: 4.5rem !important; }
    .fs24-mainprize-star { font-size: 2.75rem; right: 1rem; }
}

/* FAQ in shop blue */
.fs24-faq .accordion-button:not(.collapsed) { background: #eaf6fc; color: var(--fs24-shop-navy); }

/* Voucher: red accent only here */
.fs24-voucher { background: #fff; border: 2px dashed var(--fs24-red); }
.fs24-voucher-label, .fs24-voucher-headline { color: var(--fs24-red); }
.fs24-voucher-code { font-size: 1.4rem; font-weight: 700; color: #222; background: #fff3f3; padding: .25rem .5rem; border-radius: 4px; }
.fs24-voucher--expired { border-color: #aaa; opacity: .7; }
.fs24-voucher--expired .fs24-voucher-label, .fs24-voucher--expired .fs24-voucher-headline { color: #777; }

.fs24-lots { background: #fff; border-left: 4px solid var(--fs24-orange); padding: .5rem .75rem; border-radius: 4px; }

/* Footer: shop gradient with snow edge */
.fs24-footer { background: var(--fs24-shop-gradient); color: #fff; }
.fs24-footer a { color: #fff; }
.fs24-footer a:hover { color: #fff; opacity: .8; }
.fs24-footer-snow {
    height: 12px;
    background: radial-gradient(circle at 10px 0, var(--fs24-page-bg) 9px, transparent 10px) repeat-x;
    background-size: 20px 12px;
}

@media (prefers-reduced-motion: reduce) {
    .fs24-snow, .fs24-snow::after, .fs24-navbar-lights span, .fs24-hero-gift, .fs24-door--open { animation: none; }
}

/* Honeypot */
.fs24-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Door sheet: bottom sheet on mobile, centered overlay on desktop */
@media (max-width: 767.98px) {
    .fs24-sheet .modal-dialog { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; max-width: none; }
    .fs24-sheet .modal-content { border-radius: var(--fs24-radius) var(--fs24-radius) 0 0; max-height: 92vh; }
    .fs24-sheet.fade .modal-dialog { transform: translateY(100%); }
    .fs24-sheet.show .modal-dialog { transform: none; }
}

/* Admin */
.fs24-admin-thumb { max-height: 200px; }
.fs24-preview-form { max-width: 420px; }
