/* Gästeseite. Farben und Schriften kommen als Variablen aus themes.js (style-Attribut am .gs).
   Aufbau über data-layout: foto · bogen · fenster. Schrift über data-font: script · mix · modern · klassisch. */

.gs {
  --body: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --accent-ink: color-mix(in srgb, var(--gold) 72%, var(--ink));
  --gutter: max(22px, env(safe-area-inset-left, 0px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 300; font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.gs[data-dark] { color-scheme: dark; --accent-ink: var(--gold); }
.gs * { box-sizing: border-box; }
:where(.gs) a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.gs :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
:where(.gs) button, :where(.gs) input, :where(.gs) select, :where(.gs) textarea { font: inherit; color: inherit; }
.gs ::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); }
.gs input, .gs textarea { caret-color: var(--primary); }

.gs-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(22px, env(safe-area-inset-right, 0px)); }

/* ---------- Kopfzeile mit Monogramm und Sprachen ---------- */
.gs-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1240px; margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) 18px var(--gutter); font-size: 14px; color: var(--muted); }
.gs-top.on-photo { position: absolute; left: 0; right: 0; top: 0; color: #fff; }
.gs-mono { font-family: var(--f-names); font-size: 18px; letter-spacing: .02em; }
[data-font="script"] .gs-mono, [data-font="mix"] .gs-mono { font-size: 25px; letter-spacing: 0; }
.gs-langs { display: flex; gap: 2px; }
.gs-langs button { background: none; border: 0; padding: 6px 7px; color: inherit; opacity: .72; cursor: pointer; letter-spacing: .06em; font-size: 14px; }
.gs-langs button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Namen und Titel ---------- */
.gs-names { font-family: var(--f-names); font-weight: 400; margin: 0; line-height: .98; letter-spacing: -0.01em; text-wrap: balance; font-size: clamp(54px, 14vw, 120px); }
[data-font="script"] .gs-names, [data-font="mix"] .gs-names { font-size: clamp(62px, 16.5vw, 136px); line-height: 1.08; letter-spacing: 0; }
[data-font="klassisch"] .gs-names { font-weight: 500; letter-spacing: -0.015em; }
.gs-names .gs-ln { display: inline-block; }
.gs-amp { font-style: italic; }
[data-font="script"] .gs-amp, [data-font="mix"] .gs-amp { font-style: normal; }
.gs-eyebrow { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 14px; color: var(--accent-ink); }
.gs-date { font-family: var(--f-lead); font-style: var(--lead-style); font-size: clamp(21px, 2.6vw, 28px); margin-top: 10px; }
.gs-h { font-family: var(--f-head); font-weight: 400; margin: 0 0 26px; line-height: 1.04; letter-spacing: -0.01em; font-size: clamp(40px, 8.5vw, 60px); text-wrap: balance; }
[data-font="script"] .gs-h { font-size: clamp(52px, 12.5vw, 78px); line-height: 1.1; text-align: center; letter-spacing: 0; }
[data-font="klassisch"] .gs-h { font-weight: 500; font-size: clamp(42px, 9vw, 64px); }
[data-layout="foto"] .gs-h { text-align: center; }

/* ---------- Aufbau 1: Foto und Schrift ---------- */
.gs-hero-foto { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; height: 92vh; height: min(92svh, 900px); overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% 10%, color-mix(in srgb, var(--hero) 70%, #fff) 0%, var(--hero) 55%, color-mix(in srgb, var(--hero) 60%, #000) 100%); }
.gs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 42%, rgba(0,0,0,.58) 100%); }
.no-img .gs-shade { background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18)); }
.gs-hero-foto .gs-hero-txt { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter) clamp(40px, 8vh, 80px); }
.gs-hero-foto .gs-eyebrow { color: rgba(255,255,255,.88); }
.gs-hero-foto .gs-names { text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.gs-count-big { margin-top: 18px; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.gs-count-big b { font-family: var(--f-num); font-weight: 400; font-size: 44px; letter-spacing: 0; display: block; text-transform: none; line-height: 1.1; }

/* ---------- Aufbau 2: Bogen ---------- */
.gs-hero-bogen { text-align: center; }
.gs-hero-bogen .gs-hero-txt { padding: clamp(24px, 6vh, 64px) var(--gutter) 0; }
.gs-hero-bogen .gs-eyebrow { color: var(--primary); }
.gs-hero-bogen .gs-names { line-height: .95; }
[data-font="script"] .gs-hero-bogen .gs-names, [data-font="mix"] .gs-hero-bogen .gs-names { line-height: 1.05; }
.gs-sub { display: block; font-family: var(--f-lead); font-style: italic; font-size: clamp(28px, 4.4vw, 42px); color: var(--primary); margin-top: 6px; }
.gs-arch { --aw: min(84vw, 500px); width: var(--aw); aspect-ratio: 33 / 43; margin: clamp(26px, 5vh, 44px) auto 0; overflow: hidden; position: relative;
  border-radius: calc(var(--aw) / 2) calc(var(--aw) / 2) 24px 24px; background: linear-gradient(170deg, color-mix(in srgb, var(--hero) 60%, #fff), var(--hero)); }
.gs-arch .gs-hero-img { position: absolute; }

/* ---------- Aufbau 3: Fenster ---------- */
.gs-photo-top { position: relative; height: 66vh; height: min(66svh, 640px); min-height: 400px; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--hero) 65%, #fff), var(--hero)); }
.gs-photo-top .gs-shade { background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,0) 26%); }
.gs-window { position: relative; z-index: 2; width: calc(100% - 32px); max-width: 640px; margin: -150px auto 0; background: var(--bg); border-radius: 30px 30px 24px 24px;
  padding: 32px 22px 24px; text-align: center; box-shadow: 0 -14px 44px -22px rgba(0,0,0,.35); }
.gs-window .gs-names { font-size: clamp(56px, 15vw, 104px); }
[data-font="modern"] .gs-window .gs-names, [data-font="klassisch"] .gs-window .gs-names { font-size: clamp(46px, 12vw, 88px); }

/* Kacheln (Tage, Beginn, Antworten) */
.gs-tiles { display: flex; gap: 8px; margin-top: 22px; }
.gs-tile { flex: 1 1 0; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; justify-content: center; text-align: center; color: var(--ink); text-decoration: none; }
.gs-tile b { font-family: var(--f-num); font-weight: 400; font-size: 30px; line-height: 1.1; }
.gs-tile b.gs-tile-sm { font-size: 20px; }
.gs-tile span { font-size: 13px; line-height: 1.25; color: var(--muted); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; text-wrap: balance; }
.gs-tile-cta { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 400; }
.gs-welcome .gs-tiles { max-width: 420px; }

/* ---------- Navigation ---------- */
.gs-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); margin-top: 24px; }
.gs-nav-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 760px; margin: 0 auto; padding: 11px var(--gutter); }
.gs-nav-in::-webkit-scrollbar { display: none; }
.gs-nav a { flex: none; padding: 9px 17px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 15px; white-space: nowrap; }
.gs-nav a.main { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
[data-layout="foto"] .gs-nav { margin-top: 0; }
[data-layout="foto"] .gs-nav-in { justify-content: safe center; }

/* ---------- Abschnitte ---------- */
.gs-sec { padding-top: clamp(64px, 11vw, 104px); scroll-margin-top: 70px; }
.gs-welcome { padding-top: clamp(48px, 9vw, 84px); }
[data-layout="foto"] .gs-welcome, .gs-hero-foto + .gs-welcome { text-align: center; }
.gs-hello { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.gs-lead { font-family: var(--f-lead); font-style: var(--lead-style); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.34; margin: 14px 0 0; text-wrap: pretty; }
[data-font="modern"] .gs-lead, [data-font="mix"] .gs-lead { font-size: clamp(24px, 3.2vw, 31px); line-height: 1.38; }
.gs-facts { font-size: 16px; color: var(--muted); margin-top: 20px; }
.gs-p { margin: 0; font-size: 18px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); max-width: 36em; text-wrap: pretty; }
[data-layout="foto"] .gs-sec .gs-p { margin-inline: auto; text-align: center; }
.gs-actions { margin: 22px 0 0; }
[data-layout="foto"] .gs-actions { text-align: center; }
.gs-small { font-size: 14px; color: var(--muted); }
.gs-center-txt { text-align: center; }
.gs-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }

