/* Lebensbuch – Logik in web/src/lebensbuch/app.js. Warme Papier-/Leinen-Farben, Buch-Optik. */
@import url("/feierplaner/fonts.css");
.lb-main { --lb-paper: #fff8ec; --lb-ink: #4a2c12; --lb-gold: #b07a3c; --lb-rose: #9a3412; }
#lb { display: flex; flex-direction: column; gap: 28px; }
.lb-sec { display: flex; flex-direction: column; gap: 14px; }
.lb-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; line-height: 1.1; margin: 0; }

/* Kopf */
.lb-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .lb-hero { grid-template-columns: 1fr; } }
.lb-hero-txt { display: flex; flex-direction: column; gap: 14px; }
.lb-claim { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.2rem; line-height: 1.05; font-weight: 600; margin: 0; color: var(--lb-rose); }
.lb-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-ticker { min-height: 64px; }
.lb-bubble { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: #dcf8c6; color: #073b33; box-shadow: 0 10px 24px -16px rgba(7, 94, 84, .7); max-width: 100%; }
.lb-bubble b { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #128c7e; }
#lbQ { font-size: 1.05rem; font-weight: 600; }
#lbQ.in { animation: lbIn .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes lbIn { from { opacity: 0; transform: translateY(8px); } }

/* Beispielbuch */
.lb-demo { display: flex; flex-direction: column; gap: 10px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.lb-tab[aria-selected="true"] { background: var(--lb-ink); color: #fff8ec; border-color: var(--lb-ink); }
.lb-tab:hover { transform: translateY(-1px); }
.lb-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex-shrink: 0; }
.lb-flag--none { width: auto; height: auto; box-shadow: none; }
.lb-book { display: grid; grid-template-columns: 1fr 1fr; border-radius: 6px 10px 10px 6px; background: linear-gradient(90deg, #f6e7cf 0, #fff8ec 6%, #fff8ec 47%, #e9d6b6 50%, #fff8ec 53%, #fff8ec 94%, #f1e0c4 100%);
  box-shadow: 0 28px 50px -30px rgba(74, 44, 18, .65), 0 0 0 8px #7b4a24, 0 0 0 9px #5b3418; color: var(--lb-ink); min-height: 300px; transform: perspective(1400px) rotateX(4deg); animation: lbOpen .9s cubic-bezier(.2, .9, .3, 1); }
@keyframes lbOpen { from { opacity: 0; transform: perspective(1400px) rotateX(18deg) scale(.96); } }
.lb-page { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; font-family: 'Cormorant Garamond', Georgia, serif; }
.lb-page h3 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.lb-kicker { font-family: 'Nunito', system-ui, sans-serif; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lb-gold); font-weight: 700; }
.lb-q { margin: 0; font-style: italic; color: var(--lb-rose); font-size: 1.02rem; }
.lb-text { margin: 0; font-size: 1.08rem; line-height: 1.45; }
.lb-voice { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.lb-voice b { display: block; font-size: .95rem; } .lb-voice small { font-size: .8rem; color: #7a5230; }
.lb-qr svg { width: 58px; height: 58px; display: block; border-radius: 4px; }
.lb-photo { margin-top: auto; align-self: flex-end; width: 88px; padding: 6px 6px 16px; background: #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); transform: rotate(4deg); }
.lb-photo img { width: 100%; display: block; filter: sepia(.35); }
@media (max-width: 560px) { .lb-book { grid-template-columns: 1fr; background: #fff8ec; } .lb-page--r { border-top: 1px dashed #d8bf97; } .lb-photo { display: none; } }
.lb-demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-demo-foot small { color: var(--muted); }
.lb-play { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--lb-ink); color: #fff8ec; font: inherit; font-weight: 700; cursor: pointer; }
.lb-wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.lb-wave i { width: 3px; height: 30%; background: #fbd38d; border-radius: 2px; }
.lb-play.on .lb-wave i { animation: lbBar .9s ease-in-out infinite; } .lb-play.on .lb-wave i:nth-child(2) { animation-delay: .15s; } .lb-play.on .lb-wave i:nth-child(3) { animation-delay: .3s; } .lb-play.on .lb-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes lbBar { 50% { height: 100%; } }

/* Schritte */
.lb-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.lb-step { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: lbIn .5s var(--d, 0s) both; }
.lb-step-ico { font-size: 1.8rem; }
.lb-step span:last-child { color: var(--muted); font-size: .92rem; }
.lb-when { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--lb-gold) 12%, var(--surface)); }

/* Pakete */
.lb-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .lb-pkgs { grid-template-columns: 1fr; } }
.lb-pkg { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px 16px 14px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, box-shadow .2s; }
.lb-pkg:hover { transform: translateY(-3px); }
.lb-pkg.on { border-color: var(--lb-rose); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--lb-rose) 80%, transparent); }
.lb-pkg.best { background: linear-gradient(180deg, color-mix(in srgb, var(--lb-gold) 14%, var(--surface)), var(--surface)); }
.lb-best { position: absolute; top: -11px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--lb-rose); color: #fff; font-size: .78rem; font-weight: 700; }
.lb-pkg-emo { font-size: 1.9rem; }
.lb-pkg-name { font-size: 1.15rem; }
.lb-pkg-sub { color: var(--muted); font-size: .9rem; }
.lb-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.1rem; font-weight: 600; color: var(--lb-rose); line-height: 1.1; margin: 4px 0; }
.lb-pkg ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; }
.lb-buybox { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.lb-gift-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 560px) { .lb-gift-fields { grid-template-columns: 1fr; } }
.lb-field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.lb-field--wide { grid-column: 1 / -1; }
.lb-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lb-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--lb-rose); flex-shrink: 0; }
.lb-terms.shake { animation: lbShake .4s; }
@keyframes lbShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.lb-buy { align-self: flex-start; }
.lb-err { color: #b91c1c; margin: 0; min-height: 1em; }

/* Sprachen */
.lb-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.lb-wish { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, #25d366 7%, var(--surface)); border: 1px dashed color-mix(in srgb, #25d366 45%, var(--border)); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-chip { display: inline-flex; align-items: center; gap: 6px; }
.lb-chip.on { background: #128c7e; color: #fff; border-color: #128c7e; }
.lb-wish-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
@media (max-width: 700px) { .lb-wish-row { grid-template-columns: 1fr; } }
.lb-thanks { margin: 0; font-weight: 700; color: #0f766e; }

/* Gutscheine */
.lb-vouchers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.lb-voucher { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(135deg, #fff6e4, #fbead0); color: var(--lb-ink); border-color: #e7c9a0; }
.lb-voucher-top { display: flex; gap: 10px; align-items: flex-start; }
.lb-voucher-top > div { min-width: 0; }
.lb-voucher-top > div { flex: 1; display: flex; flex-direction: column; }
.lb-voucher-top small { color: #7a5230; }
.lb-voucher-ico { font-size: 1.8rem; }
.lb-status { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff; white-space: nowrap; }
.lb-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .14em; text-align: center; padding: 8px; border-radius: 10px; border: 2px dashed var(--lb-gold); background: #fffaf0; }
.lb-voucher-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-voucher .h-hint { color: #7a5230; }
.lb-redeem { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 18px; background: radial-gradient(120% 90% at 50% 0, #fff6e4, var(--surface) 70%); }
.lb-redeem h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; margin: 0; }
.lb-redeem-ico { font-size: 3rem; animation: lbPop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes lbPop { from { transform: scale(.4); opacity: 0; } }
.lb-from { margin: 0; font-weight: 700; } .lb-note { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.2rem; }
.lb-bought { font-weight: 600; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lb-voucher, :root:not([data-theme="light"]) .lb-voucher .h-btn { color: var(--lb-ink); } }
@media (prefers-reduced-motion: reduce) { .lb-book, .lb-step, #lbQ.in, .lb-redeem-ico { animation: none; } .lb-play.on .lb-wave i { animation: none; } }

/* ---------- Phase 1: Einrichten + Verwaltung (projekt.js) ---------- */
.lb-setup { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.lb-setup h2 { margin: 0; }
.lb-f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: var(--fs-s); }
.lb-f .h-input, .lb-f textarea { font-weight: 400; font-size: 1rem; }
.lb-seg, .lb-langpick { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-seg button, .lb-langpick button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: 600 .95rem var(--font); cursor: pointer; }
.lb-seg button.on, .lb-langpick button.on { border-color: #b07a3c; background: #fff4e2; color: #4a2c12; }
.lb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.lb-cat { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; }
.lb-cat input { width: 18px; height: 18px; accent-color: #b07a3c; }
.lb-dash-head { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fff6e4, #fbead0); color: #4a2c12; border-color: #e7c9a0; }
.lb-dash-head h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; margin: 0; }
.lb-dash-head p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-asked { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid #b07a3c; }
.lb-asked-q { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.lb-asked small { color: var(--muted); }
.lb-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-voice { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.lb-rec-on { background: #dc2626 !important; color: #fff !important; animation: lbRec 1.2s ease-in-out infinite; }
@keyframes lbRec { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .25); } }
.lb-next { display: flex; flex-direction: column; gap: 6px; }
.lb-next-q { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.lb-next-q > span:first-child { font-size: 1.3rem; }
@media (max-width: 520px) { .lb-next-q { grid-template-columns: auto 1fr; } .lb-next-q button { grid-column: 2; justify-self: start; } }
.lb-link { border: 0; background: none; color: #9a3412; font: 700 var(--fs-s) var(--font); text-decoration: underline; cursor: pointer; padding: 4px 0; align-self: flex-start; }
.lb-own { padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--border); }
.lb-own summary { cursor: pointer; font-weight: 700; }
.lb-own[open] { display: flex; flex-direction: column; gap: 8px; }
.lb-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lb-links > div { display: flex; flex-direction: column; gap: 6px; }
.lb-links small { color: var(--muted); }
.lb-story { display: flex; flex-direction: column; gap: 8px; }
.lb-story h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; }
.lb-story-q { color: var(--muted); }
.lb-story-orig { margin: 0; color: var(--muted); font-style: italic; }
.lb-story audio { width: 100%; }
.lb-story-text p { line-height: 1.65; }
.lb-story-text--orig { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 4px; color: var(--muted); }
.lb-story--wait { background: #fffbeb; color: #4a2c12; }
.lb-follow { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #4a2c12; }
.lb-follow-q { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Familienseite (familie.js) ---------- */
.fam-main { max-width: 760px; display: flex; flex-direction: column; gap: 18px; padding-top: 18px; padding-bottom: 40px; }
.fam-top { padding: 12px 16px; }
.fam-head { display: flex; gap: 14px; align-items: center; }
.fam-head h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; line-height: 1.05; margin: 0; }
.fam-head p { margin: 4px 0 0; color: var(--muted); }
.fam-lang { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.fam-lang button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 600 .9rem var(--font); color: var(--text); cursor: pointer; }
.fam-lang button.on { background: #fff4e2; color: #4a2c12; box-shadow: 0 0 0 2px #e7c9a0 inset; }
.fam-story { display: flex; flex-direction: column; gap: 8px; }
.fam-story h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; margin: 0; }
.fam-q { margin: 0; color: #9a3412; font-style: italic; }
.fam-date { color: var(--muted); }
.fam-audio { width: 100%; }
.fam-text p { line-height: 1.7; font-size: 1.05rem; }
.fam-foot { display: flex; align-items: center; gap: 8px; }
.fam-heart { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 1.3rem; cursor: pointer; }
.fam-heart.pop { animation: famPop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes famPop { 40% { transform: scale(1.35); } }
.fam-heart-n { font-weight: 800; }
.fam-hint { text-align: center; }
@media (prefers-reduced-motion: reduce) { .fam-heart.pop, .lb-rec-on { animation: none; } }
.lb-ablauf { margin: 4px 0 10px; font-weight: 600; font-size: .95rem; }
