/* Gestalten im Browser – sieht aus und fühlt sich an wie die App (NewCalendarFlow, CalendarEditorView, SendSheet).
   Papier-Schritte: ein Rahmen im Format des App-Bildes (853 × 1844), volle Höhe; alles darin liegt an denselben
   Bildpositionen wie in der App (Angaben in % des Rahmens). Links und rechts füllt das Bild weichgezeichnet auf. */

.g-body { background: #EFE3D2; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
.g-app { position: relative; min-height: 100dvh; overflow: hidden; }
.g-view { position: absolute; inset: 0; min-height: 100dvh; }
.g-view.enter-fwd { animation: g-in-fwd .38s cubic-bezier(.2,.9,.25,1); }
.g-view.enter-back { animation: g-in-back .38s cubic-bezier(.2,.9,.25,1); }
@keyframes g-in-fwd { from { transform: translateX(26%); opacity: 0; } }
@keyframes g-in-back { from { transform: translateX(-26%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .g-view.enter-fwd, .g-view.enter-back { animation: none; } }

/* 1 Punkt der App ≈ 1 px auf einem großen iPhone; auf kleineren Bildschirmen etwas kleiner */
.g-app { --u: clamp(0.8px, calc(100dvh / 932), 1.05px); }

/* ---------- Papier-Schritte ---------- */
.g-flow { background: var(--g-bg) center / cover no-repeat; }
.g-flow::before { content: ""; position: absolute; inset: -40px; background: inherit; filter: blur(18px); }
/* Handy: das Papierbild füllt immer die ganze Breite (wie in der App) – ist der sichtbare Bereich kürzer
   (Browserleisten), wird oben und unten etwas abgeschnitten, nie seitlich aufgefüllt.
   Breit (Tablet, Computer): ganze Höhe, mittig auf dem Querformat-Papier. */
/* Kurze Bildschirme (iPhone mit Safari-Leisten, iPhone SE): höchstens 15 % zu hoch – sonst wäre unten zu viel weg;
   links und rechts füllt dann das weichgezeichnete Bild auf */
.g-flow { --fw: max(100svh * 853 / 1844, min(100vw, 115svh * 853 / 1844)); --fh: calc(var(--fw) * 1844 / 853); --u: calc(var(--fh) / 932); }
.g-flow.g-wide { --fw: calc(100svh * 853 / 1844); }
.g-frame { position: absolute; top: calc((100svh - var(--fh)) * .4); height: var(--fh); width: var(--fw); left: 50%; translate: -50% 0;
  background: center / 100% 100% no-repeat; }
.g-flow { overflow: hidden; }
/* Breit: Querformat-Papier über die ganze Fläche (kein Weichzeichner-Rand) */
.g-flow.g-wide::before { display: none; }
.g-flow.g-wide { background: #EFE3D2 var(--g-bg) center / cover no-repeat; }
.g-frame.g-fade { -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); }
/* Schriftzug „Türchen“ wie im Handybild (dort ist er Teil des Bildes) */
.g-paper-brand { position: absolute; left: 50%; top: 10%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u));
  color: var(--bordeaux); pointer-events: none; }
.g-paper-brand b { font: 600 calc(40 * var(--u)) / 1 var(--serif); }
.g-orn { display: block; width: calc(110 * var(--u)); height: 10px; background:
  linear-gradient(var(--gold), var(--gold)) left center / 42% 1.2px no-repeat,
  linear-gradient(var(--gold), var(--gold)) right center / 42% 1.2px no-repeat; position: relative; }
.g-orn::after { content: "✦"; position: absolute; left: 50%; top: 50%; translate: -50% -52%; font-size: 10px; line-height: 1; color: var(--gold); font-style: normal; }
.g-garland { overflow: hidden; background: #EFE3D2; }
.g-garland-img { position: absolute; max-width: none; pointer-events: none; }
.g-garland .g-paper-brand { top: 0; }
.g-garland .g-q { white-space: nowrap; }
.g-garland .g-cta { padding: 15px 18px; }
.g-at { position: absolute; }
.g-back { position: absolute; left: 16px; top: calc(8.3% - 21px); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--bordeaux);
  box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.g-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.g-back:active { scale: .92; }
.g-dots { position: absolute; left: 0; right: 0; top: 16.8%; display: flex; justify-content: center; gap: 7px; translate: 0 -50%; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--bordeaux) 18%, transparent); }
.g-dots i.on { background: var(--bordeaux); }
.g-q { position: absolute; top: 21.2%; translate: -50% -50%; margin: 0; text-align: center; white-space: nowrap;
  font: 600 calc(var(--fs, 35) * var(--u)) / 1.1 var(--serif); color: var(--bordeaux); }
.g-cta { position: absolute; translate: -50% -50%; width: auto; padding: 15px 18px; font-size: calc(21 * var(--u)); }
.g-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { scale: .97; }
.btn { transition: scale .12s, opacity .2s; }

/* Anhänger: Namen in Schreibschrift auf der Linie */
.g-line { position: absolute; display: flex; align-items: flex-end; gap: 6px; padding-bottom: 4px; translate: 0 -100%;
  border-bottom: .8px solid color-mix(in srgb, var(--bordeaux) 22%, transparent); }
