
:root{color-scheme:dark;--bg:#0c120f;--surface:#131c17;--text:#f0f6f1;--muted:#a6b7aa;--line:#2a3b30;--accent:#86d6a1;--gold:#dec79f}
:root[data-theme=light]{color-scheme:light;--bg:#f6f9f6;--surface:#fff;--text:#172a1e;--muted:#526858;--line:#d7e3d9;--accent:#237444;--gold:#866939}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:radial-gradient(ellipse at 90% 15%,#65b78314,transparent 45%),var(--bg);color:var(--text);font:16px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:var(--accent);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}header{border-bottom:1px solid var(--line)}.bar{max-width:1160px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{text-decoration:none;color:var(--text);letter-spacing:.05em;font-weight:650}.brand small{font-size:.75rem;color:var(--muted);margin-left:14px}.theme{border:1px solid var(--line);background:transparent;color:var(--text);border-radius:50%;width:44px;height:44px;cursor:pointer}main{width:min(1100px,calc(100% - 56px));margin:0 auto}.eyebrow{font-size:.75rem;font-weight:650;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);margin:0 0 24px}.hero{padding:86px 0 76px;display:grid;grid-template-columns:1.4fr 1fr;gap:60px;align-items:center}.hero h1{font:clamp(3.5rem,7.4vw,6.8rem)/1.03 Georgia,serif;font-weight:400;letter-spacing:-.045em;margin:0 0 28px}.amp{font-style:italic;font-size:.7em;color:var(--gold)}.lead{max-width:480px;font-size:1.1rem;color:var(--muted)}.date{letter-spacing:.17em;font-size:.85rem;margin:30px 0;color:var(--gold)}.btn{display:inline-block;padding:13px 24px;border-radius:9px;border:1px solid var(--accent);background:var(--accent);color:var(--bg);font-weight:650;text-decoration:none;cursor:pointer}.btn.secondary{background:transparent;color:var(--text);border-color:var(--line)}.seal{aspect-ratio:4/5;position:relative;display:grid;align-content:center;justify-items:center;border:1px solid var(--line);border-radius:48% 48% 5px 5px;background:linear-gradient(135deg,#86d6a10a,transparent);padding:30px;text-align:center}.seal:before{content:'';position:absolute;inset:15px;border:1px solid var(--line);border-radius:inherit}.monogram{font:5.5rem/1.3 Georgia,serif;color:var(--gold)}.seal p{font-size:.8rem;letter-spacing:.22em;text-transform:uppercase;max-width:200px}.sprig{width:100px;height:100px;color:var(--accent);opacity:.8}.subnav{display:flex;gap:30px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0}.subnav a{text-decoration:none;font-size:.9rem;color:var(--muted)}.subnav a:hover{color:var(--accent)}section.content{padding:64px 0;border-bottom:1px solid var(--line)}.section-title{display:grid;grid-template-columns:1fr 1.5fr;gap:40px;margin-bottom:35px}h2{font:clamp(2rem,3.5vw,3rem)/1.2 Georgia,serif;margin:0;letter-spacing:-.025em}h3{font-size:1.15rem;margin:0 0 12px}.section-title p{color:var(--muted);margin:0}.details{display:grid;grid-template-columns:1fr 1fr;gap:24px}.detail{padding:26px 0;border-top:1px solid var(--line)}.detail .label{color:var(--accent);font-size:.75rem;letter-spacing:.14em;text-transform:uppercase}.detail p{margin:12px 0;font-size:1.25rem}.detail small{color:var(--muted)}.countdown{display:flex;gap:32px;margin-top:36px}.countdown strong{font:2.5rem Georgia,serif;display:block;color:var(--gold)}.countdown small{color:var(--muted);font-size:.75rem}.reply{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px}.reply aside p{color:var(--muted)}.form{padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}label{display:block;margin:0 0 8px;font-size:.9rem;font-weight:600}.field{margin-bottom:22px}input,textarea,select{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);min-height:46px}textarea{resize:vertical}.field small,.privacy{font-size:.8rem;color:var(--muted)}.numbers{display:grid;grid-template-columns:1fr 1fr;gap:16px}.choices{border:0;padding:0;margin:0 0 22px}.choices legend{font-size:.9rem;margin-bottom:10px;font-weight:600}.choices label{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:9px;margin-bottom:10px;cursor:pointer}.choices input{width:20px;min-height:20px;accent-color:var(--accent)}.message{padding:16px;border:1px solid var(--accent);border-radius:10px;color:var(--accent);margin:0 0 22px}.error{border-color:#dd9686;color:#dd9686}.login{max-width:500px;margin:80px auto 110px}.login h1{font:3rem/1.2 Georgia,serif;margin:0 0 22px}.login p{color:var(--muted)}.login .form{margin-top:30px}.login .btn{width:100%}.lock{font-size:2rem;color:var(--gold);margin-bottom:24px}.footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;padding:32px 0 40px;font-size:.8rem;color:var(--muted)}.footer nav{display:flex;flex-wrap:wrap;gap:20px}.logout{border:0;padding:0;background:none;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{padding:16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}td{max-width:350px;overflow-wrap:anywhere}th{background:var(--surface)}.stats{display:flex;gap:40px;margin:30px 0}.stats strong{font:2.7rem Georgia,serif;display:block}.admin-head{padding:50px 0 30px}.admin-head h1{font:3rem Georgia,serif}.admin-actions{display:flex;gap:16px;margin-bottom:30px}.skip{position:absolute;left:20px;top:-100px;background:var(--surface);padding:10px}.skip:focus{top:10px}.timeline{display:grid;gap:20px}.timeline p{margin:0}.timeline time{color:var(--gold)}[hidden]{display:none!important}
@media(max-width:720px){.hero{grid-template-columns:1fr;padding:48px 0;gap:40px}.hero h1{font-size:clamp(3.5rem,15vw,5.5rem)}.seal{aspect-ratio:1.4;max-width:390px;width:100%;justify-self:center;border-radius:160px 160px 5px 5px}.monogram{font-size:3.8rem}.sprig{width:65px;height:65px}.section-title,.reply{grid-template-columns:1fr;gap:25px}.details{grid-template-columns:1fr;gap:0}.form{padding:22px}.subnav{gap:20px}.bar{padding:16px 20px}.brand small{display:none}main{width:calc(100% - 40px)}section.content{padding:44px 0}.login{margin:48px auto 70px}.stats{gap:24px;flex-wrap:wrap}.countdown{gap:26px}.numbers{gap:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

#wedding-content{min-height:55vh}.request-error{margin-top:32px}.table-wrap caption{text-align:left;padding:16px}

.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.photo-card{min-width:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}.photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer}.photo-open img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.photo-caption{padding:12px 16px;margin:0;font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.photo-actions{padding:0 14px 14px;display:flex;flex-wrap:wrap;gap:8px}.photo-actions .btn{padding:9px 14px;font-size:.85rem}.photo-consent{display:flex;gap:12px;align-items:flex-start;font-weight:400;margin:0 0 20px}.photo-consent input{width:20px;min-height:20px;margin-top:4px;flex-shrink:0;accent-color:var(--accent)}.photo-state,.photo-progress{color:var(--muted);font-size:.9rem;overflow-wrap:anywhere}.photo-state{margin:24px 0}.photo-viewer{max-width:min(950px,94vw);max-height:94dvh;padding:20px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:14px}.photo-viewer::backdrop{background:#000c}.photo-viewer[open]{display:flex;flex-direction:column;gap:14px;align-items:flex-start}.photo-viewer img{max-width:100%;max-height:65dvh;object-fit:contain;align-self:center}.photo-viewer p{margin:0}.photo-viewer a{font-size:.85rem}.photo-viewer button{align-self:flex-end}#photo-more{margin-top:22px}#photo-filter{max-width:330px}#photo-upload-form{margin-bottom:28px}.btn:disabled{opacity:.6;cursor:wait}#photo-files{font-size:.9rem}#photo-viewer-close{flex-shrink:0}@media(max-width:720px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-actions{padding:0 10px 12px}.photo-actions .btn{width:100%;text-align:center}.photo-caption{padding:10px;font-size:.8rem}.photo-viewer{padding:14px}}@media(max-width:360px){.photo-grid{grid-template-columns:1fr}}

/* Wedding-only identity: warm ivory, forest green, champagne; no site-wide chrome. */
:root,:root[data-theme=light],:root[data-theme=dark]{color-scheme:light;--bg:#f8f5ee;--surface:#fffdf8;--text:#243a2d;--muted:#68796c;--line:#e0e4d9;--accent:#356b4c;--gold:#ad8d5d}
body{background:radial-gradient(ellipse at 10% 8%,#e6ecdc,transparent 40%),radial-gradient(ellipse at 95% 30%,#f2e9d8,transparent 45%),#f8f5ee;color:var(--text)}
.wedding-ornament{text-align:center;padding:22px 14px 0;color:#8a936f;font-size:.68rem;letter-spacing:.3em;font-weight:650}
main{width:min(1100px,calc(100% - 40px))}.hero{padding-top:54px}.hero h1,.login h1,h2,.admin-head h1{font-family:Georgia,'Times New Roman',serif}.hero h1{color:#294b38}.seal{background:linear-gradient(145deg,#edf2e8,#fbf5e9);border-color:#cfdacb;box-shadow:0 18px 70px #38594410}.seal:before{border-color:#ccd8c7}.form,.photo-card{box-shadow:0 12px 40px #384b2a0a}.btn{border-radius:12px}.btn:not(.secondary){color:#fff}.eyebrow{color:#63846a}.subnav{justify-content:center}.subnav a{color:#506a56}.date,.monogram,.timeline time{color:#a48455}
.wedding-picker{border:1.5px dashed #a7bba7;border-radius:22px;background:linear-gradient(145deg,#f4f9f1,#fffaf3);padding:28px 22px;text-align:center;margin:14px 0 20px;overflow:hidden}.picker-emblem{font:2.3rem Georgia,serif;color:#b2966d}.picker-title{font:1.65rem Georgia,serif;color:#2b4d36}.picker-copy{color:#617366;max-width:420px;margin:10px auto 18px}.picker-choose{border:0;border-radius:999px;padding:13px 25px;background:#386d4b;color:white;font-weight:700;cursor:pointer;box-shadow:0 6px 18px #28623a25}.picker-choose:hover{background:#285638}.picker-hint{font-size:.77rem;color:#718170;margin:14px 0 0}.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;overflow:hidden;clip-path:inset(50%)}.picker-preview{text-align:left;margin-top:20px}.picker-preview:empty{display:none}.preview-heading{font-size:.9rem;font-weight:700;margin:0 0 12px;color:#2f4e39}.preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.preview-card{min-width:0;position:relative;background:#fff;border:1px solid #e1e7de;border-radius:13px;overflow:hidden;box-shadow:0 5px 15px #31422a0a}.preview-card img{width:100%;height:112px;display:block;object-fit:cover;background:#dae3d7}.preview-unsupported:before{content:'Dateiformat';display:grid;place-items:center;height:112px;color:#7b846c}.preview-meta{padding:9px 10px;display:flex;flex-direction:column;gap:2px}.preview-name{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}.preview-meta small{font-size:.72rem;color:#768477}.preview-remove{position:absolute;right:7px;top:7px;border:0;border-radius:50%;background:#fffef3;color:#384f3c;width:27px;height:27px;line-height:1;cursor:pointer;font-size:20px;box-shadow:0 2px 8px #0003}#photo-viewer-download{display:none!important}
@media(max-width:720px){.wedding-ornament{padding-top:18px}.hero{padding-top:38px}.wedding-picker{padding:23px 15px}.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-card img{height:120px}}

/* v3: horizontal invitation-like monogram instead of arch-shaped memorial stone */
.hero{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:clamp(28px,5vw,72px)}
.seal{aspect-ratio:unset;width:min(100%,425px);min-height:315px;justify-self:center;border:1px solid #d7dfd1;border-radius:26px;padding:38px 28px;background:radial-gradient(circle at 75% 15%,#fff9ea 0,transparent 46%),linear-gradient(145deg,#eef3e9,#fdf9ef);box-shadow:0 14px 45px #39553e12;overflow:hidden}
.seal:before{inset:12px;border:1px solid #dae0d2;border-radius:18px;pointer-events:none}
.seal:after{content:'✦  ✦  ✦';position:absolute;bottom:27px;color:#b79c6d;letter-spacing:.9em;font-size:.65rem;transform:translateX(.4em)}
.seal .sprig{height:78px;width:78px;opacity:.65}
.seal .monogram{font-size:clamp(3.8rem,5.3vw,5.4rem);line-height:1.2;letter-spacing:.01em;color:#a48757}
.seal p{letter-spacing:.23em;font-size:.75rem;color:#516d59;max-width:260px;margin:10px 0 18px}
.skip{z-index:200;position:absolute;left:16px;top:-120px;border-radius:8px;background:#fffdf8;color:#294b38;padding:12px 16px}
.skip:focus,.skip:focus-visible{top:12px}
.preview-unsupported:before{content:'Keine Bildvorschau';font-size:.78rem}
@media(max-width:720px){.hero{grid-template-columns:1fr}.seal{aspect-ratio:unset;width:min(100%,420px);min-height:245px;border-radius:20px;padding:25px}.seal:before{border-radius:12px}.seal .sprig{width:55px;height:55px}.seal .monogram{font-size:3.6rem}.seal:after{bottom:19px}.seal p{font-size:.7rem}}


/* v4: replace square seal with crossed-line monogram inspired by provided sample */
.seal.seal-crest{aspect-ratio:1/1.04; width:min(100%,390px); min-height:340px; padding:34px 26px 22px; display:grid; place-items:center; align-content:center; background:linear-gradient(145deg,#f6f1e6,#fdfbf6); border:1px solid #d8ddd1; border-radius:28px; box-shadow:0 16px 46px rgba(48,71,55,.08)}
.seal.seal-crest:before,.seal.seal-crest:after{display:none}
.crest-mark{position:relative; width:min(100%,270px); aspect-ratio:1/1; display:grid; place-items:center; margin:0 auto}
.crest-line{position:absolute; width:1px; height:94%; background:#beb29a; opacity:.8; left:50%; top:3%; transform-origin:center}
.crest-line.a{transform:translateX(-50%) rotate(45deg)}
.crest-line.b{transform:translateX(-50%) rotate(-45deg)}
.crest-heart,.crest-left,.crest-right,.crest-amp{position:absolute; font-family:Georgia,'Times New Roman',serif; line-height:1; z-index:1}
.crest-heart{top:5%; left:50%; transform:translateX(-50%); font-size:2.2rem; color:#111; text-shadow:0 1px 0 rgba(255,255,255,.5)}
.crest-left,.crest-right,.crest-amp{color:#111; font-weight:600}
.crest-left{left:10%; top:36%; font-size:4.2rem}
.crest-right{right:10%; top:36%; font-size:4.2rem}
.crest-amp{left:50%; bottom:9%; transform:translateX(-50%); font-size:4rem}
.seal.seal-crest p{margin:16px 0 0; font-size:.73rem; letter-spacing:.24em; color:#7c725e; text-transform:uppercase; max-width:none}
.seal.seal-crest .sprig,.seal.seal-crest .monogram,.seal.seal-crest .crest-stars{display:none!important}
@media(max-width:720px){.seal.seal-crest{width:min(100%,330px); min-height:290px; padding:28px 18px 18px}.crest-mark{width:min(100%,220px)}.crest-heart{font-size:1.9rem}.crest-left,.crest-right{font-size:3.4rem; top:37%}.crest-amp{font-size:3.3rem; bottom:10%}.seal.seal-crest p{font-size:.66rem; letter-spacing:.18em}}

/* v5: calendar and wedding-party contacts */
.calendar-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 12px;align-items:center}
.calendar-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;border:1px solid #ced8c7;border-radius:999px;background:#fffdf8;color:#315d44;text-decoration:none;font-size:.82rem;font-weight:650;box-shadow:0 3px 9px #25392b0b}
.calendar-link:hover{background:#eef5eb}
.trustee-banner{padding:26px 28px;margin:14px 0 10px;background:linear-gradient(125deg,#f1f3e9,#fdf9f0);border:1px solid #d5ddcc;border-radius:18px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}
.trustee-banner h2{font-size:clamp(1.5rem,2.5vw,2.2rem);margin:4px 0 10px}.trustee-banner p{margin:0;color:#5c6f5d}.trustee-banner .btn{white-space:nowrap}
.diet-field textarea{min-height:100px}.diet-field small{display:block;margin-top:5px}
.trustee-page{max-width:930px;margin:50px auto 75px}.trustee-page h1{font:clamp(2.4rem,5vw,4rem)/1.1 Georgia,serif;margin:12px 0 18px;color:#294b38}.trustee-page .intro{color:#5c7061;max-width:650px}.trustee-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:34px 0}.trustee-card{padding:25px;border-radius:18px;border:1px solid #d8e0d5;background:#fffdf9}.trustee-card h2{font-size:1.7rem;margin:8px 0}.trustee-card p{color:#657767}.trustee-card .btn{margin-top:12px}.trustee-form{padding:24px;border:1px solid #d8e0d5;border-radius:18px;background:#fffdf9;margin:24px 0}.trustee-form[hidden]{display:none}.trustee-form textarea{min-height:140px}.trustee-form .field{margin-bottom:18px}
@media(max-width:720px){.trustee-banner,.trustee-options{grid-template-columns:1fr}.trustee-banner{padding:22px}.trustee-banner .btn{justify-self:start}.calendar-actions{gap:7px}}

/* Private witness inbox */
.witness-inbox-header{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.witness-messages{display:grid;gap:18px;margin:24px 0}.witness-message{border:1px solid #d5dfd2;border-radius:15px;padding:22px;background:#fcfaf4}.witness-message p{white-space:pre-wrap;overflow-wrap:anywhere}.witness-message small{color:#6c796d}.witness-message textarea{margin:8px 0 10px}.trustee-form[hidden]{display:none!important}

/* v6 - personal relationship timeline, on authenticated guest page */
.story-section{padding:75px 0 88px}.story-intro{text-align:center;max-width:660px;margin:0 auto 55px}.story-intro h2{font-size:clamp(2.6rem,5vw,4rem);color:#294b38}.story-intro>p:last-child{color:#6b796c;font-size:1.08rem}.story-timeline{position:relative;display:grid;gap:27px;max-width:920px;margin:auto}.story-timeline:before{content:'';position:absolute;top:28px;bottom:32px;left:50%;width:2px;background:linear-gradient(#c9b58f,#8eae91,#c9b58f);transform:translateX(-50%)}.story-entry{width:50%;position:relative;padding:0 42px 0 0;justify-self:start}.story-entry:nth-child(even){justify-self:end;padding:0 0 0 42px}.story-dot{display:grid;place-items:center;position:absolute;top:25px;right:-20px;height:40px;width:40px;border-radius:50%;border:2px solid #d2c29f;background:#faf7ef;color:#356b4c;font-size:.83rem;font-weight:700;z-index:2;box-shadow:0 3px 12px #30533a1a}.story-entry:nth-child(even) .story-dot{right:auto;left:-20px}.story-card{background:linear-gradient(145deg,#fffdfa,#f8f5ed);border:1px solid #dce3d7;border-radius:19px;box-shadow:0 12px 32px #2b4b3210;padding:28px 30px}.story-date{color:#a08459!important;font-size:.75rem;letter-spacing:.15em;text-transform:uppercase;font-weight:700;margin:0 0 9px}.story-card h3{font:normal clamp(1.65rem,2.5vw,2.3rem)/1.14 Georgia,serif;color:#294b38;margin:0 0 8px}.story-tag{font-style:italic;color:#82917d;margin:0 0 19px}.story-copy{font-size:.92rem;line-height:1.8;color:#455a48;margin:0 0 12px}.story-copy:last-child{margin-bottom:0}.story-baby-mark{margin-top:17px;padding:13px;border-radius:12px;background:#eef2e9;text-align:center;color:#55775d;font:italic 1rem Georgia,serif}.story-future .story-card{background:linear-gradient(145deg,#eff2e8,#fff9ee);border-color:#b6cbb0}.story-future .story-dot{background:#356b4c;color:white;border-color:#356b4c}@media(max-width:720px){.story-section{padding:45px 0 55px}.story-intro{margin-bottom:33px}.story-timeline{gap:20px}.story-timeline:before{left:18px;transform:none}.story-entry,.story-entry:nth-child(even){width:100%;padding:0 0 0 50px;justify-self:stretch}.story-dot,.story-entry:nth-child(even) .story-dot{left:0;right:auto;width:36px;height:36px;top:20px}.story-card{padding:22px 20px;border-radius:16px}.story-card h3{font-size:1.75rem}.story-copy{font-size:.91rem}}

/* Future schedule and seating: honest planning placeholders, no fabricated dates */
.planning-note{display:flex;align-items:flex-start;gap:18px;padding:26px;border:1px solid #dce3d7;border-radius:18px;background:linear-gradient(120deg,#f1f4eb,#fcfaf3);color:#294b38;margin:22px 0 10px}.planning-note strong{display:block;font-family:Georgia,serif;font-size:1.3rem;font-weight:400}.planning-note p{margin:7px 0 0;color:#647768}.planning-symbol{font-size:1.9rem;color:#af986d;line-height:1.2}@media(max-width:600px){.planning-note{padding:18px;gap:12px}.planning-note strong{font-size:1.18rem}}

/* Deferred wedding features: music requests, gallery controls */
.music-section .form{max-width:680px;margin:auto}.music-section .form button{margin-top:4px}.music-section #music-status{color:#426b50}.gallery-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}.gallery-tools select{width:auto;max-width:230px}.gallery-hint{color:#6b796c;font-size:.8rem}.photo-card{position:relative}.gallery-fav{position:absolute;right:12px;top:12px;z-index:2;border:1px solid #cbdaca;background:#fffdf6;border-radius:50%;min-width:38px;min-height:38px;color:#ad765b;cursor:pointer;font-size:1.4rem}.photo-card[hidden]{display:none!important}#admin-music .table-wrap{margin-top:20px}#admin-music .btn.secondary{color:#315d44}

/* planning administration */
.planning-form{margin:16px 0 24px;max-width:740px}.planning-items{display:grid;gap:10px;margin:16px 0 28px}.planning-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.planning-item .btn{white-space:nowrap;padding:7px 14px}.planning-section .planning-note{max-width:850px}


/* Mobile accessibility / overflow correction, 2026-10-19.
   Fixes the long German login heading on small Android and iOS screens. */
html,body{max-width:100%}
#wedding-content,.login,.hero,.story-section,.section-title,.reply,.story-card,.form{min-width:0}
.login h1{max-width:100%;overflow-wrap:break-word;hyphens:auto;text-wrap:balance}
.login .form,.login input,.login button{max-width:100%}
.story-card h3,.section-title h2,.trustee-banner h2{overflow-wrap:break-word;hyphens:auto}
@media(max-width:600px){
  main{width:calc(100% - 32px)}
  .wedding-ornament{padding:18px 8px 0;font-size:.6rem;letter-spacing:.18em}
  .login{width:100%;max-width:100%;margin:32px auto 64px}
  .login h1{font-size:clamp(1.82rem,7.6vw,2.45rem);line-height:1.14;letter-spacing:-.028em;overflow-wrap:anywhere;hyphens:auto;margin-bottom:18px}
  .login p:not(.eyebrow){font-size:.96rem;line-height:1.6}
  .login .form{margin-top:24px;padding:clamp(16px,5vw,22px)}
  .login .lock{font-size:1.75rem;margin-bottom:14px}
  .login .eyebrow{margin-bottom:18px;letter-spacing:.16em}
  .login .form .btn{white-space:normal;min-height:48px;padding:12px}
  .hero h1{font-size:clamp(2.75rem,11.5vw,4.3rem);overflow-wrap:anywhere}
  .section-title h2,.admin-head h1{overflow-wrap:break-word;hyphens:auto}
  .form input,.form textarea,.form select{min-width:0}
  .planning-item{flex-wrap:wrap}
  .planning-item .btn{white-space:normal}
  .footer,.subnav{min-width:0}
}
@media(max-width:360px){
  .login h1{font-size:clamp(1.68rem,7.5vw,1.96rem)}
  .story-card{padding:18px 15px}
  .preview-grid{gap:9px}
}

/* Controls for publishing the wedding schedule and seating finder */
.publication-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:28px 0 12px}
.publication-card{padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--surface);min-width:0}
.publication-card .eyebrow{margin-bottom:10px}.publication-card h3{font:1.55rem Georgia,serif;margin:0 0 14px}
.publication-card p[role=status]{color:var(--muted);min-height:48px;margin:0 0 14px}
.publication-card .btn{width:100%}.publication-card .btn:disabled{opacity:.52;cursor:not-allowed}
#publication-preview-note{margin:6px 0 38px}
.published-timeline{display:grid;gap:14px}.published-event{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line)}
.published-event time{color:var(--gold);font-weight:650;white-space:nowrap}.published-event strong{font-size:1.06rem;color:var(--text)}.published-event p{color:var(--muted);margin:7px 0 0}
.table-lookup-form{max-width:600px;margin:22px 0 10px}.table-lookup-form .lookup-result{font-size:1.12rem;color:var(--accent);margin:18px 0}.table-lookup-form .privacy{margin:16px 0 0}
@media(max-width:720px){.publication-grid{grid-template-columns:1fr}.published-event{grid-template-columns:90px minmax(0,1fr);gap:12px}}


/* Authenticated wedding login screens: consistent full-height layout */
/* Guest and admin login share one full-viewport layout. The footer stays
   at the bottom even when the login card has a different content height. */
body:has(#wedding-content > .login){
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
}
body:has(#wedding-content > .login) > main#inhalt{
  display:flex;
  flex:1 0 auto;
  flex-direction:column;
}
body:has(#wedding-content > .login) #wedding-content{
  display:flex;
  flex:1 0 auto;
  flex-direction:column;
  min-height:0;
}
body:has(#wedding-content > .login) #wedding-content > .login{
  flex-shrink:0;
  width:min(500px,100%);
  margin:auto;
  padding-block:clamp(24px,4vh,44px);
}
body:has(#wedding-content > .login) #wedding-content > .footer{
  flex-shrink:0;
  width:100%;
  margin-top:auto;
}
@media(max-width:600px){
  body:has(#wedding-content > .login) #wedding-content > .login{
    padding-block:24px;
  }
}


/* RSVP deadline and visual room layout */
.rsvp-deadline{background:#f5f1e7;border:1px solid #d8d8c9;border-left:4px solid #987d4a;border-radius:13px;padding:20px 24px;margin:22px 0 26px;max-width:820px}
.rsvp-deadline .eyebrow{margin:0 0 9px;font-size:.69rem}
.rsvp-deadline strong{display:block;font:clamp(1.3rem,3vw,1.7rem)/1.3 Georgia,serif;color:#294b38}
.rsvp-deadline p:last-child{margin:11px 0 0;color:#58695b}
.rsvp-admin{margin:22px 0 28px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.rsvp-admin .eyebrow{margin:0 0 10px}.rsvp-admin h3{font:1.45rem Georgia,serif;margin:0 0 10px}
.rsvp-admin p{color:var(--muted)}.rsvp-admin-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:20px}
.rsvp-admin-controls label{width:100%;font-weight:650;font-size:.9rem}.rsvp-admin-controls input{min-width:190px;min-height:46px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:9px 12px}
.rsvp-admin-controls button{min-height:46px}.rsvp-admin #admin-rsvp-state{font-size:.87rem;margin-bottom:0}
.room-planner{padding:22px;border-radius:18px;border:1px solid var(--line);background:var(--surface);margin:20px 0 44px}
.room-planner>.eyebrow{margin:0 0 8px}.room-planner>p:not(.eyebrow){margin:0 0 18px;color:var(--muted)}
.room-stage{position:relative;width:100%;height:clamp(320px,40vw,500px);border:2px solid #bdcdbb;border-radius:15px;overflow:hidden;background:linear-gradient(90deg,#e2e9dd88 1px,transparent 1px),linear-gradient(#e2e9dd88 1px,transparent 1px),#f9fbf7;background-size:32px 32px;touch-action:pan-y}
.room-stage-hint{position:absolute;top:12px;left:12px;border:1px dashed #b9c5b6;background:#fffdf9ed;color:#5e725e;padding:8px 12px;border-radius:8px;font-size:.78rem;pointer-events:none}
.room-empty{position:absolute;inset:0;display:grid;place-items:center;padding:50px;color:#647568;text-align:center}
.room-plan-table{position:absolute;transform:translate(-50%,-50%);width:clamp(65px,12vw,95px);height:clamp(65px,12vw,95px);border-radius:50%;border:2px solid #59886b;background:#e7f1e7;color:#224a32;box-shadow:0 3px 9px #0d322419;cursor:grab;touch-action:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.15;text-align:center;padding:5px;user-select:none;-webkit-user-select:none;z-index:1}
.room-plan-table strong{font:650 .82rem system-ui,sans-serif;max-width:100%;overflow-wrap:anywhere}
.room-plan-table small{font-size:.68rem}.room-plan-table--rect{border-radius:13px;width:clamp(78px,15vw,115px);height:clamp(58px,10vw,77px)}
.room-plan-table.is-selected{outline:3px solid #b58b50;outline-offset:3px;z-index:2;background:#fff4da}
.room-plan-table.room-overbooked{border-color:#b65a42;background:#fff1eb}
.room-plan-table:active{cursor:grabbing}
.room-editor{margin-top:20px;padding:20px;border-radius:13px;border:1px solid var(--line);background:#f8f8f3}
.room-editor>strong{font:1.25rem Georgia,serif}.room-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:14px;max-width:530px}
.room-fields .field{margin:0}.room-fields select,.room-fields input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#293e31;padding:8px}
.room-editor .privacy{margin:14px 0}.room-editor #room-editor-state{min-height:22px;color:var(--muted);font-size:.87rem}
@media(max-width:600px){.rsvp-deadline,.rsvp-admin,.room-planner{padding:17px}.room-stage{height:390px}.room-plan-table{width:65px;height:65px}.room-plan-table--rect{width:76px;height:58px}.room-plan-table strong{font-size:.71rem}.room-plan-table small{font-size:.6rem}.room-fields{grid-template-columns:1fr}}

/* Printable wedding photo QR link inside the administrative photo gallery */
.photo-qr-card{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;align-items:center;border:1px solid #d5e0cf;background:#f7faf3;border-radius:17px;padding:24px;margin:22px 0 30px}
.photo-qr-card .eyebrow{margin:0 0 10px}.photo-qr-card h3{font:clamp(1.35rem,3vw,1.7rem)/1.25 Georgia,serif;color:#2c4b35;margin:0 0 12px}
.photo-qr-card p:not(.eyebrow){color:#596f5d;margin:0 0 16px}
.photo-qr-card img{display:block;max-width:100%;height:auto;aspect-ratio:1;background:#fff;padding:9px;border-radius:10px;border:1px solid #dbe5d5;justify-self:center}
.photo-qr-actions{display:flex;flex-wrap:wrap;gap:10px}.photo-qr-actions .btn{font-size:.88rem}
@media(max-width:600px){.photo-qr-card{grid-template-columns:1fr;padding:19px}.photo-qr-card img{grid-row:1;width:190px}.photo-qr-actions{display:grid}.photo-qr-actions .btn{text-align:center}}

/* RSVP-Layout: Frist direkt unter dem Intro links, Formular rechts.
   Gilt ausschliesslich fuer die Rueckmeldesektion und nicht fuer andere Seiten. */
#rueckmeldung.reply{
  grid-template-columns:minmax(0,0.86fr) minmax(0,1.14fr);
  column-gap:clamp(28px,5vw,72px);
  align-items:start;
}
#rueckmeldung.reply > aside,
#rueckmeldung.reply > .form{
  min-width:0;
}
#rueckmeldung.reply > aside .rsvp-deadline{
  width:100%;
  max-width:none;
  margin:26px 0 0;
  padding:22px 24px;
  border-radius:14px;
  background:linear-gradient(145deg,#faf7f0,#f2eee5);
  border:1px solid #d9d1bf;
  border-left:3px solid #a78c54;
  box-shadow:0 6px 28px rgba(62,72,49,.035);
}
#rueckmeldung.reply > aside .rsvp-deadline .eyebrow{
  margin:0 0 10px;
  color:#697b6d;
  font-size:.68rem;
  letter-spacing:.18em;
}
#rueckmeldung.reply > aside .rsvp-deadline strong{
  display:block;
  font:normal clamp(1.3rem,2.4vw,1.65rem)/1.28 Georgia,'Times New Roman',serif;
  color:#284d3a;
  overflow-wrap:break-word;
  hyphens:auto;
}
#rueckmeldung.reply > aside .rsvp-deadline p:last-child{
  margin:12px 0 0;
  color:#647568;
  line-height:1.55;
  font-size:.91rem;
}
@media(max-width:720px){
  #rueckmeldung.reply{grid-template-columns:minmax(0,1fr);row-gap:26px}
  #rueckmeldung.reply > aside .rsvp-deadline{
    margin-top:22px;
    padding:18px 19px;
  }
}

/* RSVP countdown layout: deploy marker for Cloudflare GitHub integration. */

/* Saalplan V2 – flexibel anpassbarer Raum mit privat druckbarer Tischliste. */
.room-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}
.room-toolbar label{width:auto;margin:0;font-size:.88rem;font-weight:650}
.room-toolbar select{width:auto;max-width:100%;min-height:45px;border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:#fff;color:#274a36}
.room-toolbar .btn{padding:11px 16px;min-height:45px;font-size:.85rem}
.room-save-toolbar{margin-top:16px}
.room-save-toolbar span{font-size:.83rem;color:var(--muted);flex:1;min-width:180px}
.room-summary{font-weight:650;font-size:.9rem;color:#42674a;margin:14px 0}
.room-object{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;min-width:84px;max-width:148px;min-height:43px;border:2px dashed #a58f69;border-radius:11px;padding:9px 11px;background:#faf2df;color:#695534;font-size:.76rem;line-height:1.2;text-align:center;font-weight:700;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;z-index:1;overflow-wrap:anywhere}
.room-object--dancefloor{min-width:126px;min-height:69px;border-style:solid;background:#f8eacf}
.room-object--entrance{border-style:dashed;background:#f0f3e8;color:#3f6549}
.room-object--buffet{min-width:112px}
.room-object--stage{background:#f3eafa}
.room-object--bar{background:#e9f1f2}
.room-object.is-selected{outline:3px solid #b58b50;outline-offset:3px;z-index:3}
.room-object:active{cursor:grabbing}
.room-elements-editor{margin-top:18px;padding:17px;border:1px solid var(--line);border-radius:12px;background:#f8f8f3}
.room-elements-editor .room-fields{margin-top:0;align-items:end}
.room-elements-editor .room-fields .btn{width:100%}
.planning-item-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.planning-item-actions .btn{padding:8px 13px;font-size:.83rem}
.planning-empty{font-size:.9rem;color:var(--muted);margin:8px 0 20px}
.room-plan-table:focus-visible,.room-object:focus-visible{outline:3px solid #bd9f60;outline-offset:4px}
#room-print-sheet{display:none}
@media(max-width:700px){
 .room-toolbar{align-items:stretch}
 .room-toolbar label{width:100%}
 .room-toolbar select{flex:1;min-width:0}
 .room-toolbar .btn{flex-grow:1}
 .room-object{min-width:70px;max-width:108px;padding:6px;font-size:.66rem}
 .room-object--dancefloor{min-width:92px;min-height:62px}
 .room-object--buffet{min-width:84px}
 .planning-item{align-items:flex-start}
 .planning-item-actions{justify-content:flex-start}
}
@media print{
 @page{size:A4 landscape;margin:12mm}
 body{background:#fff!important;color:#111!important}
 body > :not(#room-print-sheet){display:none!important}
 #room-print-sheet{display:block!important;position:static!important;width:100%;font:12px/1.4 system-ui,Arial,sans-serif;background:#fff;color:#172b22}
 #room-print-sheet h1{font:26px/1.25 Georgia,serif;margin:0 0 3mm;color:#214636}
 #room-print-sheet>p{margin:0 0 5mm;color:#5d6c61}
 #room-print-sheet h2{font:18px Georgia,serif;margin:5mm 0 3mm}
 #room-print-sheet .room-print-stage{position:relative!important;width:100%!important;height:130mm!important;max-height:130mm!important;border:1px solid #92aa9b!important;background:#fff!important;box-shadow:none!important;break-inside:avoid}
 #room-print-sheet .room-plan-table,#room-print-sheet .room-object{box-shadow:none!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #room-print-sheet .room-plan-table{width:23mm;height:23mm}
 #room-print-sheet .room-plan-table--rect{width:29mm;height:20mm}
 #room-print-sheet .room-plan-table small{font-size:9px}
 #room-print-sheet .room-plan-table strong{font-size:10px}
 #room-print-sheet .room-print-tables{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm}
 #room-print-sheet .room-print-table{break-inside:avoid;border:1px solid #d5dfd7;padding:2mm 3mm}
 #room-print-sheet .room-print-table h3{margin:0 0 1mm;font:600 12px system-ui,Arial}
 #room-print-sheet .room-print-table p{margin:0;line-height:1.35;font-size:11px;overflow-wrap:anywhere}
}


/* Guest management dashboard / 2026-10
   Layout only: all content continues to come from the existing admin-only RSVP endpoint. */
.admin-head:has(.guest-kpis){padding-bottom:16px}
.stats.guest-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:30px 0 25px;
}
.guest-kpi{
  min-width:0;
  border:1px solid #d7dfd2;
  border-radius:15px;
  padding:19px 21px;
  background:linear-gradient(145deg,#fcfdf9,#f3f7f0);
  box-shadow:0 5px 26px #344e3309;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.guest-kpis .guest-kpi strong{
  font:normal clamp(2rem,3vw,2.45rem)/1.2 Georgia,'Times New Roman',serif;
  color:#294e38;
}
.guest-kpi span{color:#315842;font-weight:700;font-size:.95rem}
.guest-kpi small{color:#697b6c;font-size:.76rem;line-height:1.45}
.guest-overview{
  padding:27px;
  margin:12px 0 22px;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--surface);
  box-shadow:0 8px 35px #344e330a;
}
.guest-overview-heading{margin:0 0 22px}
.guest-overview-heading h2{font:normal clamp(1.6rem,3vw,2.1rem)/1.25 Georgia,serif;color:#294e38;margin:0 0 9px}
.guest-overview-heading p{margin:0;color:var(--muted);max-width:760px}
.guest-filter-grid{display:grid;grid-template-columns:minmax(180px,1.65fr) repeat(3,minmax(130px,1fr));gap:12px;align-items:end}
.guest-filter-grid .field{margin:0;min-width:0}
.guest-filter-grid label{font-size:.8rem;margin:0 0 7px;color:#3e5945}
.guest-filter-grid input,.guest-filter-grid select{
  font:inherit;
  min-height:47px;
  width:100%;
  min-width:0;
  border:1px solid #cbd7c9;
  background:#fffdfa;
  border-radius:9px;
  color:#284533;
  padding:9px 12px;
}
.guest-filter-grid input:focus-visible,.guest-filter-grid select:focus-visible{outline:3px solid #94b69a;outline-offset:1px}
.guest-filter-actions{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:17px}
.guest-filter-result{font-size:.85rem;color:#566e5c;margin:0}
.guest-reset{font-size:.83rem;padding:8px 15px}
.guest-table-wrap{border-color:#d7dfd2;border-radius:14px;overflow-x:auto}
.guest-table-wrap table{font-size:.86rem;min-width:740px}
.guest-table-wrap caption{font-size:.84rem;color:#617666;background:#f4f7f2;font-weight:650}
.guest-table-wrap th{background:#f3f7f1;color:#365742;font-size:.78rem;white-space:nowrap}
.guest-table-wrap td{background:#fffdfa;color:#3e5444}
.guest-table-wrap tr:nth-child(even) td{background:#fbfaf6}
.guest-status{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;font-size:.78rem;font-weight:700;border-radius:999px;white-space:nowrap}
.guest-status--yes{background:#e1f2e4;color:#27603d}
.guest-status--no{background:#f4ece1;color:#8a5938}
.guest-filter-empty{padding:20px 22px;margin:12px 0 20px;border:1px dashed #cbd8c9;border-radius:12px;color:#617665;background:#f9faf6}
@media(max-width:980px){
  .guest-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guest-search-field{grid-column:span 2}
}
@media(max-width:720px){
  .stats.guest-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:25px 0 18px}
  .guest-kpi{padding:16px 13px}
  .guest-kpis .guest-kpi strong{font-size:2rem}
  .guest-kpi span{font-size:.86rem}
  .guest-kpi small{font-size:.69rem}
  .guest-overview{padding:17px 15px;margin:10px 0 20px}
  .guest-filter-grid{grid-template-columns:1fr;gap:12px}
  .guest-search-field{grid-column:auto}
  .guest-filter-actions{align-items:flex-start}
  .guest-table-wrap{border:none;border-radius:0;overflow:visible}
  .guest-table-wrap table,.guest-table-wrap tbody,.guest-table-wrap tr,.guest-table-wrap td{display:block;width:100%;min-width:0}
  .guest-table-wrap thead{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .guest-table-wrap caption{display:block;background:none;text-align:left;padding:5px 0 12px}
  .guest-table-wrap tbody{display:grid;gap:13px}
  .guest-table-wrap tbody tr{border:1px solid #d8e1d5;border-radius:13px;overflow:hidden;background:#fffdfa;box-shadow:0 3px 15px #1c45300a}
  .guest-table-wrap tbody td{
    display:grid;
    grid-template-columns:minmax(88px,35%) minmax(0,1fr);
    align-items:start;
    gap:12px;
    max-width:none;
    padding:10px 13px;
    border-bottom:1px solid #e9eee6;
    font-size:.83rem;
    line-height:1.5;
    background:transparent!important;
    overflow-wrap:anywhere;
  }
  .guest-table-wrap tbody td:last-child{border-bottom:0}
  .guest-table-wrap tbody td:first-child{font-weight:700;color:#294e38;font-size:.92rem;background:#f5f8f1!important}
  .guest-table-wrap tbody td::before{content:attr(data-label);font-size:.72rem;color:#667d6b;font-weight:650}
}
@media(max-width:390px){
  .guest-table-wrap tbody td{grid-template-columns:minmax(70px,33%) minmax(0,1fr);gap:8px;padding:9px 10px}
  .guest-kpi{padding:13px 11px}
}


/* Wedding mobile and tablet usability pass, October 2026.
   Restrict sticky navigation to guests; the admin and witness portals
   keep their current layouts and access rights. */
@media(max-width:720px){
  #wedding-content .subnav{
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    align-items:center;
    gap:8px;
    max-width:100%;
    margin-inline:-16px;
    padding:11px 16px 12px;
    border:1px solid #e2e6dc;
    border-left:0;
    border-right:0;
    background:#f8f5eef5;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scroll-padding-inline:16px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#b8c9b8 transparent;
  }
  #wedding-content .subnav a{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:9px 15px;
    border:1px solid #d9e2d5;
    border-radius:999px;
    background:#fffdf9;
    color:#47614b;
    font-size:.84rem;
    line-height:1.3;
    font-weight:650;
    white-space:nowrap;
    scroll-snap-align:center;
    transition:background-color .15s ease,color .15s ease;
  }
  #wedding-content .subnav a.is-current,
  #wedding-content .subnav a[aria-current="location"]{
    background:#356b4c;
    color:#fff;
    border-color:#356b4c;
  }
  #wedding-content .subnav a:focus-visible{outline:3px solid #b49a65;outline-offset:-2px}
  #wedding-content section.content[id],
  #wedding-content .story-section[id],
  #wedding-content #photo-upload-form{
    scroll-margin-top:90px;
  }
  .hero{padding-bottom:40px}
  .hero .countdown{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    width:min(100%,385px);
    margin-top:27px;
  }
  .hero .countdown > div{
    min-width:0;
    padding:13px 7px;
    border:1px solid #e0e7d9;
    border-radius:11px;
    background:#f9faf5;
    text-align:center;
  }
  .hero .countdown strong{
    font-size:clamp(1.6rem,6vw,2.3rem);
    line-height:1.3;
  }
  .hero .countdown small{display:block;font-size:.69rem}
  .admin-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }
  .admin-actions .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:48px;
    flex:1 1 180px;
    white-space:normal;
    padding:11px 15px;
  }
  .rsvp-admin-controls input,
  .rsvp-admin-controls button{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .gallery-tools select{
    max-width:100%;
    min-width:0;
    flex:1 1 160px;
  }
  .gallery-tools label{flex:0 0 auto}
  .photo-viewer{width:min(96vw,950px);max-height:95dvh;padding:13px;overflow:auto}
  .photo-viewer img{max-height:57dvh}
  .photo-viewer button,.photo-viewer .btn{min-height:44px}
  .picker-remove{
    min-width:42px;
    min-height:42px;
    right:5px;
    top:5px;
    display:grid;
    place-items:center;
  }
  .gallery-fav{min-width:44px;min-height:44px}
  .choices label{min-height:50px}
  .planning-form button,.room-save-toolbar .btn,
  #room-save,.publication-card .btn{min-height:46px}
  .room-fields,.room-planner,.publication-card,
  .rsvp-admin,.photo-qr-card{min-width:0}
  /* Music table becomes legible cards instead of requiring horizontal scrolling. */
  #admin-music .table-wrap{border:none;border-radius:0;overflow:visible}
  #admin-music .table-wrap table,
  #admin-music .table-wrap tbody,
  #admin-music .table-wrap tr,
  #admin-music .table-wrap td{
    display:block;
    width:100%;
    min-width:0;
    max-width:none;
  }
  #admin-music .table-wrap thead{
    position:absolute!important;
    width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }
  #admin-music .table-wrap tbody{display:grid;gap:12px;margin-top:14px}
  #admin-music .table-wrap tr{
    border:1px solid #d7e0d4;
    border-radius:14px;
    overflow:hidden;
    background:#fffdf9;
    box-shadow:0 4px 18px #34553b0d;
  }
  #admin-music .table-wrap td{
    display:grid;
    grid-template-columns:minmax(76px,31%) minmax(0,1fr);
    gap:11px;
    align-items:start;
    padding:11px 13px;
    background:transparent;
    color:#374f3d;
    font-size:.87rem;
    border-bottom:1px solid #e8eee7;
    overflow-wrap:anywhere;
  }
  #admin-music .table-wrap td:last-child{border-bottom:0}
  #admin-music .table-wrap td::before{
    content:attr(data-label);
    color:#667f6a;
    font-size:.77rem;
    font-weight:650;
  }
  #admin-music .table-wrap td .btn{width:max-content;min-height:44px;max-width:100%}
}
@media(min-width:601px) and (max-width:720px){
  #wedding-content .subnav{margin-inline:-20px}
}
@media(max-width:390px){
  .form{padding:17px}
  .numbers{gap:9px}
  .numbers .field{min-width:0}
  .numbers input{min-width:0;width:100%}
  #wedding-content .subnav{padding:9px 12px}
  #wedding-content .subnav a{font-size:.8rem;padding:9px 12px}
}
@media(prefers-reduced-motion:reduce){
  #wedding-content .subnav a{transition:none}
}


/* Witness portal mobile polish 2026-10: presentation only. */
@media(max-width:600px){
  .trustee-page{min-width:0;width:100%;margin:28px auto 58px}
  .trustee-card,.trustee-form{min-width:0;max-width:100%;padding:19px 17px}
  .trustee-page h1{font-size:clamp(2rem,9vw,3rem);overflow-wrap:break-word;hyphens:auto}
  .trustee-page h2{overflow-wrap:anywhere}
  .trustee-page input,.trustee-page select,.trustee-page textarea{min-width:0;width:100%}
  .trustee-page .btn{min-height:46px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .trustee-page .trustee-options{gap:12px;margin:24px 0}
  .trustee-page .witness-inbox-header{align-items:flex-start}
  .trustee-page .witness-inbox-header .btn{min-width:135px}
  .trustee-page .witness-message{min-width:0;overflow-wrap:anywhere}
  .trustee-page .trustee-form form .btn{width:100%;text-align:center}
}


/* Witness & guest private chat design 2026-10 */
.witness-chat-section,.witness-settings,.witness-chat-transfer{
  border:1px solid #dce4d8;
  border-radius:16px;
  padding:20px;
  background:#fcfdf9;
  margin:20px 0;
  min-width:0;
}
.witness-chat-section h3,.witness-settings h3,.witness-conversation-detail h4{
  margin:0 0 10px;
  color:#2e5039;
  font:normal clamp(1.3rem,2.8vw,1.6rem)/1.25 Georgia,serif;
}
.witness-section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.witness-section-head .eyebrow{margin:0 0 6px}
.witness-section-head .btn{font-size:.82rem;padding:9px 15px;min-height:43px}
.witness-settings .field{margin:16px 0}
.witness-settings .btn{min-height:44px}
.witness-settings #witness-email-current{color:#526a59;overflow-wrap:anywhere}
.witness-settings form{max-width:540px}
.witness-chat-history{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:140px;
  max-height:min(470px,54vh);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:16px;
  background:linear-gradient(140deg,#f1f5ed,#fbf9f4);
  border:1px solid #dce3d7;
  border-radius:13px;
}
.witness-bubble{
  max-width:min(84%,490px);
  min-width:0;
  border-radius:15px 15px 15px 4px;
  background:#fffefa;
  padding:12px 15px;
  border:1px solid #dce6d7;
  box-shadow:0 3px 10px #294f3109;
  align-self:flex-start;
  overflow-wrap:anywhere;
}
.witness-bubble--mine{
  align-self:flex-end;
  background:#dff0e1;
  border-color:#c4dfc9;
  border-radius:15px 15px 4px 15px;
}
.witness-bubble p{
  margin:0 0 7px;
  white-space:pre-wrap;
  color:#274530;
  font-size:.93rem;
  line-height:1.55;
}
.witness-bubble small{color:#647868;display:block;font-size:.68rem}
.witness-chat-empty{align-self:center;text-align:center;color:#7c907e;font-size:.86rem;margin:auto}
.witness-chat-section form,.witness-guest-chat form{margin-top:17px}
.witness-chat-section textarea,.witness-guest-chat textarea{width:100%;max-width:100%;min-height:85px;resize:vertical}
.witness-chat-section .btn,.witness-guest-chat .btn{min-height:44px}
.witness-conversation-layout{display:grid;grid-template-columns:minmax(155px,.85fr) minmax(0,2fr);gap:17px;align-items:start}
.witness-thread-list{display:flex;flex-direction:column;gap:9px;min-width:0;max-height:510px;overflow-y:auto}
.witness-thread-link{
  text-align:left;
  background:#fffdf8;
  border:1px solid #d9e2d5;
  color:#365b40;
  border-radius:11px;
  padding:12px 13px;
  cursor:pointer;
  display:grid;
  gap:4px;
  width:100%;
  min-height:50px;
  overflow-wrap:anywhere;
}
.witness-thread-link strong{font-weight:700;font-size:.91rem}
.witness-thread-link small{color:#788779;font-size:.7rem}
.witness-thread-link.is-current,
.witness-thread-link:focus-visible{
  border-color:#4a805c;
  outline:2px solid #94b59a;
  background:#edf5e9;
}
.witness-conversation-detail{min-width:0}
.witness-conversation-detail h4{font-size:1.3rem;margin:0 0 5px}
.witness-conversation-detail .privacy{margin:0 0 15px}
.witness-chat-switcher,.witness-chat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:15px 0}
.witness-chat-switcher .btn,.witness-chat-actions .btn{font-size:.88rem}
.witness-chat-switcher .is-current{border-color:#356b4c;background:#e6f2e6;color:#285739}
.witness-chat-transfer{background:#f8faf5;padding:17px 20px}
.witness-chat-transfer details{margin:14px 0 0}
.witness-chat-transfer summary,.witness-legacy summary{
  color:#365c43;
  font-weight:700;
  cursor:pointer;
  padding:7px 0;
}
.witness-chat-transfer input{width:100%;font-family:ui-monospace,Consolas,monospace;font-size:.85rem}
.witness-chat-transfer .btn{margin:8px 0}
.witness-legacy{border-top:1px solid #dbe4d9;margin-top:25px;padding:16px 0}
.witness-legacy .witness-message{background:#fdfaf5}
#guest-chat-state,#witness-state,#send-state{
  color:#365f43;
  overflow-wrap:anywhere;
  font-size:.9rem;
  line-height:1.55;
}
.witness-settings button:disabled,.witness-chat-section button:disabled,.witness-guest-chat button:disabled{opacity:.58;cursor:wait}
@media(max-width:750px){
  .witness-conversation-layout{grid-template-columns:minmax(0,1fr)}
  .witness-thread-list{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding-bottom:7px;max-height:none;scroll-snap-type:x proximity}
  .witness-thread-link{flex:0 0 160px;max-width:200px;scroll-snap-align:start}
}
@media(max-width:600px){
  .witness-chat-section,.witness-settings{padding:16px;margin:15px 0}
  .witness-chat-transfer{padding:14px}
  .witness-chat-history{padding:11px;max-height:420px;min-height:120px}
  .witness-bubble{max-width:94%;padding:10px 12px}
  .witness-bubble p{font-size:.88rem}
  .witness-section-head{align-items:flex-start}
  .witness-chat-actions .btn{flex:1 1 140px}
  .witness-guest-chat .btn{white-space:normal}
}

/* Optional, verified guest e-mail notifications beneath the private chat. */
.guest-email-settings{background:linear-gradient(145deg,#f8fbf5,#fffdf8);margin:21px 0}
.guest-email-settings .privacy{max-width:680px}
.guest-email-settings #guest-email-current{font-size:.87rem;color:#365d45;overflow-wrap:anywhere;margin:10px 0}
.guest-email-settings #guest-email-state{font-size:.88rem;color:#365d45;overflow-wrap:anywhere;line-height:1.6;margin:13px 0 0}
.guest-email-settings #guest-email-form,.guest-email-settings #guest-email-confirm{margin:16px 0}
.guest-email-settings #guest-email-disable{margin-top:7px}
@media(max-width:600px){.guest-email-settings{padding:16px}.guest-email-settings .btn{width:100%;text-align:center}}

/* After-Wedding-Party RSVP option: accessible, mobile-friendly, wedding visual identity */
.after-party-choice{
  border:1px solid #d7e2d3;border-radius:15px;
  background:linear-gradient(135deg,#f1f7ee,#fffdf8);
  padding:17px 19px;margin:4px 0 25px;min-width:0;
}
.after-party-toggle{
  display:flex;gap:14px;align-items:flex-start;cursor:pointer;
  margin:0;font-weight:400;min-width:0;
}
.after-party-toggle input[type=checkbox]{
  flex:0 0 22px;width:22px;height:22px;min-height:22px;
  margin:3px 0 0;accent-color:#356b4c;
}
.after-party-toggle span{display:block;min-width:0}
.after-party-toggle strong{display:block;color:#315d43;font-size:.98rem;font-weight:700;line-height:1.35}
.after-party-toggle small{display:block;color:#647969;font-size:.81rem;font-weight:400;line-height:1.65;margin-top:7px}
.after-party-choice:has(input:checked){border-color:#6ba77b;background:#eaf4e8}
@media(max-width:600px){.after-party-choice{padding:15px 14px}.after-party-toggle{gap:12px}}

/* Grouped RSVP KPIs and manual guest management */
.stats.guest-kpis{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;margin:25px 0 22px}
.guest-kpi-group{min-width:0}
.guest-kpi-heading{display:flex;align-items:baseline;gap:10px 18px;flex-wrap:wrap;margin-bottom:12px}
.guest-kpi-heading h2{font:normal clamp(1.2rem,2.4vw,1.5rem)/1.35 Georgia,serif;color:#2e543e;margin:0}
.guest-kpi-heading p{margin:0;color:#758577;font-size:.81rem;line-height:1.5}
.guest-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.guest-kpi-group--party .guest-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.guest-rsvp-editor{margin:10px 0 25px;border:1px solid #d7e2d5;background:linear-gradient(145deg,#f9fbf7,#fffdf7);border-radius:16px;padding:19px 23px;box-shadow:0 4px 18px #344e330a}
.guest-rsvp-editor-details>summary{cursor:pointer;color:#315842;font-weight:700;font-size:1.06rem;list-style-position:inside}
.guest-rsvp-editor-hint{display:block;font-size:.79rem;font-weight:400;color:#68816f;margin:5px 0 0 21px}
.guest-rsvp-editor-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:end;margin-top:22px}
.guest-rsvp-editor .field{min-width:0;margin:0}
.guest-rsvp-editor .field label{display:block;margin:0 0 6px;font-size:.87rem;color:#315842;font-weight:650}
.guest-rsvp-editor .field input,.guest-rsvp-editor .field select,.guest-rsvp-editor .field textarea{display:block;width:100%;min-width:0;min-height:45px;padding:10px 12px;border:1px solid #cad8ca;border-radius:9px;background:#fffefa;color:#304e3a;font:inherit}
.guest-rsvp-editor .field textarea{resize:vertical;min-height:75px}
.guest-rsvp-editor-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:end}
.guest-rsvp-editor-numbers[hidden],.guest-rsvp-editor-check[hidden]{display:none!important}
.guest-rsvp-editor-check{display:flex;align-items:center;gap:11px;min-height:45px;font-weight:600;color:#365b43;cursor:pointer}
.guest-rsvp-editor-check input{width:20px;height:20px;flex:0 0 20px;accent-color:#356b4c}
.guest-rsvp-editor-form>.btn{justify-self:start;min-height:45px}
#admin-rsvp-editor-state{margin:0;color:#356044;font-size:.85rem;align-self:center;overflow-wrap:anywhere}
.guest-entry-delete{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:80px;min-height:38px;border:1px solid #cfad9f;border-radius:9px;background:#fff9f5;color:#934934;font:inherit;font-size:.78rem;font-weight:650;line-height:1.2;padding:8px 12px;cursor:pointer}
.guest-table-wrap table{min-width:900px}
.guest-table-wrap th:last-child,.guest-table-wrap td:last-child{min-width:106px;width:106px;text-align:center;white-space:nowrap}
.guest-entry-delete:focus-visible{outline:3px solid #cfaa92;outline-offset:2px}
.guest-entry-delete:disabled{opacity:.6;cursor:wait}
.guest-manual-label{display:block;color:#687e6c;font-size:.73rem;margin-top:5px}
@media(max-width:800px){
 .guest-kpi-grid,.guest-kpi-group--party .guest-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .guest-kpi-group:not(.guest-kpi-group--party) .guest-kpi:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:560px){
 .stats.guest-kpis{gap:25px}
 .guest-kpi-grid,.guest-kpi-group--party .guest-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .guest-kpi{padding:15px 12px}
 .guest-kpis .guest-kpi span{overflow-wrap:anywhere}
 .guest-rsvp-editor{padding:16px 14px}
 .guest-rsvp-editor-form{grid-template-columns:minmax(0,1fr)}
 .guest-rsvp-editor-form>.btn{justify-self:stretch}
 .guest-rsvp-editor-hint{margin-left:18px}
 .guest-kpi-group:not(.guest-kpi-group--party) .guest-kpi:last-child:nth-child(odd){grid-column:auto}
}

/* Wedding admin: keep the participation label intact on desktop tables.
   Narrow screens use the existing stacked guest cards instead. */
@media(min-width:721px){
  .guest-table-wrap table{min-width:1150px;table-layout:auto}
  .guest-table-wrap th:nth-child(3),
  .guest-table-wrap td:nth-child(3){
    min-width:205px;
    width:205px;
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:normal;
  }
}
@media(max-width:720px){
  .guest-table-wrap tbody td:nth-child(3){
    width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
  }
}


/* Admin RSVP: responsive guest list without horizontal scrolling (2026-10-21). */
/* The old 1150px table minimum was wider than the page's 1100px container.
   The existing mobile guest cards also inherited a later 900px minimum. */
@media(max-width:1200px){
  .guest-table-wrap{overflow-x:visible}
  .guest-table-wrap table{min-width:0}
  .guest-table-wrap th:last-child,.guest-table-wrap td:last-child{
    min-width:0;width:auto;white-space:normal;text-align:left;
  }
  .guest-table-wrap th:nth-child(3),.guest-table-wrap td:nth-child(3){
    min-width:0;width:auto;white-space:normal;overflow-wrap:break-word;word-break:normal;
  }
}
/* Tablet and narrow desktop: each response forms one readable, four-column card. */
@media(min-width:721px) and (max-width:1200px){
  .guest-table-wrap{border:0;border-radius:0;background:transparent;overflow:visible}
  .guest-table-wrap table,.guest-table-wrap tbody{
    display:block;width:100%;min-width:0;
  }
  .guest-table-wrap thead{
    position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }
  .guest-table-wrap caption{
    display:block;text-align:left;background:transparent;padding:4px 0 13px;
  }
  .guest-table-wrap tbody{display:grid;gap:12px}
  .guest-table-wrap tbody tr{
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,.75fr) minmax(0,1.15fr) minmax(0,.9fr);
    border:1px solid #d8e1d5;border-radius:13px;overflow:hidden;
    background:#fffdfa;box-shadow:0 3px 15px #1c45300a;
  }
  .guest-table-wrap tbody td{
    display:flex;flex-direction:column;align-items:flex-start;gap:6px;
    min-width:0;max-width:none;width:auto;min-height:75px;
    padding:12px 13px;border:0;background:transparent!important;
    white-space:normal;overflow-wrap:anywhere;line-height:1.4;
  }
  .guest-table-wrap tbody td:nth-child(n+5){border-top:1px solid #e5ece2}
  .guest-table-wrap tbody td::before{
    content:attr(data-label);display:block;
    color:#667d6b;font-size:.72rem;font-weight:650;
  }
  .guest-table-wrap tbody td:first-child{font-weight:700;color:#294e38;background:#f5f8f1!important}
  .guest-table-wrap .guest-entry-delete{max-width:100%;min-height:36px}
}
@media(min-width:721px) and (max-width:780px){
  .guest-table-wrap tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guest-table-wrap tbody td:nth-child(n+3){border-top:1px solid #e5ece2}
  .guest-table-wrap tbody td:nth-child(odd){border-right:1px solid #e5ece2}
}
/* Full desktop: retain the table but fit its columns within the page width. */
@media(min-width:1201px){
  .guest-table-wrap table{width:100%;min-width:0;table-layout:fixed}
  .guest-table-wrap th,.guest-table-wrap td{min-width:0;padding:12px 8px;overflow-wrap:anywhere}
  .guest-table-wrap th{white-space:normal;hyphens:auto}
  .guest-table-wrap th:nth-child(1){width:13%}
  .guest-table-wrap th:nth-child(2){width:10%}
  .guest-table-wrap th:nth-child(3),.guest-table-wrap td:nth-child(3){
    width:16%;min-width:0;white-space:normal;overflow-wrap:break-word;word-break:normal;
  }
  .guest-table-wrap th:nth-child(4){width:12%}
  .guest-table-wrap th:nth-child(5){width:17%}
  .guest-table-wrap th:nth-child(6){width:12%}
  .guest-table-wrap th:nth-child(7){width:10%}
  .guest-table-wrap th:last-child,.guest-table-wrap td:last-child{
    width:10%;min-width:0;white-space:normal;text-align:center;
  }
  .guest-table-wrap .guest-entry-delete{min-width:0;max-width:100%;padding:7px 9px}
}
