:root {
  --text-main: #2c1e14;
  --text-muted: #5b4331;
  --accent-warm: #8a3c20;
  --accent-pine: #285640;
  --gold-accent: #d89b3c;
  --gold-bright: #fff0be;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --cal-scene-image: url("../img/hintergrund-winter-ruhig.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0%, #324354 0%, #1e2834 58%, #141011 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dunkler Seitenhintergrund mit ruhigem Schneefall */
.cal-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(229, 179, 92, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(126, 179, 152, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, #253444 0%, #1c242e 60%, #151112 100%);
  overflow: hidden;
}

.cal-bg-layer::before,
.cal-bg-layer::after {
  content: "";
  position: absolute;
  inset: -140px 0;
  pointer-events: none;
}

.cal-bg-layer::before {
  background-image:
    radial-gradient(3.5px 3.5px at 6% 10%, rgba(255, 253, 245, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 17% 28%, rgba(255, 248, 228, 0.75), transparent),
    radial-gradient(3.8px 3.8px at 29% 16%, rgba(255, 253, 245, 0.92), transparent),
    radial-gradient(2.4px 2.4px at 41% 42%, rgba(255, 248, 228, 0.7), transparent),
    radial-gradient(3.2px 3.2px at 53% 21%, rgba(255, 253, 245, 0.88), transparent),
    radial-gradient(2.6px 2.6px at 65% 37%, rgba(255, 248, 228, 0.76), transparent),
    radial-gradient(3.6px 3.6px at 77% 14%, rgba(255, 253, 245, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 88% 33%, rgba(255, 248, 228, 0.74), transparent),
    radial-gradient(3.2px 3.2px at 95% 23%, rgba(255, 253, 245, 0.85), transparent);
  background-size: 100% 300px;
  animation: bgSnowFallLayerOne 15s linear infinite;
}

.cal-bg-layer::after {
  background-image:
    radial-gradient(2.4px 2.4px at 11% 19%, rgba(255, 251, 240, 0.75), transparent),
    radial-gradient(3px 3px at 24% 48%, rgba(255, 246, 222, 0.68), transparent),
    radial-gradient(2.2px 2.2px at 36% 9%, rgba(255, 251, 240, 0.74), transparent),
    radial-gradient(2.8px 2.8px at 48% 34%, rgba(255, 246, 222, 0.64), transparent),
    radial-gradient(2.4px 2.4px at 59% 56%, rgba(255, 251, 240, 0.72), transparent),
    radial-gradient(3px 3px at 72% 27%, rgba(255, 246, 222, 0.7), transparent),
    radial-gradient(2.2px 2.2px at 83% 51%, rgba(255, 251, 240, 0.74), transparent),
    radial-gradient(2.8px 2.8px at 91% 12%, rgba(255, 246, 222, 0.66), transparent);
  background-size: 100% 220px;
  animation: bgSnowFallLayerTwo 11s linear infinite;
}

@keyframes bgSnowFallLayerOne {
  0% {
    transform: translate3d(0, -150px, 0);
  }
  100% {
    transform: translate3d(18px, 150px, 0);
  }
}

@keyframes bgSnowFallLayerTwo {
  0% {
    transform: translate3d(0, -110px, 0);
  }
  100% {
    transform: translate3d(-16px, 110px, 0);
  }
}

/* Goldener Feenstaub-Wurf beim Öffnen eines Türchens */
.fairy-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2600;
  overflow: hidden;
}

.fairy-burst-spark {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, #fffef2 0%, #f7cb6b 50%, rgba(212, 150, 48, 0) 100%);
  box-shadow: 0 0 12px rgba(255, 220, 128, 0.95), 0 0 22px rgba(245, 190, 88, 0.65);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: fairyBurstThrow var(--bdur, 1.1s) cubic-bezier(0.16, 1, 0.3, 1) var(--bdelay, 0ms) forwards;
}

@keyframes fairyBurstThrow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  20% {
    opacity: 1;
  }
  75% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, -80px))) scale(1.25);
  }
}

.cal-container {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 18px 56px;
}

/* Dev-Leiste (?dev=1) */
.dev-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #141c24;
  color: #f8fafc;
  border: 1px solid rgba(229, 179, 92, 0.35);
  font-size: 13px;
}

.dev-bar.is-active {
  display: flex;
}

.dev-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dev-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #f8fafc;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dev-btn.is-selected {
  background: #f5d076;
  color: #1c1614;
  border-color: #f5d076;
}