.g-line:focus-within { border-bottom: 1.1px solid color-mix(in srgb, var(--bordeaux) 45%, transparent); }
.g-line span { flex: none; font: italic 500 calc(var(--cap) * var(--u)) var(--serif); color: color-mix(in srgb, var(--bordeaux) 85%, transparent); padding-bottom: .25em; }
.g-line input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; color: var(--bordeaux); caret-color: var(--bordeaux);
  font: calc(var(--fs) * var(--u)) / 1.25 var(--script); outline: none; }
.g-line input::placeholder { color: color-mix(in srgb, var(--bordeaux) 28%, transparent); }

/* Umschlag: Titel handgeschrieben, Vorschläge als Packpapier-Etiketten */
.g-handwriting { position: absolute; translate: -50% -50%; rotate: -9deg; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; text-align: left; color: var(--bordeaux); pointer-events: none; }
.g-handwriting b { align-self: stretch; font: 400 calc(40 * var(--u)) / 1 var(--script); overflow-wrap: break-word; }
.g-handwriting small { font: 400 calc(21 * var(--u)) var(--script); opacity: .85; white-space: nowrap; }
.g-labels { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: repeat(2, 41%); justify-content: center; column-gap: 2.6%; translate: 0 -50%; }
.g-label { min-height: calc(100svh * 0.075); margin-bottom: calc(100svh * 0.012); border: 0; border-radius: 4px; cursor: pointer; padding: 6px 10px;
  background: url(/assets/gestalten/kraft-paper.webp) center / cover; box-shadow: 0 2px 3px rgba(43,36,32,.2), inset 0 0 0 999px rgba(255,255,255,.14);
  font: 550 calc(18 * var(--u)) / 1.15 var(--serif); color: color-mix(in srgb, var(--ink) 85%, transparent); transition: scale .15s; }
.g-label[aria-pressed="true"] { font-weight: 650; box-shadow: 0 2px 3px rgba(43,36,32,.2), inset 0 0 0 999px rgba(255,255,255,.14), inset 0 0 0 2px var(--bordeaux); }
.g-label:active { scale: .96; }
.g-pill { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--bordeaux) 35%, transparent); background: color-mix(in srgb, var(--card) 90%, transparent);
  font: 600 calc(18 * var(--u)) var(--serif); color: var(--bordeaux); white-space: nowrap; }
