/* =====================================================================
   Sæsontemaer (indlæses kun, når et tema er aktivt)
   Jul, nytår, påske og Black Friday – styres fra admin under Tema
   ===================================================================== */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

body { --tb-board: #002038; --tb-dot: rgba(255, 255, 255, .9); --tb-dot2: rgba(255, 255, 255, .55); --tb-bar: var(--tag); --tb-bar-ink: #fff; --tb-bar2: #f4f7fa; --tb-bar2-ink: var(--navy); }
.theme-blackfriday { --tb-board: #0c0c0e; --tb-dot: rgba(234, 121, 0, .55); --tb-dot2: rgba(255, 255, 255, .18); }
.theme-nytaar { --tb-board: #001629; --tb-dot: rgba(255, 209, 102, .85); --tb-dot2: rgba(234, 121, 0, .6); }
.theme-paaske { --tb-dot: rgba(246, 213, 92, .8); --tb-dot2: rgba(124, 197, 118, .7); }

/* ---------- Bånd øverst på alle sider ---------- */
.theme-top { background: #b3001b; color: #fff; font-size: .92rem; position: relative; z-index: 51; }
.theme-top[hidden] { display: none; }
.theme-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.theme-top p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.theme-top a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.theme-top-mark { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #fff; box-shadow: inset 0 -5px 0 #e9eef3; }
.theme-top-close { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: inherit; cursor: pointer; }
.theme-top-close:hover { background: rgba(255, 255, 255, .26); }
.theme-top-close .icon { width: 16px; height: 16px; }
.theme-nytaar .theme-top { background: linear-gradient(90deg, #001629, #1b4467 50%, #001629); }
.theme-nytaar .theme-top-mark { background: conic-gradient(#ffd166, #EA7900, #7af0ff, #ffd166); box-shadow: none; }
.theme-paaske .theme-top { background: #f6d55c; color: #2b2300; }
.theme-paaske .theme-top-mark { background: #7cc576; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; box-shadow: inset 0 -4px 0 #fff; }
.theme-paaske .theme-top-close { background: rgba(0, 0, 0, .08); }
.theme-blackfriday .theme-top { background: #0c0c0e; color: #fff; border-bottom: 2px solid var(--tag); }
.theme-blackfriday .theme-top a { color: var(--tag); }
.theme-blackfriday .theme-top-mark { background: var(--tag); border-radius: 3px; box-shadow: none; transform: rotate(45deg) scale(.8); }

/* ---------- Banneret på forsiden ---------- */
.tb { padding: clamp(28px, 5vw, 56px) 0 0; }
.tb-board {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 3vw, 40px);
  padding: clamp(26px, 4.5vw, 56px); border-radius: 22px; background: var(--tb-board); color: #fff;
  box-shadow: 0 30px 60px -36px rgba(0, 32, 56, .7), inset 0 0 0 6px rgba(255, 255, 255, .9), inset 0 0 0 7px rgba(0, 0, 0, .15);
}
/* Prikkerne fra facadebanneret (sne til jul, guld til nytår, pastel til påske) */
.tb-sky {
  position: absolute; inset: -40px 0 0; pointer-events: none;
  background-image:
    radial-gradient(circle, var(--tb-dot) 0 4px, transparent 4.6px),
    radial-gradient(circle, var(--tb-dot2) 0 2.6px, transparent 3.2px),
    radial-gradient(circle, var(--tb-dot) 0 3px, transparent 3.6px);
  background-size: 86px 92px, 53px 61px, 131px 117px;
  background-position: 0 0, 22px 31px, 61px 12px;
}
.has-fx.theme-jul .tb-sky { animation: tbSnow 22s linear infinite; }
@keyframes tbSnow { to { background-position: 0 92px, 22px 153px, 61px 129px; } }
.tb-copy { position: relative; z-index: 1; }
.tb-brand { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 clamp(18px, 3vw, 30px); }
.tb-brand img { width: clamp(110px, 14vw, 150px); height: auto; }
.tb-brand span { font: 700 clamp(1.1rem, 1.8vw, 1.4rem)/1 "Caveat", cursive; margin-top: 4px; opacity: .95; }
.tb-h { display: grid; justify-items: start; gap: 10px; margin: 0 0 12px; font: 400 1rem/1 "Bebas Neue", "Poppins", sans-serif; letter-spacing: .01em; }
.tb-bar1, .tb-bar2 { display: inline-block; padding: .12em .32em .02em; }
.tb-bar1 { background: var(--tb-bar); color: var(--tb-bar-ink); font-size: clamp(2.6rem, 6.4vw, 4.8rem); transform: rotate(-3deg); margin-left: -6px; box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .15); }
.tb-bar2 { background: var(--tb-bar2); color: var(--tb-bar2-ink); font-size: clamp(1.9rem, 4.4vw, 3.3rem); transform: rotate(-1deg); margin-left: -2px; }
.tb-script { margin: 4px 0 clamp(18px, 3vw, 28px) 18%; }
.tb-script span { display: inline-block; padding: 4px 16px 2px; background: var(--tb-bar); color: #fff; font: 700 clamp(1.35rem, 2.6vw, 1.9rem)/1.15 "Caveat", cursive; transform: rotate(-2deg); }
.tb-btn { position: relative; }
.tb-btn .icon { transform: rotate(-90deg); }
.theme-blackfriday .tb-btn .icon { transform: none; }
.tb-art { position: relative; z-index: 1; }
.tb-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .45)); }
.tb-circle {
  position: absolute; right: -2%; bottom: -4%; display: grid; place-items: center; width: clamp(108px, 13vw, 150px); aspect-ratio: 1; margin: 0; padding: 12px;
  border-radius: 50%; background: var(--tag); color: #fff; text-align: center; font: 700 clamp(1.15rem, 1.9vw, 1.5rem)/1.05 "Caveat", cursive; transform: rotate(-8deg);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
}
.has-fx .tb-circle { animation: tbWobble 4s ease-in-out infinite; }
@keyframes tbWobble { 50% { transform: rotate(4deg) scale(1.04); } }
.has-fx .tb-float { animation: tbFloat 5s ease-in-out infinite; }
@keyframes tbFloat { 50% { transform: translateY(-8px); } }
.has-fx .tb-swing { animation: tbSwing 3.2s ease-in-out infinite; }
@keyframes tbSwing { 50% { transform: rotate(8deg); } }
.has-fx .tb-led { animation: tbLed 2.4s ease-in-out infinite; }
@keyframes tbLed { 50% { opacity: .45; } }
.tb-fw path { stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 30; }
.has-fx .tb-fw { animation: tbFw 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tbFw { 0% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.3); } }
.has-fx .tb-hop { animation: tbHop 1.6s ease-in-out infinite; }
@keyframes tbHop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-14px); } }
/* Black Friday: sort tavle med orange kant */
.theme-blackfriday .tb-board { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8), inset 0 0 0 6px var(--tag); }
.theme-blackfriday .tb-bar2 { background: #fff; color: #0c0c0e; }
.theme-blackfriday .tb-circle { background: #fff; color: #0c0c0e; }
.theme-blackfriday .tb-btn { background: var(--tag); }

/* Tilbud */
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.offer h3 { font-size: 1.15rem; margin: 8px 0 0; }
.offer p { margin: 0; color: var(--muted); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--paper); overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: contain; }
.offer-ph .icon { width: 56px; height: 56px; color: var(--navy-3); }
.offer-pct { position: absolute; top: 10px; left: 10px; padding: 4px 10px 2px; border-radius: 8px; background: #0c0c0e; color: var(--tag); font: 400 1.5rem/1 "Bebas Neue", "Poppins", sans-serif; transform: rotate(-4deg); }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 12px !important; }
.offer-price strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); }
.offer-price s { color: var(--muted); }
@media (hover: hover) { .offer:hover { transform: translateY(-4px); border-color: var(--tag); box-shadow: 0 20px 40px -26px rgba(0, 32, 56, .55); } }

@media (max-width: 860px) {
  .tb-board { grid-template-columns: minmax(0, 1fr); }
  .tb-art { max-width: 460px; justify-self: center; width: 100%; }
  .tb-script { margin-left: 8%; }
}

/* ---------- Pynt på hele siden ---------- */
.has-fx .btn, .has-fx .cloud-chip { position: relative; }

/* Jul: sne på knapper, en snedrive under menuen og sne der falder */
.has-fx.theme-jul .btn::before, .has-fx.theme-jul .cloud-chip::before {
  content: ""; position: absolute; left: 5px; right: 5px; top: -7px; height: 13px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 13' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 9C4 3 10 2 16 4s10-3 17-2 9 4 15 3 9-5 16-4 10 4 15 3 10-3 15 0 6 5 6 6v4H0z'/%3E%3Cpath fill='%23dfe8f0' d='M0 11c20 2 45 3 100 0v2H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 32, 56, .18));
}
.has-fx.theme-jul .btn::after {
  content: ""; position: absolute; top: 4px; right: 18%; width: 5px; height: 9px; border-radius: 0 0 4px 4px; background: #fff; pointer-events: none; opacity: .95;
}
.has-fx.theme-jul .site-header::after, .has-fx.theme-jul .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath fill='%23fff' d='M0 0h120v4c-6 6-12 6-18 3s-11 2-17 3-10-6-16-5-9 6-15 5-10-6-16-4-11 4-16 2S8 2 0 6z'/%3E%3C/svg%3E") 0 0 / 120px 12px repeat-x;
}
.has-fx.theme-jul .site-header::after { top: 100%; opacity: .95; }
.has-fx.theme-jul .site-footer { position: relative; }
.has-fx.theme-jul .site-footer::before { top: -1px; }

/* Nytår: konfetti på knapperne og serpentiner under menuen */
.has-fx.theme-nytaar .btn::after {
  content: ""; position: absolute; inset: -9px -10px; pointer-events: none;
  background:
    radial-gradient(circle, #ffd166 0 2px, transparent 2.5px) 4% 10% / 10px 10px no-repeat,
    radial-gradient(circle, #7af0ff 0 2px, transparent 2.5px) 96% 6% / 10px 10px no-repeat,
    linear-gradient(35deg, transparent 40%, #EA7900 40% 60%, transparent 60%) 88% 96% / 9px 9px no-repeat,
    linear-gradient(-35deg, transparent 40%, #ff4d8d 40% 60%, transparent 60%) 10% 94% / 9px 9px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, transparent 2px) 60% 0 / 8px 8px no-repeat;
  animation: nyTwinkle 2.4s ease-in-out infinite;
}
@keyframes nyTwinkle { 50% { opacity: .35; transform: scale(1.06); } }
.has-fx.theme-nytaar .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 5px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #ffd166 0 26px, #EA7900 26px 52px, #7af0ff 52px 78px, #ff4d8d 78px 104px);
  opacity: .9;
}

/* Påske: små påskeæg på knapperne og græs under menuen */
.has-fx.theme-paaske .btn::after {
  content: ""; position: absolute; top: -10px; right: -6px; width: 15px; height: 19px; pointer-events: none; transform: rotate(16deg);
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: linear-gradient(transparent 38%, #fff 38% 50%, transparent 50% 62%, rgba(255, 255, 255, .7) 62% 70%, transparent 70%) , #f6d55c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
}
.has-fx.theme-paaske .btn-tag::after { background-color: #7cc576; }
.has-fx.theme-paaske .btn-navy::after { background-color: #9ec9f0; }
.has-fx.theme-paaske .site-header::after, .has-fx.theme-paaske .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath fill='%237cc576' d='M0 0h60v2l-3 9-3-8-4 9-3-9-4 8-3-9-3 9-4-9-3 8-4-9-3 9-3-8-4 9-3-9-4 8-3-9-3 9z'/%3E%3C/svg%3E") 0 0 / 60px 12px repeat-x;
}
.has-fx.theme-paaske .site-header::after { top: 100%; }
.has-fx.theme-paaske .site-footer { position: relative; }
.has-fx.theme-paaske .site-footer::before { top: -1px; transform: scaleY(-1); }

/* Black Friday: %-mærke på de orange knapper og advarselstape under menuen */
.has-fx.theme-blackfriday .btn-tag::after {
  content: "%"; position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; pointer-events: none;
  background: #0c0c0e; color: var(--tag); font: 400 1rem/1 "Bebas Neue", "Poppins", sans-serif; box-shadow: 0 0 0 2px var(--tag);
}
.has-fx.theme-blackfriday .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #0c0c0e 0 10px, var(--tag) 10px 20px);
}

/* Sne og konfetti (tegnes af theme.js) */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }

/* ---------- Tais' udklædning ---------- */
.tais.is-waving .tais-pompom { animation: pompom .5s ease-in-out 4 alternate; }
@keyframes pompom { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
.tais.is-waving .tais-ear-r { animation: earFlop .5s ease-in-out 4 alternate; }
@keyframes earFlop { to { transform: rotate(-10deg); } }
.tais.is-waving .tais-partyhat { animation: partyHat .5s ease-in-out 4 alternate; }
@keyframes partyHat { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

@media (prefers-reduced-motion: reduce) {
  .tb-sky, .tb-circle, .tb-float, .tb-swing, .tb-led, .tb-fw, .tb-hop, .has-fx.theme-nytaar .btn::after, .tais-pompom, .tais-ear-r, .tais-partyhat { animation: none !important; }
  .fx-canvas { display: none; }
}
@media print { .theme-top, .fx-canvas { display: none; } }
@media (max-width: 600px) {
  .theme-top { font-size: .84rem; }
  .theme-top p { display: block; }
  .theme-top-mark { display: none; }
}

/* Lille pynt i hjørnet af kortene (ydelser, enheder, blog, udlejning, priser) */
.has-fx :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer) { position: relative; }
.has-fx :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer)::after {
  position: absolute; top: 12px; right: 14px; pointer-events: none; line-height: 1; transition: transform .4s cubic-bezier(.2,.8,.2,1.4);
}
@media (hover: hover) { .has-fx :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer):hover::after { transform: rotate(20deg) scale(1.2); } }
.has-fx.theme-jul :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer)::after { content: "\2744\FE0E"; font-size: 1.35rem; color: #8cc4ea; }
.has-fx.theme-nytaar :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer)::after { content: "✦"; font-size: 1.3rem; color: #e0a200; text-shadow: 10px -6px 0 rgba(234, 121, 0, .55); }
.has-fx.theme-paaske :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer)::after {
  content: ""; width: 16px; height: 20px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; transform: rotate(14deg);
  background: linear-gradient(transparent 38%, #fff 38% 50%, transparent 50%), #f6d55c; box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.has-fx.theme-paaske :is(.device-card, .post-card, .offer)::after { background-color: #7cc576; }
.has-fx.theme-blackfriday :is(.feature-card, .device-card, .remote-card, .rent-card, .post-card, .remote-price, .offer)::after {
  content: "%"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0c0c0e; color: var(--tag); font: 400 1rem/1 "Bebas Neue", "Poppins", sans-serif;
}
