:root {
  --bg: #f7f2ee;
  --bg-2: #efe6df;
  --paper: #fffdfb;
  --ink: #2c2624;
  --ink-soft: #6f6460;
  --line: #e4d8cf;
  --accent: #b88a7a;      /* Altrosé */
  --accent-ink: #8a5f51;
  --sage: #a9b8a2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --r: 18px;
  --shadow: 0 10px 40px -18px rgba(70, 40, 30, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
section { padding: 96px 20px; max-width: 980px; margin: 0 auto; text-align: center; }

/* ---------- Intro ---------- */
.intro {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: grid; place-items: center; color: #fff; text-align: center;
  background: #3b302c;
}
.intro-media, .intro-media video, .intro-slides, .intro-shade { position: absolute; inset: 0; }
.intro-media { overflow: hidden; contain: paint; }
.intro-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.intro-media video.on { opacity: 1; }
.intro-slides > div {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12);
  animation: kenburns 18s infinite;
}
@keyframes kenburns {
  0% { opacity: 0; transform: scale(1.12) translate(0, 0); }
  5% { opacity: 1; }
  20% { opacity: 1; }
  26% { opacity: 0; transform: scale(1) translate(-1.5%, -1%); }
  100% { opacity: 0; }
}
.intro-shade {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%, transparent 60%, rgba(0,0,0,.5));
}
.intro-text { position: relative; z-index: 2; padding: 0 20px; }
.eyebrow { letter-spacing: .45em; text-transform: uppercase; font-size: 12px; font-weight: 500; margin: 0 0 18px; }
.names { font-family: var(--script); font-size: clamp(64px, 17vw, 150px); line-height: .95; display: flex; flex-direction: column; align-items: center; }
.names .amp { font-family: var(--serif); font-style: italic; font-size: .38em; margin: .1em 0; opacity: .9; }
.date { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; font-family: var(--serif); font-size: clamp(22px, 5.5vw, 34px); letter-spacing: .12em; }
.date i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }

.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: reveal 1.4s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; filter: none; } }