.g-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Welt aussuchen: dunkel, Karten zum Wischen */
.g-scenes { background: var(--g-dark, #0E1A33); color: var(--ivory); }
.g-scenes::before { content: ""; position: absolute; inset: -60px; background: var(--g-bg) center / cover; filter: blur(30px) brightness(.45); transition: background-image .4s; }
.g-scenes .g-back { background: rgba(255,255,255,.14); color: var(--ivory); }
.g-scenes .g-scenes-mute { left: auto; right: 16px; }
.g-brand { position: absolute; left: 0; right: 0; top: 7.5%; text-align: center; font: 600 calc(40 * var(--u)) var(--serif); color: var(--ivory); }
.g-brand::after { content: "✦"; display: block; font-size: 12px; color: var(--gold-light); margin-top: 4px; }
.g-carousel { position: absolute; left: 0; right: 0; top: 19%; height: 58%; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; perspective: 900px; align-items: center; }
.g-spacer { flex: none; height: 1px; }
.g-carousel::-webkit-scrollbar { display: none; }
.g-card { flex: 0 0 auto; scroll-snap-align: center; border-radius: 12px; overflow: hidden; position: relative; margin: 0 -2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); cursor: pointer; border: 0; padding: 0; background: #111; will-change: transform; }
.g-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.2px var(--gold); pointer-events: none; }
.g-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.g-scene-name { position: absolute; left: 0; right: 0; top: 81%; text-align: center; font: 500 calc(30 * var(--u)) var(--serif); color: var(--ivory); }
.g-scene-dots { position: absolute; left: 0; right: 0; top: 86%; display: flex; justify-content: center; gap: 6px; }
.g-scene-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.g-scene-dots i.on { background: var(--gold-light); }
.btn.ivory { background: linear-gradient(#FFFDF8, #F3EADA); color: var(--bordeaux); box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 18px rgba(0,0,0,.35); }

/* Musik: Anhänger an der Girlande */
.g-tag { position: absolute; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: var(--pt, 0) 0 0; color: var(--bordeaux-dark); opacity: .88; transition: scale .3s cubic-bezier(.3,1.4,.5,1), opacity .2s; }
.g-tag[aria-pressed="true"] { opacity: 1; scale: 1.04; }
.g-tag small { font: 700 calc(var(--b) * .085 * var(--u)) var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: calc(var(--b) * .03 * var(--u)); }
.g-tag svg { width: calc(var(--b) * .24 * var(--u)); height: calc(var(--b) * .24 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.g-tag b { font: 400 calc(var(--b) * .25 * var(--u)) / 1.2 var(--script); white-space: nowrap;
  /* Schreibschrift ist sehr fein – leicht nachgezogen und mit hellem Schein, damit sie sich vom Packpapier abhebt */
  -webkit-text-stroke: .35px currentColor; text-shadow: 0 0 6px rgba(255,246,228,.55); }
.g-tag small { -webkit-text-stroke: .2px currentColor; }
.g-bars { display: flex; align-items: flex-end; gap: 2px; height: calc(var(--b) * .1 * var(--u)); opacity: 0; }
.g-tag[aria-pressed="true"] .g-bars { opacity: 1; }
.g-bars i { width: 3px; border-radius: 2px; background: currentColor; animation: g-bar .7s ease-in-out infinite alternate; }
.g-bars i:nth-child(1) { height: 40%; } .g-bars i:nth-child(2) { height: 100%; animation-delay: -.3s; } .g-bars i:nth-child(3) { height: 55%; animation-delay: -.5s; } .g-bars i:nth-child(4) { height: 85%; animation-delay: -.15s; }
@keyframes g-bar { to { transform: scaleY(.45); } }
.g-tag[data-off="1"] .g-bars { display: none; }

/* ---------- Startseite der Gestalten-Seite ---------- */
.g-home { background: #F3EBDD var(--g-bg) center top / 100% auto no-repeat; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  padding: 0 20px; color: var(--ink); }
@media (min-width: 700px) { .g-home { background-size: cover; background-attachment: fixed; } }
.g-home-inner { width: 100%; max-width: 760px; flex: 1 0 auto; padding-top: max(calc(env(safe-area-inset-top) + 18px), 21vw); }
@media (min-width: 700px) { .g-home-inner { padding-top: 70px; } }
/* Kopf wie in der App: links, groß, mit Goldornament */
.g-home-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 6px 22px; color: var(--bordeaux); }
.g-home h1 { margin: 0; font: 650 3.1rem/1 var(--serif); }
.g-home-head .g-orn { --u: 1px; width: 190px; }
.g-section { margin: 0 6px 10px; font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.g-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .g-shelf { grid-template-columns: repeat(auto-fill, minmax(190px, 220px)); } }
.g-shelf-card { position: relative; border: 0; padding: 8px 8px 12px; border-radius: 16px; background: var(--card); cursor: pointer; text-align: left; color: inherit;
  box-shadow: 0 6px 16px rgba(43,36,32,.12), inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); display: flex; flex-direction: column; gap: 4px;
  transition: translate .2s, box-shadow .2s, scale .12s; }
@media (hover: hover) { .g-shelf-card:hover { translate: 0 -3px; box-shadow: 0 12px 26px rgba(43,36,32,.16), inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); } }
.g-shelf-card:active { scale: .97; }
.g-shelf-thumb { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); margin-bottom: 4px; }
.g-shelf-name { display: flex; align-items: baseline; gap: 6px; padding: 0 4px; min-width: 0; }
.g-shelf-name .for { font: italic 500 1rem var(--serif); color: var(--ink-soft); }
.g-shelf-name b { font: 400 1.75rem/1.1 var(--script); color: var(--bordeaux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-shelf-card > small { padding: 0 4px; font: italic 500 .9rem var(--serif); color: var(--ink-soft); }
.g-stamp { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px;
  background: var(--bordeaux); color: var(--ivory); font: italic 700 .72rem var(--serif); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.g-stamp svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.g-new { border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--card) 70%, transparent);
  align-items: center; justify-content: center; text-align: center; min-height: 240px; box-shadow: none; gap: 6px; }
.g-new .g-plus { width: 58px; height: 58px; margin-bottom: 8px; border-radius: 50%; border: 1.2px solid var(--gold); display: grid; place-items: center; color: var(--gold-dark); font-size: 32px; font-weight: 300; }
.g-new b { font: 650 1.3rem var(--serif); color: var(--bordeaux); }
.g-new small { font: 500 .8rem/1.3 var(--sans); color: var(--ink-soft); }
.g-saved { display: block; margin: 20px 0 0; font: italic 500 1rem var(--serif); color: var(--ink-soft); text-align: center; }
.g-saved svg { display: inline-block; vertical-align: -2px; margin-right: 6px; width: 15px; height: 15px; fill: none; stroke: var(--gold-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-price { margin: 6px 0 0; text-align: center; font: 500 .82rem var(--sans); color: var(--ink-soft); }

/* Anfang ohne Kalender – wie EmptyCalendarsView der App */
.g-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-bottom: 10px; }
.g-fan { position: relative; height: 250px; width: 100%; margin: 4px 0 6px; }
.g-fan-card { position: absolute; left: 50%; bottom: 10px; width: 150px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; transform-origin: 50% 100%;
  box-shadow: 0 10px 24px rgba(43,36,32,.22), inset 0 0 0 1.2px var(--gold); }
.g-fan-card .g-thumb { border-radius: inherit; }
.g-fan-card:nth-child(1) { translate: calc(-50% - 70px) 14px; rotate: -9deg; }
.g-fan-card:nth-child(2) { translate: -50% 0; z-index: 1; }
.g-fan-card:nth-child(3) { translate: calc(-50% + 70px) 14px; rotate: 9deg; }
.g-empty h2 { margin: 0; font: 600 1.9rem var(--serif); color: var(--ink); }
.g-empty > p { margin: 0 6px; font: 400 1rem/1.45 var(--sans); color: var(--ink-soft); max-width: 460px; }
.g-empty .btn { max-width: 420px; margin-top: 6px; }
.g-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 440px; margin-top: 8px; }
.g-feature { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 .78rem var(--sans); color: var(--ink-soft); }
.g-feature svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* App-Empfehlung auf dem iPhone */
.g-appcard { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: inherit;
  background: var(--card); box-shadow: 0 6px 16px rgba(43,36,32,.12), inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.g-appcard img { flex: none; width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.g-appcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-appcard-text b { font: 650 1.15rem var(--serif); color: var(--ink); }
.g-appcard-text small { font: 500 .78rem/1.3 var(--sans); color: var(--ink-soft); }
.g-appcard-btn { flex: none; padding: 8px 16px; border-radius: 999px; background: linear-gradient(var(--bordeaux), var(--bordeaux-dark)); color: var(--ivory); font: 650 .95rem var(--serif); }

/* Rechtliches ganz unten, wie in der App */
.g-legal { width: 100%; display: flex; justify-content: center; gap: 18px; padding: 34px 0 max(18px, env(safe-area-inset-bottom)); font: 500 .78rem var(--sans); }
.g-legal a { color: var(--ink-soft); text-decoration: none; }
.g-legal a:hover { text-decoration: underline; }

/* ---------- Kalender bearbeiten ---------- */
.g-editor { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; background: var(--backdrop); color: var(--title); }
.g-editor .bar { flex: none; position: relative; z-index: 3; min-height: calc(env(safe-area-inset-top) + 64px); }
.g-editor .g-back { position: absolute; left: 14px; top: calc(max(10px, env(safe-area-inset-top))); translate: 0 0; }
body[data-dark="1"] .g-editor .g-back, body[data-dark="1"] .g-tools { background: rgba(255,255,255,.16); color: var(--ivory); }
.g-tools { position: absolute; right: 14px; top: max(10px, env(safe-area-inset-top)); display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 90%, transparent); color: var(--bordeaux); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.g-tool { border: 0; background: transparent; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; cursor: pointer; font: 600 .62rem var(--sans); }
.g-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Unter der Werkzeugleiste (4 Knöpfe), damit lange Namen nicht hineinlaufen – dann darf er die ganze Breite nutzen */
.g-editor .dedication { margin-top: calc(max(10px, env(safe-area-inset-top)) + 52px); max-width: calc(100% - 32px); }
.g-editor .stage { flex: 1 0 auto; justify-content: center; padding: 0; }
.g-editor .scene { width: min(100%, calc((100dvh - 190px) * 0.6667), 1000px); }
@media (max-height: 700px) { .g-editor .scene { width: min(100%, calc((100dvh - 260px) * 0.6667), 1000px); } .g-tap-hint { padding: 7px 14px; font-size: .92rem; margin: 6px auto 4px; } }
@media (min-width: 900px) { .g-editor { background: transparent; } .g-editor .dedication { margin-top: 10px; } .g-editor .scene { box-shadow: 0 24px 60px rgba(0,0,0,.45); border-radius: 6px; -webkit-mask-image: none; mask-image: none; } }
/* Zeichen am Türchen wie in der App (SceneDoorView): Siegel an der unteren rechten Ecke außen, Initiale des Mitgestalters
   links daneben, Antwort unten links – Größe nach der kürzeren Seite. Die Zahl bleibt immer frei: Bei kleinen Türchen
   (Goldschild größer als die Tür) rutschen die Zeichen nach unten, bis unter die Ziffern (≈ 74 % der Schildhöhe). */
.g-badge, .g-reply-dot {
  --w: clamp(14px, 32cqmin, 30px); /* Siegel */
  --s: var(--w);
  position: absolute; z-index: 4; width: var(--s); height: var(--s); right: auto; bottom: auto;
  left: calc(100cqw + 12cqmin - var(--s));
  top: max(calc(100cqh + 12cqmin - var(--s)), calc(.74 * max(18px, 42cqmin) - 12cqmin + max(0px, var(--w) - var(--s))));
}
.g-badge { border-radius: 50%; display: grid; place-items: center;
  background: var(--bordeaux); color: var(--gold-light); box-shadow: 0 1px 3px rgba(0,0,0,.4); pointer-events: none; }
.g-badge svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.door.g-pop { animation: g-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes g-pop { 40% { scale: 1.12; } }
.g-bottom { flex: none; position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--backdrop) 30%); }
.g-count b { display: block; font: 650 1.35rem var(--serif); font-variant-numeric: lining-nums; }
.g-count small { font: 500 .78rem var(--sans); opacity: .75; }
.g-send { width: auto; padding: 12px 20px; font-size: 1.15rem; }
.g-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Brief: „Fertig“ unten */
.g-done { margin-top: 4px; }

/* ---------- Verschicken ---------- */
.g-sendview { background: #EFE3D2; overflow-y: auto; color: var(--ink); }
/* Umschlag wie ReadyEnvelope: quadratisches Foto füllt die Fläche, seitlich beschnitten, unten weich */
.g-envelope { --eh: 58dvh; position: relative; height: var(--eh); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
@media (max-height: 760px) { .g-envelope { --eh: 44dvh; } }
.g-envelope-img { position: absolute; left: 50%; top: 0; translate: -50% 0; width: max(100vw, var(--eh)); aspect-ratio: 1; container-type: inline-size; }
.g-envelope-img img { width: 100%; height: 100%; display: block; }
.g-to { position: absolute; left: 27%; top: 33.5%; width: 60%; height: 12%; display: flex; align-items: baseline; justify-content: center; gap: 2cqw;
  rotate: -1.5deg; color: var(--bordeaux); white-space: nowrap; font-family: var(--script); }
.g-to span { font-size: 5cqw; }
.g-to b { font-weight: 400; font-size: 9.5cqw; overflow: hidden; text-overflow: clip; }
.g-sendbox { max-width: 520px; margin: -8px auto 0; padding: 0 22px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.g-sendbox h2 { margin: 0; font: 650 calc(30 * var(--u)) var(--serif); }
.g-sendbox p { margin: 0; font: 500 1rem/1.4 var(--sans); color: var(--ink-soft); }
.g-checks { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.g-checks div { display: flex; gap: 10px; align-items: flex-start; font: 500 .95rem/1.35 var(--sans); color: var(--ink); }
.g-checks svg { flex: none; width: 20px; height: 20px; }
.g-consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: 500 .82rem/1.4 var(--sans); color: var(--ink-soft); cursor: pointer; }
.g-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--bordeaux); }
.g-consent a { color: var(--bordeaux); }
.g-consent.g-need { outline: 2px solid var(--bordeaux); outline-offset: 6px; border-radius: 8px; }
.g-need-hint { margin: 10px 0 0; font: 600 .85rem var(--sans); color: var(--bordeaux); text-align: left; }
.g-fine { font: 500 .8rem var(--sans) !important; }
.g-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.g-progress i { display: block; height: 100%; width: 0; background: var(--bordeaux); transition: width .3s; }

/* Unterwegs: Link teilen */
.g-sent { background: #EFE3D2; color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.g-sent-img { position: absolute; left: 50%; top: 0; translate: -50% 0; width: max(100vw, 100svh * 853 / 1844); aspect-ratio: 853 / 1844; container-type: inline-size; pointer-events: none; }
.g-sent-img img { width: 100%; height: 100%; display: block; }
.g-sent-name { position: absolute; left: 55.1%; top: 32.5%; width: 38.7%; height: 17.9%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  rotate: -9deg; color: var(--bordeaux); font-family: var(--script); line-height: .95; animation: g-fade .9s .3s ease-out backwards; }
.g-sent-name span { font-size: 6.6cqw; }
.g-sent-name b { font-weight: 400; font-size: 11.6cqw; white-space: nowrap; }
@keyframes g-fade { from { opacity: 0; } }
.g-sentbox { position: relative; flex: none; padding-top: 70px !important; background: linear-gradient(rgba(239,227,210,0), rgba(239,227,210,.92) 70px); }
.g-sentbox p { color: var(--ink) !important; font-size: .92rem !important; }
.g-sentbox { max-width: 520px; width: 100%; margin: auto auto 0; padding: 24px 24px max(36px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.g-sentbox h2 { margin: 0; font: 650 calc(32 * var(--u)) var(--serif); color: var(--bordeaux); }
.g-sentbox p { margin: 0; font: 500 1rem/1.4 var(--sans); color: var(--ink-soft); }
.g-round-row { display: flex; justify-content: center; gap: 26px; }
.g-round { border: 0; background: none; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font: 600 .82rem var(--sans); color: var(--bordeaux); }
.g-round span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent), 0 3px 10px rgba(0,0,0,.12); }
.g-round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 700px) {
  .g-home { padding-inline: max(18px, calc(50% - 260px)); }
}

.g-round b { font: 600 .95rem var(--serif); color: var(--ink); }
.g-sendview .g-back, .g-sent .g-back { position: fixed; top: max(10px, env(safe-area-inset-top)); }
.g-sendbox h2 { color: var(--ink); }
.g-warn { color: var(--bordeaux) !important; font-size: .92rem !important; }
.g-spinner { width: 28px; height: 28px; margin: 6px auto; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--bordeaux); animation: g-spin .8s linear infinite; }
@keyframes g-spin { to { rotate: 360deg; } }
.g-shake { animation: shake .4s linear; }

/* Anpassen */
.letter.g-wide .paper { gap: 12px; }
.g-sub { margin: 4px 0 -4px; font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.g-scene-pick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.g-scene-thumb { flex: none; width: 76px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center;
  font: 600 .72rem var(--sans); color: var(--ink-soft); }
.g-scene-mini { display: block; width: 76px; height: 114px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.g-scene-thumb[aria-pressed="true"] .g-scene-mini { outline: 2.5px solid var(--bordeaux); outline-offset: 2px; }
.g-scene-thumb[aria-pressed="true"] { color: var(--bordeaux); }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; cursor: pointer; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--bordeaux); font: 600 1rem var(--serif); }
.g-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-chip[aria-pressed="true"] { background: var(--bordeaux); color: var(--ivory); border-color: var(--bordeaux); }

/* Szene mit Türchen als Vorschau (Karussell, Übersicht, Anpassen) */
.scene.g-thumb { width: 100%; height: 100%; aspect-ratio: auto; background-size: cover; background-position: center; pointer-events: none;
  -webkit-mask-image: none; mask-image: none; perspective: none; }
.g-thumb .door { cursor: default; }
.g-thumb .door.card .num { font-size: 62cqmin; }
.g-thumb .door:active .leaf { scale: 1; }
.g-card .scene.g-thumb { border-radius: inherit; }

/* Großer Bildschirm: Startseite größer, damit sie nicht verloren wirkt */
@media (min-width: 1100px) and (min-height: 800px) {
  .g-home-inner { zoom: 1.35; width: 760px; max-width: none; }
  .g-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .g-home-head { align-items: center; }
  .g-section { text-align: center; }
  .g-shelf { justify-content: center; }
  .g-legal { width: auto; margin-bottom: max(14px, env(safe-area-inset-bottom)); padding: 8px 18px; border-radius: 999px; background: rgba(243,235,221,.9); box-shadow: 0 2px 10px rgba(43,36,32,.12); }
}

/* Kauf wird bestätigt / keine Verbindung */
.g-checking { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center;
  background: #EFE3D2; color: var(--ink); font: italic 500 1.15rem/1.4 var(--serif); }
.g-checking .btn { width: auto; padding: 12px 24px; }

/* Gemeinsam befüllen */
.g-collab-img { width: calc(100% + 40px); margin: -18px -20px 0; height: 190px; object-fit: cover; display: block;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 60%, transparent); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 60%, transparent); }
.g-center { text-align: center; }
.g-steps { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.g-step { display: flex; align-items: center; gap: 14px; text-align: left; }
.g-step-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--bordeaux);
  background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.g-step-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-step b { display: block; font: 650 1.08rem var(--serif); color: var(--ink); }
.g-step small { font: 500 .8rem/1.3 var(--sans); color: var(--ink-soft); }
.g-collab-actions { display: grid; gap: 10px; }
.g-collab-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.g-small-actions { display: flex; justify-content: center; gap: 22px; }
.g-small-actions button { border: 0; background: none; cursor: pointer; font: 600 .85rem var(--sans); color: var(--ink-soft); }
.g-small-actions .g-danger { color: #A0302A; }
.g-people { display: grid; gap: 10px; }
.g-person { display: flex; align-items: center; gap: 12px; text-align: left; }
.g-person-badge, .g-badge.g-author { display: grid; place-items: center; border-radius: 50%; background: var(--bordeaux); color: var(--gold-light);
  font: 700 .95rem var(--serif); }
.g-person-badge { width: 32px; height: 32px; flex: none; }
.g-person b { display: block; font: 650 1.05rem var(--serif); color: var(--ink); }
.g-person small { font: 500 .8rem var(--sans); color: var(--ink-soft); }
.g-person em { margin-left: auto; font: 500 .72rem/1.2 var(--sans); font-style: normal; text-align: right; max-width: 42%; color: var(--ink-soft); }
.g-people .g-hint { margin: 0; font: 500 .82rem/1.35 var(--sans); color: var(--ink-soft); text-align: left; }
/* Brief: eigenes Türchen leeren */
.g-clear { align-self: center; border: 0; background: none; cursor: pointer; padding: 6px 10px; font: 600 .88rem var(--sans); color: #A0302A; text-decoration: underline; text-underline-offset: 3px; }
.g-person em { margin-left: auto; font: 600 .72rem var(--sans); color: var(--ink-soft); font-style: normal; }
.g-badge.g-author { --s: clamp(13px, 30cqmin, 28px); z-index: 3; left: calc(100cqw + 12cqmin - .72 * var(--w) - var(--s));
  font-size: calc(var(--s) * .58); box-shadow: 0 0 0 1px var(--gold-light), 0 1px 3px rgba(0,0,0,.4); }
/* Mitgestalter arbeitet noch daran: unten links (wie in der App) */
.g-badge.g-author.g-claim { left: calc(-12cqmin); }

/* Sichern / Konto */
.g-secure { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 460px; margin: 20px auto 0; padding: 12px 16px; border-radius: 16px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: var(--card); color: var(--ink); text-align: left;
  box-shadow: 0 4px 12px rgba(43,36,32,.1); }
.g-secure-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--bordeaux); }
.g-secure svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-secure > svg { margin-left: auto; color: var(--gold-dark); }
.g-secure b { display: block; font: 650 1.1rem var(--serif); color: var(--bordeaux); }
.g-secure small { font: 500 .82rem var(--sans); color: var(--ink-soft); }
.g-saved .g-textbtn, .g-textbtn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--bordeaux); text-decoration: underline; }
.g-saved svg { stroke: #2F6B3A !important; }
.g-login-link { border: 0; background: none; cursor: pointer; font: 600 .95rem var(--serif); color: var(--bordeaux); text-decoration: underline; margin: -4px 0 4px; }

.g-checking h2 { margin: 0; font: 650 1.8rem var(--serif); color: var(--bordeaux); font-style: normal; }
.g-checking .btn { max-width: 360px; width: 100%; }

/* Umschlag: Das Samtband reicht im Bild bis an den linken Rand (in der App = Bildschirmrand). Auf breiten
   Bildschirmen steht der Rand frei – dort läuft das Band weich aus statt hart abgeschnitten. */
.g-wide .g-env { -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 4%, #000 14%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 4%, #000 14%); }

/* Familienpaket (wie FamilyPackCard der App) */
.g-pack { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 20px auto 0; padding: 14px; border-radius: 18px; background: var(--card);
  box-shadow: 0 6px 16px rgba(43,36,32,.12), inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); text-align: left; }
.g-pack:not([hidden]) { cursor: pointer; }
.g-pack-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bordeaux); color: var(--gold-light); }
.g-pack-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-pack-text { flex: 1; min-width: 0; }
.g-pack-text b { display: block; font: 650 1.15rem var(--serif); color: var(--ink); }
.g-pack-text small { font: 500 .8rem/1.35 var(--sans); color: var(--ink-soft); }
.g-pack-btn { flex: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; background: var(--bordeaux); color: var(--ivory); font: 650 1rem var(--serif); }

