/* trovu – die Geschenkseite (fertig, Beispiel, Vorschau) in Gestaltung A: Namen und Zähler in Instrument Serif. */
/* Liebesseite bleibt in der hellen Fassung (Gestaltung A), unabhängig von den dunklen öffentlichen Seiten */
.gift-page { --paper: #FAF8F5; --paper-2: #F3EEE8; --ink: #1E1716; --ink-2: #5A4D4B; --ink-3: #6F625F; --line: #E6DFD8; --line-2: #D8CCC1; --rose: #9E1B32; --rose-ink: #7C1527; --rose-soft: #F5E6E7; }
.gift-page { background: var(--paper); }
.lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ink); color: #F3E9E4; font-size: 13px; }
.lp-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lp-bar a.lp-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 500; }
.lp-bar a.lp-home img { display: block; height: 20px; width: auto; }
.lp-bar a.lp-home:hover span, .lp-bar a.lp-home:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.lp-bar-note { flex: 1; text-align: center; color: #CDB9B0; }
@media (max-width: 560px) { .lp-bar-note { display: none; } .lp-bar a.lp-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.lp { width: min(660px, 100% - 32px); margin: 0 auto; padding: 48px 0 64px; }
.lp-for { margin: 0 0 4px; color: var(--rose); font-weight: 600; font-size: 15px; }
.lp h1 { margin: 0; font: 400 clamp(44px, 10vw, 68px)/1 var(--serif); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lp-count { margin: 18px 0 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lp-count b { font: 400 clamp(56px, 13vw, 76px)/1 var(--serif); letter-spacing: -0.02em; color: var(--rose); font-variant-numeric: tabular-nums; }
.lp-count span { color: var(--ink-2); font-size: 16px; }
/* 4:3 nur für den Platzhalter; echte Bilder reservieren ihren Platz über width/height (kein CLS) */
.ph.lp-hero { aspect-ratio: 4 / 3; }
img.lp-hero { width: 100%; height: auto; border-radius: var(--r); }
.lp-letter { margin: 40px 0 0; padding: 28px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.lp-letter p { margin: 0 0 14px; font: 400 23px/1.45 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.lp-letter p:last-child { margin: 0; }
.lp-letter .lp-sign { font: 400 italic 22px/1.3 var(--serif); color: var(--ink-2); }
.lp h2 { margin: 56px 0 20px; font: 400 36px/1.1 var(--serif); letter-spacing: -0.01em; }
.tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.tl li { position: relative; padding: 0 0 32px 24px; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.tl li:last-child { padding-bottom: 0; }
.tl .tl-date { display: block; margin: 0; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.tl h3 { margin: 2px 0 6px; font: 400 26px/1.15 var(--serif); overflow-wrap: anywhere; }
.tl p { margin: 0 0 12px; color: var(--ink-2); font-size: 17px; overflow-wrap: anywhere; }
.tl .ph { aspect-ratio: 16 / 9; max-width: 440px; }
img.tl-ph { width: 100%; max-width: 440px; border-radius: var(--r); }
.lp-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-gal .ph, .lp-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.love { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.love li { padding: 16px 18px; background: var(--rose-soft); border-radius: var(--r); font-size: 17px; color: var(--rose-ink); overflow-wrap: anywhere; }
.lp-end { margin: 64px 0 0; text-align: center; color: var(--ink-2); font-size: 17px; }
.lp-end strong { display: block; color: var(--ink); font: 400 36px/1.1 var(--serif); margin-bottom: 8px; }
.lp-made { margin: 56px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.lp-made a { color: var(--ink-2); }
.lp-again { margin: -40px 0 48px; text-align: center; font-size: 13px; }
.lp-muted, .lp-muted b, .lp-muted p { color: var(--ink-3) !important; }
.lp-letter.lp-muted { border-style: dashed; background: transparent; }
@media (min-width: 560px) { .lp-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.in-frame .lp { padding-top: 32px; }

/* ---------- Auspacken: Umschlag über der Seite ---------- */
.unwrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--paper); overflow: auto; }
.unwrap[hidden] { display: none; }
.uw-pending .unwrap[hidden] { display: flex; }
.uw-pending body, .uw-active body { overflow: hidden; }
.uw-stage { display: grid; justify-items: center; gap: 28px; width: min(380px, 100%); text-align: center; }
.uw-title { margin: 0; font: 400 clamp(36px, 9vw, 48px)/1.05 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.uw-scene { width: 100%; aspect-ratio: 34 / 22; margin-top: 120px; perspective: 900px; }
.uw-env { position: relative; width: 100%; height: 100%; }
.uw-back { position: absolute; inset: 0; background: var(--env-2); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgb(60 30 20 / .4); }
.uw-letter { position: absolute; left: 6%; right: 6%; top: 7%; bottom: 6%; z-index: 2; overflow: hidden; padding: 16px 18px; background: #fff; border-radius: var(--r); text-align: left;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1) .5s; }
.uw-for { margin: 0; color: var(--rose); font-weight: 600; font-size: 13px; }
.uw-names { margin: 2px 0 6px; font: 400 26px/1.05 var(--serif); overflow-wrap: anywhere; }
.uw-count { margin: 0; font: 400 44px/1 var(--serif); color: var(--rose); }
.uw-count-l { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.uw-front { position: absolute; inset: 0; z-index: 3; background: var(--env); border-radius: 0 0 var(--r) var(--r); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.uw-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; background: var(--env-3); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center;
  transition: transform .6s ease-in-out, z-index 0s linear .3s; }
.uw-seal { position: absolute; left: 50%; top: 58%; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--rose); color: #fff;
  display: grid; place-items: center; font: 400 26px/1 var(--serif); transition: opacity .2s; }
.uw-open { min-width: 160px; transition: opacity .2s; }
.uw-note { margin: 0; max-width: 30ch; color: var(--ink-2); font-size: 14px; line-height: 1.5; transition: opacity .2s; }
.uw-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.unwrap.is-opening .uw-note { opacity: 0; }
.unwrap.is-opening .uw-seal, .unwrap.is-opening .uw-open { opacity: 0; }
.unwrap.is-opening .uw-flap { transform: rotateX(180deg); z-index: 1; }
.unwrap.is-opening .uw-letter { transform: translateY(-68%); }
.unwrap.is-opening { animation: uw-fade .45s ease 1.15s forwards; }
.unwrap.is-fade { animation: uw-fade .25s ease forwards; }
@keyframes uw-fade { to { opacity: 0; visibility: hidden; } }
