﻿/* TrykMagi CMS v4 – sæsonvideoer i loop + sort chroma key med WebGL. Kun Default.aspx.
   Ingen eksterne billeder, intet canvas-loop, ingen eksterne biblioteker. */
:root {--tm-season-tint:#fff;--tm-season-glow:rgba(0,0,0,0);--tm-season-gleam:rgba(0,0,0,0)}
body.tm-season-body {background:var(--tm-season-tint)!important}
.tm-home.tm-site-blackfriday,body.tm-site-blackfriday{--tm-season-tint:#fffcf5;--tm-season-glow:rgba(199,144,48,.095);--tm-season-gleam:rgba(19,19,19,.027)}
.tm-home.tm-site-halloween,body.tm-site-halloween{--tm-season-tint:#fff8f1;--tm-season-glow:rgba(233,127,55,.09);--tm-season-gleam:rgba(82,32,122,.035)}
.tm-home.tm-site-christmas,body.tm-site-christmas{--tm-season-tint:#f6fcfa;--tm-season-glow:rgba(28,128,82,.07);--tm-season-gleam:rgba(210,46,49,.025)}
.tm-home.tm-site-newyear,body.tm-site-newyear{--tm-season-tint:#f9f7ff;--tm-season-glow:rgba(122,93,214,.09);--tm-season-gleam:rgba(210,169,71,.036)}
.tm-home.tm-site-easter,body.tm-site-easter{--tm-season-tint:#fffafb;--tm-season-glow:rgba(231,165,207,.095);--tm-season-gleam:rgba(129,181,217,.046)}
.tm-home.tm-site-spring,body.tm-site-spring{--tm-season-tint:#f7fdf8;--tm-season-glow:rgba(122,205,131,.08);--tm-season-gleam:rgba(225,178,191,.045)}
.tm-home.tm-site-summer,body.tm-site-summer{--tm-season-tint:#f5fcff;--tm-season-glow:rgba(90,181,230,.075);--tm-season-gleam:rgba(255,207,105,.06)}
.tm-home.tm-site-autumn,body.tm-site-autumn{--tm-season-tint:#fffbf4;--tm-season-glow:rgba(195,124,65,.085);--tm-season-gleam:rgba(152,72,36,.035)}
.tm-home[class*="tm-site-"] {background-color:var(--tm-season-tint)!important;
  background-image:radial-gradient(ellipse 55% 34% at 3% 4%,var(--tm-season-glow),transparent 90%),
   radial-gradient(ellipse 70% 40% at 95% 56%,var(--tm-season-gleam),transparent 90%)!important;
  background-repeat:no-repeat!important;
}
/* V5: Valgfri sort eller hvid baggrund pr. sæson.
   Styr kun forsiden, og lad hvide produkt-/kategori-kort være læsbare. */
body.tm-season-body.tm-season-bg-white,
.tm-home.tm-season-bg-white[class*="tm-site-"]{
  --tm-season-tint:#ffffff!important;
  --tm-season-glow:rgba(0,0,0,0)!important;
  --tm-season-gleam:rgba(0,0,0,0)!important;
}
body.tm-season-body.tm-season-bg-black,
.tm-home.tm-season-bg-black[class*="tm-site-"]{
  --tm-season-tint:#000000!important;
  --tm-season-glow:rgba(0,0,0,0)!important;
  --tm-season-gleam:rgba(0,0,0,0)!important;
}
.tm-home.tm-season-bg-black {
  color:#f5f5f5;
  --tm-text:#f5f5f5;
  --tm-muted:#c5c5c5;
  --tm-line:rgba(255,255,255,.25);
}
/* Kort med lyse overflader beholder mørk tekst ved sort sidebaggrund. */
.tm-home.tm-season-bg-black .tm-product-card,
.tm-home.tm-season-bg-black .tm-poster-card,
.tm-home.tm-season-bg-black .tm-category,
.tm-home.tm-season-bg-black .tm-section-surface,
.tm-home.tm-season-bg-black .tm-rotate-text,
.tm-home.tm-season-bg-black .tm-rail-btn,
.tm-home.tm-season-bg-black .tm-trust,
.tm-home.tm-season-bg-black .poster-container,
.tm-home.tm-season-bg-black .tm-product-empty {
  color:#171717!important;
  --tm-text:#171717;
  --tm-muted:#6c6c6c;
  --tm-line:#e8e8e5;
}
.tm-home.tm-season-bg-black .tm-kicker {color:#d4d4d4}
.tm-home.tm-season-bg-black .tm-text-link {color:#f5f5f5!important}
.tm-home.tm-season-bg-black .tm-product-rail-head h3,
.tm-home.tm-season-bg-black .tm-product-rail-head p,
.tm-home.tm-season-bg-black .tm-section-head h2,
.tm-home.tm-season-bg-black .tm-section-head p {color:inherit}
.tm-home.tm-season-bg-black .tm-product-rail-head p,
.tm-home.tm-season-bg-black .tm-section-head p {color:var(--tm-muted)}
.tm-season-fx.tm-fx-level-off{display:none!important}
/* Semi-translucent separator behind section edges, but never reduce text contrast */
.tm-home[class*="tm-site-"] .tm-shell {position:relative}
/* Effects sit above the site for a few seconds but never intercept clicks. */
.tm-season-fx{position:fixed;inset:0;pointer-events:none!important;z-index:1100;
   overflow:hidden;contain:layout style paint;user-select:none;-webkit-user-select:none}
/* V4: WebGL-canvas fjerner sort fra MP4'en reelt (ikke kun visuelt via blend-mode).
   Hvis WebGL ikke kan bruges, vises MP4 med CSS screen-blend som fallback. */
.tm-fx-video,.tm-fx-video-canvas{position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;object-fit:cover;object-position:center}
.tm-fx-video{opacity:0;mix-blend-mode:screen;
  filter:contrast(1.5) saturate(1.25);transition:opacity .7s ease}
.tm-fx-video-canvas{opacity:0;transition:opacity .7s ease}
/* Skruet op fra V3: de to niveauer kan stadig styres i CMS. */
.tm-fx-level-soft.tm-fx-chroma-active .tm-fx-video-canvas{opacity:.82}
.tm-fx-level-normal.tm-fx-chroma-active .tm-fx-video-canvas{opacity:1}
.tm-fx-level-soft.tm-fx-video-ready:not(.tm-fx-chroma-active) .tm-fx-video{opacity:.66}
.tm-fx-level-normal.tm-fx-video-ready:not(.tm-fx-chroma-active) .tm-fx-video{opacity:.90}
/* Mobilen bruger lidt mindre styrke for at bevare læsbarheden. */
@media(max-width:720px){
 .tm-fx-level-soft.tm-fx-chroma-active .tm-fx-video-canvas{opacity:.70}
 .tm-fx-level-normal.tm-fx-chroma-active .tm-fx-video-canvas{opacity:.90}
}
.tm-fx-particles{position:absolute;inset:0;overflow:hidden}
.tm-fx-particle{position:absolute;top:-8vh;left:var(--x);font-size:var(--size);opacity:0;
  color:var(--particle-color,#eec56d);text-shadow:0 1px 12px var(--particle-shadow,rgba(234,187,99,.2));
  will-change:transform,opacity;animation:tm-season-fall var(--duration) linear var(--delay) infinite both}
.tm-fx-level-soft .tm-fx-particle{filter:opacity(.7)}
.tm-fx-blackfriday{--particle-color:#d8a64f;--particle-shadow:rgba(200,137,21,.21)}
.tm-fx-christmas{--particle-color:#e6f6ff;--particle-shadow:rgba(59,111,171,.2)}
.tm-fx-newyear{--particle-color:#e4bd5e;--particle-shadow:rgba(126,78,221,.15)}
.tm-fx-halloween{--particle-color:#9c5f29;--particle-shadow:rgba(60,25,9,.16)}
.tm-fx-autumn{--particle-color:#bb7138;--particle-shadow:rgba(104,46,25,.16)}
.tm-fx-spring{--particle-color:#d19db8;--particle-shadow:rgba(190,96,137,.16)}
.tm-fx-summer{--particle-color:#6cb5d8;--particle-shadow:rgba(123,181,220,.13)}
.tm-fx-easter{--particle-color:#d1a2d1;--particle-shadow:rgba(211,159,211,.16)}
@keyframes tm-season-fall{0%{opacity:0;transform:translate3d(0,-10vh,0) rotate(0deg)}
  13%{opacity:var(--opacity,.48)} 69%{opacity:var(--opacity,.48)}
  100%{opacity:0;transform:translate3d(var(--drift,45px),114vh,0) rotate(var(--rotation,260deg))}}
.tm-fx-top{position:absolute;left:0;right:0;top:0;height:122px;overflow:visible}
.tm-fx-top-trim{height:3px;opacity:.25;background:linear-gradient(90deg,transparent,currentColor,transparent)}
.tm-fx-christmas .tm-fx-top-trim{color:#bc514c}
.tm-fx-halloween .tm-fx-top-trim{color:#704a8f}
.tm-fx-newyear .tm-fx-top-trim{color:#c5a15b}
.tm-fx-blackfriday .tm-fx-top-trim{color:#c6a04b}
.tm-fx-ornament{position:absolute;display:block;top:0;opacity:.8;text-shadow:0 2px 13px rgba(0,0,0,.13);
   transform-origin:50% 0;animation:tm-season-swing 4.8s ease-in-out infinite alternate}
.tm-fx-elf{font-size:35px;top:38px;opacity:.82}
.tm-fx-elf:before,.tm-fx-spider:before{content:"";position:absolute;left:50%;bottom:83%;width:1px;
 height:70px;background:linear-gradient(0deg,#75816f,#b6c3b4);opacity:.35}
.tm-fx-elf-one{left:10%}.tm-fx-elf-two{right:12%;animation-delay:-2s;top:60px}
.tm-fx-star{right:44%;top:28px;font-size:22px;color:#f7d2aa}
.tm-fx-spider{font-size:32px;top:30px;color:#4d3861}
.tm-fx-spider-one{left:9%}.tm-fx-spider-two{right:8%;top:50px;animation-delay:-1.3s}
.tm-fx-easter-one{top:23px;right:9%;font-size:30px}
.tm-fx-summer-one{top:18px;right:8%;font-size:30px;color:#edbf56}
.tm-fx-year-one{top:15px;left:9%;font-size:40px;color:#eccb72}
.tm-fx-year-two{top:38px;right:12%;font-size:28px;color:#efd69b}
@keyframes tm-season-swing{from{transform:rotate(-5deg)}to{transform:rotate(6deg)}}
.tm-fx-fireworks i{position:absolute;width:4px;height:4px;border-radius:50%;opacity:0;
  box-shadow:0 -45px 0 #e1b55f,40px -22px 0 #d6bce9,44px 19px 0 #efd7a0,0 45px 0 #c5b0ec,
            -38px 22px 0 #efd7a0,-40px -22px 0 #d6bce9,24px -39px 0 #e2d1fa,-25px 38px 0 #e1b55f;
  animation:tm-season-burst 5.8s ease-out infinite both}
.tm-fx-fireworks i:nth-child(1){top:22%;left:23%;animation-delay:.35s}
.tm-fx-fireworks i:nth-child(2){top:32%;right:20%;animation-delay:1.45s}
.tm-fx-fireworks i:nth-child(3){top:15%;right:42%;animation-delay:2.5s}
@keyframes tm-season-burst{0%{transform:scale(.1);opacity:0}20%{opacity:.8}72%{opacity:.6}100%{opacity:0;transform:scale(2.1)}}
@media(max-width:780px){.tm-fx-elf{font-size:24px;top:14px}.tm-fx-elf-two{right:4%}.tm-fx-elf-one{left:3%}
  .tm-fx-elf:before{height:25px}.tm-fx-top{height:70px}.tm-fx-spider{font-size:22px}}
@media(prefers-reduced-motion:reduce){.tm-season-fx .tm-fx-video,.tm-season-fx .tm-fx-video-canvas{display:none!important}
  .tm-season-fx .tm-fx-particle,
  .tm-season-fx .tm-fx-fireworks i{display:none!important;animation:none!important}
  .tm-season-fx .tm-fx-ornament{animation:none!important}}
@media print{.tm-season-fx{display:none!important}}