#devDaySelect {
  border-radius: 6px;
  padding: 4px 8px;
  background: #0f172a;
  color: #f5d076;
  border: 1px solid #f5d076;
  font-size: 12px;
}

/* Kopfbereich */
.cal-top {
  position: relative;
  text-align: center;
  background: linear-gradient(155deg, rgba(255, 250, 242, 0.94) 0%, rgba(247, 237, 222, 0.9) 100%);
  border: 1px solid rgba(229, 179, 92, 0.45);
  border-top: 4px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  margin-bottom: 22px;
}

.cal-eyebrow {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-pine);
}

.cal-top h1 {
  margin: 0;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.cal-subtitle {
  max-width: 660px;
  margin: 10px auto 0;
  font-size: clamp(0.96rem, 2vw, 1.06rem);
  color: var(--text-muted);
}

/* Countdown bis zum 1. Dezember */
.xmas-countdown {
  margin: 18px auto 0;
  padding: 12px 18px;
  max-width: 540px;
  border-radius: var(--radius-md);
  background: rgba(47, 93, 70, 0.09);
  border: 1px solid rgba(47, 93, 70, 0.22);
}

.xmas-countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.xmas-countdown-units {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.xmas-unit {
  min-width: 68px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #fffdf9;
  border: 1px solid rgba(229, 179, 92, 0.45);
  box-shadow: 0 4px 12px rgba(36, 25, 18, 0.06);
}

.xmas-unit span {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-warm);
  line-height: 1.1;
}

.xmas-unit small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Klang-Schalter & Vorschau-Button */
.cal-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(47, 93, 70, 0.3);
  background: #fffdf9;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sound-toggle:hover {
  background: #f4eadb;
}

.sound-toggle[aria-pressed="true"] {
  border-color: rgba(140, 74, 39, 0.45);
  background: #fae8d2;
  color: var(--accent-warm);
}

.dev-quick-toggle {
  border: 1px solid rgba(92, 68, 49, 0.28);
  background: rgba(255, 253, 249, 0.9);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dev-quick-toggle:hover {
  background: #f4eadb;
  color: var(--text-main);
}

/* Ruhige, festliche Kalender-Bühne */
.cal-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 2px solid rgba(229, 179, 92, 0.55);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  background-color: #1e2a36;
  perspective: 1500px;
}

.cal-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cal-scene-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.05) brightness(0.96);
}

.cal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 232, 185, 0.08) 0%, rgba(18, 25, 33, 0.22) 100%);
}

.cal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 560px) {
  .cal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .cal-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Durchsichtige, ruhige vorgestanzte Türchen */
.cal-door {
  position: relative;
  z-index: 3;
  min-height: 122px;
  padding: 16px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 238, 198, 0.85);
  background: linear-gradient(155deg, rgba(255, 250, 241, 0.34) 0%, rgba(247, 236, 218, 0.22) 100%);
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.24);
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cal-door:hover:not(.is-locked) {
  background: linear-gradient(155deg, rgba(255, 251, 242, 0.62) 0%, rgba(255, 242, 214, 0.48) 100%);
  backdrop-filter: blur(4px);
  border-style: solid;
  border-color: var(--gold-bright);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), 0 0 18px rgba(245, 208, 118, 0.5);
}

.cal-door.is-opening:not(.is-locked) {
  animation: doorSoftSwingOpen 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes doorSoftSwingOpen {
  0% {
    transform: perspective(1200px) rotateY(0deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }
  50% {
    transform: perspective(1200px) rotateY(-46deg);
    box-shadow: 14px 16px 34px rgba(0, 0, 0, 0.42), 0 0 28px rgba(245, 208, 118, 0.78);
  }
  100% {
    transform: perspective(1200px) rotateY(0deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }
}

.cal-door.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
  background: rgba(20, 27, 35, 0.32);
  backdrop-filter: blur(1.5px);
  border-style: dotted;
  border-color: rgba(255, 244, 218, 0.35);
  color: #f4ede2;
}

.cal-door.is-locked .cal-door-day {
  color: #f5d076;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.cal-door.is-locked .cal-door-label {
  color: rgba(248, 242, 232, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.cal-door.is-opened:not(.is-locked) {
  background: linear-gradient(155deg, rgba(255, 248, 232, 0.48) 0%, rgba(244, 229, 201, 0.36) 100%);
  border-style: solid;
  border-color: rgba(229, 179, 92, 0.82);
}

.cal-door-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cal-door-day {
  font-family: "Fredoka", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #fff6df;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
}

.cal-door-star {
  color: #ffd882;
  text-shadow: 0 0 10px rgba(255, 216, 130, 0.85);
  font-size: 14px;
}

.cal-door-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff9ee;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  margin-top: 8px;
}

/* Pergamentrolle mit weichem, gealtertem Papier-Rand */
.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 18, 24, 0.68);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.65s ease;
}

.cal-modal.is-visible {
  opacity: 1;
}

.parchment-scroll-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-modal.is-visible .parchment-scroll-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Schließen-Kreuz rechts außerhalb der Papierrolle */
.cal-close-outside {
  position: absolute;
  top: -12px;
  right: -52px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 190, 0.45);
  background: rgba(24, 30, 38, 0.78);
  color: #fff5dc;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.cal-close-outside:hover {
  transform: scale(1.06);
  background: rgba(255, 248, 232, 0.95);
  color: #7d3618;
}

