/* Page CSS for WinterOneDerland: only what the kit lacks (the globe hero, the RSVP controls,
   the gift cards, the album), on the kit's tokens. */

.nowrap { white-space: nowrap; }
:root[data-type="place"] { --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-btn: 999px; } /* the client's mockup: pill buttons, soft cards */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
h1 em, .close__word em { font-style: italic; color: var(--accent); }
h2 em { font-style: italic; }

/* ---------- hero: the snow ground, the words left, the globe right (the client's mockup) ---------- */
.hero--globe { position: relative; overflow: clip; }
.hero__snow { position: absolute; inset: var(--nav) 0 0 0; width: 100%; height: calc(100% - var(--nav)); object-fit: cover; object-position: 50% 70%; z-index: 0; pointer-events: none; }
.hero--globe > .wrap { position: relative; z-index: 1; }
.hero-kids { font-family: var(--font-display); font-size: clamp(20px, 1.4vw + 12px, 28px); letter-spacing: .14em; color: var(--ink); }
.hero--globe h1 { font-size: clamp(56px, 6.4vw + 8px, 112px); line-height: .96; letter-spacing: -0.03em; hyphens: none; }
.h1-line { display: block; white-space: nowrap; }
.hero--globe .hero__lead { font-size: var(--t-lead); max-width: 34ch; }
.hero--globe .btn-row { align-items: center; gap: var(--s-5); }
.globe { display: grid; place-items: center; }
.globe__video { width: min(100%, 640px); max-height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%); }
.globe__pause { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 639px) {
  .hero--globe h1 { font-size: clamp(44px, 14vw, 60px); }
  .hero-kids { letter-spacing: .1em; }
  .hero--globe .hero-split { gap: var(--s-4); }
  .globe__video { width: min(100%, 250px); }
  .hero--globe .nowrap { white-space: normal; }
  .hero--globe .hero-visual { flex: 0 1 auto; }
  .hero__second { min-height: 44px; }
}

/* ---------- Die Feier ---------- */
.facts { display: grid; gap: var(--s-4); margin: 0; }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t-label); font-weight: 500; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: var(--t-lead); line-height: 1.45; }
.facts address { font-style: normal; }
.feier__text { font-size: var(--t-body); line-height: 1.65; max-width: 52ch; }
.feier__photo > img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-height: 588px; }
@media (min-width: 1024px) { .feier__photo > img { aspect-ratio: auto; height: 100%; } .feier { align-items: stretch; } .feier__photo { display: flex; } }

/* ---------- Rückmeldung ---------- */
.section--alt { --bg: var(--p-surface); --surface: var(--p-bg); --card: var(--p-bg); background: var(--bg); }
.zusage__intro { display: grid; gap: var(--s-5); align-content: start; }
.zusage__done { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rsvp { background: var(--p-bg); border-radius: var(--r-lg); padding: var(--s-7); align-content: start; }
.rsvp > .field, .rsvp > .seg { grid-column: 1 / -1; }
.rsvp__counts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.rsvp__counts[hidden] { display: none; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s-2); padding: 0; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.seg__opt { position: relative; display: block; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-3); border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); border-radius: var(--r-sm); font-size: var(--t-body); font-weight: 500; text-align: center; background: var(--p-bg); transition: background var(--dur, .2s), border-color var(--dur, .2s), color var(--dur, .2s); }
.seg__opt:hover span { border-color: var(--ink); }
.seg__opt input:checked + span { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 48px; border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); border-radius: var(--r-sm); background: var(--p-bg); overflow: hidden; }
.stepper .stepper__btn { height: 100%; border: 0; background: none; font-size: 20px; color: var(--ink); cursor: pointer; }
.stepper .stepper__btn:hover { background: color-mix(in oklab, var(--action) 10%, transparent); }
.field .stepper input { height: 100%; border: 0; border-radius: 0; text-align: center; font-size: var(--t-lead); background: none; padding: 0; }
@media (max-width: 639px) { .rsvp { padding: var(--s-5); } }

/* ---------- statement (word-highlight) ---------- */
#jahr .mo-wh__text { font-family: var(--font-display); font-size: clamp(30px, 3.2vw + 10px, 56px); line-height: 1.18; letter-spacing: -0.02em; max-width: 24ch; margin-top: var(--s-5); }

