:root {
  --bg:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --accent:#e11d48;
  --accent-2:#fb7185;
  --bg-start:#1B2943;
  --bg-end:#090F1D;
  --ring:#f59e0b;
  --ok:#16a34a;
}
* {
  box-sizing:border-box
}
html,
body {
  height:100%
}
body {
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  color:var(--text);
  min-height:100vh;
  background: radial-gradient(1200px 800px at 20% 10%, #1f2937 0%, var(--bg) 60%), url('assets/bg-calendar.jpg') center/cover no-repeat fixed;
} /* Head & basics */
.site-head {
  text-align:center;
  padding:2rem 1rem 1rem;
  backdrop-filter:blur(2px);
}
h1 {
  margin:0 0 .25rem;
  font-size:clamp(1.6rem,2.5vw,2.4rem)
}
.subtitle {
  color:var(--muted);
  margin-bottom:.75rem 
}
.legend {
  color:var(--muted);
}
a.btn[aria-disabled="true"] {
  pointer-events:none;
  opacity:.6;
  filter:grayscale(20%);
}
.controls {
  text-align:center;
  margin:1rem 0 2rem 
}
.reset {
  text-decoration:none;
  border:1px solid #ffffff33;
  padding:.6rem .9rem;
  border-radius:.75rem;
  color:var(--text) 
}
.reset:hover {
  background:#ffffff10 
} /* Grid */
.grid {
  width:min(1100px,92vw);
  margin:0 auto 3rem;
  display:grid;
  gap:.85rem;
  grid-template-columns:repeat(6,1fr) 
}
@media (max-width:900px) {
  .grid {
    grid-template-columns:repeat(4,1fr) 
  }
}
@media (max-width:640px) {
  .grid {
    grid-template-columns:repeat(3,1fr) 
  }
} /* ========================= CLASSIC ADVENT DOORS ========================= */
.door {
  position:relative;
  aspect-ratio:1/1;
  border:1px solid rgba(255,255,255,.12);
  border-radius:1rem;
  background:linear-gradient(145deg,#0b1224,#121a32);
  box-shadow:0 10px 30px rgba(0,0,0,.34), inset 0 0 0 2px rgba(255,255,255,.04);
  cursor:pointer;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, filter .2s ease, opacity .2s ease;
  display:block;
  isolation:isolate;
}
.door.can-open:hover {
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.08);
}
.door.can-open:active { transform:translateY(0); }
.door[aria-disabled="true"] {
  cursor:default;
  filter:grayscale(.7) brightness(.84);
  opacity:.76;
}

/* Bühne: das Vorschaumotiv liegt wie der Inhalt hinter einer echten Kartonklappe. */
.door .door-scene {
  position:absolute;
  inset:0;
  perspective:1100px;
  border-radius:.9rem;
  overflow:hidden;
  background:#0b1224;
}
.door .door-bg {
  position:absolute;
  inset:0;
  background:#0b1224;
  background-size:cover;
  background-position:center;
  border-radius:.9rem;
  opacity:0;
  transform:scale(1.035);
  filter:brightness(.66) saturate(.88);
  transition:opacity .32s ease, transform .75s cubic-bezier(.2,.75,.12,1), filter .32s ease;
}
.door .door-preview-shade {
  position:absolute;
  inset:0;
  z-index:1;
  opacity:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(5,10,20,.5) 0%,rgba(5,10,20,.26) 42%,rgba(5,10,20,.12) 100%);
  transition:opacity .32s ease;
}

/* Eine einzige klassische Klappe. Sie bleibt nach dem Öffnen halb aufgestellt. */
.door .door-flap {
  position:absolute;
  inset:0;
  z-index:3;
  transform-origin:left center;
  transform:rotateY(0deg);
  transform-style:preserve-3d;
  backface-visibility:hidden;
  border-radius:.88rem;
  transition:transform .9s cubic-bezier(.18,.72,.14,1), filter .3s ease;
  will-change:transform;
}
.door .door-flap-inner {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border-radius:.88rem;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 28% 18%,rgba(255,255,255,.09),transparent 34%),
    linear-gradient(145deg,#182033 0%,#111827 48%,#0c1324 100%);
  box-shadow:inset 0 6px 18px rgba(255,255,255,.025), inset 0 -18px 28px rgba(0,0,0,.24), 7px 0 16px rgba(0,0,0,.16);
  overflow:hidden;
  backface-visibility:hidden;
}
.door .door-flap-inner::before {
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:.66rem;
  pointer-events:none;
}
.door .door-flap-inner::after {
  content:"";
  position:absolute;
  top:10%;
  bottom:10%;
  right:7px;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.13),transparent);
  opacity:.75;
}
.door .door-flap-highlight {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,.055),transparent 36%,rgba(0,0,0,.11));
}
.door .door-number {
  position:relative;
  z-index:2;
  color:#fff;
  font-weight:800;
  font-size:clamp(1.5rem,4vw,2.15rem);
  letter-spacing:.02em;
  line-height:1;
  text-shadow:0 2px 12px rgba(0,0,0,.34);
  pointer-events:none;
}
.door .door-hinge {
  position:absolute;
  z-index:5;
  left:4px;
  top:14%;
  bottom:14%;
  width:2px;
  border-radius:2px;
  opacity:.36;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.45) 20%,rgba(255,255,255,.18) 80%,transparent);
  pointer-events:none;
}

