/* Rundungen aus dem Design-System (Rückfall für Seiten ohne design.css: Einladung, Fotowand-Anzeige) – gleiche Werte wie assets/design.css */
:root { --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-pill: 999px; }
/* Helpiqo Fotowand: Gastgeber, Gäste, Wand. Motive über body[data-theme]. */
:root { --fw-a: #4f46e5; --fw-bg: #f6f7fb; --fw-ink: #171a21; --fw-card: #fff; --fw-head: Georgia, "Times New Roman", serif; --fw-glow: rgba(79,70,229,.25); }
[data-theme="hochzeit"] { --fw-a: #b08d57; --fw-bg: #fbf7f0; --fw-ink: #3b2f22; --fw-glow: rgba(176,141,87,.3); }
[data-theme="geburtstag"] { --fw-a: #db2777; --fw-bg: #fff1f7; --fw-ink: #3b0a24; --fw-head: system-ui, sans-serif; --fw-glow: rgba(219,39,119,.25); }
[data-theme="feier"] { --fw-a: #7c3aed; --fw-bg: #f5f3ff; --fw-ink: #1e1238; --fw-head: system-ui, sans-serif; --fw-glow: rgba(124,58,237,.25); }
[data-theme="firma"] { --fw-a: #334155; --fw-bg: #f1f5f9; --fw-ink: #0f172a; --fw-head: system-ui, sans-serif; --fw-glow: rgba(51,65,85,.2); }

/* ---------- Gemeinsam (Gastgeber + Gäste) ---------- */
.fw-card { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: var(--r-l); padding: 16px; margin: 14px 0; }
.fw-card h3 { margin: 0 0 10px; }
.fw-big { width: 100%; padding: 14px; font-size: 1.05rem; border-radius: var(--r-m); }
.fw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.fw-chips .chip { padding: 7px 12px; border-radius: var(--r-pill); font-size: .9rem; }
.fw-chips .chip.on { background: var(--fw-a, var(--accent)); border-color: var(--fw-a, var(--accent)); color: #fff; }
.fw-lbl { font-weight: 600; margin: 12px 0 4px; }
.fw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .fw-two { grid-template-columns: 1fr; } }
.fw-card textarea { width: 100%; box-sizing: border-box; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.fw-tile { position: relative; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--accent-soft, #eef0ff); border: 0; padding: 0; }
.fw-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fw-greet { display: grid; place-content: center; padding: 10px; text-align: center; font-family: var(--fw-head); font-style: italic; background: var(--fw-bg); color: var(--fw-ink); height: 100%; box-sizing: border-box; }
.fw-greet p { margin: 0; font-size: .85rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.fw-likes { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 1px 6px; border-radius: 6px; }

/* ---------- Gastgeber ---------- */
.fw-ev { display: grid; gap: 2px; text-align: left; width: 100%; margin: 8px 0; padding: 14px; border-radius: var(--r-m); }
.fw-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.fw-plan { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: var(--r-m); }
.fw-plan.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.fw-price { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.fw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 12px 0; }
.fw-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 12px; display: grid; gap: 2px; }
.fw-stats b { font-size: 1.2rem; } .fw-stats span { font-size: .85rem; color: var(--muted); }
.fw-upsell { background: var(--accent-soft); }
.fw-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.fw-links input { width: 100%; margin: 6px 0 10px; }
.fw-links > div:last-child { flex: 1 1 260px; }
.fw-modhead { justify-content: space-between; }
.fw-modtile.st-hidden img, .fw-modtile.st-hidden .fw-greet { opacity: .3; filter: grayscale(1); }
.fw-modtile.st-pending { outline: 3px solid #f59e0b; outline-offset: -3px; }
.fw-modbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; align-items: center; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.fw-modbar small { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fw-modbar button { padding: 2px 6px; font-size: .9rem; background: rgba(255,255,255,.9); border-radius: 6px; }

/* ---------- Gäste (Handy) ---------- */
body.fw-guest { background: var(--fw-bg); color: var(--fw-ink); }
.fw-gmain { max-width: 560px; padding-bottom: 40px; }
.fw-hero { text-align: center; padding: 26px 8px 8px; }
.fw-hero h1 { font-family: var(--fw-head); color: var(--fw-a); font-size: 2.1rem; margin: 6px 0; }
.fw-hero p { margin: 0; font-style: italic; }
.fw-orn { height: 4px; width: 120px; margin: 0 auto; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--fw-a), transparent); }
.fw-guest .fw-card { background: var(--fw-card); border-color: transparent; box-shadow: 0 6px 24px var(--fw-glow); }
.fw-lead { font-weight: 600; text-align: center; }
.fw-guest .fw-card input:not([type=checkbox]) { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.fw-actions { display: grid; gap: 8px; margin: 10px 0; }
.fw-guest .fw-big.primary { background: var(--fw-a); border-color: var(--fw-a); }
.fw-tasks { margin: 6px 0; }
.fw-note { font-size: .78rem; color: #6b7280; margin: 10px 0 0; }
.fw-test { text-align: center; font-size: .8rem; background: #fef3c7; border-radius: 8px; padding: 4px; }
.fw-qhead { font-weight: 600; margin: 10px 0 4px; }
.fw-q { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.fw-gallery h2 { font-family: var(--fw-head); }
.fw-foot { text-align: center; font-size: .85rem; margin-top: 24px; }
.fw-gone { text-align: center; padding: 60px 10px; }
.fw-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: var(--r-m); z-index: 200; box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: 90vw; }

/* ---------- Wand (Beamer / TV) ---------- */
body.fw-wall { margin: 0; background: #07070a; color: #fff; overflow: hidden; font-family: system-ui, sans-serif; cursor: none; height: 100vh; }
body.fw-wall.show-bar { cursor: default; }
#stage { position: fixed; inset: 0; overflow: hidden; }
.w-layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 1.4s ease; }
.w-layer.in { opacity: 1; } .w-layer.out { opacity: 0; }
.w-blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.45); }
.w-layer img, .w-layer video { position: relative; max-width: 100vw; max-height: 100vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.w-layer.fx-slide { opacity: 1; transform: translateX(100%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.w-layer.fx-slide.in { transform: none; } .w-layer.fx-slide.out { transform: translateX(-100%); }
.w-layer.fx-kenburns.in img { animation: kb1 var(--dur, 9s) ease-out forwards; }
.w-layer.kb2.in img { animation-name: kb2; } .w-layer.kb3.in img { animation-name: kb3; } .w-layer.kb4.in img { animation-name: kb4; }
@keyframes kb1 { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }
@keyframes kb2 { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1); } }
@keyframes kb3 { from { transform: scale(1) translate(-2%, 2%); } to { transform: scale(1.1) translate(1%, -1%); } }
@keyframes kb4 { from { transform: scale(1.08); } to { transform: scale(1.02) translate(-1%, 2%); } }
.w-cap { position: absolute; left: 3vw; bottom: 4vh; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: clamp(16px, 2vw, 30px); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.w-cap span, .w-cap b { background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: var(--r-pill); }
.w-cap.new b { background: var(--fw-a); animation: pop .6s ease; }
@keyframes pop { from { transform: scale(.4); } 60% { transform: scale(1.15); } to { transform: scale(1); } }
.w-greetcard > div { position: relative; max-width: 70vw; text-align: center; font-family: var(--fw-head); }
.w-greetcard p { font-size: 6vh; margin: 0; }
.w-greetcard blockquote { margin: 2vh 0; font-size: clamp(28px, 5vh, 70px); font-style: italic; line-height: 1.25; }
.w-greetcard cite { font-size: 3.2vh; color: #d1d5db; font-style: normal; }
.w-greetcard { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--fw-a) 45%, #000) 0%, #07070a 75%); }
/* Polaroid-Stapel */
#stage.m-polaroid { background: radial-gradient(ellipse at center, #2b2420 0%, #0b0908 80%); }
.w-pol { position: absolute; left: 50%; top: 50%; width: min(42vw, 62vh); background: #fdfdfb; padding: 1.4vh 1.4vh 0; box-shadow: 0 18px 50px rgba(0,0,0,.6); transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); animation: drop .9s cubic-bezier(.2,.9,.3,1.2); }
.w-pol img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.w-pol p { color: #333; font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 2.6vh; margin: 0; padding: 1.2vh 0 1.8vh; text-align: center; min-height: 3vh; }
.w-pol.new { box-shadow: 0 0 0 6px var(--fw-a), 0 18px 50px rgba(0,0,0,.6); }
@keyframes drop { from { transform: translate(calc(-50% + var(--x)), -160%) rotate(calc(var(--r) * -3)) scale(1.3); opacity: 0; } to { opacity: 1; } }
/* Mosaik */
.w-mosaic { position: absolute; inset: 2vh 2vw 2vh 2vw; display: grid; grid-template: 1fr 1fr / 1fr 1fr 1fr; gap: 1.2vh; }
.w-tile { position: relative; overflow: hidden; border-radius: 1vh; background: #111; }
.w-tile img { width: 100%; height: 100%; object-fit: cover; }
.w-tile span { position: absolute; left: 1vh; bottom: 1vh; background: rgba(0,0,0,.55); padding: 3px 10px; border-radius: var(--r-pill); font-size: 2vh; }
.w-tile.flip { animation: flip .9s ease; } .w-tile.new { box-shadow: inset 0 0 0 5px var(--fw-a); }
@keyframes flip { from { transform: rotateY(90deg); opacity: .2; } to { transform: none; opacity: 1; } }
/* Leer */
.w-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1vh; }
.w-empty svg { border-radius: var(--r-l); }
.w-empty h1 { font-size: 6vh; margin: 2vh 0 0; } .w-empty p { font-size: 3vh; margin: 0; color: #d1d5db; } .w-url { color: var(--fw-a) !important; }
/* Overlays */
#ui { position: fixed; inset: 0; pointer-events: none; }
.w-title { position: absolute; left: 3vw; top: 3vh; display: grid; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.w-title b { font-family: var(--fw-head); font-size: clamp(22px, 4vh, 54px); }
.w-title span { font-size: clamp(14px, 2.2vh, 28px); font-style: italic; opacity: .9; }
.w-qr { position: absolute; right: 2vw; bottom: 3vh; display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,.6); padding: 10px 14px 10px 10px; border-radius: var(--r-l); backdrop-filter: blur(6px); }
.w-qr svg { width: min(15vh, 150px); height: auto; border-radius: 8px; display: block; }
.w-qr > div:last-child { display: grid; gap: 2px; }
.w-qr b { font-size: clamp(16px, 2.6vh, 30px); } .w-qr span { font-size: clamp(12px, 1.8vh, 20px); } .w-qr small { font-size: clamp(10px, 1.4vh, 16px); color: #cbd5e1; }
.w-watermark { position: absolute; top: 3vh; right: 2vw; background: #f59e0b; color: #111; font-weight: 700; padding: 6px 14px; border-radius: var(--r-pill); }
.w-paused { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5vh; background: rgba(0,0,0,.6); padding: 12px 28px; border-radius: var(--r-l); }
#bar { position: fixed; left: 50%; top: 2vh; transform: translateX(-50%); display: flex; gap: 8px; opacity: 0; transition: opacity .3s; z-index: 5; }
body.show-bar #bar { opacity: 1; }
#bar button { background: rgba(255,255,255,.9); border: 0; border-radius: var(--r-m); padding: 8px 14px; font-size: 15px; cursor: pointer; }

/* Ohne Anmeldung: Schaufenster mit kleiner animierter Wand */
.fw-teaser { text-align: center; padding: 22px 18px 24px; margin: 14px 0; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 22px 44px -30px rgba(225, 29, 72, .55); }
.fw-teaser h2 { margin: 18px 0 12px; font-size: 1.35rem; letter-spacing: -.01em; }
.fw-mock { position: relative; width: min(420px, 100%); margin: 0 auto; padding-bottom: 14px; }
.fw-mock-screen { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; aspect-ratio: 16 / 10; border-radius: 16px; background: linear-gradient(140deg, #1e1b4b, #4c1d95); box-shadow: 0 18px 36px -18px #4c1d95, inset 0 0 0 4px #111827; }
.fw-mock-tile { display: grid; place-items: center; border-radius: 10px; font-size: clamp(1.2rem, 4vw, 1.9rem); background: linear-gradient(140deg, hsl(calc(var(--i) * 40 + 300) 85% 70%), hsl(calc(var(--i) * 40 + 340) 80% 58%)); animation: fwPop 9s cubic-bezier(.34, 1.56, .64, 1) infinite; animation-delay: calc(var(--i) * .45s); }
.fw-mock-qr { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #fff; color: #111827; font-size: 22px; line-height: 1; }
.fw-mock-phone { position: absolute; left: -6px; bottom: 0; width: 58px; height: 100px; display: grid; place-items: center; border-radius: 14px; background: #fff; border: 4px solid #111827; font-size: 1.6rem; box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .45); animation: fwPhone 4.5s ease-in-out infinite; }
.fw-steps { list-style: none; margin: 0 auto 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; counter-reset: s; }
.fw-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: var(--bg); font-size: .92rem; font-weight: 600; }
.fw-steps b { font-size: 1.7rem; line-height: 1; }
.fw-cta { padding: 14px 28px !important; font-size: 1.05rem; }
.fw-teaser-note { margin: 14px auto 0; max-width: 520px; color: var(--muted); font-size: .88rem; }
@keyframes fwPop { 0%, 4% { transform: scale(0) rotate(-12deg); opacity: 0; } 9%, 88% { transform: scale(1) rotate(0); opacity: 1; } 96%, 100% { transform: scale(.6); opacity: 0; } }
@keyframes fwPhone { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (max-width: 560px) { .fw-steps { grid-template-columns: 1fr; } .fw-steps li { flex-direction: row; justify-content: flex-start; padding: 10px 14px; } .fw-mock-phone { width: 46px; height: 80px; font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .fw-mock-tile, .fw-mock-phone { animation: none; } }
.fw-teaser-free { margin: 8px auto 0; font-weight: 600; font-size: .92rem; }