/* Programm: Zeitstrahl (Foto, Bogen) oder Karte (Fenster) */
.gs-prog { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); padding-left: 24px; margin-left: 4px; }
.gs-prog-item { position: relative; }
.gs-prog-item::before { content: ''; position: absolute; left: -29px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.gs-time { font-family: var(--f-num); font-size: 32px; line-height: 1; color: var(--accent-ink); font-variant-numeric: lining-nums tabular-nums; }
.gs-time s { opacity: .5; font-size: .6em; }
.gs-what { font-size: 21px; font-weight: 400; margin-top: 6px; line-height: 1.3; }
.gs-where { font-size: 16px; color: var(--muted); }
.gs-until { font-size: 14px; }
.gs-day-h { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -10px; }
.gs-day-h:not(:first-child) { margin-top: 18px; }
[data-layout="foto"] .gs-prog { max-width: 480px; margin-inline: auto; }
[data-layout="fenster"] .gs-prog { border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 6px 22px; margin: 0; gap: 0; }
[data-layout="fenster"] .gs-prog-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
[data-layout="fenster"] .gs-prog-item:last-child { border-bottom: 0; }
[data-layout="fenster"] .gs-prog-item::before { display: none; }
[data-layout="fenster"] .gs-time { font-size: 26px; color: var(--primary); padding-top: 2px; }
[data-layout="fenster"] .gs-what { margin-top: 0; }
[data-layout="fenster"] .gs-day-h { margin: 16px 0 0; }

/* Fotos zwischen den Abschnitten */
.gs-photo { margin: clamp(56px, 10vw, 96px) 0 0; }
.gs-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 22px; background: var(--soft); }
@media (min-width: 700px) { .gs-photo img { aspect-ratio: 3 / 2; } }
[data-layout="foto"] .gs-photo { margin-inline: calc(-1 * var(--gutter)); }
[data-layout="foto"] .gs-photo img { border-radius: 0; }
@media (min-width: 800px) { [data-layout="foto"] .gs-photo { margin-inline: -60px; } [data-layout="foto"] .gs-photo img { border-radius: 22px; } }
[data-layout="bogen"] .gs-photo img { width: min(100%, 520px); margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 260px 260px 22px 22px; }
[data-layout="bogen"] .gs-photo.alt img { border-radius: 22px; width: 100%; aspect-ratio: 3 / 2; }
.gs-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: clamp(56px, 10vw, 96px); }
.gs-photos .gs-photo { margin: 0 !important; }
.gs-photos .gs-photo img { aspect-ratio: 4 / 5 !important; border-radius: 18px !important; width: 100% !important; }