/* Nur ein dezenter "Spalt" beim Hover – das Türchen springt nicht komplett auf. */
.door.can-open:not(.opened):hover .door-flap { transform:rotateY(-8deg); }
.door.can-open:not(.opened):hover .door-bg { opacity:.2; }

/* Öffnungsanimation: kurz weiter öffnen und dann in der halb geöffneten Position ruhen. */
.door.opening .door-flap { transform:rotateY(-74deg); }
.door.opening .door-bg,
.door.opened .door-bg { opacity:1; transform:scale(1); }
.door.opening .door-preview-shade,
.door.opened .door-preview-shade { opacity:1; }

/* Dauerzustand nach dem Schließen der Inhalts-Lightbox: klassische halb offene Klappe. */
.door.opened .door-flap {
  transform:rotateY(-58deg);
  filter:brightness(.94);
}
.door.opened {
  border-color:rgba(214,180,105,.28);
  box-shadow:0 13px 34px rgba(0,0,0,.4), inset 0 0 0 1px rgba(214,180,105,.09);
}
.door.opened:hover .door-flap { transform:rotateY(-63deg); }
.door.opened:hover .door-bg { filter:brightness(.72) saturate(.94); }

/* Bei bereits abgelaufenen Türen bleibt ein gedämpfter Einblick erhalten. */
.door.closed .door-bg {
  opacity:.82 !important;
  transform:scale(1);
  filter:grayscale(.85) brightness(.57);
}
.door.closed .door-preview-shade { opacity:.5; }
.door.closed .door-flap { transform:rotateY(-48deg); }

/* Gesperrte Türen zeigen keinerlei Inhalt vorab. */
.door[aria-disabled="true"] .door-bg { opacity:0 !important; }
.door[aria-disabled="true"] .door-preview-shade { opacity:0 !important; }
.door[aria-disabled="true"] .door-flap { transform:none; }
.door[aria-disabled="true"] .door-number { color:#e5e7eb; }
.door[aria-disabled="true"]:hover {
  transform:none;
  box-shadow:0 10px 30px rgba(0,0,0,.34), inset 0 0 0 2px rgba(255,255,255,.04);
}
.door[aria-disabled="true"]:active { transform:none; }

/* Alte Status-Elemente des früheren Door-Effekts nicht anzeigen. */
.ribbon,.badge { display:none; }

@media (prefers-reduced-motion: reduce) {
  .door,.door .door-flap,.door .door-bg,.door .door-preview-shade { transition:none; }
  .door.can-open:not(.opened):hover .door-flap { transform:none; }
  .door.opening .door-flap,.door.opened .door-flap { transform:rotateY(-52deg); }
}

/* ========================= Lightbox / Modal ========================= */
.overlay {
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:#000000aa;
  z-index:50 
}
.overlay[aria-hidden="false"] {
  display:grid 
}
.modal {
  width:92vW;
  max-width:650px;
  background:linear-gradient(180deg,#0b1224,#0e142b);
  border:1px solid #ffffff22;
  border-radius:1.2rem;
  overflow:hidden;
  box-shadow:0 40px 70px #000000aa;
  animation:pop .2s ease;
  max-height: 92vh;              /* <-- Neu: begrenzt die Höhe */
  display: grid;                 /* Kopf fix, Body scrollt */
  grid-template-rows: auto 1fr;  /* .head | .body */
}
@keyframes pop {
  from {
    transform:scale(.98);
    opacity:.8 
  }
  to {
    transform:scale(1);
    opacity:1 
  }
}
.head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 1.25rem;
  border-bottom:1px solid #ffffff1a 
}
.title {
  font-weight:700;
  font-size:1.05rem 
}
.close {
  background:transparent;
  color:#fff;
  border:1px solid #ffffff33;
  border-radius:.6rem;
  padding:.4rem .6rem;
  cursor:pointer 
}
.body {
  display:grid;
  grid-template-columns:1fr;
  gap:1.25rem;
  padding:1.25rem;
  overflow: auto;                /* <-- Neu: Inhalt kann scrollen */
  -webkit-overflow-scrolling: touch; /* smoother Scroll auf iOS */
}

@media (max-width: 480px) {
  .modal { max-height: 93vh;padding-bottom:30px;}
}

.media {
  border-radius:.8rem;
  border:1px solid #ffffff1a;
  background:#0b0f1f;

}

/* Bild oder Video soll ganz normal skalieren */
.media img,
.media video {
  width:100%;
  height:auto;
  display:block;
}



label {
  font-size:.9rem;
  color:var(--muted) 
}
input,
textarea {
  width:100%;
  padding:.7rem .8rem;
  background:#0a0f20;
  color:#fff;
  border:1px solid #ffffff22;
  border-radius:.6rem;
  outline:none 
}
input:focus,
textarea:focus {
  border-color:var(--ring);
  box-shadow:0 0 0 3px #f59e0b33 
}
.actions {
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap 
}
.btn {
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;
  border:none;
  border-radius:.7rem;
  padding:.7rem 1rem;
  font-weight:700;
  cursor:pointer 
}
.secondary {
  background:transparent;
  border:1px solid #ffffff33 
}
.hint {
  color:var(--muted);
  font-size:.85rem 
}
.success {
  display:none;
  background:#052e18;
  border:1px solid #22c55e55;
  color:#bbf7d0;
  padding:.7rem .8rem;
  border-radius:.6rem;
  font-size:.9rem 
}
.success.show {
  display:block 
}
.site-foot {
  text-align:center;
  padding:1.5rem;
  color:#9ca3af;
  font-size:.9rem 
}
.site-foot a {
  color:#cbd5e1 
}
.content-text {
  line-height:1.6 
} /* Countdown – Glass Pill */
#countdown {
  --cd-a: var(--accent);
  --cd-b: var(--accent-2);
  margin-top:.35rem;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius:999px;
  border:1px solid #ffffff22;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color:var(--text);
  font-weight:700;
  font-size:clamp(.95rem, 1.4vw, 1.05rem);
  letter-spacing:.01em;
  font-variant-numeric: tabular-nums;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
#countdown::before {
  content:"⏳";
  font-size:1.1em;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
} /* (Optional) Zahlen besonders highlighten, falls du sie mit <b>...<\/b> umschließt */
#countdown b {
  background:linear-gradient(90deg, var(--cd-a), var(--cd-b));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 24px rgba(225,29,72,.25);
  font-weight:800;
}

