/* ==========================================================================
   HOLIDAY · Christmas edition of Falk’s Stammwerk
   Everything here is inert until <html> carries the class "holiday"
   (set by the Holiday switch in the menu, see holiday.js) — except the
   switch itself, which is always visible.
   ========================================================================== */

/* ---------- THE SWITCH ---------- */
:root{--hs-off:rgba(32,27,20,.17);--hs-off-rim:rgba(255,255,255,.6);}
html.glass-dark{--hs-off:rgba(244,239,230,.2);--hs-off-rim:rgba(255,255,255,.12);}

.hswitch{
  display:inline-flex;align-items:center;gap:.6rem;flex-shrink:0;
  height:44px;padding:0 .55rem 0 .95rem;border-radius:999px;
  font-size:.86rem;font-weight:500;line-height:1;white-space:nowrap;
  color:var(--g-fg-soft);
  transition:color .3s ease,transform .3s var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.hswitch:hover,html.holiday .hswitch{color:var(--g-fg);}
.hswitch:active{transform:scale(.96);}
.hs-track{
  position:relative;flex:none;display:block;width:46px;height:26px;border-radius:999px;
  background:var(--hs-off);
  box-shadow:inset 0 1px 2px rgba(32,24,14,.28),inset 0 -1px 0 var(--hs-off-rim);
  transition:background-color .45s ease,box-shadow .45s ease;
}
.hs-track::before{   /* cranberry fill that washes in when on */
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(180deg,#BE2A35 0%,#8E1722 100%);
  box-shadow:inset 0 1px 2px rgba(60,0,8,.55),0 0 0 1px rgba(221,185,110,.75),0 6px 14px -6px rgba(163,32,43,.8);
  opacity:0;transition:opacity .45s ease;
}
.hs-knob{
  position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(180deg,#FFFFFF,#EFEAE0);
  box-shadow:0 1px 3px rgba(32,24,14,.38),inset 0 -1px 0 rgba(32,24,14,.08);
  color:#8D8577;
  transition:transform .55s var(--g-spring,cubic-bezier(.3,1.32,.48,1)),color .45s ease;
}
.hs-knob svg{width:13px;height:13px;display:block;}
/* keyed to the page state, so the switch is already in place on first paint */
html.holiday .hs-track::before{opacity:1;}
html.holiday .hs-knob{transform:translateX(20px) rotate(180deg);color:#A3202B;}

/* Row inside the mobile sheet */
.gm-holiday{
  position:relative;width:100%;margin-top:.45rem;
  display:grid;grid-template-columns:2.1rem 1fr auto;align-items:center;column-gap:.4rem;
  padding:.78rem .95rem .78rem .85rem;border-radius:20px;text-align:left;color:inherit;
  background:linear-gradient(180deg,var(--g-lens-a),var(--g-lens-b));box-shadow:var(--g-lens-shadow);
  -webkit-tap-highlight-color:transparent;
}
.gm-holiday .gm-hicon{width:1.15rem;height:1.15rem;color:var(--g-accent);}
.gm-holiday .gm-hlabel{font-family:var(--font-display);font-size:1.3rem;line-height:1.1;letter-spacing:-.01em;}
.gm-holiday:active .hs-track{transform:scale(.96);}

@media(max-width:960px){.hswitch{display:none;}}
@media(min-width:961px) and (max-width:1120px){
  .hswitch{padding-left:.6rem;gap:.5rem;}
  .navlink{padding-inline:.8rem;}
  .navcta{padding:0 1rem 0 1.1rem;}
}

/* Toggle moment: the new look spreads in a circle from the switch */
html.hx-vt::view-transition-old(root),
html.hx-vt::view-transition-new(root){animation:none;mix-blend-mode:normal;}
html.hx-vt::view-transition-old(root){z-index:1;}
html.hx-vt::view-transition-new(root){z-index:2;}

/* ---------- DECORATION PLUMBING ---------- */
.hx{display:none;pointer-events:none;}
html.holiday .hx{display:block;animation:hx-in 1s ease both;}
@keyframes hx-in{from{opacity:0;}to{opacity:1;}}
@keyframes hx-twinkle{0%,100%{opacity:1;}45%{opacity:.28;}60%{opacity:.75;}}
@keyframes hx-swing{from{transform:rotate(-3.2deg);}to{transform:rotate(3.2deg);}}
@keyframes hx-spin{to{transform:rotate(360deg);}}
.hx-tw{animation:hx-twinkle 3.4s ease-in-out infinite;}
.hx-swing{animation:hx-swing 4.6s ease-in-out infinite alternate;}

/* ---------- PALETTE ---------- */
html.holiday{
  --paper:#F7F4EC;
  --paper-deep:#ECE8DB;
  --ink:#12281E;
  --ink-soft:#0C1D15;
  --bark:#3A473E;
  --graphite:#5D675D;
  --oak:#A3202B;
  --oak-deep:#7E1620;
  --brass:#DDB96E;
  --line:rgba(18,40,30,.16);
  --line-dark:rgba(247,244,236,.16);
  --shadow:0 28px 60px rgba(10,30,22,.26);
  --hx-snow:#FDFCF8;
  --hx-frost:#D7E3E7;
  --hx-gold-hi:#F3D99A;
  --hx-cream:#FFF8EC;
  --g-solid:#A3202B;
  --g-solid-fg:#FFF8EC;
  --g-solid-hover:#7E1620;
  --g-solid-hover-fg:#FFF8EC;
  --hs-off:rgba(18,40,30,.17);
  scrollbar-color:var(--brass) var(--paper);
}
html.holiday.glass-dark{
  --g-tint:rgba(12,34,25,.52);
  --g-tint-scrolled:rgba(12,34,25,.56);
  --g-sheet:rgba(12,32,24,.76);
  --g-solid:#B5242F;
  --g-solid-fg:#FFF8EC;
  --g-solid-hover:var(--brass);
  --g-solid-hover-fg:#12281E;
  --hs-off:rgba(247,244,236,.22);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html.holiday.glass-dark{--g-tint:rgba(12,34,25,.95);--g-tint-scrolled:rgba(12,34,25,.97);--g-sheet:rgba(12,34,25,.98);}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  html.holiday.glass-dark{--g-tint:rgba(12,34,25,.96);--g-tint-scrolled:rgba(12,34,25,.98);--g-sheet:rgba(12,34,25,.98);}
}

html.holiday ::selection{background:var(--brass);color:var(--ink);}
html.holiday .menuscrim{background:rgba(8,24,17,.36);}
html.holiday .lightbox{background:rgba(8,22,16,.96);}

/* ---------- SNOWFALL ---------- */
.hx-snow{position:fixed;inset:0;width:100%;height:100%;z-index:90;}

/* ---------- NAV ---------- */
html.holiday .brand{position:relative;}
.hx-holly{position:absolute;left:13px;top:-8px;width:22px;height:auto;transform:rotate(-14deg);overflow:visible;}
.hx-cap{position:absolute;top:-10px;left:0;overflow:visible;}
html.holiday .hx-cap{filter:drop-shadow(0 1px 1px rgba(40,70,90,.28));}
.glassbar > .hx-cap{left:26px;}
.glassmenu > .hx-cap{left:24px;}
html.holiday .gm-cta,html.holiday .navcta{box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 0 0 1px rgba(243,217,154,.34),0 10px 18px -10px rgba(126,22,32,.85);}

/* ---------- BUTTONS · EYEBROWS ---------- */
html.holiday .btn-solid{background:var(--oak);border-color:var(--oak);color:var(--hx-cream);box-shadow:inset 0 0 0 1px rgba(243,217,154,.36),0 14px 24px -16px rgba(126,22,32,.9);}
html.holiday .btn-solid:hover{background:var(--ink);border-color:var(--ink);}
html.holiday .btn-ghost{border-color:var(--ink);}
html.holiday .btn-light{background:var(--oak);border-color:var(--oak);color:var(--hx-cream);box-shadow:inset 0 0 0 1px rgba(243,217,154,.4);}
html.holiday .btn-light:hover{background:var(--brass);border-color:var(--brass);color:var(--ink);}

/* a snowflake rides on the eyebrow rule */
html.holiday .eyebrow::before,
html.holiday .eyebrow.centered::after{
  width:2.9rem;height:.84rem;flex:none;
  background:
    linear-gradient(#A3202B,#A3202B) left center / 1.75rem 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16' fill='none' stroke='%23A3202B' stroke-width='1.25' stroke-linecap='round'%3E%3Cpath d='M0 0L0 -7M0 -4.1L-2.2 -5.3M0 -4.1L2.2 -5.3M0 0L6.1 -3.5M3.5 -2L3.5 -4.5M3.5 -2L5.7 -0.8M0 0L6.1 3.5M3.5 2L5.7 0.8M3.5 2L3.5 4.5M0 0L0 7M0 4.1L2.2 5.3M0 4.1L-2.2 5.3M0 0L-6.1 3.5M-3.5 2L-3.5 4.6M-3.5 2L-5.7 0.8M0 0L-6.1 -3.5M-3.5 -2L-5.7 -0.8M-3.5 -2L-3.5 -4.6'/%3E%3C/svg%3E") right center / .84rem .84rem no-repeat;
}
html.holiday .eyebrow.on-dark::before,
html.holiday .eyebrow.centered.on-dark::after{
  background:
    linear-gradient(#DDB96E,#DDB96E) left center / 1.75rem 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16' fill='none' stroke='%23DDB96E' stroke-width='1.25' stroke-linecap='round'%3E%3Cpath d='M0 0L0 -7M0 -4.1L-2.2 -5.3M0 -4.1L2.2 -5.3M0 0L6.1 -3.5M3.5 -2L3.5 -4.5M3.5 -2L5.7 -0.8M0 0L6.1 3.5M3.5 2L5.7 0.8M3.5 2L3.5 4.5M0 0L0 7M0 4.1L2.2 5.3M0 4.1L-2.2 5.3M0 0L-6.1 3.5M-3.5 2L-3.5 4.6M-3.5 2L-5.7 0.8M0 0L-6.1 -3.5M-3.5 -2L-5.7 -0.8M-3.5 -2L-3.5 -4.6'/%3E%3C/svg%3E") right center / .84rem .84rem no-repeat;
}

/* ---------- HERO ---------- */
.hx-garland{position:absolute;top:0;left:0;z-index:4;overflow:visible;}
html.holiday .hero-copy{padding-top:clamp(11.5rem,24vh,13rem);}
html.holiday .hero-copy::before{   /* frost breathing in from the cold side */
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(70% 55% at 0% 100%,rgba(215,227,231,.75),rgba(215,227,231,0) 70%),
    radial-gradient(50% 40% at 100% 0%,rgba(221,185,110,.13),rgba(221,185,110,0) 70%);
}
html.holiday .hero-copy h1 .h1-line em{position:relative;}
html.holiday .hero-copy h1 .h1-line em::after{   /* a gold star catches the light */
  content:"";position:absolute;left:100%;top:.06em;width:.3em;height:.3em;margin-left:.08em;
  background:linear-gradient(135deg,#F3D99A,#C99A44);
  clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
  animation:hx-twinkle 3.2s ease-in-out infinite;
}
html.holiday .hero-facts{border-top-color:rgba(163,32,43,.34);}
html.holiday .hero-facts .fact strong::before{
  content:"";display:inline-block;width:.34em;height:.34em;margin-right:.36em;vertical-align:.18em;
  background:var(--brass);
  clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
}
html.holiday .hero-visual::before{   /* frosted window corners */
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(58% 46% at 100% 0%,rgba(255,255,255,.34),rgba(255,255,255,0) 70%),
    radial-gradient(46% 40% at 0% 100%,rgba(255,255,255,.24),rgba(255,255,255,0) 70%),
    radial-gradient(40% 34% at 100% 100%,rgba(255,255,255,.2),rgba(255,255,255,0) 70%);
  box-shadow:inset 0 0 110px rgba(232,242,246,.32);
}
html.holiday .hero-visual::after{background:linear-gradient(105deg,rgba(10,30,22,.32) 0%,rgba(10,30,22,0) 45%);}
html.holiday .hero-plate{border-top:2px solid var(--oak);}
html.holiday .hero-plate .hp-mat{color:var(--oak);}
.hero-plate > .hx-cap{top:-12px;}
@media(max-width:980px){
  html.holiday .hero-copy{padding-top:10.75rem;}
}

/* ---------- DARK SECTIONS · winter night ---------- */
html.holiday .statement,
html.holiday .kontakt{
  background:
    radial-gradient(110% 85% at 88% 0%,rgba(40,98,68,.62),rgba(40,98,68,0) 62%),
    radial-gradient(80% 70% at 0% 100%,rgba(6,18,13,.85),rgba(6,18,13,0) 70%),
    var(--ink);
}
html.holiday .statement{padding-top:clamp(7.5rem,13vw,10rem);padding-bottom:clamp(8rem,14vw,11rem);}
html.holiday .statement::before{border-color:rgba(221,185,110,.22);}
html.holiday .statement::after{border-color:rgba(221,185,110,.16);}
html.holiday .statement h2 em,html.holiday .kontakt h2 em{color:var(--hx-gold-hi);}
.hx-stars{position:absolute;inset:0;width:100%;height:100%;z-index:0;}
.hx-icicles{position:absolute;top:-1px;left:0;z-index:1;color:var(--paper);}
html.holiday .hx-icicles{filter:drop-shadow(0 3px 5px rgba(0,0,0,.28));}
.hx-drift{position:absolute;left:0;z-index:1;color:var(--paper);}
.hx-drift.is-bottom{bottom:-1px;}
.hx-drift.is-top{top:-1px;transform:scaleY(-1);}
.hx-flake{
  position:absolute;z-index:0;right:max(-6vw,-90px);top:50%;width:min(46vw,520px);height:auto;margin-top:calc(min(46vw,520px) / -2);
  --fo:.2;color:var(--brass);opacity:var(--fo);overflow:visible;
}
@media(max-width:720px){.hx-flake{--fo:.11;top:auto;bottom:4rem;margin-top:0;}}
@keyframes hx-in-flake{from{opacity:0;}to{opacity:var(--fo);}}
html.holiday .hx-flake{animation:hx-in-flake 1s ease both,hx-spin 160s linear infinite;}

/* ---------- WERKE ---------- */
html.holiday .filter.active{box-shadow:inset 0 0 0 1px rgba(221,185,110,.5);}
html.holiday .werk .w-index{   /* gift tags */
  background:var(--oak);color:var(--hx-cream);
  padding:.34rem .7rem .34rem 1.25rem;
  clip-path:polygon(.62rem 0,100% 0,100% 100%,.62rem 100%,0 50%);
  box-shadow:none;
}
html.holiday .werk .w-index::before{
  content:"";position:absolute;left:.6rem;top:50%;width:.28rem;height:.28rem;margin-top:-.14rem;border-radius:50%;
  background:var(--hx-gold-hi);
}
html.holiday .werk > figure::after{   /* a fine gold frame steps forward on hover */
  content:"";position:absolute;inset:.6rem;z-index:1;pointer-events:none;
  border:1px solid rgba(243,217,154,.9);
  opacity:0;transform:scale(1.03);transition:opacity .5s var(--ease),transform .7s var(--ease);
}
html.holiday .werk:hover > figure::after,html.holiday .werk:focus-visible > figure::after{opacity:1;transform:scale(1);}
html.holiday .werk[data-title="Holzsterne"] > figure::before{   /* the wooden stars get their own star */
  content:"";position:absolute;right:.9rem;top:.85rem;z-index:2;width:1.5rem;height:1.5rem;
  background:linear-gradient(135deg,#F7E2AC,#D2A24C);
  clip-path:polygon(50% 0,61.8% 35.3%,98% 35.3%,68.8% 57.3%,79.4% 91%,50% 70%,20.6% 91%,31.2% 57.3%,2% 35.3%,38.2% 35.3%);
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.4));
  animation:hx-twinkle 4s ease-in-out infinite;
}

/* ---------- VORGEHEN ---------- */
html.holiday .vorgehen{   /* snowflake wrapping paper, barely there */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220' fill='none' stroke='%2312281E' stroke-opacity='.055' stroke-width='1.2' stroke-linecap='round'%3E%3Cg transform='translate(46 52) scale(1.7)'%3E%3Cpath d='M0 0L0 -7M0 -4.1L-2.2 -5.3M0 -4.1L2.2 -5.3M0 0L6.1 -3.5M3.5 -2L3.5 -4.5M3.5 -2L5.7 -0.8M0 0L6.1 3.5M3.5 2L5.7 0.8M3.5 2L3.5 4.5M0 0L0 7M0 4.1L2.2 5.3M0 4.1L-2.2 5.3M0 0L-6.1 3.5M-3.5 2L-3.5 4.6M-3.5 2L-5.7 0.8M0 0L-6.1 -3.5M-3.5 -2L-5.7 -0.8M-3.5 -2L-3.5 -4.6'/%3E%3C/g%3E%3Cg transform='translate(160 150) rotate(15) scale(1.1)'%3E%3Cpath d='M0 0L0 -7M0 -4.1L-2.2 -5.3M0 -4.1L2.2 -5.3M0 0L6.1 -3.5M3.5 -2L3.5 -4.5M3.5 -2L5.7 -0.8M0 0L6.1 3.5M3.5 2L5.7 0.8M3.5 2L3.5 4.5M0 0L0 7M0 4.1L2.2 5.3M0 4.1L-2.2 5.3M0 0L-6.1 3.5M-3.5 2L-3.5 4.6M-3.5 2L-5.7 0.8M0 0L-6.1 -3.5M-3.5 -2L-5.7 -0.8M-3.5 -2L-3.5 -4.6'/%3E%3C/g%3E%3Ccircle cx='150' cy='40' r='1.4'/%3E%3Ccircle cx='60' cy='170' r='1.4'/%3E%3C/svg%3E"),
    var(--paper-deep);
}
html.holiday .vorgehen-intro .preis-note{
  position:relative;border-left-color:var(--oak);background:rgba(163,32,43,.055);
  box-shadow:inset 0 0 0 1px rgba(163,32,43,.1);
}
.preis-note > .hx-holly{left:auto;right:-10px;top:-17px;width:44px;transform:rotate(18deg);}

/* ---------- HANDWERK ---------- */
html.holiday .ent-shot,html.holiday .ent-tile{box-shadow:0 14px 32px rgba(60,10,16,.16);}
html.holiday .ent-num,html.holiday .ent-tag{background:var(--hx-snow);}
.hx-bow{position:absolute;left:-26px;top:-24px;width:64px;height:auto;z-index:2;overflow:visible;}
/* On the finished star the bow hangs off the top-right corner, clear of the step number. */
.ent-step > .hx-bow{left:auto;right:-20px;top:-22px;width:58px;transform:rotate(10deg);}
/* One column on phones: the step runs to the page margin, so the bow tucks in to stay on screen. */
@media(max-width:560px){.ent-step > .hx-bow{right:-10px;}}
html.holiday .hx-bow{filter:drop-shadow(0 4px 5px rgba(60,10,16,.35));}
html.holiday .principle .p-key{color:var(--oak);}

/* ---------- FAQ ---------- */
html.holiday .faq details[open] summary .fq-icon{background:var(--oak);border-color:var(--oak);color:var(--hx-cream);}

/* ---------- KONTAKT ---------- */
html.holiday .kontakt{padding-top:clamp(9rem,15vw,11.5rem);padding-bottom:clamp(12.5rem,19vw,15rem);}
html.holiday .kontakt::before{border-color:rgba(221,185,110,.18);}
.hx-lights{position:absolute;left:0;top:26px;z-index:1;overflow:visible;}
.hx-treeline{position:absolute;left:0;bottom:-1px;z-index:1;color:var(--ink-soft);overflow:visible;}
html.holiday .kform{
  position:relative;background:rgba(247,244,236,.055);border-color:rgba(221,185,110,.32);
  box-shadow:0 30px 60px -34px rgba(0,0,0,.7);
}
html.holiday .kform::before{   /* gold corner marks, like a card */
  content:"";position:absolute;inset:7px;pointer-events:none;
  background:
    linear-gradient(var(--brass),var(--brass)) left top / 18px 1px no-repeat,
    linear-gradient(var(--brass),var(--brass)) left top / 1px 18px no-repeat,
    linear-gradient(var(--brass),var(--brass)) right top / 18px 1px no-repeat,
    linear-gradient(var(--brass),var(--brass)) right top / 1px 18px no-repeat,
    linear-gradient(var(--brass),var(--brass)) left bottom / 18px 1px no-repeat,
    linear-gradient(var(--brass),var(--brass)) left bottom / 1px 18px no-repeat,
    linear-gradient(var(--brass),var(--brass)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--brass),var(--brass)) right bottom / 1px 18px no-repeat;
  opacity:.7;
}
.kform > .hx-cap{top:-11px;}

/* ---------- FOOTER ---------- */
html.holiday .footer-bottom span:last-child{color:var(--brass);}

/* ---------- STANDALONE PAGES (thank-you, 404) ---------- */
html.holiday .rings{color:var(--oak);}

/* ---------- LESS MOTION ---------- */
@media(prefers-reduced-motion:reduce){
  .hx-tw,.hx-swing,html.holiday .hx-flake{animation:none !important;}
}