.sound {
  position: absolute; z-index: 3; right: 18px; top: calc(18px + env(safe-area-inset-top));
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12); color: #fff; font-size: 18px; backdrop-filter: blur(8px); cursor: pointer;
}
.sound.on { background: rgba(255,255,255,.85); color: var(--ink); }
.scroll-cue { position: absolute; z-index: 2; bottom: calc(110px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 14px; opacity: 0; animation: reveal 1s 3s forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Dock ---------- */
.dock {
  position: fixed; z-index: 20; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  translate: -50% 0; display: flex; gap: 2px; max-width: calc(100vw - 24px); padding: 6px;
  background: rgba(255, 253, 251, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; animation: reveal 1s 3.2s forwards;
}
.dock a { text-decoration: none; font-size: 13px; font-weight: 500; padding: 9px 13px; border-radius: 999px; color: var(--ink); white-space: nowrap; transition: background .35s ease, color .35s ease; }
.dock a.active { background: var(--ink); color: #fff; }
.dock-music { flex: none; width: 36px; height: 36px; margin-left: 2px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.dock-music.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dock-music.on { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.08); } }
@media (max-width: 400px) { .dock a { padding: 9px 10px; font-size: 12.5px; } }
@media (max-width: 350px) { .dock { padding: 5px; } .dock a { padding: 8px 7px; font-size: 12px; } .dock-music { width: 32px; height: 32px; margin-left: 0; } }
/* Text-Links: größere Tippfläche, ohne das Layout zu ändern */
.link::after { content: ""; position: absolute; inset: -10px -8px; }

/* ---------- Generic ---------- */
.section-title { font-family: var(--serif); font-size: clamp(36px, 8vw, 54px); margin-bottom: 28px; }
.section-title::after { content: ''; display: block; width: 46px; height: 1px; background: var(--accent); margin: 18px auto 0; }
.fade { transform: translateY(18px); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.fade.in { opacity: 1; transform: none; }
.link { position: relative; display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: var(--ink); color: #fff; font: 500 15px var(--sans);
  padding: 15px 30px; border-radius: 999px; cursor: pointer; transition: transform .2s, background .2s;
}
.btn:hover { background: #4a3f3b; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Zitat / Einladung ---------- */
.quote { padding-top: 120px; }
.monogram { font-family: var(--serif); font-size: 20px; letter-spacing: .35em; color: var(--accent-ink); margin: 0 0 40px; }
.monogram span { font-style: italic; letter-spacing: 0; }
blockquote { margin: 0 auto; max-width: 720px; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 6vw, 40px); line-height: 1.35; }
.invite { padding-top: 40px; }
.inv-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .45em; text-indent: .45em; text-transform: uppercase; color: var(--accent-ink); }
.inv-title { font-family: var(--script); font-size: clamp(64px, 17vw, 112px); line-height: 1.1; margin: 0 0 26px; color: var(--ink); }
.inv-main { font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 6.4vw, 42px); line-height: 1.28; max-width: 700px; margin: 34px auto 0; text-wrap: balance; }
.inv-main::before { content: ""; display: block; width: 46px; height: 1px; background: var(--accent); margin: 0 auto 30px; }
.inv-when { margin: 34px 0 0; display: grid; gap: 6px; }
.inv-when b { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 5vw, 28px); letter-spacing: .04em; }
.inv-when span { font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-ink); }
.inv-sign { font-family: var(--script); font-size: clamp(40px, 10vw, 58px); line-height: 1.2; margin: 26px 0 60px; }
.inv-sign i { font-family: var(--serif); font-size: .5em; margin: 0 4px; }
.lead { font-family: var(--serif); font-size: clamp(21px, 4.6vw, 28px); line-height: 1.5; max-width: 600px; margin: 0 auto; color: var(--ink-soft); text-wrap: balance; }
.lead-sub { margin: 22px 0 56px; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; font-weight: 500; color: var(--accent-ink); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; margin: 0 auto; }
.countdown div { background: var(--paper); border-radius: var(--r); padding: 18px 4px 14px; box-shadow: var(--shadow); }
.countdown b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 7vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Fotos zwischendurch ---------- */
.photo-band { margin: 0; height: min(78vh, 720px); background-size: cover; background-position: center; background-attachment: fixed; }
@media (max-width: 900px), (hover: none) { .photo-band { background-attachment: scroll; } }
.photo-duo { margin: 0 auto 96px; max-width: 980px; padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-duo div { aspect-ratio: 3/4; border-radius: var(--r); background-size: cover; background-position: center; }
.photo-duo div:nth-child(2) { margin-top: 48px; }

/* ---------- Video-Bänder ---------- */
.video-band { position: relative; margin: 0; height: min(88svh, 820px); overflow: hidden; background: #2b2220; }
.video-band video, .video-band img.anim, .intro-media img.anim { width: 100%; height: 100%; object-fit: cover; }
.intro-media img.anim { position: absolute; inset: 0; }
.video-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.05) 40%, rgba(0,0,0,.45)); pointer-events: none; }
.video-band figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 10%; text-align: center; color: #fff; padding: 0 20px; }
.video-band .script { display: block; font-family: var(--script); font-size: clamp(48px, 13vw, 96px); line-height: 1.1; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.video-band small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .35em; text-transform: uppercase; font-weight: 500; }
.video-band.last { height: min(80svh, 720px); }
.video-band .script i { font-family: var(--serif); font-size: .45em; vertical-align: .35em; }
.video-band.last .script { font-size: clamp(40px, 10.5vw, 88px); text-wrap: balance; }
.hint { margin: -14px 0 22px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-soft); }
.strip img { cursor: zoom-in; }

/* Play-Knopf, wenn Autoplay verweigert wird */
.play-btn { position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; }
.play-btn svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.intro > .play-btn { top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: 64px; height: 64px; }
.intro:has(> .play-btn) .scroll-cue { display: none; }