#signup input {margin-bottom:.8rem}
#signup label {margin-bottom:0.5rem;display:block}

.dsgvo-note{margin:.8rem 0; font-size:.95rem; color:var(--muted);}
.dsgvo-note a{text-decoration:underline;color:var(--muted);}
.dsgvo-note a:hover{text-decoration:none;color:var(--muted);}
.dsgvo-note ul,.dsgvo-note ol{padding-left:1.2rem}

.cons-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .55rem;
  cursor: pointer;
  font-size: .95rem;
  color: var(--muted);
}

/* Normale Browser-Checkbox */
.cons-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Pflichtfeld-Stern */
.cons-label .req {
  color: #dc2626;
  font-weight: bold;
}


@media (max-width: 768px) {
  body {
    /* Verlauf weg, nur Bild, vollflächig */
    background:
      #0f172a
      url('assets/bg-calendar.jpg')
      center/cover no-repeat;

    background-attachment: scroll; /* explizit KEIN fixed auf Mobile */
  }
}


/* Admin-only live preview indicator. Visible only when a valid preview cookie exists. */
.admin-preview-indicator{position:fixed;right:18px;bottom:18px;z-index:9999;display:grid;gap:4px;max-width:360px;padding:14px 16px;border:1px solid rgba(35,98,196,.25);border-radius:14px;background:rgba(246,249,255,.97);box-shadow:0 12px 32px rgba(20,37,63,.18);color:#1f2f4d;font:500 13px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;backdrop-filter:blur(8px)}
.admin-preview-indicator strong{font-size:14px}.admin-preview-indicator span{color:#60708b}.admin-preview-indicator a{margin-top:3px;color:#2d63d6;font-weight:700;text-decoration:none}.admin-preview-indicator a:hover{text-decoration:underline}
@media(max-width:640px){.admin-preview-indicator{left:12px;right:12px;bottom:12px;max-width:none}}


/* ===============================================================
 * FRONTEND EXPERIENCE 2026 — 1.1.52
 * Premium winter appearance, no changes to door timing or signup.
 * Existing custom font/background/CTA colors stay configurable.
 * =============================================================== */
:root {
  --xmas-gold: #dec28c;
  --xmas-gold-soft: #f2dfb7;
  --xmas-line: rgba(220, 192, 136, .25);
  --xmas-deep: #0a1323;
  --xmas-surface: #121d2e;
}
html { scroll-behavior:smooth; }
body { isolation:isolate; }
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 56% 39% at 50% -10%, rgba(220,183,109,.13), transparent 83%),
    radial-gradient(ellipse 31% 39% at 94% 73%, rgba(24,68,75,.11), transparent 100%),
    linear-gradient(180deg,rgba(6,15,29,.03),rgba(4,10,21,.27));
}
.site-head, .grid, .site-foot { position:relative;z-index:1; }
.site-head {
  padding:clamp(2.7rem,5.5vw,5rem) 1rem 2.55rem;
  max-width:980px;
  margin:0 auto;
  text-align:center;
}
.season-kicker {
  margin:0 0 1rem;
  color:var(--xmas-gold-soft);
  letter-spacing:.3em;
  font-size:.73rem;
  font-weight:750;
  text-transform:uppercase;
}
.site-head h1 {
  margin:0;
  color:#fff9ee;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.7rem,6.3vw,5.5rem);
  letter-spacing:-.048em;
  line-height:1.06;
  font-weight:500;
  text-wrap:balance;
  text-shadow:0 9px 33px rgba(0,0,0,.28);
}
.site-head h1::after {
  content:"";
  display:block;
  width:68px;
  height:1px;
  margin:1.25rem auto 0;
  background:linear-gradient(90deg,transparent,var(--xmas-gold),transparent);
}
.site-head .subtitle {
  max-width:640px;
  margin:1.15rem auto .55rem;
  color:#e5e4e1;
  font-size:clamp(.96rem,1.6vw,1.09rem);
  line-height:1.7;
}
.site-head .legend:not(#countdown) {
  max-width:660px;
  margin:.45rem auto;
  color:#aab7ca;
  font-size:.92rem;
  line-height:1.65;
}
.site-head #countdown {
  display:inline-flex;
  max-width:min(100%,660px);
  margin:1.3rem auto 0;
  padding:.76rem 1.2rem;
  justify-content:center;
  text-align:center;
  font-size:.9rem;
  line-height:1.55;
  font-weight:600;
  letter-spacing:.014em;
  color:#f5ebd5;
  border:1px solid rgba(225,195,132,.29);
  border-radius:50px;
  background:linear-gradient(120deg,rgba(224,194,132,.13),rgba(255,255,255,.035));
  box-shadow:0 9px 26px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.055);
}
.site-head #countdown::before { content:"✦";color:var(--xmas-gold);font-size:.92rem;filter:none; }
.grid {
  width:min(1080px,calc(100% - 42px));
  gap:clamp(.65rem,1.4vw,1.1rem);
  margin:0 auto 3.2rem;
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.door {
  aspect-ratio: 1 / 1.08;
  border:1px solid rgba(223,193,134,.25);
  border-radius:13px;
  background:#0c1729;
  box-shadow:0 10px 20px rgba(0,0,0,.2),0 0 0 1px rgba(0,0,0,.18);
  -webkit-tap-highlight-color:transparent;
}
.door .door-scene { border-radius:12px; background:#091526; }
.door .door-flap { border-radius:12px; }
.door .door-flap-inner {
  border-radius:12px;
  border:1px solid rgba(245,218,166,.11);
  background:
    radial-gradient(circle at 50% 0%,rgba(235,199,127,.1),transparent 51%),
    radial-gradient(circle at 85% 82%,rgba(15,55,65,.19),transparent 56%),
    linear-gradient(148deg,#1c2a3c 0%,#111e30 49%,#091526 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),inset 0 -22px 40px rgba(0,0,0,.14);
}
.door .door-flap-inner::before {
  content:"✦";
  inset:auto;
  position:absolute;
  top:13%; left:50%;
  transform:translateX(-50%);
  border:0;
  font-size:clamp(.58rem,1vw,.8rem);
  line-height:1;
  color:rgba(226,192,127,.67);
  box-shadow:none;
}
.door .door-flap-inner::after {
  content:"";
  position:absolute;
  width:42%;height:1px;
  top:auto;bottom:19%;left:29%;right:auto;
  background:linear-gradient(90deg,transparent,rgba(226,195,134,.48),transparent);
  opacity:1;
}
.door .door-flap-highlight {
  background:linear-gradient(120deg,rgba(255,255,255,.075),transparent 33%,rgba(0,0,0,.07));
}
.door .door-number {
  color:#f5e2b8;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.25rem,3.75vw,3.45rem);
  font-weight:500;
  letter-spacing:-.05em;
  text-shadow:0 3px 15px rgba(0,0,0,.18);
}
.door .door-hinge { background:linear-gradient(180deg,transparent,rgba(232,202,145,.55),transparent); }
/* Strictly no opening, shifting or peek on locked/expired doors. */
.door[aria-disabled="true"] {
  opacity:.83;
  filter:none;
  cursor:default;
}
.door[aria-disabled="true"] .door-number { color:rgba(228,220,203,.76); }
.door[aria-disabled="true"] .door-flap-inner { filter:saturate(.7); }
.door[aria-disabled="true"]:hover,
.door[aria-disabled="true"]:focus,
.door[aria-disabled="true"]:active { transform:none; box-shadow:0 10px 20px rgba(0,0,0,.2),0 0 0 1px rgba(0,0,0,.18); }
.door.can-open:not(.opened) { border-color:rgba(237,202,134,.72); box-shadow:0 9px 25px rgba(0,0,0,.22),0 0 19px rgba(205,160,89,.12); }
.door.can-open:not(.opened) .door-flap-inner { background:linear-gradient(144deg,#26364a 0%,#17283a 65%,#101e31 100%); }
.door.can-open:hover { box-shadow:0 15px 35px rgba(0,0,0,.28),0 0 24px rgba(223,182,102,.16); }
.door.can-open:focus-visible { outline:3px solid #f2ce87;outline-offset:4px; }
.door.opened { border-color:rgba(234,195,112,.55); }
.door[data-door-id="24"]:not(.opened) .door-number { color:#ffe2a1; }
.door[data-door-id="24"]:not(.opened) .door-flap-inner {
  background:radial-gradient(circle at 50% 27%,rgba(218,168,91,.21),transparent 62%),linear-gradient(155deg,#263044,#111e30 70%);
}
.door .door-bg { border-radius:12px; }
/* The old appearance showed content through locked doors on hover. Never do that. */
.door[aria-disabled="true"] .door-bg { opacity:0 !important; }
.door[aria-disabled="true"] .door-flap { transform:none !important; }
.door[aria-disabled="true"] .door-preview-shade { opacity:0 !important; }
.overlay {
  padding:20px;
  background:rgba(2,7,16,.82);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.modal {
  width:min(100%,760px);
  max-width:760px;
  max-height:min(90vh,900px);
  border-radius:20px;
  border:1px solid rgba(236,207,146,.3);
  background:linear-gradient(150deg,#18283b 0%,#101b2e 50%,#0c1729 100%);
  box-shadow:0 36px 95px rgba(0,0,0,.57),inset 0 1px 0 rgba(255,255,255,.045);
  color:#eef0f3;
}
.modal .head {
  padding:1.25rem clamp(1.15rem,3vw,2rem);
  border-bottom:1px solid rgba(230,196,136,.2);
  gap:1rem;
}
.modal .title {
  color:#f8e8c5;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.35rem,2.8vw,1.7rem);
  font-weight:500;
}
.modal .close {
  flex-shrink:0;
  color:#e8dece;
  font-weight:600;
  font-size:.8rem;
  padding:.65rem .9rem;
  border-radius:9px;
  border:1px solid rgba(233,213,177,.22);
  background:rgba(255,255,255,.045);
  transition:background .2s,border-color .2s;
}
.modal .close:hover { background:rgba(255,255,255,.1);border-color:rgba(233,213,177,.48); }
.modal .close:focus-visible {outline:2px solid var(--xmas-gold);outline-offset:3px;}
.modal .body {display:block; padding:clamp(1.25rem,3.2vw,2.1rem); }
.modal .media {
  overflow:hidden;
  margin:0 0 1.4rem;
  border:1px solid rgba(240,212,157,.2);
  border-radius:12px;
  background:rgba(4,9,18,.28);
}
.modal .media:empty {display:none;}
.modal .media img,.modal .media video {
  display:block;width:100%;max-height:50vh;height:auto;object-fit:contain;border-radius:0 !important;
}
.modal .content-text {margin:0 0 1.25rem; font-size:1rem;line-height:1.75;color:#e4e8f0;white-space:pre-line;}
.modal .content-text:empty {display:none;}
#signup {
  padding:clamp(1.1rem,3vw,1.6rem);
  border:1px solid rgba(244,225,183,.15);
  border-radius:13px;
  background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
}
#signup::before {
  content:"Mitmachen & gewinnen";
  display:block;
  margin:0 0 1.25rem;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.4rem;
  font-weight:500;
  color:#f2dbac;
}
#signup label {margin:0 0 .5rem;color:#c4cedd;font-weight:600;font-size:.86rem;}
#signup input:not([type="hidden"]):not([type="checkbox"]) {
  min-height:48px;
  background:rgba(7,17,34,.73);
  border:1px solid rgba(213,222,239,.18);
  padding:.85rem 1rem;
  border-radius:9px;
  color:#fff;
  font-size:1rem;
}
#signup input::placeholder {color:#8998ab;opacity:1;}
#signup input:focus {border-color:rgba(237,197,126,.84);box-shadow:0 0 0 3px rgba(222,194,140,.13);}
#signup .actions {margin-top:.6rem;}
.modal .btn {
  min-height:46px;
  padding:.8rem 1.4rem;
  border-radius:9px;
  font-size:.93rem;
  box-shadow:0 9px 22px rgba(0,0,0,.15);
}
.modal .btn:hover {filter:brightness(1.08);}
.modal .btn:focus-visible {outline:2px solid #f5d596;outline-offset:3px;}
.modal .success {margin-top:1.1rem;line-height:1.6;border-radius:9px;}
.modal .dsgvo-note {line-height:1.7;font-size:.87rem;color:#b7c5d5;}
.modal .cons-label {align-items:flex-start;line-height:1.6;color:#d6deeb;}
.modal .cons-label input[type="checkbox"] {flex-shrink:0;margin-top:.32rem;accent-color:var(--accent);}
.modal .dsgvo-note a {color:#f2d9a7;}
.site-foot {
  margin:0 auto;
  padding:0 1rem 2.4rem;
  color:#8e9eb5;
  font-size:.82rem;
  line-height:1.8;
}
.site-foot .controls {margin:0 0 1.5rem;}
.site-foot .reset {color:#9dacbf;border-color:rgba(255,255,255,.15);font-size:.78rem;padding:.48rem .8rem;}
.site-foot a:not(.reset) {color:#aebbd0;}
.site-foot a[href^="admin/"] {display:none;}
@media (max-width:900px) {
  .grid { grid-template-columns:repeat(4,minmax(0,1fr));width:min(760px,calc(100% - 32px)); }
  .site-head {padding-top:3.3rem;}
}
@media (max-width:640px) {
  .site-head {padding:2.7rem 1.1rem 1.75rem;}
  .site-head h1 {font-size:clamp(2.55rem,10vw,3.8rem);}
  .season-kicker {font-size:.67rem;letter-spacing:.22em;}
  .grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:calc(100% - 24px);margin-bottom:2.4rem;}
  .door {border-radius:10px;aspect-ratio:1/1.15;}
  .door .door-scene,.door .door-flap,.door .door-flap-inner,.door .door-bg{border-radius:9px;}
  .door .door-number {font-size:clamp(2rem,8vw,3rem);}
  .overlay {padding:10px;align-items:center;}
  .modal {border-radius:14px;max-height:calc(100dvh - 20px);}
  .modal .head {padding:1rem 1.15rem;}
  .modal .body {padding:1rem;}
  #signup {padding:1.1rem;}
  #signup::before {font-size:1.24rem;}
  .modal .media img,.modal .media video {max-height:35vh;}
}
@media (prefers-reduced-motion: reduce) {
  html {scroll-behavior:auto;}
  .door,.door *,.modal {animation:none !important;transition:none !important;}
}


/* ================================================================
 * MODERN CALENDAR STYLES – 1.1.53
 * Visual-only styles: no changes to door state, signup or timing.
 * Desktop: responsive 6 × 4 stage sized for the available viewport.
 * Smaller screens: comfortable touch-sized cards and natural scrolling.
 * ================================================================ */
body[data-calendar-style] {
  /* Alle sechs Design-Farben wirken auf den gewählten Stil. */
  --stage-bg:var(--bg-end,#090F1D);
  --stage-surface:var(--bg-start,#1B2943);
  --stage-surface-b:var(--bg-end,#090F1D);
  --stage-line:color-mix(in srgb, var(--text,#F4F7FB) 20%, transparent);
  --stage-ink:var(--text,#F4F7FB);
  --stage-muted:var(--muted,#A7B4C9);
  --stage-highlight:var(--accent,#6696F4);
  --stage-shadow:rgba(0,0,0,.15);
  color:var(--stage-ink);
  isolation:isolate;
}
/* Farbflächen aus beiden Hintergrundfarben ableiten, unabhängig vom Stil. */
@supports (color:color-mix(in srgb, red, blue)) {
  body[data-calendar-style] {
    --stage-surface:color-mix(in srgb, var(--bg-start,#1B2943) 85%, var(--bg-end,#090F1D));
    --stage-surface-b:color-mix(in srgb, var(--bg-start,#1B2943) 38%, var(--bg-end,#090F1D));
  }
}
body[data-calendar-style="frost"] { --stage-shadow:rgba(41,67,104,.08); }
body[data-calendar-style="evergreen"] { --stage-shadow:rgba(1,21,16,.25); }
/* Ohne eigenes Bild richtet sich der Hintergrund nach den editierbaren Farbwerten. */
body[data-calendar-style][data-calendar-custom-bg="0"] {
  background:radial-gradient(ellipse at 52% -15%,var(--bg-start,#1B2943) 0%,var(--bg-end,#090F1D) 100%) fixed !important;
}
body[data-calendar-style]::before {
  background:radial-gradient(ellipse 37% 34% at 52% 0%, rgba(159,188,229,.065), transparent 100%);
}
body[data-calendar-style="frost"]::before {
  background:radial-gradient(ellipse 45% 38% at 50% 0%, rgba(255,255,255,.65),transparent 95%);
}
body[data-calendar-style="evergreen"]::before {
  background:radial-gradient(ellipse 40% 34% at 50% 0%, rgba(214,197,130,.09), transparent 100%);
}
body[data-calendar-style] .site-head {padding:1.35rem 1rem 1.1rem;max-width:1100px;}
body[data-calendar-style] .season-kicker {
  margin:0 0 .45rem;color:var(--stage-highlight);
  font-size:.68rem;letter-spacing:.24em;font-weight:750;
}
body[data-calendar-style] .site-head h1 {
  color:var(--stage-ink);
  font:750 clamp(2.2rem,4.8vw,3.7rem)/1.05 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:-.055em;
}
body[data-calendar-style] .site-head h1::after {display:none;}
body[data-calendar-style] .site-head .subtitle {
  max-width:780px;margin:.55rem auto .15rem;color:var(--stage-ink);
  font-size:clamp(.86rem,1.15vw,.97rem);line-height:1.4;
}
body[data-calendar-style] .site-head .legend:not(#countdown) {
  max-width:780px;margin:.1rem auto;color:var(--stage-muted);font-size:.79rem;line-height:1.4;
}
body[data-calendar-style] .site-head #countdown {
  display:inline-flex;margin:.65rem auto 0;padding:.35rem .82rem;
  background:var(--stage-surface);border:1px solid var(--stage-line);
  box-shadow:none;border-radius:999px;color:var(--stage-ink);
  font-size:.76rem;line-height:1.4;font-weight:600;
}
body[data-calendar-style] .site-head #countdown::before {content:"";display:none;}
body[data-calendar-style] .grid {
  width:min(1020px, calc(100% - 48px));
  gap:10px;margin:0 auto 1rem;
  grid-template-columns:repeat(6,minmax(0,1fr));
}
body[data-calendar-style] .door {
  aspect-ratio:1 / .84;
  min-width:0;min-height:0;
  border:1px solid var(--stage-line);border-radius:12px;
  background:var(--stage-surface);
  box-shadow:0 5px 18px var(--stage-shadow);
  filter:none;opacity:1;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body[data-calendar-style] .door .door-scene,
body[data-calendar-style] .door .door-flap,
body[data-calendar-style] .door .door-flap-inner,
body[data-calendar-style] .door .door-bg {border-radius:11px;}
body[data-calendar-style] .door .door-flap-inner,
body[data-calendar-style] .door.can-open:not(.opened) .door-flap-inner,
body[data-calendar-style] .door[data-door-id="24"]:not(.opened) .door-flap-inner {
  background:linear-gradient(145deg,var(--stage-surface),var(--stage-surface-b));
  border:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
  filter:none;
}
body[data-calendar-style="frost"] .door .door-flap-inner {box-shadow:inset 0 1px 0 #fff;}
body[data-calendar-style] .door .door-flap-highlight {background:linear-gradient(126deg,rgba(255,255,255,.045),transparent 45%);}
body[data-calendar-style] .door .door-flap-inner::before {
  content:"";width:6px;height:6px;top:15px;left:auto;right:16px;
  transform:none;border:1px solid var(--stage-highlight);border-radius:50%;
  opacity:.55;background:transparent;box-shadow:none;
}
body[data-calendar-style] .door .door-flap-inner::after {
  content:"";height:2px;width:20px;bottom:17px;left:calc(50% - 10px);right:auto;top:auto;
  border-radius:2px;background:var(--stage-highlight);opacity:.28;
}
body[data-calendar-style] .door .door-hinge {display:none;}
body[data-calendar-style] .door .door-number {
  font:650 clamp(1.8rem,3vw,2.55rem)/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:-.06em;text-shadow:none;color:var(--stage-ink);
}
body[data-calendar-style] .door[data-door-id="24"] .door-number {color:var(--stage-highlight);}
/* No fake half-open doors and no previews visible through a locked door. */
body[data-calendar-style] .door .door-flap,
body[data-calendar-style] .door.opened .door-flap,
body[data-calendar-style] .door.opening .door-flap,
body[data-calendar-style] .door.closed .door-flap,
body[data-calendar-style] .door.can-open:not(.opened):hover .door-flap {transform:none !important;filter:none !important;}
body[data-calendar-style] .door .door-bg,
body[data-calendar-style] .door.opened .door-bg,
body[data-calendar-style] .door.opening .door-bg,
body[data-calendar-style] .door.closed .door-bg {opacity:0 !important;}
body[data-calendar-style] .door .door-preview-shade,
body[data-calendar-style] .door.opened .door-preview-shade {opacity:0 !important;}
body[data-calendar-style] .door.opened {
  border-color:var(--stage-highlight);
  box-shadow:inset 0 0 0 1px var(--stage-highlight),0 5px 18px var(--stage-shadow);
}
body[data-calendar-style] .door.opened .door-flap-inner::before {
  background:var(--stage-highlight);opacity:.85;
}
body[data-calendar-style] .door[aria-disabled="true"] {opacity:.65;cursor:default;}
body[data-calendar-style] .door[aria-disabled="true"] .door-number {color:var(--stage-ink);}
body[data-calendar-style] .door[aria-disabled="true"]:hover,
body[data-calendar-style] .door[aria-disabled="true"]:active {
  transform:none !important;border-color:var(--stage-line);
  box-shadow:0 5px 18px var(--stage-shadow);
}
body[data-calendar-style] .door.can-open:hover {transform:translateY(-2px);border-color:var(--stage-highlight);}
body[data-calendar-style] .door.can-open:focus-visible {outline:2px solid var(--stage-highlight);outline-offset:3px;}
body[data-calendar-style] .site-foot {
  padding:.4rem 1rem 1rem;line-height:1.5;color:var(--stage-muted);font-size:.74rem;
}
body[data-calendar-style] .site-foot .controls {display:inline-block;margin:0 .6rem 0 0;}
body[data-calendar-style] .site-foot .reset {font-size:.74rem;padding:.36rem .6rem;border-color:var(--stage-line);color:var(--stage-muted);}
body[data-calendar-style] .site-foot a:not(.reset) {color:var(--stage-muted);}
body[data-calendar-style] .modal {
  width:min(100%,680px);max-width:680px;border:1px solid var(--stage-line);
  background:var(--stage-surface-b);border-radius:16px;color:var(--stage-ink);
}
body[data-calendar-style] .modal .head {border-color:var(--stage-line);padding:1rem 1.4rem;}
body[data-calendar-style] .modal .title {
  font:700 clamp(1.25rem,2vw,1.55rem)/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--stage-ink);letter-spacing:-.03em;
}
body[data-calendar-style] .modal .close {color:var(--stage-ink);border-color:var(--stage-line);}
body[data-calendar-style] .modal .body {padding:1.3rem;}
body[data-calendar-style] .modal .content-text {color:var(--stage-ink);}
body[data-calendar-style] #signup {background:var(--stage-surface);border-color:var(--stage-line);}
body[data-calendar-style] #signup::before {
  color:var(--stage-ink);font:700 1.15rem/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
}
body[data-calendar-style] #signup label,
body[data-calendar-style] .modal .dsgvo-note,
body[data-calendar-style] .modal .cons-label {color:var(--stage-muted);}
body[data-calendar-style] #signup input:not([type="hidden"]):not([type="checkbox"]) {
  color:var(--stage-ink);background:var(--stage-bg);border-color:var(--stage-line);
}
body[data-calendar-style] #signup input::placeholder {color:var(--stage-muted);}
body[data-calendar-style] .modal .btn {background:var(--accent);color:#fff;border:0;}
body[data-calendar-style="frost"] .modal .btn {background:var(--accent);color:#fff;}
body[data-calendar-style="evergreen"] .modal .btn {background:var(--accent);color:var(--bg-end,#071c19);}
body[data-calendar-style="frost"] .modal .close:hover {background:rgba(41,75,119,.07);}
body[data-calendar-style="frost"] .modal .dsgvo-note a {color:var(--accent);}

/* Desktop fit: 24 doors visible without requiring a scroll on normal desktop screens. */
@media (min-width:901px) and (min-height:600px) {
  body[data-calendar-style] {min-height:100dvh;}
  body[data-calendar-style] .site-head {padding-top:clamp(.65rem,2.4dvh,1.5rem);padding-bottom:clamp(.4rem,1.25dvh,.85rem);}
  body[data-calendar-style] .site-head h1 {font-size:clamp(1.85rem,4.3dvh,3rem);}
  body[data-calendar-style] .site-head .subtitle {margin-top:.35rem;}
  body[data-calendar-style] .site-head #countdown {margin-top:.45rem;}
  body[data-calendar-style] .grid {
    --tile-height:clamp(78px, calc((100dvh - 258px) / 4), 165px);
    width:min(1020px, calc(100% - 48px), calc(var(--tile-height)*7.2));
    gap:clamp(6px,1dvh,10px);margin-bottom:clamp(.35rem,1.2dvh,.8rem);
  }
  body[data-calendar-style] .door {height:var(--tile-height);aspect-ratio:auto;}
  body[data-calendar-style] .site-foot {padding-bottom:.5rem;}
}
@media (min-width:901px) and (max-height:700px) {
  body[data-calendar-style] .site-head .legend:not(#countdown) {display:none;}
  body[data-calendar-style] .grid {--tile-height:clamp(65px, calc((100dvh - 205px)/4), 120px);}
  body[data-calendar-style] .site-head {padding-top:.45rem;padding-bottom:.4rem;}
}
@media (max-width:900px) {
  body[data-calendar-style] .grid {grid-template-columns:repeat(4,minmax(0,1fr));width:min(700px,calc(100% - 32px));}
  body[data-calendar-style] .door {aspect-ratio:1/.95;}
}
@media (max-width:640px) {
  body[data-calendar-style] .site-head {padding:2rem 1rem 1.35rem;}
  body[data-calendar-style] .site-head h1 {font-size:clamp(2.05rem,9vw,3rem);}
  body[data-calendar-style] .grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:calc(100% - 24px);}
  body[data-calendar-style] .door {aspect-ratio:1/.97;border-radius:9px;}
  body[data-calendar-style] .door .door-number {font-size:clamp(1.6rem,7vw,2.35rem);}
  body[data-calendar-style] .door .door-scene,
  body[data-calendar-style] .door .door-flap,
  body[data-calendar-style] .door .door-flap-inner {border-radius:8px;}
  body[data-calendar-style] .site-foot .controls {display:block;margin:0 auto .8rem;}
  body[data-calendar-style] .modal .body {padding:1rem;}
}
@media (prefers-reduced-motion:reduce) {
  body[data-calendar-style] .door {transition:none !important;}
}

/* 1.1.65: Leadformulardeadline: Inhaltsanzeige bleibt erhalten. */
.participation-closed{padding:15px 17px;margin:16px 0;border:1px solid color-mix(in srgb,var(--primary,#6696f4) 23%,transparent);border-radius:12px;background:color-mix(in srgb,var(--primary,#6696f4) 10%,transparent);color:var(--text,#f4f7fb);line-height:1.55;font-size:14px}.participation-closed[hidden]{display:none!important}
