/* Gast — Jana Weber. Bausteine der Gast-Perspektive. Farben nur aus den core.css-Tokens. */

/* ---------- Webseiten-Kopf (Gast öffnet Links aus WhatsApp im Browser) ---------- */
.g-urltop { gap: 6px; padding: 8px 10px; min-height: 56px; }
.g-url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--paper-2); color: var(--ink-muted); font-size: var(--fs-s); }
.g-url .icon { color: var(--success); }
.g-url.on-dark { background: var(--night-2); color: var(--ivory-muted); }
.g-url.on-dark .icon { color: var(--night-accent); }
.g-url-sp { width: 44px; flex: none; }
.g-foot { flex: none; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); position: relative; z-index: 3; }
.g-banner { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px; border: 0; text-align: left; font-size: var(--fs-s); }
.g-banner b { font-weight: 600; }
.g-banner .icon { color: var(--night-accent); }
.fi-g { width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; flex: none; color: var(--accent-ink); align-self: flex-start; }
.g-ad { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; vertical-align: 2px; background: var(--paper); }
.chip { min-height: 44px; }

/* ---------- WhatsApp ---------- */
.wa-top .g-wa-av { background: var(--night); color: var(--night-accent); font-size: 1.3rem; line-height: 1; }
.g-wa-av .display { margin-top: -4px; }
.g-wa-av em { font-style: normal; }
.wa-top { min-height: 56px; }
.wa-enc { display: flex; gap: 8px; align-items: flex-start; max-width: 300px; margin: 2px auto 14px; padding: 8px 12px; border-radius: 10px; background: var(--open-wash); color: var(--ink); font-size: 12px; line-height: 1.4; }
.wa-enc .icon { margin-top: 1px; color: var(--open); }
.wa-msg { max-width: 88%; }
.wa-msg.g-short { max-width: 78%; }
.g-txt { line-height: 1.45; }
.g-txt b { font-weight: 600; }
.g-lines { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.g-line { display: flex; gap: 8px; align-items: flex-start; }
.g-line .icon { margin-top: 2px; color: var(--wa); }
.g-wfoot { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--ink-muted); }
.wa-msg .g-ad { margin-bottom: 6px; }
.g-prev { width: calc(100% + 8px); border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.g-prev .t { display: block; }
.g-prev .t b { font-weight: 600; }
.wa-btns button { min-height: 44px; }
.wa-btns button .icon { color: currentColor; }
.g-sys { display: flex; gap: 8px; align-items: flex-start; max-width: 320px; margin: 10px auto; padding: 10px 12px; border-radius: 10px; background: var(--sheet); color: var(--ink-muted); font-size: 13px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.g-sys .icon { margin-top: 1px; color: var(--ink-soft); }
.g-sys .link-btn { min-height: 44px; padding: 0; }
.g-skip { display: flex; justify-content: center; margin: 18px 0 4px; }
.g-skip .btn { min-height: 44px; background: var(--paper); border-style: dashed; color: var(--ink-muted); }
.g-compose { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--wa-bg); }
.g-compose-in { flex: 1; min-height: 44px; border: 0; border-radius: 22px; background: var(--sheet); color: var(--ink-soft); text-align: left; padding: 0 16px; font-size: var(--fs-m); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.g-compose-send { width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: var(--sheet); display: grid; place-items: center; flex: none; }

/* ---------- Antwort (W5) ---------- */
.g-person { padding: 14px; transition: box-shadow 0.2s ease; }
.g-person.set { box-shadow: var(--shadow-1); }
.g-pname { font-size: 1.3rem; line-height: 1.15; }
.g-come { margin-top: 14px; }
.g-come button { min-height: 52px; }
.g-come button[aria-pressed='false'] .icon { opacity: 0.55; }
.g-more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.g-reveal { animation: g-reveal 0.36s var(--ease); }
@keyframes g-reveal { from { opacity: 0; transform: translateY(-6px); } }
.g-lbl { display: block; font-size: var(--fs-s); font-weight: 600; margin-bottom: 8px; }
.g-dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-dish { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--sheet); text-align: left; transition: background 0.15s ease, border-color 0.15s ease; }
.g-dish-n { font-weight: 600; font-size: var(--fs-s); display: inline-flex; align-items: center; gap: 5px; }
.g-dish-d { font-size: var(--fs-xs); color: var(--ink-muted); line-height: 1.35; }
.g-dish[aria-pressed='true'] { background: var(--accent-wash); border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink) inset; }
.g-dish[aria-pressed='true'] .g-dish-n { color: var(--accent-ink); }
.g-alg { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); text-align: left; }
.g-alg .g-lbl { margin-bottom: 1px; }
.g-alg-v { font-size: var(--fs-s); color: var(--ink-muted); }
.g-alg-e { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-s); font-weight: 600; color: var(--accent-ink); }
.g-alg-open { margin-top: 12px; }
.g-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.g-hints .chip { min-height: 44px; }
.g-yn { margin-top: 10px; max-width: 220px; }
.g-yn button { min-height: 44px; }
.g-yn button[aria-pressed='true'] { color: var(--accent-ink); }
.g-q { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.g-q .title { display: block; }
.g-opt { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.g-opt .title { display: block; }
.g-box { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--ink-soft); background: var(--sheet); display: grid; place-items: center; flex: none; color: transparent; margin-top: 1px; transition: background 0.15s ease, border-color 0.15s ease; }
.g-opt[aria-checked='true'] .g-box { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--sheet); }
.g-opt[aria-checked='true'] .g-box .icon { animation: pop 0.3s var(--ease); }
.g-foot-sum { display: flex; gap: 14px; justify-content: center; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 600; }
.g-fs { display: inline-flex; align-items: center; gap: 4px; }
.g-fs.ja { color: var(--success); }
.g-fs.nein { color: var(--error); }
.g-fs.offen { color: var(--open); }
.g-nudge { animation: g-nudge 0.5s ease 0.25s; }
@keyframes g-nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.g-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: g-rot 0.7s linear infinite; }
@keyframes g-rot { to { transform: rotate(360deg); } }