@media (max-width: 920px) {
  .cal-close-outside {
    top: -46px;
    right: 0;
  }
}

.scroll-roll-top,
.scroll-roll-bottom {
  position: relative;
  width: 103%;
  height: 30px;
  z-index: 5;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #a97c46 0%,
    #e5c898 22%,
    #f6e5c3 46%,
    #cca064 78%,
    #7e5426 100%
  );
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 250, 235, 0.78),
    inset 0 -3px 5px rgba(74, 48, 20, 0.58);
}

.scroll-roll-top::before,
.scroll-roll-top::after,
.scroll-roll-bottom::before,
.scroll-roll-bottom::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 15px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #946633 0%, #dfc08f 48%, #68421a 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.48);
}

.scroll-roll-top::before,
.scroll-roll-bottom::before {
  left: -8px;
}

.scroll-roll-top::after,
.scroll-roll-bottom::after {
  right: -8px;
}

.scroll-roll-top {
  margin-bottom: -11px;
}

.scroll-roll-bottom {
  margin-top: -11px;
}

.cal-modal-box {
  position: relative;
  width: 97%;
  max-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 12px;
  opacity: 0.25;
  transition:
    max-height 1.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease;
}

.cal-modal.is-unrolled .cal-modal-box {
  max-height: 78vh;
  opacity: 1;
}

.cal-modal-box::-webkit-scrollbar {
  display: none;
}

.parchment-sheet-inner {
  position: relative;
  min-height: 100%;
  padding: 22px 0 28px;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 78, 34, 0.22) 0%, transparent 18%),
    radial-gradient(ellipse at 50% 100%, rgba(120, 78, 34, 0.25) 0%, transparent 18%),
    radial-gradient(circle at 20% 24%, rgba(204, 166, 112, 0.2) 0%, transparent 46%),
    radial-gradient(circle at 80% 74%, rgba(190, 148, 92, 0.18) 0%, transparent 46%),
    linear-gradient(180deg, #e8d3b0 0%, #f5e5c8 16%, #f8ecd3 50%, #f2e0be 84%, #e4ca9b 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 14px 0 24px rgba(122, 78, 34, 0.18),
    inset -14px 0 24px rgba(122, 78, 34, 0.18);
}

/* Leicht dunklere, kaum veränderte Pergament-Nuance an den geraden Tagen */
.cal-modal-box.is-even-day .parchment-sheet-inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110, 68, 28, 0.28) 0%, transparent 18%),
    radial-gradient(ellipse at 50% 100%, rgba(110, 68, 28, 0.3) 0%, transparent 18%),
    radial-gradient(circle at 20% 24%, rgba(192, 152, 98, 0.24) 0%, transparent 46%),
    radial-gradient(circle at 80% 74%, rgba(178, 136, 80, 0.22) 0%, transparent 46%),
    linear-gradient(180deg, #dec39a 0%, #ecd6b2 16%, #efe0c1 50%, #e7d1aa 84%, #d8ba87 100%);
}

.cal-modal-box.is-even-day .door-quote-card {
  background: rgba(255, 248, 236, 0.42);
}

.cal-modal-box.is-even-day .door-impulse-card {
  background: rgba(255, 249, 239, 0.46);
}

.cal-modal-box.is-even-day .door-reflection-box {
  background: rgba(218, 194, 154, 0.5);
}

.cal-modal-box.is-even-day .door-letter-signoff {
  background: rgba(255, 249, 240, 0.62);
}

