/*
 * Thema's voor feestdagen en acties. Alleen geladen als er een thema actief is; --theme is de
 * themakleur (uit het beheer). Knoppen en prijzen blijven in het merkrood: het thema kleurt
 * alleen de accentlijntjes, het figuurtje bij het logo, de balk en de effecten.
 */

/* De themakleur zet site.js uit data-theme-color (inline stijl mag niet van de CSP); zonder JavaScript het merkrood. */
:root { --theme: var(--accent); }

/* ---- Accentlijntjes in de themakleur ---- */
.has-theme .home-sec-grid, .has-theme .showcase-head, .has-theme .page-head .container,
.has-theme .price-box, .has-theme .specs, .has-theme .contact-card {
    background: linear-gradient(var(--theme), var(--theme)) left top / 3rem 2px no-repeat, linear-gradient(#e3dfd6, #e3dfd6) left top / 100% 1px no-repeat;
}
.has-theme .sec-label, .has-theme .eyebrow-dark, .has-theme .link-arrow span { color: var(--theme); }
.has-theme .site-footer { border-top-color: var(--theme); }
.has-theme .scroll-hint i::after { background: var(--theme); }

/* ---- Aankondigingsbalk bovenin ---- */
.theme-banner { padding: .5rem 1rem; font-size: .9rem; text-align: center; line-height: 1.35; }
.theme-banner a { color: inherit; text-decoration: none; }
.theme-banner a:hover { text-decoration: underline; text-underline-offset: .25em; }
.theme-banner-accent { background: var(--theme); color: #fff; }
.theme-banner-dark { background: #1d1f1e; color: #fff; }
.theme-banner-dark span[aria-hidden] { color: var(--theme); }
.theme-banner-light { background: #fff; color: var(--text); border-bottom: 1px solid #e8e4dc; }
.theme-banner-light span[aria-hidden] { color: var(--theme); }
/* Op de voorpagina zweeft de kop over de grote foto; de balk krijgt daar altijd een eigen achtergrond. */
.page-home .site-header .theme-banner { position: relative; z-index: 1; }

/* ---- Figuurtje naast het logo ---- */
.brand { position: relative; }
.theme-badge { position: absolute; right: -14px; top: -2px; width: 30px; height: 30px; rotate: 12deg; pointer-events: none; animation: themeBadgeIn .8s var(--ease) both .3s; }
.theme-badge svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15)); }
.theme-badge-sale {
    width: auto; height: auto; top: 0; right: -22px; padding: .2rem .45rem; border-radius: 2px;
    background: var(--theme); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .08em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}@keyframes themeBadgeIn { from { opacity: 0; scale: .4; rotate: -20deg; } to { opacity: 1; scale: 1; rotate: 12deg; } }

/* ---- Groet onderaan ---- */
.theme-greeting { margin: 0 auto 1.6rem !important; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 1.15rem; font-weight: 300; letter-spacing: -.01em; }

/* ---- Vallende sneeuw, pepernoten, blaadjes en confetti (themes.js), alleen in het eerste scherm ---- */
.theme-fall { position: absolute; inset: 0 0 auto; height: 100vh; overflow: hidden; pointer-events: none; z-index: 9; }
.theme-fall i { position: absolute; top: -40px; display: block; animation: themeFall linear infinite; will-change: transform; }
.theme-fall-once i { animation-iteration-count: 1; animation-fill-mode: forwards; }
.theme-fall .flake { width: 7px; height: 7px; border-radius: 50%; background: #c9d8e6; box-shadow: 0 0 4px rgba(150, 180, 210, .6); opacity: .85; }
.page-home .theme-fall .flake { background: #fff; }
.theme-fall .noot { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c27a38, #94561f); box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .2); }
.theme-fall .leaf { width: 14px; height: 14px; border-radius: 0 70% 0 70%; background: #d9822b; }
.theme-fall .leaf:nth-child(3n) { background: #b8541c; }
.theme-fall .leaf:nth-child(3n+1) { background: #c99a2e; }
.theme-fall .bit { width: 7px; height: 11px; border-radius: 1px; }
@keyframes themeFall {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(var(--sway, 20px), 52vh, 0) rotate(180deg); }
    100% { transform: translate3d(0, 105vh, 0) rotate(360deg); }
}

/* ---- Spinnetje aan een draadje, rechtsboven onder de kop ---- */
.theme-spider { position: absolute; top: 0; right: 7vw; z-index: 9; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: themeSpiderDrop 2.2s var(--ease) both .8s; }
.theme-spider::before { content: ""; width: 1px; height: var(--thread, 110px); background: rgba(29, 31, 30, .35); }
.theme-spider svg { width: 24px; height: 24px; pointer-events: auto; cursor: pointer; animation: themeSpiderBob 3.4s ease-in-out infinite 3s; transition: translate .6s var(--ease); }
.theme-spider.is-up { --thread: 10px; }
.theme-spider.is-up::before { transition: height .6s var(--ease); }
.theme-spider { color: #1d1f1e; }
/* Op de donkere foto van de voorpagina: een licht spinnetje. */
.page-home .theme-spider { color: #f2efe8; }
.page-home .theme-spider::before { background: rgba(255, 255, 255, .55); }
@keyframes themeSpiderDrop { from { translate: 0 -140px; } to { translate: 0 0; } }
@keyframes themeSpiderBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }

/* ---- Verstopte paaseitjes ---- */
.theme-egg-spot { position: relative; }
.theme-egg { position: absolute; z-index: 2; width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; transition: scale .2s; }
.theme-egg svg { display: block; width: 100%; height: 100%; }
.theme-egg:hover { animation: themeWiggle .5s ease-in-out; }
.theme-egg.is-found { scale: 0; transition: scale .35s var(--ease); }
.theme-egg-toast {
    position: fixed; left: 50%; bottom: 1.5rem; z-index: 40; translate: -50% 0; padding: .6rem 1.1rem; border-radius: 99px;
    background: #1d1f1e; color: #fff; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: themeToast 2.6s var(--ease) both;
}
@keyframes themeWiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -12deg; } 75% { rotate: 12deg; } }
@keyframes themeToast { 0% { opacity: 0; translate: -50% 10px; } 12%, 80% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% 0; } }

@media (max-width: 720px) {
    .theme-badge { right: -10px; width: 24px; height: 24px; }
    .theme-badge-sale { right: -18px; }
    .theme-spider { right: 18vw; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-badge, .theme-spider, .theme-spider svg { animation: none; }
    .theme-fall { display: none; }
}