/* ---------- Bestätigung ---------- */
.g-done { text-align: center; padding-top: 4px; }
.g-seal { width: 84px; height: 84px; border-radius: 50%; margin: 14px auto 16px; display: grid; place-items: center; background: var(--accent-ink); color: var(--sheet); animation: pop 0.5s var(--ease) 0.1s both; box-shadow: 0 0 0 8px var(--accent-wash); }
.g-seal .icon { width: 34px; height: 34px; }
.g-seal.no { background: var(--ink-muted); box-shadow: 0 0 0 8px var(--paper-2); }
.g-seal.gold { background: var(--night-accent); color: var(--night); box-shadow: 0 0 0 8px rgba(212, 183, 143, 0.18); }
.g-h { font-size: var(--fs-2xl); line-height: 1.12; margin-bottom: 8px; }
.g-deliv { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); font-size: var(--fs-s); color: var(--ink-muted); transition: background 0.3s ease, color 0.3s ease; }
.g-deliv.on { background: var(--success-wash); color: var(--success); font-weight: 600; }
.g-deliv .ticks { transition: color 0.3s ease; }
.g-sum { animation: g-up 0.4s var(--ease) both; }
.g-sum-s { min-height: 50px; }
@keyframes g-up { from { opacity: 0; transform: translateY(8px); } }
.g-next { list-style: none; margin: 0; padding: 0; position: relative; }
.g-next::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1.5px; background: var(--line-strong); }
.g-next li { display: flex; gap: 14px; padding: 8px 0 8px 24px; position: relative; }
.g-next li::before { content: ''; position: absolute; left: 1px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); }
.g-next li { flex-direction: column; gap: 2px; }
.g-nd { font-size: var(--fs-xs); color: var(--ink-muted); }
.g-nd b { font-weight: 600; color: var(--ink); }
.g-nt { font-size: var(--fs-m); line-height: 1.45; }