/* Geschichte, Fragen, Kontakte, Geschenk, Dresscode */
.gs-story { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.gs-story li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.gs-story b { font-family: var(--f-num); font-weight: 400; font-size: 30px; color: var(--accent-ink); line-height: 1; }
.gs-quote { font-family: var(--f-lead); font-style: var(--lead-style); font-size: clamp(24px, 3.2vw, 30px); line-height: 1.38; text-align: center; padding: 34px 24px; }
.gs-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.gs-faq details:last-child { border-bottom: 1px solid var(--line); }
.gs-faq summary { cursor: pointer; font-size: 19px; font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.gs-faq summary::-webkit-details-marker { display: none; }
.gs-faq summary::after { content: '+'; color: var(--accent-ink); font-size: 24px; line-height: 1; transition: transform .3s var(--ease-out); }
.gs-faq details[open] summary::after { transform: rotate(45deg); }
.gs-faq p { margin: 10px 0 0; color: var(--muted); }
.gs-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gs-contact { display: flex; flex-direction: column; gap: 2px; }
.gs-contact b { font-weight: 400; font-size: 20px; }
.gs-contact span { color: var(--muted); font-size: 16px; }
.gs-contact a { margin-top: 8px; font-size: 18px; color: var(--primary); }
.gs-gift { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 20px; }
.gs-gift .qr { background: #fff; border-radius: 10px; padding: 10px; flex: none; line-height: 0; }
.gs-gift .qr svg { width: 132px; height: 132px; }
.gs-gift-txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gs-iban { font-family: var(--f-num); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; word-break: break-word; }

/* ---------- Knöpfe ---------- */
.gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); border-radius: 99px; padding: 14px 24px; font-size: 17px; font-weight: 400; cursor: pointer; text-decoration: none; min-height: 52px; }
.gs-btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.gs-btn.small { padding: 8px 16px; min-height: 42px; font-size: 15px; }
.gs-btn.cta { width: 100%; margin-top: 24px; min-height: 58px; font-size: 18px; font-weight: 500; background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.gs-btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Antwort ---------- */
.gs-sec-rsvp { padding-bottom: 8px; }
.gs-rsvp { background: var(--panel); color: var(--panel-ink); border-radius: 30px; padding: clamp(30px, 6vw, 48px) clamp(20px, 5vw, 44px); margin-inline: -6px; }
[data-layout="fenster"] .gs-rsvp { --panel: var(--card); --panel-ink: var(--ink); --panel-muted: var(--muted); --panel-line: var(--line); --panel-field: var(--bg); --cta: var(--primary); --cta-ink: var(--on-primary); border: 1px solid var(--line); }
.gs-rsvp .gs-h { text-align: center; color: inherit; margin-bottom: 8px; }
.gs-note { color: var(--panel-muted); font-size: 16px; margin: 0 0 14px; }
.gs-person { padding: 20px 0; border-top: 1px solid var(--panel-line); display: flex; flex-direction: column; gap: 12px; }
.gs-person:first-of-type { border-top: 0; }
.gs-person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gs-person-head b { font-weight: 400; font-size: 20px; }
.gs-person-head span { font-size: 14px; color: var(--panel-muted); }
.gs-yn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gs-yn button, .gs-opt { background: transparent; border: 1px solid var(--panel-line); color: inherit; border-radius: 99px; padding: 12px; cursor: pointer; min-height: 52px; font-size: 17px; line-height: 1.2; }
.gs-yn button[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); font-weight: 500; }
.gs-yn button[aria-pressed="true"]::before, .gs-opt[aria-pressed="true"]::before { content: "✓ "; }
.gs-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-opt { min-height: 46px; padding: 9px 16px; font-size: 16px; background: var(--panel-field); }
.gs-opt[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.gs-field { display: flex; flex-direction: column; gap: 8px; }
.gs-flabel { font-size: 15px; color: var(--panel-muted); }
.gs-q { font-size: 17px; font-weight: 400; }
.gs-input { width: 100%; padding: 13px 16px; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel-field); color: inherit; min-height: 52px; font-size: 17px; }
.gs-input::placeholder { color: var(--panel-muted); opacity: .85; }
textarea.gs-input { resize: vertical; min-height: 104px; }
.gs-err { background: #fbe9e7; color: #8e3832; font-size: 15px; padding: 10px 14px; border-radius: 12px; margin: 14px 0 0; }
.gs-done { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding-top: 8px; }
.gs-done-title { font-family: var(--f-lead); font-style: var(--lead-style); font-size: clamp(28px, 6vw, 36px); line-height: 1.2; }
.gs-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.gs-sum li { display: flex; gap: 10px; align-items: flex-start; }
.gs-sum-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: var(--panel-field); border: 1px solid var(--panel-line); }
.gs-sum-ic.yes { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.gs-done .gs-btn.ghost { color: inherit; border-color: var(--panel-line); }

/* ---------- Tagesansicht ---------- */
.gs-day-head { text-align: center; padding-bottom: 26px; }
.gs-day-head .gs-eyebrow { margin-top: 18px; }
.gs-day-head .gs-names { font-size: clamp(48px, 12vw, 84px); }
.gs-day { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.gs-block { display: flex; flex-direction: column; gap: 4px; }
.gs-row { display: flex; justify-content: space-between; gap: 12px; }
.gs-base { align-items: baseline; }
.gs-big { font-size: 26px; font-weight: 400; line-height: 1.2; }
.gs-now { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--primary); }
.gs-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: gs-pulse 2s infinite; }
@keyframes gs-pulse { 50% { opacity: .35; } }
.gs-delay { font-size: 13px; color: #8a5a1c; }
.gs-table { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.gs-table .gs-small { color: var(--panel-muted); }
.gs-table-name { font-family: var(--f-names); font-size: 48px; line-height: 1.15; }
.gs-later { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px 12px; align-items: baseline; margin-top: 6px; }
.gs-later .gs-time { font-size: 22px; }
.gs-day-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }

/* ---------- Privat, Fehler, Fusszeile ---------- */
.gs-center { max-width: 480px; padding-top: 16vh; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.gs-center h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(34px, 8vw, 44px); line-height: 1.1; margin: 0; }
.gs-center h1 em { font-family: var(--f-names); font-style: normal; color: var(--primary); font-size: 1.3em; }
.gs-center .gs-field { --panel-line: var(--line); --panel-field: var(--card); --panel-muted: var(--muted); margin-top: 8px; }
.gs-code { text-transform: uppercase; letter-spacing: .12em; font-weight: 400; font-size: 19px; }
.gs-foot { text-align: center; padding: 72px 22px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }
.gs-foot a { color: inherit; }
.gs-banner { background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 8px 16px; position: relative; z-index: 30; }
.gs-skel { padding-block: 30vh; text-align: center; color: #8a948e; font-size: 14px; font-family: 'Albert Sans', sans-serif; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #1d2b25; color: #f4f1ea; padding: 11px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); transition: opacity .25s, transform .35s cubic-bezier(0.23, 1, 0.32, 1); z-index: 50; font-family: 'Albert Sans', sans-serif; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Breite Bildschirme ---------- */
@media (min-width: 900px) {
  .gs-window { padding: 40px 40px 30px; }
  .gs-prog { gap: 32px; }
  [data-layout="bogen"] .gs-welcome .gs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px 48px; align-items: end; }
  [data-layout="bogen"] .gs-welcome .gs-hello { grid-column: 1 / -1; }
  [data-layout="bogen"] .gs-welcome .gs-lead { margin: 0; }
  [data-layout="bogen"] .gs-welcome .gs-tiles { flex-direction: column; margin: 0; }
}

/* ---------- Auftritt beim Öffnen ---------- */
.gs-intro .gs-names .gs-ln { animation: gs-rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.gs-intro .gs-names .gs-ln:nth-child(2) { animation-delay: .12s; }
.gs-intro .gs-names .gs-ln:nth-child(3) { animation-delay: .22s; }
.gs-intro .gs-eyebrow, .gs-intro .gs-date, .gs-intro .gs-sub, .gs-intro .gs-tiles, .gs-intro .gs-count-big { animation: gs-fade 1s cubic-bezier(0.16, 1, 0.3, 1) .55s both; }
.gs-intro .gs-hero-img { animation: gs-zoom 2.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.gs-intro .gs-arch { animation: gs-unveil 1.5s cubic-bezier(0.16, 1, 0.3, 1) .2s both; }
.gs-intro .gs-window { animation: gs-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) .3s both; }
.gs-intro .gs-nav { animation: gs-fade .8s ease .9s both; }
@keyframes gs-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(.3em); } to { clip-path: inset(-20% -10% -30% -10%); transform: none; } }
@keyframes gs-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gs-zoom { from { transform: scale(1.12); filter: brightness(.75) saturate(.8); } to { transform: none; filter: none; } }
@keyframes gs-unveil { from { clip-path: inset(40% 0 0 0); transform: translateY(30px); opacity: 0; } to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
@keyframes gs-up { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.gs-konfetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.gs-done-title.gs-glow { color: var(--cta); transition: color .6s; }

/* ---------- Bewegung beim Scrollen ---------- */
.mo .gs [data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.mo .gs [data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.mo .gs .gs-prog-item { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 150ms); }
.mo .gs [data-reveal]:not(.in) .gs-prog-item { opacity: 0; transform: translateX(-16px); }
.mo .gs .gs-photo img { transition: transform 1.4s var(--ease-out), clip-path 1.2s var(--ease-out); }
.mo .gs .gs-photo:not(.in) img { transform: scale(1.08); clip-path: inset(8% 4% 8% 4% round 22px); }
.mo .gs .gs-photo:not(.in) { filter: none; transform: translateY(40px); }

/* Knöpfe reagieren auf Druck */
.gs-btn, .gs-yn button, .gs-opt, .gs-langs button, .gs-nav a, .gs-tile-cta { transition: transform .16s var(--ease-out), background-color .2s, color .2s, border-color .2s, filter .2s; }
.gs-btn:active, .gs-yn button:active, .gs-opt:active, .gs-nav a:active, .gs-tile-cta:active { transform: scale(.97); }
.gs-btn:hover { filter: brightness(1.07); }
.gs .just[aria-pressed="true"] { animation: gs-snap .34s var(--ease-out); }
@keyframes gs-snap { 0% { transform: scale(.93); } 100% { transform: none; } }
.gs-input { transition: border-color .2s, box-shadow .2s; }
.gs-input:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 22%, transparent); }

/* Sprachwechsel: weicher Übergang */
::view-transition-old(root) { animation: gs-vt-out .18s ease-in both; }
::view-transition-new(root) { animation: gs-vt-in .42s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes gs-vt-out { to { opacity: 0; filter: blur(3px); } }
@keyframes gs-vt-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }

@media (prefers-reduced-motion: reduce) {
  .gs-intro .gs-names .gs-ln, .gs-intro .gs-hero-img, .gs-intro .gs-arch, .gs-intro .gs-window, .gs-intro .gs-eyebrow, .gs-intro .gs-date, .gs-intro .gs-sub, .gs-intro .gs-tiles, .gs-intro .gs-nav { animation: gs-fade .5s ease both; }
  .mo .gs [data-reveal]:not(.in), .mo .gs [data-reveal]:not(.in) .gs-prog-item, .mo .gs .gs-photo:not(.in), .mo .gs .gs-photo:not(.in) img { opacity: 1; transform: none; filter: none; clip-path: none; }
  .gs .just[aria-pressed="true"], .gs-now::before { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01s; }
}
@media print {
  .mo .gs [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .gs-nav { display: none; }
}

/* Eingebettet in Handy-Rahmen: Scrollbalken ausblenden */
.in-frame, .in-frame body { scrollbar-width: none; }
.in-frame::-webkit-scrollbar, .in-frame body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.no-nav .gs-nav { display: none; }

/* Danke-Seite: Dank direkt unter den Namen */
.gs-thx { font-family: var(--f-lead); font-style: italic; font-size: clamp(18px, 4.6vw, 22px); line-height: 1.45; max-width: 30ch; margin: 18px auto 0; text-align: center; padding: 0 8px; text-wrap: balance; }
.gs-hero-foto .gs-thx { color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.gs-hero-bogen .gs-thx { margin-bottom: 4px; }
.gs-memories { padding-top: clamp(40px, 9vw, 72px); }
.gs-memories .gs-photos { margin-top: 18px; }

/* Fusszeile mit Rechtlichem, fehlende Angaben, Umbruch, Navigation, grössere Sprachknöpfe */
.gs-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gs-legal { font-size: 12px; opacity: .8; }
.gs-legal a { color: inherit; }
.gs-person.gs-miss { box-shadow: 0 0 0 2px var(--cta, #c9a96a); border-radius: 16px; }
.gs-sum li span, .gs-person, .gs-input, .gs-done { overflow-wrap: anywhere; }
.gs-sum { max-width: 100%; }
.gs-langs button { min-width: 40px; min-height: 40px; }
.gs-nav a.cur:not(.main) { border-color: var(--ink); font-weight: 500; }
.gs-nav-in.more { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
/* Lange Namen: kleiner, und notfalls im Wort umbrechen */
.gs-names { overflow-wrap: anywhere; hyphens: auto; }
.gs-names[data-len="l"] { font-size: clamp(40px, 10.5vw, 92px) !important; }
.gs-names[data-len="xl"] { font-size: clamp(32px, 8vw, 70px) !important; }
/* Lange Namen: kleiner, und notfalls im Wort umbrechen */
.gs-names { overflow-wrap: anywhere; hyphens: auto; }
.gs-names[data-len="l"] { font-size: clamp(40px, 10.5vw, 92px) !important; }
.gs-names[data-len="xl"] { font-size: clamp(32px, 8vw, 70px) !important; }

/* ---- Bewegte Momente: Brief, Blütenregen, Hochzeitstag */
html.gs-lock, html.gs-lock body { overflow: hidden; }
.gs-brief { position: fixed; inset: 0; z-index: 100; background: #e9e3d8; overflow: hidden; transition: opacity .8s ease, transform .9s cubic-bezier(0.16, 1, 0.3, 1); }
.gs-brief.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.gs-brief-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-brief-card { position: absolute; box-sizing: border-box; padding: 4% 0; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; color: #33402f; }
.gs-brief-in { opacity: 0; transform: translateY(6px); transition: opacity 1.1s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); width: 86%; mix-blend-mode: multiply; }
.gs-brief.card .gs-brief-in { opacity: 1; transform: none; }
.gs-brief-eb { font-family: var(--body, Georgia, serif); text-transform: uppercase; letter-spacing: .22em; font-size: calc(max(9px, calc(var(--cw) * .04)) * var(--k, 1)); opacity: .75; }
.gs-brief-names { font-family: var(--f-names, Georgia, serif); line-height: 1.02; margin: .35em 0 .3em; font-size: calc(max(20px, calc(var(--cw) * .165)) * var(--k, 1)); text-wrap: balance; overflow-wrap: anywhere; }
.gs-brief-n { display: block; }
.gs-brief-names[data-len="l"] { font-size: calc(max(17px, calc(var(--cw) * .118)) * var(--k, 1)); }
.gs-brief-names[data-len="xl"] { font-size: calc(max(15px, calc(var(--cw) * .09)) * var(--k, 1)); }
.gs-brief-amp { display: block; font-size: .55em; margin: .12em 0; opacity: .8; }
.gs-brief-when { font-family: var(--f-lead, Georgia, serif); font-style: var(--lead-style, italic); font-size: calc(max(12px, calc(var(--cw) * .058)) * var(--k, 1)); opacity: .85; }
.gs-brief-skip { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; border: 0; border-radius: 99px; padding: 9px 16px; font: 500 14px/1 var(--body, system-ui); color: #33402f; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.gs-brief-open { position: absolute; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px)); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; border: 0; border-radius: 99px; padding: 15px 28px; font: 500 16px/1 var(--body, system-ui); letter-spacing: .02em; color: #fff; background: #2f4a33; box-shadow: 0 10px 30px rgba(30, 40, 28, .25); cursor: pointer; transition: opacity .6s ease, transform .8s cubic-bezier(0.16, 1, 0.3, 1); }
.gs-brief.ready .gs-brief-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gs-brief-skip:focus-visible, .gs-brief-open:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gs-bloom { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.gs-bloom.on { opacity: 1; pointer-events: auto; cursor: pointer; }
.gs-bloom video { width: 100%; height: 100%; object-fit: cover; display: block; }

.gs-day-head.has-vid { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: min(62svh, 560px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 34px; margin-bottom: 18px; }
.gs-day-head.has-vid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.62)); z-index: 0; }
.gs-day-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.gs-day-head.has-vid > :not(.gs-day-vid) { position: relative; z-index: 1; }
.gs-day-head.has-vid .gs-top { position: absolute; top: 0; left: 0; right: 0; }
.gs-day-head.has-vid .gs-eyebrow, .gs-day-head.has-vid .gs-names, .gs-day-head.has-vid .gs-date { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
