/* Gemeinsames Stylesheet der Save-the-Date-Beispiele. Drei Stimmungen: garden, night, paper. */
@font-face {
  font-family: Inter;
  src: url('assets/inter-regular.ttf') format('truetype');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('assets/cormorant-regular.ttf') format('truetype');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('assets/cormorant-italic.ttf') format('truetype');
  font-style: italic;
  font-display: swap;
}
:root {
  --serif: Cormorant, Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --stage: 520px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
h1:focus {
  outline: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.covered {
  overflow: hidden;
  height: 100svh;
}
#experience {
  max-width: var(--stage);
  margin: 0 auto;
  min-height: 100svh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.body-copy {
  font: 400 15px/1.85 var(--serif);
  color: var(--ink);
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
}
.reveal.is-visible,
.reduced .reveal {
  opacity: 1;
  transform: none;
}
.stage-note {
  text-align: center;
}

/* ---------- Erster Bildschirm ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 84px 28px 92px;
  overflow: hidden;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  z-index: -2;
  transform: scale(1.06);
  transition: transform 9s var(--ease);
}
.opened .hero-backdrop {
  transform: scale(1);
}
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-head {
  animation: appear 1.4s both;
  max-width: 340px;
}
.hero h1 {
  font: 400 clamp(56px, 17vw, 76px) / 0.95 var(--serif);
  letter-spacing: -1.5px;
  margin: 22px 0 24px;
  color: var(--display);
}
.hero h1 i {
  font-style: italic;
  font-size: 0.72em;
  color: var(--accent);
  margin-right: 0.08em;
}
.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font: 400 20px/1 var(--serif);
  letter-spacing: 2px;
  color: var(--display);
  padding: 10px 0;
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
}
.hero-date i {
  font-style: italic;
  letter-spacing: 0;
  font-size: 23px;
}
/* Persönliche Pointe (#1871): ein Satz je Paar unter Namen und Datum. Grundzustand sichtbar, außer unter
   .covered; die Bewegung startet erst mit .opened, also wenn die Eröffnung zu Ende ist (oder ab dem Laden
   bei ?story=off). */
.hero-pointe {
  margin: 22px auto 0;
  max-width: 300px;
  font: italic 400 22px/1.35 var(--serif);
  color: var(--accent);
  overflow-wrap: anywhere;
}
.hero-pointe-hinweis {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.hero-pointe-hinweis + .hero-venue {
  margin-top: 24px;
}
/* Solange die Eröffnung deckt, bleibt die Pointe verborgen: Siegel und Taube werden beim Schließen
   durchsichtig, sonst blitzte der Satz kurz auf (Prüfbefund S1 aus PR #1885). */
.covered .hero-pointe,
.covered .hero-pointe-hinweis {
  opacity: 0;
}
.opened .hero-pointe,
.opened .hero-pointe-hinweis {
  animation: appear 1.2s 0.5s both;
}
.reduced .hero-pointe,
.reduced .hero-pointe-hinweis {
  animation: none;
}
.hero-venue {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-greeting {
  margin-top: 26px;
  font: italic 400 19px/1.5 var(--serif);
  color: var(--display);
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: auto;
  width: max-content;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  animation: appear 1.4s 0.9s both;
}
.scroll-cue span {
  display: inline-block;
  margin-left: 8px;
  animation: bob 2.4s infinite;
}

/* ---------- Begrüßung, Ort, Kalender ---------- */
.greeting,
.place,
.calendar {
  padding: 72px 30px;
  text-align: center;
}
.greeting h2,
.place h2 {
  font: 400 clamp(34px, 9.5vw, 42px) / 1.08 var(--serif);
  color: var(--display);
  margin: 18px 0 26px;
  letter-spacing: -0.5px;
}
.greeting h2 em {
  font-style: italic;
  color: var(--accent);
}
.greeting .sprig {
  width: 86px;
  height: 58px;
  color: var(--accent);
  margin-bottom: 20px;
}
.greeting .body-copy {
  max-width: 320px;
  margin: 0 auto;
}
.place {
  padding-top: 20px;
}
.place-drawing {
  width: 230px;
  height: 160px;
  margin: 0 auto 22px;
  color: var(--accent);
}
.place-drawing svg {
  width: 100%;
  height: 100%;
}
.place .eyebrow {
  color: var(--display);
  font-size: 10px;
}
.place-region {
  margin-top: 8px;
  font: italic 400 18px/1.4 var(--serif);
  color: var(--display);
}
.place-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.calendar {
  padding-top: 30px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
  margin: 0 30px;
  padding-left: 0;
  padding-right: 0;
}
.countdown {
  font: 400 clamp(38px, 10vw, 46px) / 1 var(--serif);
  color: var(--display);
  padding-top: 42px;
}
.calendar-date {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.calendar-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 17px 26px;
  border: 1px solid var(--button-line);
  background: var(--button-bg);
  color: var(--button-ink);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background 0.3s;
}
.calendar-button:hover {
  background: var(--button-hover);
}
.small-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Fuß ---------- */
.guest-footer {
  text-align: center;
  padding: 54px 30px 40px;
  background: var(--footer);
  color: var(--footer-ink);
}
.footer-monogram {
  font: 400 30px/1 var(--serif);
  letter-spacing: 3px;
}
.footer-monogram i {
  font-style: italic;
  font-size: 0.75em;
  color: var(--accent);
}
.guest-footer > p {
  margin: 14px 0 0;
  font: italic 400 17px/1.4 var(--serif);
}
.replay {
  display: inline-block;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--footer-muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.guest-brand {
  display: block;
  margin-top: 34px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.guest-note {
  margin: 12px auto 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--footer-muted);
  max-width: 280px;
}

/* ---------- Erzählung vor dem Datum ---------- */
.story-opening {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--stage));
  z-index: 10;
  overflow: hidden;
  background: var(--story-bg);
  color: var(--story-ink);
  text-align: center;
  isolation: isolate;
  box-shadow: 0 0 0 1px var(--line);
}
.story-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  z-index: -2;
  transform: scale(1.04);
  transition:
    transform 13s linear,
    opacity 2s var(--ease);
}
.story-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--story-shade);
}
.story-playing .story-backdrop {
  transform: scale(1.2);
  opacity: var(--story-backdrop-dim);
}
.story-opening[data-chapter='2'] .story-backdrop {
  transform: scale(1.02);
  opacity: 1;
}
.story-ready {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px 110px;
  animation: appear 1.3s both;
}
.story-ready > .eyebrow {
  color: var(--story-muted);
  margin-bottom: 36px;
}
.orbit-mark {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
}
.orbit-ring {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--story-line);
  border-radius: 50%;
  transform: rotate(-12deg) scaleX(0.82);
  animation: orbit 14s linear infinite;
}
.orbit-ring.second {
  inset: 4px;
  transform: rotate(32deg) scaleX(0.76);
  animation-duration: 19s;
  animation-direction: reverse;
}
.orbit-initials {
  font: 400 44px/1 var(--serif);
  letter-spacing: 4px;
}
.orbit-initials i {
  font-style: italic;
  font-size: 0.6em;
  color: var(--story-accent);
}
.orbit-star {
  position: absolute;
  top: 18px;
  left: 14px;
  font-size: 15px;
  color: var(--story-accent);
  animation: twinkle 3s infinite;
}
.story-ready h2 {
  font: 400 clamp(40px, 12vw, 52px) / 1 var(--serif);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.story-ready h2 em {
  font-style: italic;
  color: var(--story-accent);
}
.story-ready-copy {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--story-muted);
  margin-bottom: 34px;
}
.story-start {
  border: 1px solid var(--story-line);
  color: var(--story-ink);
  padding: 17px 22px;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background 0.3s;
}
.story-start span {
  margin-left: 18px;
  font-size: 15px;
}
.story-start:hover {
  background: var(--story-hover);
}
.skip-link {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  margin: auto;
  width: max-content;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--story-muted);
  padding: 10px 14px;
  z-index: 4;
}
.skip-link span {
  margin-left: 8px;
}
.story-sequence {
  position: relative;
  height: 100%;
  padding: 38px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chapter-progress {
  width: 150px;
  display: flex;
  gap: 9px;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.chapter-progress span {
  height: 2px;
  flex: 1;
  background: var(--story-line);
  position: relative;
  overflow: hidden;
}
.chapter-progress span.complete {
  background: var(--story-accent);
}
.chapter-progress span.active:after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--story-accent);
  transform-origin: left;
  animation: chapter-progress 4.3s linear forwards;
}
.chapter-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-bottom: 150px;
}
.chapter-content > .eyebrow {
  font-size: 8px;
  letter-spacing: 2.4px;
  margin-bottom: 20px;
  color: var(--story-muted);
}
.chapter-drawing {
  width: 210px;
  height: 150px;
  color: var(--story-accent);
  margin: 0 auto 26px;
}
.chapter-drawing svg {
  width: 100%;
  height: 100%;
}
.chapter-content h2 {
  font: 400 clamp(40px, 12.5vw, 49px) / 0.99 var(--serif);
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.chapter-content h2 em {
  font-style: italic;
  color: var(--story-accent);
}
.chapter-text {
  font: 400 15px/1.75 var(--serif);
  color: var(--story-copy);
  max-width: 300px;
}
.chapter-enter {
  animation: chapter-enter 1s both;
}
.chapter-enter .chapter-drawing {
  animation: draw-in 1.6s var(--ease) both;
}
.route {
  position: absolute;
  bottom: 60px;
  width: 280px;
  height: 200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
  pointer-events: none;
}
.route-line {
  stroke: var(--story-route);
  stroke-width: 0.8;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: route-draw 12.9s linear forwards;
}
.route-marks {
  fill: var(--story-accent);
  stroke: none;
  filter: drop-shadow(0 0 5px var(--story-glow));
}
.vine-route .route-marks {
  fill: none;
  stroke: var(--story-route);
  stroke-width: 0.8;
  opacity: 0;
  animation: fade-in 2s 3s both;
}
.map-route .seg {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  stroke-width: 1;
  animation: none;
}
.map-route .seg-1 {
  animation: route-draw-short 4s 0.4s var(--ease) forwards;
}
.story-opening[data-chapter='1'] .map-route .seg-2,
.story-opening[data-chapter='2'] .map-route .seg-2 {
  animation: route-draw-short 4s 0.4s var(--ease) forwards;
}
.map-route .dot,
.map-route .label {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.map-route .dot-1,
.map-route .label-1,
.story-opening[data-chapter='1'] .dot-2,
.story-opening[data-chapter='1'] .label-2,
.story-opening[data-chapter='2'] .dot-2,
.story-opening[data-chapter='2'] .label-2,
.story-opening[data-chapter='2'] .dot-3,
.story-opening[data-chapter='2'] .label-3 {
  opacity: 1;
}
.map-route .label {
  font: italic 400 13px var(--serif);
  fill: var(--story-ink);
  stroke: none;
}
.map-route .pulse {
  transform-box: fill-box;
  transform-origin: center;
  fill: none;
  stroke: var(--story-accent);
  stroke-width: 1;
  opacity: 0;
}
.story-opening[data-chapter='2'] .map-route .pulse {
  animation: pulse 2.2s 0.8s infinite;
}
.chapter-next {
  position: absolute;
  bottom: 74px;
  z-index: 3;
  color: var(--story-ink);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 15px;
}
.chapter-next span {
  margin-left: 14px;
}

/* ---------- Schmuck ---------- */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #f4e6c4;
  opacity: 0.4;
  animation: twinkle 5s var(--d) infinite;
}
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petals i {
  position: absolute;
  top: -20px;
  left: calc(8% + var(--i) * 11.5%);
  width: 9px;
  height: 13px;
  border-radius: 60% 40% 60% 40%;
  background: var(--petal);
  opacity: 0;
  animation: fall 14s calc(var(--i) * -1.9s) linear infinite;
}
.reduced .petals i,
.reduced .orbit-ring,
.reduced .orbit-star,
.reduced .scroll-cue span,
.reduced .stars i {
  animation: none;
}

/* ---------- Stimmung: Garten ---------- */
.garden {
  --page: #efe9db;
  --paper: #fcf8ef;
  --ink: #49543f;
  --display: #35402f;
  --muted: #7d8370;
  --accent: #b2924f;
  --accent-line: #c9b382;
  --line: #e3dccb;
  --button-line: #9aa189;
  --button-bg: #fffdf8;
  --button-ink: #35402f;
  --button-hover: #f1ecdd;
  --footer: #35402f;
  --footer-ink: #f3eedf;
  --footer-muted: #b8bba6;
  --petal: #f1d5cc;
  --story-bg: #fcf8ef;
  --story-ink: #35402f;
  --story-copy: #55604a;
  --story-muted: #7d8370;
  --story-accent: #a98742;
  --story-line: #c9bf9f;
  --story-route: #a98742;
  --story-glow: #ffffff00;
  --story-hover: #f1ecdd;
  --story-shade: none;
  --story-backdrop-dim: 1;
}
.garden .hero-light {
  background:
    radial-gradient(ellipse 78% 46% at 50% 44%, #fcf8ef 0%, #fcf8eff2 48%, #fcf8ef80 78%, #fcf8ef00 100%),
    linear-gradient(180deg, #fcf8efd9 0%, #fcf8ef00 28%, #fcf8ef00 72%, #fcf8ef 100%);
}
.garden .hero-backdrop {
  object-position: 50% 62%;
}
.garden .story-backdrop {
  object-position: 50% 62%;
}
.garden .story-shade {
  background:
    radial-gradient(ellipse 80% 50% at 50% 46%, #fcf8ef 0%, #fcf8eff2 50%, #fcf8ef99 80%, #fcf8ef33 100%),
    linear-gradient(180deg, #fcf8efcc 0%, #fcf8ef00 30%, #fcf8ef00 70%, #fcf8efe6 100%);
}
.garden .story-playing .story-shade {
  background:
    radial-gradient(ellipse 84% 54% at 50% 42%, #fcf8ef 0%, #fcf8eff5 52%, #fcf8efb3 82%, #fcf8ef66 100%),
    linear-gradient(180deg, #fcf8efcc 0%, #fcf8ef00 30%, #fcf8ef00 70%, #fcf8efe6 100%);
}
.garden .story-ready {
  padding-top: 60px;
}

/* ---------- Stimmung: Nacht ---------- */
.night {
  --page: #0a1a20;
  --paper: #102830;
  --ink: #d7d2bf;
  --display: #f4e9cf;
  --muted: #a4a68e;
  --accent: #d9be87;
  --accent-line: #d9be8766;
  --line: #1c3640;
  --button-line: #b69e68aa;
  --button-bg: #d9be870f;
  --button-ink: #f1dfb8;
  --button-hover: #d9be8726;
  --footer: #0b1d23;
  --footer-ink: #e9e1c9;
  --footer-muted: #8d917e;
  --story-bg: #0f2027;
  --story-ink: #f1e6cb;
  --story-copy: #d5d5c5;
  --story-muted: #cdbf9a;
  --story-accent: #e6d09b;
  --story-line: #c8b48666;
  --story-route: #c4a976;
  --story-glow: #d9be8766;
  --story-hover: #d9be8720;
  /* Nachtrag 2026-10-10: heller (Rückmeldung Harald „zu dunkel“). Abdunklung nur hinter dem
     Text, Bild selbst aufgehellt. */
  --story-shade:
    radial-gradient(ellipse 88% 52% at 50% 46%, #0f2027b3 0%, #0f202770 58%, #0f202726 100%),
    linear-gradient(180deg, #0f202722 0%, #0f202700 35%, #0f202700 70%, #0f202799 100%);
  --story-backdrop-dim: 1;
}
.night .hero-light {
  background:
    radial-gradient(ellipse 85% 42% at 50% 42%, #0f2027a6 0%, #0f202766 55%, #0f202700 100%),
    linear-gradient(180deg, #0f202740 0%, #0f202700 30%, #0f202700 75%, #0f202780 100%);
}
.night .hero-head,
.night .opening-caption,
.night .opening-facts,
.night .opening-top,
.night .envelope-caption,
.night .chapter-content {
  text-shadow: 0 1px 14px #0f2027e6, 0 0 3px #0f202799;
}
.night .hero-backdrop,
.night .story-backdrop {
  filter: brightness(1.45) saturate(1.08);
}
.night .hero-date {
  color: var(--accent);
}
.night .place-drawing {
  color: #d9be87;
}

/* ---------- Stimmung: Papier ---------- */
.paper {
  --page: #e9e1d3;
  --paper: #f7f1e6;
  --ink: #2a3345;
  --display: #1f2a44;
  --muted: #7a7466;
  --accent: #b65a3c;
  --accent-line: #c9a58f;
  --line: #e0d6c5;
  --button-line: #1f2a44;
  --button-bg: #1f2a44;
  --button-ink: #f7f1e6;
  --button-hover: #2e3c5e;
  --footer: #1f2a44;
  --footer-ink: #f3ebdd;
  --footer-muted: #a9adbd;
  --story-bg: #f7f1e6;
  --story-ink: #1f2a44;
  --story-copy: #4a5063;
  --story-muted: #857e6f;
  --story-accent: #b65a3c;
  --story-line: #cfc3ad;
  --story-route: #1f2a44;
  --story-glow: #ffffff00;
  --story-hover: #efe6d6;
  --story-shade: none;
  --story-backdrop-dim: 1;
}
.paper #experience,
.paper .story-opening {
  background-image: radial-gradient(#1f2a4408 0.8px, transparent 0.8px);
  background-size: 14px 14px;
}
.paper .hero {
  padding-top: 64px;
}
.paper .hero:before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid var(--accent-line);
  pointer-events: none;
}
.paper .hero:after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid #c9a58f66;
  pointer-events: none;
}
.paper .hero-date {
  color: var(--accent);
  border-color: #1f2a4433;
}
.paper .story-opening:before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid var(--accent-line);
  pointer-events: none;
}
.paper .chapter-drawing {
  color: var(--display);
}
.paper .route {
  bottom: 112px;
  width: 270px;
  height: 200px;
  opacity: 1;
}
.paper .chapter-content {
  padding-bottom: 270px;
}
.paper .chapter-next {
  bottom: 66px;
}
@media (max-height: 720px) {
  .paper .route {
    height: 150px;
    bottom: 104px;
  }
  .paper .chapter-content {
    padding-bottom: 210px;
  }
  .chapter-drawing {
    height: 120px;
    margin-bottom: 18px;
  }
  .chapter-content h2 {
    font-size: 36px;
  }
}

/* ---------- Bewegung ---------- */
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
@keyframes orbit {
  to {
    transform: rotate(348deg) scaleX(0.82);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
}
@keyframes chapter-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes chapter-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes draw-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes route-draw-short {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(5);
    opacity: 0;
  }
}
@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  8% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) translateX(40px) rotate(320deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-backdrop,
  .story-backdrop,
  .reveal {
    transition: none;
  }
}
@media (min-width: 560px) {
  body {
    padding: 0;
  }
}

/* ---------- Eröffnungen (openings.mjs) ----------
   Grundzustand = fertiges Bild; Bewegung nur über Keyframes mit „both“.
   Bei .reduced fällt alle Bewegung weg, das fertige Bild bleibt. */
.opening-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 28px 92px;
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.opening.is-opening:not(.opening-siegel):not(.opening-taube) .opening-stage {
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
}
.opening.is-opening:not(.opening-siegel) .skip-link {
  opacity: 0;
}
.opening-top {
  color: var(--story-muted);
  margin-bottom: 28px;
  animation: appear 1s both;
}
.opening-facts,
.opening-caption {
  text-align: center;
}
.opening-facts h2,
.opening-caption h2 {
  font: 400 clamp(38px, 11vw, 48px) / 1.02 var(--serif);
  letter-spacing: -0.5px;
  margin: 12px 0 12px;
}
.opening-facts h2 em,
.opening-caption h2 em {
  font-style: italic;
  font-size: 0.7em;
  color: var(--story-accent);
}
.opening-facts .eyebrow {
  color: var(--story-muted);
}
.opening-date {
  font: 400 15px/1.5 var(--serif);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--story-accent);
}
.opening-place {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: var(--story-copy);
  margin-top: 4px;
}
.opening-caption p:not(.opening-date) {
  font-size: 11px;
  line-height: 1.7;
  color: var(--story-copy);
}
.opening-action {
  margin-top: 26px;
}
.opening .story-shade {
  pointer-events: none;
}

/* Siegel & Brief: Umschlag nach der Vorlage der Gestaltungsstudie, Farben je Stimmung. */
.opening-siegel {
  --env-back: #89957a;
  --env-front-a: #9aa38a;
  --env-front-b: #7a8b71;
  --env-flap-a: #a5ad97;
  --env-flap-b: #929e82;
  --env-edge: #657457;
  --env-letter: #fbf7e9;
  --env-letter-ink: #35402f;
  --seal-a: #eee1b9;
  --seal-b: #cdbb89;
  --seal-c: #aa9260;
  --seal-line: #c5b080;
  --seal-ink: #7d673d;
}
.night .opening-siegel {
  --env-back: #0b1a20;
  --env-front-a: #1d3a44;
  --env-front-b: #132a31;
  --env-flap-a: #24444e;
  --env-flap-b: #193840;
  --env-edge: #33545e;
  --env-letter: #f4ecd9;
  --env-letter-ink: #1d2a30;
}
.paper .opening-siegel {
  --env-back: #d6c8ae;
  --env-front-a: #efe5d2;
  --env-front-b: #e0d2b8;
  --env-flap-a: #f4ebdc;
  --env-flap-b: #e5d8c1;
  --env-edge: #c9b99b;
  --env-letter: #fffaf0;
  --env-letter-ink: #1f2a44;
  --seal-a: #c9654a;
  --seal-b: #a8432c;
  --seal-c: #7f2d1c;
  --seal-line: #8e3622;
  --seal-ink: #f6dccb;
}
.envelope-heading {
  color: var(--story-muted);
  margin-bottom: 48px;
  animation: appear 1s both;
}
.envelope-scene {
  width: min(320px, 92%);
  height: 230px;
  perspective: 1100px;
  position: relative;
  animation: appear 1.2s 0.2s both;
}
.envelope {
  position: absolute;
  width: 100%;
  height: 200px;
  bottom: 0;
  filter: drop-shadow(0 18px 16px #1b26201f);
  transform-style: preserve-3d;
}
.envelope-back {
  position: absolute;
  inset: 0;
  background: var(--env-back);
  border: 1px solid var(--env-edge);
  z-index: 1;
}
.envelope-letter {
  position: absolute;
  inset: 8px 16px 10px;
  z-index: 3;
  background: var(--env-letter);
  color: var(--env-letter-ink);
  border: 1px solid #c8bb9488;
  padding: 26px 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  transition: transform 1.1s 0.55s var(--ease);
}
.envelope-letter > span {
  font-size: 8px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.envelope-letter em {
  font: italic 26px/1.1 var(--serif);
}
.envelope-letter small {
  font: 15px var(--serif);
  letter-spacing: 1px;
}
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(146deg, var(--env-front-a), var(--env-front-b));
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(var(--env-flap-a), var(--env-flap-b));
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  transform-origin: top;
  backface-visibility: hidden;
  transition: transform 1.1s 0.15s cubic-bezier(0.25, 0.7, 0.2, 1);
}
.wax-seal {
  position: absolute;
  z-index: 6;
  top: 74px;
  left: calc(50% - 35px);
  height: 70px;
  width: 70px;
  border: 1px solid var(--seal-line);
  border-radius: 47% 52% 48% 51%;
  background: radial-gradient(circle at 35% 28%, var(--seal-a), var(--seal-b) 67%, var(--seal-c));
  box-shadow:
    inset 0 0 0 4px #00000014,
    inset 0 0 0 6px #ffffff33,
    0 4px 8px #27372633;
  color: var(--seal-ink);
  transition:
    transform 0.55s,
    opacity 0.4s;
  animation: seal-pulse 2.8s 1.6s ease-in-out infinite;
}
.wax-seal span {
  font: 25px var(--serif);
}
.wax-seal i {
  font-size: 15px;
}
.wax-seal:focus-visible {
  outline-offset: 6px;
}
.envelope-caption {
  text-align: center;
  margin-top: 30px;
  transition: opacity 0.3s;
  animation: appear 1.2s 0.5s both;
}
.envelope-caption h2 {
  font: italic 42px var(--serif);
  margin: 0 0 10px;
}
.envelope-caption p {
  font-size: 11px;
  line-height: 1.7;
  max-width: 240px;
  color: var(--story-copy);
}
.opening-siegel.is-opening .wax-seal {
  transform: translateY(15px) scale(0.7);
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.opening-siegel.is-opening .envelope-flap {
  transform: rotateX(180deg);
}
.opening-siegel.is-opening .envelope-letter {
  transform: translateY(-85px);
}
.opening-siegel.is-opening .envelope-caption {
  opacity: 0;
}
.opening-siegel.is-opening {
  animation: opening-out 0.65s 1.6s forwards;
}

/* Brieftaube */
.dove-scene {
  width: 200px;
  height: 150px;
  color: var(--story-ink);
  animation: dove-in 2.4s var(--ease) both;
}
.dove {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: bob 3s 2.4s ease-in-out infinite;
}
.dove path,
.dove rect {
  fill: var(--story-bg);
}
.dove-wing {
  transform-origin: 86px 60px;
  animation: flap 0.34s 7 alternate ease-in-out both;
}
.dove-wing.back {
  fill: color-mix(in srgb, var(--story-bg) 80%, var(--story-ink));
}
.dove-letter rect,
.dove-letter path {
  stroke: var(--story-accent);
  stroke-width: 1.2;
  fill: var(--story-bg);
}
.dove-note {
  display: grid;
  grid-template-rows: 0fr;
  width: min(280px, 90%);
  transition: grid-template-rows 1s 0.45s var(--ease);
}
.dove-note-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  background: var(--story-bg);
  color: var(--story-ink);
  border: 1px solid transparent;
}
/* Nur das direkte Kind „Save the Date“, nicht die Namen (.nm) im strong (Prüfung #1886, B1). */
.dove-note-inner > span {
  font-size: 8px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--story-muted);
  padding-top: 20px;
}
.dove-note-inner strong {
  font: 400 36px/1.05 var(--serif);
}
.dove-note-inner strong em {
  font-style: italic;
  font-size: 0.7em;
  color: var(--story-accent);
}
.dove-note-inner small {
  font: 14px/1.4 var(--serif);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--story-accent);
  padding: 0 14px 20px;
}
.opening-taube .opening-caption {
  margin-top: 18px;
  animation: appear 1s 2.1s both;
  transition: opacity 0.4s;
}
.opening-taube.is-opening .dove-scene {
  animation: dove-out 1.3s var(--ease) forwards;
}
.opening-taube.is-opening .dove-note {
  grid-template-rows: 1fr;
}
.opening-taube.is-opening .dove-note-inner {
  border-color: var(--story-line);
}
.opening-taube.is-opening .opening-caption {
  opacity: 0;
}
.opening-taube.is-opening {
  animation: opening-out 0.6s 1.7s forwards;
}

/* Kalenderblatt: fünf Varianten (?kalender=…). Ruhige Blätter: Papierton, feine Linie statt
   Farbbalken, Akzent nur für den eingekreisten Tag. */
.cal-variant {
  --sheet: color-mix(in srgb, var(--story-bg) 88%, #ffffff);
  --sheet-ink: var(--story-ink);
  margin-bottom: 26px;
  animation: appear 1s 0.15s both;
}
.night .cal-variant {
  --sheet: #f6efe0;
  --sheet-ink: #1d2a30;
}
.cal {
  position: relative;
  width: 210px;
  perspective: 900px;
}
.cal-rings {
  position: absolute;
  top: -9px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 90px;
  z-index: 4;
}
.cal-rings i {
  width: 9px;
  height: 20px;
  border: 1.5px solid var(--story-line);
  border-radius: 6px;
  background: var(--story-bg);
}
.cal-page {
  position: relative;
  z-index: 2;
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 1px solid var(--story-line);
  box-shadow: 0 12px 26px #0000001a;
  padding: 0 0 18px;
  transform-origin: top center;
}
.cal-page.flip {
  animation: cal-flip var(--flip, 400ms) cubic-bezier(0.3, 0.6, 0.3, 1) both;
}
.cal-stack {
  position: absolute;
  inset: 5px -4px -5px 4px;
  z-index: 1;
  border: 1px solid var(--story-line);
  background: var(--sheet);
  opacity: 0.8;
}
.cal-month,
.cal-head {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sheet-ink);
  padding: 22px 0 12px;
  margin: 0 22px;
  border-bottom: 1px solid var(--story-accent);
}
.cal-month span,
.cal-head span {
  color: var(--story-accent);
}
.night .cal-month span,
.night .cal-head span {
  color: #a27c3e;
}
.cal-day {
  position: relative;
  font: 400 96px/1 var(--serif);
  margin: 18px 0 6px;
}
.cal-circle,
.grid-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  stroke: var(--story-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 520;
  pointer-events: none;
}
.night .cal-circle,
.night .grid-circle {
  stroke: #b3863f;
}
.cal-circle {
  width: 180px;
}
.cal-weekday {
  font: italic 20px var(--serif);
}
.cal-flipping .cal-circle {
  display: none;
}
.cal-flipping .opening-caption {
  opacity: 0;
}
.opening-kalender .opening-caption {
  transition: opacity 0.9s 0.5s;
}
.opening-kalender .opening-caption h2 {
  font-size: clamp(34px, 10vw, 42px);
}
/* 1 · Blättern: Kreis erst, wenn das letzte Blatt liegt */
.cal-v-blaettern .cal-circle {
  animation: ink-draw 1.6s 0.2s ease-out both;
}
.cal-done .cal-circle {
  animation: ink-draw 1.6s 0.8s ease-out both;
}

/* 2 · Monatsblatt und Raster (auch für die Jahresübersicht) */
.cal-sheet {
  width: min(290px, 86vw);
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 1px solid var(--story-line);
  box-shadow: 0 12px 26px #0000001a;
  padding: 0 18px 18px;
}
.cal-sheet .cal-head {
  margin: 0 0 12px;
}
.mgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
  font: 400 17px/32px var(--serif);
  text-align: center;
}
.mgrid .wd {
  font: 400 8px/22px var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
}
.mgrid .we {
  color: color-mix(in srgb, var(--sheet-ink) 60%, transparent);
}
.mgrid .d {
  position: relative;
}
.mgrid .hit {
  color: var(--sheet-ink);
  font-weight: 600;
}
.grid-circle {
  width: 54px;
}
.cal-monat .d {
  animation: fade-in 0.6s calc(0.3s + var(--k) * 0.025s) both;
}
.cal-monat .grid-circle {
  animation: ink-draw 1.6s 1.6s ease-out both;
}

/* 3 · Einmal umblättern */
.cal-umblaettern .cal-page.under {
  position: relative;
}
.cal-umblaettern .cal-page.over {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transform: rotateX(-105deg);
  animation: turn-away 1.7s 1s cubic-bezier(0.55, 0.05, 0.4, 1) both;
}
.cal-today {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}
.cal-umblaettern .cal-circle {
  animation: ink-draw 1.6s 2.7s ease-out both;
}

/* 4 · Eintrag im Terminkalender */
.planner {
  width: min(300px, 88vw);
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 1px solid var(--story-line);
  box-shadow: 0 12px 26px #0000001a;
  padding: 0 18px 10px;
  text-align: left;
  --sheet: color-mix(in srgb, var(--story-bg) 88%, #ffffff);
  --sheet-ink: var(--story-ink);
}
.night .planner {
  --sheet: #f6efe0;
  --sheet-ink: #1d2a30;
}
.planner .cal-head {
  margin: 0 0 4px;
  text-align: center;
}
.pl-row {
  display: grid;
  grid-template-columns: 26px 30px 1fr;
  align-items: start;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--story-line) 70%, transparent);
  min-height: 52px;
  opacity: 0.55;
}
.pl-row:last-child {
  border-bottom: 0;
}
.pl-row b {
  font: 400 9px/24px var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pl-row i {
  font: 400 24px/1 var(--serif);
  font-style: normal;
}
.pl-lines {
  height: 24px;
  border-bottom: 1px dashed color-mix(in srgb, var(--story-line) 60%, transparent);
}
.pl-main {
  opacity: 1;
  min-height: 96px;
}
.pl-main i {
  font-size: 30px;
  color: var(--story-accent);
}
.night .pl-main i {
  color: #a27c3e;
}
.pl-write {
  width: 100%;
  height: 50px;
  overflow: visible;
}
.pl-write text {
  font: italic 36px var(--serif);
  fill: var(--sheet-ink);
  stroke: var(--sheet-ink);
  stroke-width: 0.5;
  stroke-dasharray: 700;
  animation: write 2.4s 0.9s ease-in-out both;
}
.pl-note small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3px;
  opacity: 0.75;
  animation: fade-in 0.8s 3.1s both;
}

/* 5 · Jahresübersicht, zoomt zum Hochzeitsmonat */
.year-wrap {
  position: relative;
  width: 300px;
  max-width: 88vw;
  height: 290px;
  overflow: hidden;
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 1px solid var(--story-line);
  box-shadow: 0 12px 26px #0000001a;
}
.year-label {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  font-size: 9px;
  letter-spacing: 3px;
  opacity: 0;
  animation: fade-out 1.2s 0.2s both;
  z-index: 2;
}
.year {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px 8px;
  padding: 8px;
  transform-origin: 50% 50%;
  transform: scale(2.85)
    translate(calc(50% - (var(--c) + 0.5) / 3 * 100%), calc(50% - (var(--r) + 0.5) / 4 * 100%));
  animation: year-zoom 2s 1.4s cubic-bezier(0.6, 0.05, 0.3, 1) both;
}
.ym p {
  font-size: 5.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ym {
  opacity: 0.12;
  animation: fade-dim 1.2s 1.4s both;
}
.ym.target {
  opacity: 1;
  animation: none;
}
.mgrid.mini {
  font: 400 6px/9px var(--serif);
  row-gap: 0;
}
.mgrid.mini .wd {
  font-size: 3.5px;
  line-height: 7px;
  letter-spacing: 0.3px;
}
.mgrid.mini .grid-circle {
  width: 19px;
  stroke-width: 1.8;
  animation: ink-draw 1.4s 3.4s ease-out both;
}

/* Handschrift */
.script {
  width: min(320px, 100%);
  overflow: visible;
  margin-bottom: 8px;
}
.script text {
  font-family: var(--serif);
  font-style: italic;
  fill: var(--story-ink);
  stroke: var(--story-ink);
  stroke-width: 0.6;
  stroke-dasharray: 700;
  stroke-dashoffset: 0;
}
.script .ink-2 {
  fill: var(--story-accent);
  stroke: var(--story-accent);
}
.script .ink-1 {
  animation: write 2s 0.3s ease-in-out both;
}
.script .ink-2 {
  animation: write 0.9s 2.1s ease-in-out both;
}
.script .ink-3 {
  animation: write 2s 2.7s ease-in-out both;
}
.ink-flourish {
  fill: none;
  stroke: var(--story-accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  --len: 200;
  animation: ink-draw 1s 4.5s ease-out both;
}
.script-caption {
  animation: appear 1s 4.8s both;
}
.script-caption .opening-date {
  margin-bottom: 6px;
}

/* Blüte (Garten, Papier) */
.bloom-scene {
  position: relative;
  width: 190px;
  height: 218px;
  margin-bottom: 4px;
}
.bloom {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bloom .petal {
  fill: var(--petal, #f1d5cc);
  stroke: var(--story-accent);
  stroke-width: 0.9;
  transform-box: view-box;
  transform-origin: 100px 100px;
}
.bloom .petals-ring {
  transform-origin: 100px 100px;
  animation: bloom-turn 2.6s 0.4s var(--ease) both;
}
.bloom .petal {
  animation: petal-open 1.6s calc(0.5s + var(--i) * 0.12s) var(--ease) both;
}
.bloom-heart {
  fill: var(--story-bg);
  stroke: var(--story-accent);
  stroke-width: 1;
  transform-origin: 100px 100px;
  animation: draw-in 1s 1.4s both;
}
.bloom .stem {
  fill: none;
  stroke: var(--story-ink);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 300;
  --len: 300;
  animation: ink-draw 1.4s ease-out both;
}
.bloom-initials {
  position: absolute;
  top: calc(100 / 230 * 100%);
  left: 50%;
  transform: translate(-50%, -50%);
  font: 400 16px/1 var(--serif);
  letter-spacing: 0;
  color: var(--story-ink);
  white-space: nowrap;
  animation: fade-in 1s 2s both;
}
.bloom-initials i {
  font-style: italic;
  color: var(--story-accent);
}
.paper .bloom .petal {
  fill: var(--story-bg);
  stroke: var(--story-ink);
  stroke-dasharray: 140;
  --len: 140;
  animation: ink-draw 1.2s calc(0.5s + var(--i) * 0.15s) ease-out both;
}
.paper .bloom .petals-ring {
  animation: none;
}
.opening-bluete .opening-facts {
  animation: appear 1s 2.4s both;
}

/* Laternen (Nacht) */
.lanterns {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.lanterns i {
  position: absolute;
  left: var(--x);
  bottom: calc(18% + var(--i) * 7%);
  width: calc(18px * var(--s));
  height: calc(24px * var(--s));
  border-radius: 40% 40% 30% 30%;
  background: radial-gradient(circle at 50% 62%, #fff3cf, #f2b866 55%, #c5762f);
  box-shadow:
    0 0 18px 6px #f2b86655,
    0 0 40px 14px #f2b86622;
  opacity: 0.85;
  animation: lantern-rise 9s calc(var(--i) * -1.1s) linear infinite;
}
.lantern-mark {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #f2b86630, #f2b86600 70%);
  animation: draw-in 1.4s 0.3s both;
}
.opening-bluete .lantern-mark + .opening-facts {
  animation: appear 1s 1.2s both;
}

/* Ringe */
.ring-pair {
  width: min(260px, 86%);
  overflow: visible;
  margin-bottom: 18px;
}
.ring-pair circle,
.ring-pair path {
  stroke: var(--story-accent);
  stroke-width: 3.2;
}
.ring-pair .ring-inner {
  stroke-width: 0.8;
  opacity: 0.7;
}
.ring-a-over path {
  stroke-width: 3.2;
  stroke-linecap: butt;
}
.ring-pair .ring-a-over .ring-gap {
  stroke: var(--story-bg);
  stroke-width: 7;
}
.ring-gem {
  stroke-width: 1.2 !important;
  fill: var(--story-bg);
}
.ring-spark {
  fill: var(--story-accent);
  stroke: none !important;
  transform-box: fill-box;
  transform-origin: center;
  animation: spark 1.2s 1.7s both;
}
.ring-a {
  animation: ring-left 1.6s 0.2s var(--ease) both;
}
.ring-b {
  animation: ring-right 1.6s 0.2s var(--ease) both;
}
.ring-a-over {
  animation: fade-in 0.2s 1.7s both;
}
.opening-ringe .opening-facts {
  animation: appear 1s 1.9s both;
}

.reduced .opening *,
.reduced .opening,
.reduced .opening-stage {
  animation: none !important;
  transition: none !important;
}

@keyframes opening-out {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
    pointer-events: none;
  }
}
@keyframes seal-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes dove-in {
  0% {
    opacity: 0;
    transform: translate(-70vw, -120px) rotate(-8deg) scale(0.6);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes dove-out {
  to {
    opacity: 0;
    transform: translate(70vw, -260px) rotate(-10deg) scale(0.6);
  }
}
@keyframes flap {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-26deg) scaleY(0.7);
  }
}
@keyframes cal-flip {
  from {
    transform: rotateX(-38deg) translateY(-4px);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes turn-away {
  from {
    transform: none;
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  to {
    transform: rotateX(-105deg);
    opacity: 0;
  }
}
@keyframes year-zoom {
  from {
    transform: scale(0.94) translate(0, 0);
  }
}
@keyframes fade-dim {
  from {
    opacity: 1;
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
}
@keyframes ink-draw {
  from {
    stroke-dashoffset: var(--len, 520);
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes write {
  0% {
    stroke-dashoffset: 700;
    fill-opacity: 0;
  }
  70% {
    fill-opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}
@keyframes bloom-turn {
  from {
    transform: rotate(-60deg);
  }
  to {
    transform: none;
  }
}
@keyframes petal-open {
  from {
    transform: scale(0.05);
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lantern-rise {
  0% {
    transform: translateY(40vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-80vh) translateX(18px);
    opacity: 0;
  }
}
@keyframes ring-left {
  from {
    transform: translateX(-90px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes ring-right {
  from {
    transform: translateX(90px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes spark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-height: 700px) {
  .envelope-heading,
  .opening-top {
    margin-bottom: 18px;
  }
  .cal-day {
    font-size: 84px;
  }
  .bloom-scene {
    height: 180px;
    width: 160px;
  }
}

/* ---------- Eigene Namen (#1870) ---------- */
/* Lange Namen (bis 40 Zeichen) passen sich an: engine.mjs setzt --name-len auf das längste Wort
   beider Namen. Die Schrift wird nur kleiner, nie größer als im Beispiel (1em). 0.5 ist eine
   großzügige Zeichenbreite der Cormorant; --name-room ist der Platz, den eine Zeile hat. */
.nm {
  font-size: min(1em, calc(var(--name-room, min(80vw, 320px)) / (var(--name-len, 1) * 0.5)));
  overflow-wrap: anywhere;
}
.envelope-letter,
.dove-note-inner {
  --name-room: 190px;
}
.pl-note {
  --name-room: 180px;
}
.guest-note,
.preview-note {
  overflow-wrap: anywhere;
}