/* ---------- Gäste-Modus am Tag (W6) ---------- */
.g-night { padding-bottom: 8px; }
.g-night .section-title h2 { color: var(--ivory); }
.g-hello { padding: 6px 0 14px; }
.g-hello h1 { font-size: var(--fs-2xl); line-height: 1.12; margin-top: 6px; }
.g-nownext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-nownext > div { background: var(--night-2); border-radius: var(--r-m); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.g-nownext b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; margin-top: 2px; }
.g-now { box-shadow: 0 0 0 1px var(--night-accent) inset; }
.g-now .xsmall { color: var(--night-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.g-live { width: 8px; height: 8px; border-radius: 50%; background: var(--night-accent); display: inline-block; animation: g-pulse 1.8s infinite; }
@keyframes g-pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 183, 143, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(212, 183, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 183, 143, 0); } }
.g-seat { margin-top: 10px; display: flex; align-items: center; gap: 8px; background: var(--night-2); border-radius: var(--r-m); padding: 14px 8px 14px 14px; }
.g-seat-in { flex: 1; min-width: 0; }
.g-seat-t { font-size: 1.75rem; line-height: 1.1; margin: 4px 0 6px; color: var(--night-accent); }
.g-tbl { width: 128px; height: 128px; flex: none; }
.g-tbl .t { fill: var(--night-3); stroke: rgba(212, 183, 143, 0.5); stroke-width: 1; }
.g-tbl .tn { fill: var(--ivory); font-family: var(--font-display); font-size: 15px; }
.g-tbl .seat { fill: var(--night); stroke: var(--ivory-muted); stroke-width: 1; }
.g-tbl .seat.me { fill: var(--night-accent); stroke: var(--night-accent); }
.g-tbl .seat.mx { stroke: var(--night-accent); stroke-width: 1.6; }
.g-tbl .si { fill: var(--ivory-muted); font-family: var(--font-text); font-size: 10px; font-weight: 600; }
.g-tbl .si.me { fill: var(--night); font-size: 11px; }
.g-tbl .si.mx { fill: var(--night-accent); }
.g-big { min-height: 60px; font-size: var(--fs-l); gap: 10px; }
.g-tl { list-style: none; margin: 0; padding: 4px 0; position: relative; }
.g-tl::before { content: ''; position: absolute; left: 56px; top: 14px; bottom: 14px; width: 1px; background: rgba(243, 234, 214, 0.2); }
.g-tl li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.g-tl-t { width: 44px; flex: none; font-weight: 600; font-size: var(--fs-s); padding-top: 1px; }
.g-tl-d { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ivory-muted); background: var(--night); flex: none; margin-top: 5px; position: relative; z-index: 1; }
.g-tl b { display: block; font-weight: 600; line-height: 1.3; }
.g-tl .grow span { font-size: var(--fs-s); color: var(--ivory-muted); }
.g-tl li.done { color: var(--ivory-muted); }
.g-tl li.done b { font-weight: 400; }
.g-tl li.done .g-tl-d { background: var(--ivory-muted); }
.g-tl li.now .g-tl-d { background: var(--night-accent); border-color: var(--night-accent); box-shadow: 0 0 0 4px rgba(212, 183, 143, 0.22); }
.g-tl li.now b, .g-tl li.now .g-tl-t { color: var(--night-accent); }
.g-tl-tag { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--ivory-muted); white-space: nowrap; padding-top: 2px; }
.g-tl-tag.now { color: var(--night); background: var(--night-accent); font-weight: 600; border-radius: 999px; padding: 1px 8px; }
.g-info { background: var(--night-2); border-radius: var(--r-m); overflow: hidden; }
.g-info .li { min-height: 56px; align-items: flex-start; }
.g-info .li + .li { border-top: 1px solid rgba(243, 234, 214, 0.1); }
.g-info .li > .icon { margin-top: 3px; color: var(--night-accent); }
.g-info .meta { color: var(--ivory-muted); }

/* ---------- Fotos teilen ---------- */
.g-picktop { padding-left: 6px; padding-right: 6px; }
.g-picktop .btn-ghost { min-height: 44px; }
.g-pick-sp { width: 86px; flex: none; }
.g-roll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.g-pick { position: relative; padding: 0; border: 0; background: var(--paper-3); aspect-ratio: 1; overflow: hidden; display: block; }
.g-pick img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.18s var(--ease), opacity 0.18s; }
.g-pick-n { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--sheet); background: rgba(20, 33, 61, 0.25); color: var(--sheet); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.g-pick[aria-pressed='true'] img { transform: scale(0.9); border-radius: 6px; }
.g-pick[aria-pressed='true'] .g-pick-n { background: var(--accent-ink); border-color: var(--sheet); animation: pop 0.3s var(--ease); }
.g-pick[aria-pressed='true']::after { content: ''; position: absolute; inset: 0; box-shadow: 0 0 0 3px var(--accent-ink) inset; pointer-events: none; }
.g-upl { display: flex; flex-direction: column; padding-top: 24px; }
.g-upl-k { text-align: center; }
.g-upl-bar { background: var(--night-2); }
.g-upl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.g-upl-f { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.g-upl-f img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: opacity 0.3s ease; }
.g-upl-ok { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--night-accent); color: var(--night); display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.3s var(--ease); }
.g-upl-f.done img { opacity: 1; }
.g-upl-f.done .g-upl-ok { opacity: 1; transform: none; }