/* Sanft durchscheinendes SVG-Wasserzeichen oben rechts auf dem Weihnachtspapier */
.letter-watermark-wrap {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 124px;
  height: 124px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.letter-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.22;
  filter: sepia(0.32) saturate(0.88) contrast(0.95);
  transform: rotate(5deg);
}

/* Sanft aufsteigende goldene Lichtblasen auf dem Papier */
.letter-fairy-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.fairy-mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf0 0%, #f5c96b 52%, rgba(205, 145, 52, 0) 100%);
  box-shadow: 0 0 10px rgba(248, 204, 114, 0.95), 0 0 18px rgba(255, 240, 190, 0.65);
  opacity: 0;
  animation: fairyDustDrift var(--mdur, 3.2s) ease-in-out var(--mdelay, 0ms) infinite;
}

@keyframes fairyDustDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.45);
  }
  25% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--mx, 14px), var(--my, -28px), 0) scale(1.15);
  }
}

/* Briefkopf */
.cal-modal-banner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 42px 16px;
  border-bottom: 1px dashed rgba(122, 74, 34, 0.3);
}

.modal-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

#modalHeading {
  margin: 5px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #2b1a0e;
}

/* Briefkörper */
.cal-modal-body {
  position: relative;
  z-index: 3;
  padding: 20px 44px 30px;
  font-size: 1.04rem;
  color: #2e1d11;
}

.modal-prose-wrap {
  max-width: 60ch;
  margin: 0 auto;
}

.door-letter-salutation {
  font-family: "Mrs Saint Delafield", cursive;
  font-size: clamp(2.25rem, 3.8vw, 2.8rem);
  font-weight: 400;
  color: #7d3618;
  margin: 0 0 12px;
  line-height: 1.15;
}

.door-quote-card {
  position: relative;
  margin: 20px 0 22px;
  padding: 14px 20px;
  background: rgba(255, 250, 240, 0.46);
  border-left: 3px solid rgba(154, 102, 46, 0.65);
  border-radius: 0 12px 12px 0;
}

.door-quote-mark {
  display: inline-block;
  font-size: 1.1rem;
  color: #9a662e;
  margin-right: 6px;
}

.modal-quote-editorial {
  display: inline;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.36rem, 2.2vw, 1.66rem);
  font-style: italic;
  line-height: 1.44;
  color: #2b1a0e;
  margin: 0;
}

.door-paragraph {
  margin: 0 0 15px;
  line-height: 1.72;
  color: #2f1f13;
}

.door-impulse-card {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 251, 243, 0.52);
  border: 1px dashed rgba(138, 88, 42, 0.32);
}

.door-impulse-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-pine);
  margin-bottom: 10px;
}

.door-kicker-dot {
  color: #b87e34;
  font-size: 13px;
}

.door-reflection-box {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(232, 211, 176, 0.48);
}

.door-reflection-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  margin-bottom: 4px;
}

.door-reflection-text {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.62;
  color: #3b2718;
}

/* Unterschrift + fließendes Schreiben von "Sandy Kluschke" beim Scrollen */
.door-letter-signoff {
  margin-top: 30px;
  padding: 18px 22px 16px;
  border-radius: 14px;
  background: rgba(255, 251, 244, 0.68);
  border-top: 1px dashed rgba(122, 74, 34, 0.3);
  color: #3b2718;
}

.signoff-lead {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-style: italic;
  color: #4b3526;
  margin-bottom: 8px;
}

.calligraphy-write-wrap {
  position: relative;
  display: inline-block;
  padding-right: 10px;
}

.calligraphy-name-text {
  display: inline-block;
  font-family: "Mrs Saint Delafield", cursive;
  font-size: clamp(2.5rem, 4.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.15;
  color: #762f14;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

.door-letter-signoff.is-inked-active .calligraphy-name-text {
  animation: writeCalligraphyFlow 3.4s cubic-bezier(0.28, 0.12, 0.25, 1) 0.15s forwards;
}

@keyframes writeCalligraphyFlow {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
  }
}

.cal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 248, 235, 0.82);
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .cal-bg-layer::before,
  .cal-bg-layer::after,
  .cal-door,
  .sound-toggle,
  .cal-modal,
  .parchment-scroll-wrap,
  .cal-modal-box,
  .calligraphy-name-text {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .cal-modal.is-unrolled .cal-modal-box {
    max-height: 78vh;
  }

  .fairy-burst-layer,
  .letter-fairy-dust {
    display: none !important;
  }
}