/* ALPHAdventskalender – advent.alpha-steam.com */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-variable.woff2") format("woff2");
}

:root {
  --red-950: #3d060b;
  --red-900: #52000c;
  --red-800: #670b13;
  --red-700: #7d0f18;
  --red-600: #9b0016;          /* Shop-Rot */
  --red-500: #b8202c;
  --gold-900: #7a5520;
  --gold-700: #a87932;
  --gold-500: #d5b261;          /* Logo-Gold */
  --gold-300: #f0d08a;
  --gold-100: #ffe9b5;
  --cream: #fff6e2;
  --ink: #3a0508;
  --white: #fff;

  --foil: linear-gradient(155deg, #b58640 0%, #e2bb6f 24%, #ffe7ac 46%, #dcae5d 63%, #b07e36 100%);
  --foil-flat: linear-gradient(90deg, #a87932 0%, #f3d18a 18%, #c4944a 42%, #ffe6a8 62%, #b6883f 82%, #e6c279 100%);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-w: 1600px;
  --pad: clamp(14px, 4vw, 40px);
  --gap: clamp(8px, 1.6vw, 26px);
  --radius: clamp(10px, 1.6vw, 24px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream);
  background-color: var(--red-800);
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(184, 32, 44, .55) 0%, rgba(184, 32, 44, 0) 60%),
    linear-gradient(180deg, rgba(61, 6, 11, 0) 55%, rgba(61, 6, 11, .75) 100%),
    url("img/knit.svg");
  background-size: auto, auto, 10px 9px;
  background-attachment: scroll;
  min-height: 100vh;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { position: relative; z-index: 1; }

/* ---------- Schnee & Funken ---------- */
.snow, .sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.snow { z-index: 0; opacity: .7; }
.sparks { z-index: 60; }

/* ---------- Norwegerborte & Goldleiste ---------- */
.band {
  height: clamp(86px, 13vw, 150px);
  background: url("img/band.svg") repeat-x center / auto 100%;
  opacity: .2;
}
.band--wide { height: clamp(110px, 17vw, 210px); opacity: .24; }
.goldbar {
  height: clamp(8px, 1.3vw, 16px);
  background: var(--foil-flat);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(90, 55, 10, .35);
}

/* ---------- Kopf ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 0 var(--pad) clamp(28px, 5vw, 52px);
}
.hero .band { margin: 0 calc(var(--pad) * -1); }
.hero__logo {
  display: inline-block;
  margin-top: clamp(-100px, -8vw, -58px);
  position: relative;             /* liegt über der Strickborte, sonst scheint das Muster durch */
  z-index: 1;
  border-radius: 50%;
  background: #9b191b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45), 0 0 0 8px var(--red-800);
}
.hero__logo img { width: clamp(124px, 17vw, 200px); height: auto; border-radius: 50%; }
.hero__eyebrow {
  margin-top: clamp(14px, 2.4vw, 24px);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.hero__title {
  margin-top: .18em;
  font-size: clamp(1.7rem, 7.6vw, 5.4rem);
  line-height: 1;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.01em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff0c4 0%, #f1cf86 38%, #c9984a 62%, #f6d996 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(61, 6, 11, .65)) drop-shadow(0 14px 22px rgba(0, 0, 0, .35));
}
.hero__rest { font-weight: 800; font-stretch: 118%; font-size: .78em; letter-spacing: .005em; }
.hero__claim {
  margin-top: .5em;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  font-weight: 600;
  font-stretch: 108%;
  color: var(--cream);
}


/* ---------- Kalender ---------- */
.calendar {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: clamp(22px, 4.5vw, 56px) var(--pad);
}
.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
@media (min-width: 720px) { .doors { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.door {
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
  opacity: 0;
  transform: translateY(18px) scale(.94);
  animation: door-in .6s cubic-bezier(.2, .9, .3, 1.2) forwards;
  animation-delay: calc(var(--i) * 28ms + 120ms);
}
@keyframes door-in { to { opacity: 1; transform: none; } }

.door__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  perspective: 620px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.2, .8, .3, 1.3);
}
.door__btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.door:not(.is-locked) .door__btn:hover { transform: translateY(-4px) scale(1.03); }
.door:not(.is-locked) .door__btn:active { transform: scale(.97); }

/* Das Innere hinter der Tür */
.door__inside {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(90% 90% at 42% 42%, #fffaf0 0%, #ffeec6 45%, #e4bb6c 100%);
  box-shadow: inset 0 10px 24px rgba(61, 6, 11, .3);
  transition: filter .25s;
}
.door__img {
  position: absolute;
  left: 7%;
  top: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  border-radius: calc(var(--radius) * .7);
  mix-blend-mode: multiply;        /* weiße Bildhintergründe verschwinden im Gold */
  opacity: 0;
  transform: scale(.82);
  transition: opacity .5s .25s, transform .7s .2s cubic-bezier(.2, .9, .3, 1.25);
}
.door.is-open .door__img, .door.is-opening .door__img { opacity: 1; transform: none; }
.door__inside::after {              /* Rahmen über dem Bild */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(213, 178, 97, .85), inset 0 0 22px rgba(61, 6, 11, .3);
  pointer-events: none;
}

/* Lichtschein beim Öffnen */
.door__glow {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 190, .95) 0%, rgba(255, 214, 120, .55) 32%, rgba(255, 200, 90, 0) 68%);
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
.door.is-opening .door__glow { animation: glow 1.15s ease-out forwards; }
@keyframes glow {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Der Türflügel */
.door__leaf {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.45, .02, .2, 1), opacity .35s .75s, visibility 0s 1.1s;
}
.door__front, .door__back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.door__front {
  background: var(--foil);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -3px 0 rgba(90, 55, 10, .3), 0 8px 20px rgba(0, 0, 0, .3);
}
.door__front::before {              /* feiner Prägerand */
  content: "";
  position: absolute;
  inset: 5cqw;
  border-radius: calc(var(--radius) * .6);
  box-shadow: inset 0 0 0 1px rgba(122, 85, 32, .35), 0 0 0 1px rgba(255, 255, 255, .28);
}
.door__front::after {               /* Glanz, der über die Folie wandert */
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  opacity: 0;
}
.door.is-today .door__front::after { animation: sheen 2.8s ease-in-out infinite; }
@keyframes sheen {
  0%, 45% { left: -60%; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
.door__back {
  transform: rotateY(180deg);
  background: linear-gradient(200deg, #8a6226 0%, #c79a50 55%, #7a5520 100%);
  box-shadow: inset 0 0 0 2px rgba(61, 6, 11, .25);
}
.door__num {
  position: absolute;
  right: -1cqw;
  bottom: -15cqw;
  font-size: 66cqw;
  line-height: 1;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.055em;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(122, 85, 32, .35), 0 8px 18px rgba(122, 85, 32, .35);
  font-variant-numeric: lining-nums;
}
.door__num--2 { font-size: 56cqw; bottom: -12.5cqw; right: 0; }
.door__num--in {                    /* Ziffer im geöffneten Türchen: dunkelrot wie im Entwurf */
  color: var(--red-800);
  text-shadow: none;
  opacity: 0;
  transition: opacity .35s .45s;
}
.door.is-open .door__num--in { opacity: 1; }

/* ---- Zustand: noch gesperrt (Zukunft) – matt und zurückgenommen ---- */
.door.is-locked .door__btn { cursor: not-allowed; }
.door.is-locked .door__front {
  background: linear-gradient(155deg, #7d5a2c 0%, #9c7740 30%, #b08b52 48%, #8f6a36 64%, #6e4d24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(61, 6, 11, .25), 0 4px 10px rgba(0, 0, 0, .25);
}
.door.is-locked .door__front::before { box-shadow: inset 0 0 0 1px rgba(61, 6, 11, .22); }
.door.is-locked .door__num { color: rgba(255, 240, 210, .42); text-shadow: none; }
.door__lock {
  position: absolute;
  top: 8cqw;
  left: 8cqw;
  width: 13cqw;
  height: 13cqw;
  color: rgba(255, 240, 210, .5);
  display: none;
}
.door.is-locked .door__lock { display: block; }
.door.is-shaking .door__btn { animation: shake .5s; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px) rotate(-.6deg); }
  20%, 80% { transform: translateX(4px) rotate(.8deg); }
  30%, 50%, 70% { transform: translateX(-6px) rotate(-1deg); }
  40%, 60% { transform: translateX(6px) rotate(1deg); }
}

/* ---- Zustand: vergangener Tag – steht offen, Produkt sichtbar, leicht abgedunkelt ---- */
.door.is-past .door__inside {
  background: linear-gradient(172deg, #ecc98a 0%, #d6a765 50%, #b07a45 100%);
  box-shadow: inset 0 8px 22px rgba(61, 6, 11, .32);
}
.door.is-past .door__inside::after { box-shadow: inset 0 0 0 1.5px rgba(213, 178, 97, .45), inset 0 0 30px rgba(61, 6, 11, .38); }
.door.is-past.is-over .door__img { opacity: .9; filter: saturate(.8); }
.door.is-past .door__num--in { color: #5c0a12; }
.door.is-past .door__btn:hover .door__inside { filter: brightness(1.12); }

/* ---- Zustand: heute – das eine Türchen, das leuchtet ---- */
@property --door-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.door.is-today { z-index: 3; scale: 1.08; }
.door.is-today::before {            /* umlaufender Goldrand */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--radius) + 5px);
  background: conic-gradient(from var(--door-angle), #fffbe6, #e9c26e, #8a6226, #fff3c9, #d5b261, #a87932, #fffbe6);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
  animation: door-ring 4s linear infinite;
}
@keyframes door-ring { to { --door-angle: 360deg; } }
.door.is-today::after {             /* pulsierender Lichthof */
  content: "";
  position: absolute;
  inset: -42%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 160, .95) 0%, rgba(255, 205, 100, .5) 38%, rgba(255, 200, 90, 0) 68%);
  pointer-events: none;
  animation: door-halo 2.6s ease-in-out infinite;
}
@keyframes door-halo {
  0%, 100% { opacity: .7; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
.door.is-today .door__front { background: linear-gradient(155deg, #c9973f 0%, #f3cf7c 22%, #fff4c8 46%, #f0c665 62%, #c08f3a 100%); }
.door.is-today.is-ready .door__inside { background: radial-gradient(circle at 80% 50%, #ffffff 0%, #fff6cf 30%, #ffd978 70%, #e8b85a 100%); box-shadow: none; }
/* Die Tür steht einen Spalt offen, Licht fällt heraus */
.door.is-today.is-ready .door__leaf { animation: door-ajar 3.4s ease-in-out infinite; }
@keyframes door-ajar {
  0%, 100% { transform: rotateY(-14deg); }
  50% { transform: rotateY(-30deg); }
}
.door.is-today.is-ready .door__btn:hover .door__leaf,
.door.is-today.is-ready .door__btn:focus-visible .door__leaf { animation: none; transform: rotateY(-48deg); transition: transform .45s cubic-bezier(.2, .8, .3, 1.2); }
.door.is-today.is-ready .door__btn:hover { transform: none; }

.door__tag {                        /* gerade Marke am heutigen Türchen */
  position: absolute;
  z-index: 6;
  top: 0;
  left: 50%;
  transform: translate(-50%, -58%);
  padding: .42em 1.05em .36em;
  border-radius: 999px;
  background: linear-gradient(180deg, #b3101f 0%, #8a0013 100%);
  color: #fff3d0;
  font-size: clamp(9px, 7.4cqw, 15px);
  line-height: 1;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 0 1.5px #f0d08a, 0 6px 14px rgba(0, 0, 0, .45);
  display: none;
  pointer-events: none;
}
.door.is-today .door__tag { display: block; }
.door__tag i { font-style: normal; }
@media (max-width: 719px) { .door__tag i { display: none; } }

.door__spark {                      /* funkelnde Sterne um das heutige Türchen */
  position: absolute;
  z-index: 7;
  width: 13cqw;
  height: 13cqw;
  background: #fff8dc;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px #ffe9a8);
  opacity: 0;
  pointer-events: none;
  display: none;
}
.door.is-today .door__spark { display: block; animation: door-twinkle 2.4s ease-in-out infinite; }
.door__spark:nth-last-child(3) { top: -9cqw; right: -8cqw; }
.door__spark:nth-last-child(2) { bottom: 12cqw; left: -10cqw; width: 9cqw; height: 9cqw; animation-delay: .8s !important; }
.door__spark:nth-last-child(1) { bottom: -8cqw; right: 16cqw; width: 10cqw; height: 10cqw; animation-delay: 1.5s !important; }
@keyframes door-twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* ---- Öffnen ---- */
.door.is-opening { z-index: 5; }
.door.is-opening .door__btn { animation: none; transform: scale(1.06); }
.door.is-opening .door__leaf, .door.is-open .door__leaf { animation: none; transform: rotateY(-112deg); opacity: 0; visibility: hidden; }
.door.is-open.no-anim .door__leaf, .door.is-open.no-anim .door__img, .door.is-open.no-anim .door__num--in { transition: none; }

.noscript { text-align: center; padding: 2rem; }

/* ---------- Info ---------- */
.info { max-width: var(--page-w); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad); }
.info__card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 6vw, 72px);
  border-radius: clamp(18px, 3vw, 34px);
  background: linear-gradient(175deg, #b8873f 0%, #e8c378 34%, #ffe3a3 58%, #dfb45f 100%);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.info__card h2 {
  font-size: clamp(1.45rem, 4.2vw, 2.7rem);
  line-height: 1.08;
  font-weight: 900;
  font-stretch: 116%;
  letter-spacing: -.015em;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(122, 85, 32, .45), 0 10px 24px rgba(122, 85, 32, .35);
}
.info__card > p { max-width: 62ch; margin-top: 1.1em; font-weight: 500; }
.steps {
  list-style: none;
  margin: clamp(22px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 246, 226, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
  font-size: .95rem;
  line-height: 1.4;
}
.steps strong { display: block; font-weight: 800; font-stretch: 110%; font-size: 1.05rem; margin-bottom: 2px; color: var(--red-600); }
.steps__n {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  font-weight: 900;
  font-stretch: 120%;
  font-size: 1.15rem;
}
.info__card .info__question { margin-top: clamp(22px, 4vw, 36px); font-weight: 800; font-stretch: 110%; font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--red-600); }
.info__card .info__note { margin-top: 1.4em; font-size: .86rem; opacity: .85; }

/* ---------- Fuß ---------- */
.footer { text-align: center; padding: 0 var(--pad) calc(34px + env(safe-area-inset-bottom)); font-size: .86rem; color: rgba(255, 246, 226, .78); }
.footer .band { margin: 0 calc(var(--pad) * -1) 28px; }
.footer__legal { max-width: 70ch; margin: 0 auto; }
.footer__legal strong { color: var(--gold-300); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 12px; font-weight: 700; }
.footer__nav a { text-decoration: none; padding: 6px 2px; border-bottom: 1.5px solid rgba(240, 208, 138, .5); }
.footer__nav a:hover { color: var(--gold-300); border-color: var(--gold-300); }
.footer__copy { opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .85em 1.7em;
  font: inherit;
  font-weight: 800;
  font-stretch: 110%;
  font-size: 1.05rem;
  line-height: 1.1;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--gold { background: var(--foil); color: var(--ink); box-shadow: 0 6px 0 var(--gold-900), 0 14px 26px rgba(0, 0, 0, .3); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--red { background: var(--red-600); color: var(--white); box-shadow: 0 6px 0 var(--red-900), 0 14px 26px rgba(61, 6, 11, .35); }
.btn--red:hover { background: var(--red-500); }
.btn--red:focus-visible { outline-color: var(--red-900); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255, 246, 226, .45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.btn svg { flex: none; }

/* ---------- Altersabfrage ---------- */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background-color: var(--red-800);
  background-image: radial-gradient(90% 70% at 50% 30%, rgba(184, 32, 44, .6) 0%, rgba(61, 6, 11, .6) 100%), url("img/knit.svg");
  background-size: auto, 10px 9px;
}
.agegate[hidden] { display: none; }
.agegate__box { max-width: 480px; }
.agegate__logo { width: 120px; margin: 0 auto 26px; border-radius: 50%; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.agegate__box h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 900; font-stretch: 118%; color: var(--gold-300); line-height: 1.1; }
.agegate__box p { margin-top: .7em; color: rgba(255, 246, 226, .82); font-size: 1.05rem; }
.agegate--preview { z-index: 90; }
.agegate__input {
  display: block;
  width: min(320px, 100%);
  margin: 1.4rem auto 0;
  padding: .85em 1.2em;
  font: inherit;
  font-size: 1.1rem;
  text-align: center;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--gold-500);
  border-radius: 999px;
}
.agegate__input:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.agegate__box .agegate__error { color: #ffd0d0; font-weight: 700; font-size: .95rem; }
.agegate__error[hidden] { display: none; }
.agegate__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1.8rem; }

/* ---------- Angebot (Modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 6, 11, .62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fade .35s both;
}
@keyframes fade { from { opacity: 0; } }
.modal__card {
  position: relative;
  width: min(430px, 100%);
  margin: auto;
  padding: 22px clamp(18px, 5vw, 30px) 24px;
  border-radius: 28px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(175deg, #c2924a 0%, #ecc97f 26%, #ffe8b0 52%, #e6be6c 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .65), 0 0 0 1px rgba(122, 85, 32, .4);
  outline: none;
  animation: card-in .55s cubic-bezier(.2, .9, .25, 1.12) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 40px)) scale(var(--fs, .6)); }
}
.modal.is-closing .modal__card { animation: card-out .22s ease-in forwards; }
.modal.is-closing .modal__backdrop { animation: fade .22s reverse forwards; }
@keyframes card-out { to { opacity: 0; transform: scale(.92); } }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 246, 226, .55);
  color: var(--red-900);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.modal__close:hover { background: var(--cream); transform: rotate(90deg); }
.modal__close:focus-visible { outline: 3px solid var(--red-900); outline-offset: 2px; }
.modal__eyebrow { font-weight: 900; font-stretch: 120%; font-size: 1.3rem; line-height: 1.15; color: var(--red-600); padding: 4px 44px 0; }
.modal__eyebrow small { display: block; margin-top: 3px; font-size: .74rem; font-weight: 700; font-stretch: 105%; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-900); }
.modal__media {
  position: relative;
  width: min(62%, 240px);
  aspect-ratio: 1;
  margin: 16px auto 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(122, 85, 32, .45), 0 0 0 3px rgba(255, 255, 255, .6);
}
.modal__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.modal__badge {
  position: absolute;
  z-index: 1;
  top: -18px;
  right: -28px;
  width: 80px;
  height: 80px;
  padding: 0;
  white-space: nowrap;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  font-weight: 900;
  font-stretch: 105%;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  transform: rotate(10deg);
  box-shadow: 0 0 0 3px var(--gold-100), 0 8px 18px rgba(61, 6, 11, .4);
  animation: badge .6s .35s cubic-bezier(.2, .9, .3, 1.6) both;
}
.modal__badge:empty { display: none; }
@keyframes badge { from { opacity: 0; transform: rotate(-30deg) scale(.2); } }
.modal__brand { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-900); }
.modal__title { margin-top: 2px; font-size: clamp(1.25rem, 5vw, 1.55rem); line-height: 1.12; font-weight: 900; font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }
.modal__sub { margin-top: 3px; font-weight: 600; font-size: .95rem; opacity: .82; }
.modal__prices { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 12px; }
.modal__price { font-size: 2.3rem; line-height: 1; font-weight: 900; font-stretch: 116%; letter-spacing: -.02em; color: var(--red-600); font-variant-numeric: tabular-nums; }
.modal__old { font-size: 1.05rem; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }
.modal__old:empty { display: none; }
.modal__base { margin-top: 4px; font-size: .78rem; opacity: .8; min-height: 1em; }
.modal__cta { width: 100%; margin-top: 14px; }
.modal__note { margin-top: 16px; font-size: .78rem; line-height: 1.4; opacity: .85; }
.modal.is-over .modal__price { color: var(--ink); font-size: 1.7rem; }
.modal.is-over .modal__media img { filter: grayscale(.6); }

/* ---------- Hinweis-Toast ---------- */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 28px);
  width: max-content;
  padding: 13px 22px;
  border-radius: 26px;
  background: var(--foil);
  color: var(--ink);
  font-weight: 800;
  font-size: .95rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow { display: none; }
  .door { animation: none; opacity: 1; transform: none; }
  .door__leaf { transition: opacity .3s; }
  .door.is-opening .door__leaf, .door.is-open .door__leaf { transform: none; }
  .door__img { transition: opacity .3s; transform: none; }
  .door__front::after, .door.is-today::before, .door.is-today::after, .door.is-today .door__spark,
  .door.is-today.is-ready .door__leaf, .door.is-shaking .door__btn,
  .door.is-opening .door__glow, .modal__card, .modal__badge, .modal__backdrop { animation: none !important; }
  .door.is-today.is-ready .door__leaf { transform: rotateY(-12deg); }
}