/* Live-Wand-Vorschau */
.g-wall { background: var(--night-2); border-radius: var(--r-m); padding: 12px; box-shadow: 0 0 0 1px rgba(243, 234, 214, 0.08) inset; }
.g-wall-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.g-wall-h .display { font-size: 1.1rem; }
.g-wall-h em { color: var(--night-accent); }
.g-wall-h .xsmall { display: inline-flex; align-items: center; gap: 6px; color: var(--ivory-muted); }
.g-wall-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.g-wf { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.g-wf img { width: 100%; height: 100%; object-fit: cover; }
.g-wf figcaption { position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 600; color: var(--ivory); background: rgba(20, 33, 61, 0.7); padding: 1px 6px; border-radius: 5px; }
.g-wf.mine { animation: g-wall-in 0.5s var(--ease) both; }
.g-wf.mine figcaption { background: var(--night-accent); color: var(--night); }
@keyframes g-wall-in { from { opacity: 0; transform: scale(0.7); } }

/* ---------- Galerie (W7) ---------- */
.g-galh { padding-top: 14px; padding-bottom: 12px; }
.g-galh h1 { font-size: var(--fs-2xl); line-height: 1.1; margin: 4px 0 4px; }
.g-galh em { color: var(--accent-ink); }
.g-ph { padding: 0; border: 0; background: var(--paper-3); display: block; overflow: hidden; }
.g-ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.g-story { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 3px; }
.g-story .g-ph:first-child { grid-column: span 2; grid-row: span 2; }
.g-story .g-ph:first-child img { aspect-ratio: auto; height: 100%; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.g-view { width: 100%; border-radius: 12px; }

/* ---------- Geschenk (W8) ---------- */
.g-gift { padding-top: 14px; }
.g-adline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-gift-hero { text-align: center; margin-top: 10px; }
.g-gift-hero img { width: 150px; margin: 0 auto 4px; }
.g-gift-hero h1 { font-size: var(--fs-2xl); line-height: 1.12; margin: 8px 0 10px; }
.g-prod { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; text-align: left; font: inherit; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.g-prod[aria-checked='true'] { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink) inset, var(--shadow-1); }
.g-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-soft); flex: none; margin-top: 3px; display: grid; place-items: center; }
.g-prod[aria-checked='true'] .g-radio { border-color: var(--accent-ink); }
.g-prod[aria-checked='true'] .g-radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-ink); }
.g-prod-n { font-weight: 400; font-size: 1.2rem; }
.g-price { font-weight: 600; font-size: var(--fs-l); }
.g-share { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); background: var(--open-wash); color: var(--ink); font-size: var(--fs-s); line-height: 1.45; }
.g-share .icon { color: var(--open); margin-top: 1px; }
.g-share b { font-weight: 600; }

/* Hochzeitsseite: klebender Antwort-Knopf erst, wenn der im Kopf nicht mehr sichtbar ist */
.wsite .w-sticky { transition: opacity 0.25s ease, transform 0.25s var(--ease); }
.wsite .w-sticky.g-st-hide { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* Nachtbildschirme: Bildschirmgrund ebenfalls Nachtblau, damit an Kanten kein Papier durchblitzt */
.screen:has(> .view > .body.night) { background: var(--night); }

/* Nachtblatt (Foto groß): Kopf, Griff und Fuß ebenfalls nachtblau */
.sheet.night-sheet .icon-btn { color: var(--ivory); }
.sheet.night-sheet .sheet-handle { background: var(--night-3); }
.sheet.night-sheet .sheet-foot { background: var(--night); border-top-color: rgba(243, 234, 214, 0.12); }

/* Nach der Hochzeit gibt es nichts mehr zu ändern */
.g-past .w-cta .link-btn { display: none; }