/* ---------- Wunschliste ---------- */
.gifts { row-gap: var(--s-7); }
.gift { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-3); align-content: start; background: var(--p-bg); border-radius: var(--r-lg); padding: var(--s-4) var(--s-4) var(--s-5); transition: transform var(--dur, .25s) var(--ease, ease); }
.gift:hover { transform: translateY(-2px); }
.gift__media { overflow: clip; border-radius: var(--r-md); aspect-ratio: 4 / 3; background: var(--surface); }
.gift__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease); }
.gift:hover .gift__media img { transform: scale(1.03); }
.gift__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.gift h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-card); line-height: 1.25; }
.gift__desc { color: var(--muted); font-size: var(--t-body); line-height: 1.55; }
.gift__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.badge { font-size: var(--t-label); font-weight: 500; height: 28px; padding: 0 var(--s-3); border-radius: 999px; display: inline-flex; align-items: center; white-space: nowrap; }
.badge--free { background: #e3ead8; color: #33402a; }
.badge--partial, .badge--group { background: #ebe1f1; color: #4f3a5e; }
.badge--reserved, .badge--purchased { background: #e4e2e8; color: #3c3a48; }
.gift__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.gift__actions .btn { height: 44px; padding: 0 var(--s-4); font-size: var(--t-small); }
.gift__mine { font-size: var(--t-small); color: var(--ink); font-weight: 500; }
.gift__form { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.gift__form[hidden] { display: none; }
.gift__form .field input { height: 44px; }
.gift__qty { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); }
.gift__qty .stepper { width: 160px; height: 44px; grid-template-columns: 44px 1fr 44px; }
.gift__msg { font-size: var(--t-small); color: var(--ink); min-height: 0; }
.gift__msg.is-error { color: color-mix(in oklab, #d92d20 72%, var(--ink)); }
.gift__shop { font-size: var(--t-small); }

/* ---------- Fotoalbum ---------- */
.fotos__head { margin-bottom: var(--s-6); }
.upload-btn { cursor: pointer; }
.fotos__name { max-width: 480px; margin-bottom: var(--s-5); }
.uploads { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-2); }
.uploads:empty { display: none; }
.uploads li { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s-3); align-items: center; font-size: var(--t-small); }
.uploads img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); }
.uploads progress { width: 100%; height: 6px; accent-color: var(--action); }
.uploads .is-error { color: color-mix(in oklab, #d92d20 72%, var(--ink)); }
.album { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.album__empty { grid-column: span 6; display: grid; gap: var(--s-4); }
.album__empty img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.album__empty[hidden] { display: none; }
.album__grid { grid-column: 7 / -1; }
.album.is-full .album__grid, .album__more { grid-column: 1 / -1; }
.album__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.album.is-full .album__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.album__grid:empty { display: none; }
.album__item { position: relative; display: block; padding: 0; border: 0; background: var(--surface); border-radius: var(--r-md); overflow: clip; aspect-ratio: 1; cursor: zoom-in; }
.album__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease); }
.album__item:hover img { transform: scale(1.03); }
.album__item .badge { position: absolute; left: 8px; bottom: 8px; background: color-mix(in oklab, var(--p-bg) 92%, transparent); color: var(--ink); }
.album__more { margin-top: var(--s-5); }
@media (max-width: 1023px) { .album.is-full .album__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .album, .album.is-full .album__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album__empty, .album__grid { grid-column: 1 / -1; }
  .rsvp__counts { grid-template-columns: 1fr; }
  .fotos__upload, .fotos__upload .btn { width: 100%; }
}
/* sections whose content grows with the guests' data (wishes, photos) keep at least their screens and grow beyond */
main > section.is-grown { height: auto; min-height: calc(var(--h, 1) * 100svh); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 20, 32, .82); }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--p-bg); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- footer ---------- */
.close__word { font-size: clamp(30px, 10.4vw, 152px); white-space: nowrap; hyphens: none; }
.footer__address { font-style: normal; font-size: var(--t-lead); line-height: 1.5; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; justify-content: flex-end; }
.footer__nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 639px) { .footer__nav { justify-content: flex-start; } }
@media (max-width: 639px) {
  .hero--globe .btn-row { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .hero--globe .btn-row .link { justify-content: center; }
}
/* phone: wishes as compact rows (picture left), so three fit the section's two screens */
@media (max-width: 639px) {
  .gifts { row-gap: var(--s-4); }
  .gift { grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto; column-gap: var(--s-4); row-gap: var(--s-2); padding: var(--s-3); }
  .gift__media { grid-row: 1 / span 2; aspect-ratio: 1; align-self: start; }
  .gift > :not(.gift__media) { grid-column: 2; }
  .gift > .stack-3:last-child { grid-column: 1 / -1; }
  .gift__actions .btn { flex: 1 1 auto; }
}
.gift__desc, .gift h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 359px) { .gift { grid-template-columns: 88px minmax(0, 1fr); } }