/* Antwort des Beschenkten */
.g-reply { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; text-align: left;
  background: linear-gradient(135deg, #FFF6EC, #F6E8D6); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.g-reply-mood { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--card);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.g-reply-text { flex: 1; min-width: 0; }
.g-reply-text small { display: block; font: 700 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.g-reply-text p { margin: 4px 0 0; font: italic 500 1.15rem/1.4 var(--serif); color: var(--bordeaux); }
.g-reply-voice { width: 100%; margin-top: 8px; }
.g-reply-dot { --s: clamp(16px, 36cqmin, 32px); z-index: 5; left: calc(-12cqmin); border-radius: 50%;
  display: grid; place-items: center; font-size: calc(var(--s) * .55); background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: none; }

/* Begrüßung nach dem Anmelden */
.g-welcome { display: flex; align-items: center; gap: 12px; max-width: 460px; margin: -8px auto 18px; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: #F1F6EE; box-shadow: 0 4px 14px rgba(43,36,32,.1), inset 0 0 0 1px rgba(47,107,58,.28);
  animation: g-welcome-in .45s cubic-bezier(.2,.9,.25,1); transition: opacity .5s, transform .5s; }
.g-welcome.g-hide { opacity: 0; transform: translateY(-6px); }
@keyframes g-welcome-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.g-welcome-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2F6B3A; color: #fff; }
.g-welcome-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.g-welcome-text b { display: block; font: 650 1.1rem var(--serif); color: #24502C; }
.g-welcome-text small { font: 500 .85rem var(--sans); color: #4E6B52; }
/* Konto-Zeile auch auf der leeren Übersicht */
.g-empty .g-saved { margin: 14px 0 0; font-size: .9rem; }

/* Konto oben rechts */
.g-account { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer; padding: 0; background: none; font: 600 .95rem var(--serif); color: var(--bordeaux); }
.g-account-out { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); box-shadow: 0 2px 8px rgba(43,36,32,.15), inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.g-account-out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.g-account-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bordeaux); color: var(--gold-light);
  font: 700 1.2rem var(--serif); box-shadow: 0 2px 8px rgba(0,0,0,.2), inset 0 0 0 2px var(--gold); }
.g-account-badge.g-big { width: 64px; height: 64px; font-size: 1.8rem; margin: 0 auto; }

/* Hinweise unten statt über dem Titel */
.g-body > .toast { top: auto; bottom: max(96px, calc(env(safe-area-inset-bottom) + 86px)); }

.g-account-in { padding: 4px 14px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 2px 8px rgba(43,36,32,.15), inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.g-account-in .g-account-badge { width: 32px; height: 32px; font-size: 1rem; }
.g-tap-hint { flex: none; position: relative; z-index: 3; margin: 10px auto 8px; padding: 9px 16px; border-radius: 999px; font: 600 1rem var(--serif); color: var(--bordeaux);
  background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: 0 4px 14px rgba(0,0,0,.25); width: fit-content; animation: g-pulse 2.4s ease-in-out infinite; }
.g-tap-hint { max-width: calc(100% - 32px); text-align: center; border-radius: 22px; }
.g-tap-hint small { display: block; margin-top: 2px; font: 500 .8rem/1.3 var(--sans); color: var(--ink-soft); }
@keyframes g-pulse { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .g-tap-hint { animation: none; } }
.g-send-quiet { opacity: .55; }
.g-big-icon { width: 60px; height: 60px; margin: 0 auto; }
.g-big-icon { display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--bordeaux); }
.g-big-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Brief: Türchen eines Mitgestalters – übernehmen oder leeren */
.g-by { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.g-by p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 .95rem var(--sans); color: var(--bordeaux); }
.g-by p svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-by-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-by .g-chip { padding: 6px 12px; font-size: .95rem; }
.g-by .g-danger { color: #A0302A; }
/* Foto-Türchen: eigenes Foto als kleines Rund */
.g-badge.g-photo { overflow: hidden; border: 2px solid var(--gold-light); background: var(--card); }
.g-badge.g-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Brief: verschickt und schon aufgegangen – nur ansehen */
.g-locked { border: 0; margin: 0; padding: 0; min-width: 0; }
.g-locked-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 12%, transparent); font: 600 .95rem var(--sans); color: var(--bordeaux); }
.g-locked-note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-locked .h-tiles, .g-locked .h-inspire-box, .g-locked .h-remove, .g-locked .h-change { display: none; }
/* Vorschau: Kalender mit den Augen des Beschenkten, über allem, mit einer schmalen Leiste zum Zurückgehen */
.g-preview { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--backdrop, #1a1f3a); }
.g-preview-bar {
  flex: none; display: flex; align-items: center; gap: 10px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
  background: var(--card); color: var(--ink); box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 45%, transparent);
}
.g-preview-close {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--bordeaux); font: 650 1rem var(--sans);
}
.g-preview-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-preview-title { flex: 1; min-width: 0; text-align: center; margin-right: 12px; font: italic 600 1.05rem var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 500px) { .g-preview-title { margin-right: 80px; } }
.g-preview-frame { flex: 1; width: 100%; border: 0; display: block; }
body.g-previewing { overflow: hidden; }
/* Sehr schmale Handys (320–359 px): vier Werkzeuge passen neben den Zurück-Knopf */
@media (max-width: 359px) { .g-tools { right: 8px; padding: 4px 2px; gap: 0; } .g-tool { padding: 4px 5px; } }
/* Symbole sind gezeichnet (Lucide), nicht gefüllt – sonst wird z. B. aus „Teilen“ ein Schloss */
.g-body .btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* „Wie hast du von Türchen erfahren?“ nach dem ersten Verschicken (wie SourceQuestionCard in der App) */
.g-source { background: var(--card); border-radius: 18px; padding: 16px 16px 12px; text-align: left; transition: opacity .35s, transform .35s;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 6px 20px rgba(0,0,0,.14); }
.g-source h3 { margin: 0 0 2px; font: 650 19px/1.2 var(--serif); color: var(--ink); }
.g-sentbox .g-source-sub { margin: 0 0 12px; font: 500 13.5px/1.35 var(--sans) !important; color: var(--ink-soft) !important; text-align: left; }
.g-source .g-chips { gap: 7px; }
.g-source .g-chip { max-width: 100%; padding: 8px 12px; font: 600 14.5px/1.2 var(--sans); white-space: nowrap; gap: 6px; }
.g-source-skip { display: block; margin: 10px auto 0; padding: 6px 12px; background: none; border: 0; font: 600 14px var(--sans); color: var(--ink-soft); cursor: pointer; }
.g-source-other { display: flex; gap: 8px; margin-top: 10px; }
.g-source-other input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); font: 500 16px var(--sans); background: #fff; color: var(--ink); }
.g-source-other button { padding: 0 16px; border-radius: 12px; border: 0; background: var(--bordeaux); color: var(--ivory); font: 600 15px var(--sans); cursor: pointer; }
.g-source-thanks { text-align: center; padding: 18px 10px; }
.g-source-thanks h3 { font-size: 21px; }
.g-sentbox .g-source-thanks .g-source-sub { text-align: center; margin: 0; }
.g-source-gone { opacity: 0; transform: translateY(8px); }
@media (max-width: 360px) { .g-source { padding: 13px 12px 8px; } .g-source h3 { font-size: 17px; } .g-source .g-chips { gap: 6px; }
  .g-source .g-chip { padding: 7px 9px; font-size: 13px; gap: 4px; } }
@media (max-height: 640px) { .g-sentbox .g-source-sub { display: none; } .g-source h3 { margin-bottom: 10px; } .g-source-thanks .g-source-sub { display: block; } }
@media (prefers-reduced-motion: reduce) { .g-source { transition: none; } }

/* Ideen für leere Türchen + Hinweis „schon jetzt verschicken“ (Kalender-Ansicht, sobald etwas drin ist) */
.g-more { flex: none; position: relative; z-index: 3; margin: 10px auto 8px; max-width: calc(100% - 32px); width: fit-content; text-align: center; }
.g-more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer; font: 600 1rem var(--serif); color: var(--bordeaux);
  background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.g-more small { display: block; margin: 7px auto 0; padding: 4px 12px; border-radius: 12px; font: 500 .8rem/1.3 var(--sans); color: var(--ink-soft);
  background: color-mix(in srgb, var(--card) 88%, transparent); width: fit-content; max-width: 100%; }
@media (max-height: 640px) { .g-more small { display: none; } .g-more { margin-top: 6px; } }