/* ---------- Details ---------- */
.cards { display: grid; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: start; align-content: start; text-align: left; padding: 28px 26px; }
@media (max-width: 430px) { .card { gap: 16px; padding: 26px 20px; } .card .big { font-size: 23px; } }
.card + .card { border-top: 1px solid var(--line); }
.card h3 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin: 4px 0 6px; }
.card .big { font-family: var(--serif); font-size: 27px; margin: 0 0 6px; line-height: 1.2; }
.card p { margin: 0; }
.card b { white-space: nowrap; font-weight: 600; }
.card .times { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 14px; row-gap: 2px; }
.card .times span { color: var(--ink-soft); }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); max-width: 980px; }
  .card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 38px 28px 34px; }
  .card + .card { border-top: 0; border-left: 1px solid var(--line); }
  .card .times { justify-content: center; }
}
.card-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); }
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dresscode ---------- */
.dress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dress { border: 1px solid var(--line); border-radius: var(--r); padding: 32px 20px; }
.dress h3 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.dress p { font-family: var(--serif); font-size: 28px; margin: 8px 0 20px; }
.swatches { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.swatches li { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* ---------- Wunsch ---------- */

/* ---------- RSVP ---------- */
.rsvp { background: var(--paper); border-radius: 28px; max-width: 640px; margin: 0 16px 96px; box-shadow: var(--shadow); padding: 72px 22px; }
@media (min-width: 680px) { .rsvp { margin: 0 auto 96px; padding: 72px 48px; } }
.deadline { margin: -8px 0 32px; color: var(--ink-soft); }
.rsvp-form { text-align: left; display: grid; gap: 18px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; place-items: center; text-align: center; min-height: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; font-weight: 500; font-size: 14px; transition: .2s; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: 400 16px var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field.invalid input { border-color: #c0675a; }
.if-yes { display: grid; gap: 18px; }
.rsvp-form:not(.yes) .if-yes { display: none; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 6px; max-width: 220px; }
.stepper input { text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 20px; cursor: pointer; color: var(--ink); }
.companions[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rsvp-form .btn { justify-self: center; margin-top: 8px; }
.form-msg { min-height: 1.4em; margin: 0; text-align: center; font-size: 14px; color: var(--accent-ink); }
.form-msg.err { color: #b04a3c; }
.rsvp-done, .rsvp-closed { padding: 10px 0; }
.done-title { font-family: var(--serif); font-size: 30px; margin: 0 0 6px; }

/* ---------- Programm ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 460px; text-align: left; position: relative; }
.timeline::before { content: ''; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 0 0 30px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 66px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.timeline time { font-family: var(--serif); font-size: 22px; line-height: 1.1; text-align: right; }
.timeline b { font-weight: 500; display: block; }
.timeline p { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; }
.timeline li.tbd time, .timeline li.tbd b { color: var(--ink-soft); }
.stay-tuned { display: inline-flex; align-items: center; gap: 16px; text-align: left; background: var(--paper); border-radius: 999px; padding: 14px 26px 14px 18px; box-shadow: var(--shadow); margin-top: 10px; }
.stay-tuned p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(169,184,162,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(169,184,162,0); } 100% { box-shadow: 0 0 0 0 rgba(169,184,162,0); } }
.updates { list-style: none; padding: 0; margin: 28px auto 0; max-width: 560px; text-align: left; display: grid; gap: 12px; }
.updates li { background: var(--paper); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px; }
.updates small { color: var(--ink-soft); font-size: 12px; letter-spacing: .06em; }
.updates b { display: block; font-weight: 500; margin: 2px 0; }
.updates p { margin: 0; font-size: 15px; white-space: pre-line; }

/* ---------- Wir zwei ---------- */
.us { max-width: none; padding-left: 0; padding-right: 0; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: none; width: min(72vw, 340px); aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r); scroll-snap-align: center; box-shadow: var(--shadow); }
@media (min-width: 900px) { .strip { justify-content: safe center; } .strip img { width: 260px; } }

/* ---------- Fotos der Gäste ---------- */
.upload { display: grid; justify-items: center; gap: 16px; margin: 30px auto; max-width: 360px; }
.upload .field { width: 100%; text-align: left; }
.upload .field input { background: var(--paper); border-color: var(--line); }
.progress { width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.qr-box { display: flex; align-items: center; gap: 22px; text-align: left; max-width: 560px; margin: 0 auto 44px; background: var(--paper); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.qr-box p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.qr { flex: none; width: 112px; height: 112px; background: #fff; border-radius: 10px; padding: 6px; }
.qr svg { width: 100%; height: 100%; }
@media (max-width: 460px) { .qr-box { flex-direction: column; text-align: center; } }
.gallery { columns: 2 150px; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: var(--bg-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
@media (min-width: 700px) { .gallery { columns: 3 200px; } }
.gallery-empty { color: var(--ink-soft); font-size: 14px; }
.gallery button { position: relative; }
.vid-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.7); }
.vid-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.vid-blank { display: block; aspect-ratio: 9/16; background: linear-gradient(135deg, #3b302c, #6f6460); }
.upload-hint { margin: -6px 0 0; font-size: 12px; color: var(--ink-soft); }
.lightbox video { max-height: 84vh; max-width: 100%; border-radius: 8px; background: #000; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 15, 13, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; border-radius: 8px; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }
.lb-cap { color: #ddd; font-size: 13px; margin: 10px 0 0; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 70px 20px 130px; color: var(--ink-soft); font-size: 13px; letter-spacing: .1em; }
.names-small { font-family: var(--script); font-size: 46px; color: var(--ink); letter-spacing: 0; margin: 0 0 8px; }
.names-small span { font-family: var(--serif); font-style: italic; font-size: .5em; }
.photo-band.last { height: min(60vh, 560px); }

@media (prefers-reduced-motion: reduce) {
  /* Nur die Intro-Diashow (läuft von selbst) anhalten; Scroll-Effekte und Videos bleiben */
  .intro-slides > div { animation: none; opacity: 0; }
  .intro-slides > div:first-child { opacity: 1; transform: none; }
}


/* ---------- Scroll-Effekte (fx.js setzt --s, --e, --p, --o) ---------- */
html.fx { --s: 0; overflow-x: clip; }
html.fx main, html.fx .footer { overflow-x: clip; }
html.fx .fade { transform: none; transition: none; }
html.fx [class*="fx-"] { --e: 0; --p: .5; will-change: transform; }

/* Eröffnung: Namen kommen näher, Video zoomt leicht */
html.fx .intro-text { transform: translate3d(0, calc(var(--s) * -8vh), 0) scale(calc(1 + var(--s) * .9)); opacity: calc(1 - var(--s) * 1.5); filter: blur(calc(var(--s) * 10px)); will-change: transform, opacity, filter; }
html.fx .intro-media video, html.fx .intro-media img.anim { transform: scale(calc(1 + var(--s) * .3)); }
html.fx .scroll-cue { opacity: calc(1 - var(--s) * 4); }

/* Text kommt auf einen zu */
html.fx.fx-calm .fx-zoom { filter: none !important; }
html.fx .fx-zoom { transform: translate3d(0, calc((1 - var(--e)) * 30px), 0) scale(calc(.72 + .28 * var(--e))); opacity: calc(.08 + .92 * var(--e)); filter: blur(calc((1 - var(--e)) * 6px)); }

/* Karten klappen in 3D hoch */
html.fx .countdown, html.fx .cards, html.fx .dress-grid, html.fx .timeline, html.fx .choice { perspective: 900px; }
html.fx .fx-card { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--e)) * 70deg)) translate3d(0, calc((1 - var(--e)) * 50px), 0); opacity: calc(.05 + .95 * var(--e)); }
html.fx .fx-rise { transform: perspective(1200px) rotateX(calc((1 - var(--e)) * 22deg)) translate3d(0, calc((1 - var(--e)) * 80px), 0) scale(calc(.9 + .1 * var(--e))); transform-origin: 50% 0; opacity: calc(.2 + .8 * var(--e)); }

/* Zitat Wort für Wort */
html.fx blockquote .w { transition: opacity .25s linear; }

/* Fotobänder: von der Karte zum Vollbild, mit 3D-Neigung und Parallaxe */
.photo-band { position: relative; overflow: hidden; background-size: cover; background-position: center; }
html.fx .photo-band { background-attachment: scroll; transform: perspective(1400px) rotateX(calc((.5 - var(--p)) * 14deg)) scale(calc(.84 + .16 * var(--e))); border-radius: calc((1 - var(--e)) * 36px); }
html.fx .photo-band::before { content: ""; position: absolute; inset: -14% 0; background-image: inherit; background-size: cover; background-position: center; transform: translate3d(0, calc((var(--p) - .5) * -22%), 0) scale(1.06); will-change: transform; }

/* Videobänder: öffnen sich wie ein Vorhang, Text zoomt heran */
html.fx .fx-video { clip-path: inset(calc((1 - var(--e)) * 9%) calc((1 - var(--e)) * 9%) round calc((1 - var(--e)) * 32px)); }
html.fx .fx-video video, html.fx .fx-video img.anim { transform: scale(calc(1.35 - .35 * var(--e))) translate3d(0, calc((var(--p) - .5) * -6%), 0); }
/* Schrift auf dem Video: zoomt beim Reinkommen heran, beim Weiterscrollen kommt sie
   näher, wird groß und verwischt – wie bei der Eröffnung (--x = Ausflug 0 → 1) */
html.fx .fx-video figcaption {
  --x: clamp(0, (var(--p) - .52) * 2.6, 1);
  transform: translate3d(0, calc((1 - var(--e)) * 60px - var(--x) * 12vh), 0) scale(calc((.6 + .4 * var(--e)) * (1 + var(--x) * 1.1)));
  opacity: calc((var(--e) * 1.2 - .1) * (1 - var(--x) * 1.3));
  filter: blur(calc(var(--x) * 12px));
  will-change: transform, opacity, filter;
}

/* Zwei Fotos schwingen wie Türen auf, danach leichte Parallaxe */
html.fx .photo-duo { perspective: 1100px; }
html.fx .fx-duo { transform-style: preserve-3d; }
html.fx .fx-left  { transform-origin: 0 50%;   transform: rotateY(calc((1 - var(--e)) * 55deg))  translate3d(0, calc((var(--p) - .5) * 40px), 0); opacity: calc(.15 + .85 * var(--e)); }
html.fx .fx-right { transform-origin: 100% 50%; transform: rotateY(calc((1 - var(--e)) * -55deg)) translate3d(0, calc((var(--p) - .5) * -70px), 0); opacity: calc(.15 + .85 * var(--e)); }

/* Foto-Streifen als 3D-Karussell */
html.fx .strip { perspective: 900px; }
html.fx .strip img { --o: 0; transform: rotateY(calc(var(--o) * -38deg)) scale(calc(1 - (max(var(--o), -1 * var(--o))) * .18)); transition: transform .12s linear; }
/* Letztes Video: Seite endet kurz danach – Schrift bleibt scharf stehen */
html.fx .fx-video.last figcaption { --x: 0; }

/* Infos des großen Tags: Zeilen einer Karte gleiten sanft herein statt zu kippen */
html.fx .cards .fx-card { transform: translate3d(0, calc((1 - var(--e)) * 28px), 0); }

/* ---------- Start: „Einladung öffnen“ (ein Tippen erlaubt dem Handy, die Musik zu spielen) ---------- */
.open-btn { display: none; }
html.gate, html.gate body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.gate .intro { cursor: pointer; touch-action: none; }
html.gate .dock, html.gate .scroll-cue, html.gate .intro > .play-btn { display: none; }
html.gate .open-btn {
  display: inline-flex; align-items: center; gap: 10px;
  position: absolute; z-index: 4; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  padding: 15px 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font: 500 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  opacity: 0; animation: reveal 1s 2.6s forwards, openPulse 2.4s 3.6s ease-in-out infinite;
}
.open-btn span { font-size: 17px; letter-spacing: 0; }
@keyframes openPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 60% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
/* nach dem Öffnen blenden Leiste und Scroll-Hinweis sofort ein */
html.opened .dock, html.opened .scroll-cue { animation-delay: .2s; }
