/* Complete photographic formats, with scroll motion on the outer planes only. */
.day-page .day-chapter .planning-tip{border-bottom:0}
.day-page .planning-tip summary{border-bottom:1px solid color-mix(in srgb,currentColor 35%,transparent)}
.day-page .planning-tip[open] summary{border-bottom:0}
.day-page .planning-tip[open]>p{border-bottom:1px solid color-mix(in srgb,currentColor 35%,transparent)}
.gallery-stage{position:relative}
.gallery-stage .gallery-controls{position:absolute;inset:var(--photo-y,0px) var(--photo-x,0px);display:block;margin:0;pointer-events:none;z-index:3}
.gallery-stage .gallery-controls button{position:absolute;top:50%;transform:translateY(-50%);pointer-events:auto;background:#263c30;color:#fff;border:1px solid #f1f2ec;box-shadow:0 2px 8px #0003}
.gallery-stage .gallery-controls button:hover{background:#405a48}
.gallery-stage .gallery-controls button:focus-visible{outline:3px solid white;outline-offset:3px}
.gallery-stage [data-prev]{left:12px}
.gallery-stage [data-next]{right:12px}
.gallery-stage .gallery-count{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);margin:0;padding:3px 9px;background:#263c30;color:#fff;border-radius:2px;font-size:11px;min-width:0;white-space:nowrap}
.day-page .simple-day-hero{position:relative;isolation:isolate;max-width:none;margin:0;padding:76px 7% 84px;min-height:650px;display:grid;place-items:center;background:linear-gradient(176deg,#f9eaef 0%,#f6edec 38%,#f2f0e8 72%,var(--paper) 100%);color:#263c30}
.simple-day-hero .day-hero-background{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center 45%;opacity:.15;pointer-events:none}
/* Weicher Rosenschleier ueber dem Foto: haelt die Mitte hell genug fuer den
   Text und faerbt die Raender in Richtung der Beerentoene der Startseite. */
.simple-day-hero::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(68% 58% at 50% 45%,#f8eff2f5 0%,#f6eff0e0 48%,#f1f2ec66 76%,#eceee400 100%)}
.day-hero-copy{max-width:1040px;margin:auto}
.day-page .simple-day-hero h1{font-size:clamp(52px,6.4vw,92px);line-height:1.03;margin:25px 0 30px;letter-spacing:-.035em}
.day-hero-copy>p:not(.small-label){max-width:820px;margin:20px auto 0;font-size:17px;line-height:1.8}
.day-hero-copy .text-link{margin-top:26px;color:#85465f;border-bottom-color:#85465f99}
.day-hero-copy .text-link:hover{border-bottom-color:#85465f}
/* Die Handschrift traegt hier dieselbe Beere wie auf der Startseite,
   die Versalienzeile bleibt im gedeckten Gruen daneben stehen. */
.simple-day-hero .day-script{color:#85465f}
.simple-day-hero .day-straight{color:#5b6f5f}
.day-hero-copy .example-note{font-size:12px!important;max-width:530px!important;margin-top:28px!important}
@media(max-width:650px){.day-page .simple-day-hero{min-height:0;padding:52px 7% 58px}.day-page .simple-day-hero h1{font-size:clamp(46px,11vw,66px)}.day-hero-copy>p:not(.small-label){font-size:15px}.simple-day-hero .day-hero-background{object-position:49% center;opacity:.15}}
.wedding-hero{padding:18px 0 48px;color:#263c30}
.wedding-heading{position:relative;z-index:1;transform:translateY(calc(var(--hero-p)*-65px))}
.wedding-hero .hero-straight{font-size:clamp(34px,3.4vw,52px)}
.wedding-hero .hero-script{font-size:clamp(64px,6.4vw,96px)}
.wedding-heading>p{font-size:15px;line-height:1.65;margin:20px 20px 0}
.hero-gallery{position:relative;margin-top:32px;outline-offset:-4px}
.three-photos{display:grid;grid-template-columns:minmax(0,1fr) min(44vw,640px) minmax(0,1fr);gap:clamp(24px,4vw,70px);align-items:center;max-width:1280px;margin:0 auto;padding:0 24px}
.center-photo{height:auto;aspect-ratio:3/2;min-width:0;transform:translateY(calc(var(--hero-p)*45px)) scale(calc(1 - var(--hero-p)*.055));transform-origin:50% 50%;box-shadow:0 18px 35px #263c3015}
.three-photos img{height:100%;width:100%;object-fit:contain;object-position:center}
.side-photo{height:clamp(180px,21vw,300px);min-width:0}
.left-photo{transform:translate(calc(var(--hero-p)*-55px),calc(var(--hero-p)*-115px)) rotate(calc(-5deg - var(--hero-p)*3deg))}
.right-photo{transform:translate(calc(var(--hero-p)*55px),calc(var(--hero-p)*-75px)) rotate(calc(5deg + var(--hero-p)*3deg))}
.side-photo button{position:relative;display:block;border:0;background:none;padding:0;width:100%;height:100%;cursor:pointer}
.side-photo button:disabled{cursor:default}
.photo-arrow{position:absolute;left:calc(50% - 22px);bottom:10px;display:grid;place-items:center;width:44px;height:44px;background:#f1f2ec;color:#263c30;font-size:24px}
.side-photo button:disabled .photo-arrow{display:none}
.side-photo button:hover .photo-arrow{background:#263c30;color:#fff}
.hero-gallery-controls,.gallery-controls{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:12px}
.hero-gallery-controls button,.gallery-controls button{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;background:transparent;border:1px solid color-mix(in srgb,currentColor 40%,transparent);border-radius:50%;font-size:23px;color:inherit;cursor:pointer}
.hero-gallery-controls button:hover,.gallery-controls button:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
.hero-gallery-controls p,.gallery-count{font-size:12px;font-variant-numeric:tabular-nums;min-width:78px;text-align:center}
.hero-actions{margin-top:22px;transform:translateY(calc(var(--hero-p)*45px))}
.hero-gallery-controls{transform:translateY(calc(var(--hero-p)*45px))}
.hero-gallery:focus-visible,.gallery-track:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:0}
.day-intro{max-width:1050px;padding:95px 7% 80px;color:#263c30;background:var(--paper)}
.day-intro h2{font-size:clamp(54px,6vw,78px)}
.day-intro>p:not(.small-label){max-width:660px;margin:24px auto 0;font-size:17px}
.day-intro .example-note{font-size:13px!important;max-width:550px!important}
.day-page .phase-nav{color:#263c30;background:#f1f2ec}
.chapter-layout>*{min-width:0}
.day-photo.chapter-gallery{color:var(--chapter-ink,#263c30)}
.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:currentColor transparent;aspect-ratio:3/2;outline-offset:5px}
.gallery-slide{flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
.day-photo .gallery-slide img{height:100%;width:100%;min-height:0;max-height:none;object-fit:contain;background:transparent}
.portrait-gallery .gallery-track{aspect-ratio:4/5}
.gallery-caption{font-size:12px;line-height:1.6;margin-top:14px}
.gallery-controls{justify-content:space-between;gap:10px}
.gallery-controls,.gallery-caption{position:relative}
.gallery-controls button,.gallery-count{background:transparent}
.gallery-count{padding:4px 8px}
.gallery-caption{display:table;isolation:isolate}
.gallery-caption::before{content:none}
.chapter-copy{position:relative;isolation:isolate;background:none;color:var(--chapter-ink,#263c30)}
.chapter-copy::before{content:none}
.day-chapter .planning-tip{border-color:color-mix(in srgb,currentColor 30%,transparent)}
.day-thread path{stroke:var(--thread-ink,#263c30)}
.chapter-6,.chapter-7{--chapter-ink:#fff5dd;--copy-bg:#243c30}
.chapter-6 h2,.chapter-7 h2{text-shadow:0 0 calc(var(--lamp,0)*18px) rgb(255 231 173 / calc(var(--lamp,0)*.19))}
.day-page:not(.js-ready) .chapter-5{--chapter-ink:#030503}
@media(hover:hover) and (pointer:fine){.side-photo button img{transition:translate .3s}.side-photo button:hover img{translate:0 -6px}}
@media(max-width:950px){.three-photos{grid-template-columns:minmax(0,1fr) 57vw minmax(0,1fr);gap:20px;padding:0 16px}.side-photo{height:200px}.day-intro{padding-inline:7%}}
@media(max-width:650px){
 .wedding-hero{padding:20px 0 35px}
 .wedding-heading>p{font-size:13px;margin-top:17px}
 .wedding-hero .hero-straight{font-size:clamp(29px,8.2vw,42px)}
 .wedding-hero .hero-script{font-size:clamp(56px,15.3vw,76px)}
 .wedding-heading{transform:translateY(calc(var(--hero-p)*-30px))}
 .hero-gallery{margin-top:30px}
 .three-photos{grid-template-columns:15vw 76vw 15vw;gap:13px;max-width:none;margin:0 calc(-3vw - 13px);padding:0}
 .center-photo{height:auto;transform:translateY(calc(var(--hero-p)*32px)) scale(calc(1 - var(--hero-p)*.035))}
 .side-photo{height:155px}
 .left-photo{transform:translateY(calc(var(--hero-p)*-65px)) rotate(calc(-5deg - var(--hero-p)*2deg))}
 .right-photo{transform:translateY(calc(var(--hero-p)*-45px)) rotate(calc(5deg + var(--hero-p)*2deg))}
 .photo-arrow{display:none}
 .hero-gallery-controls{margin-top:15px}
 .hero-actions{margin-top:20px;transform:translateY(calc(var(--hero-p)*32px))}
 .hero-gallery-controls{transform:translateY(calc(var(--hero-p)*32px))}
 .day-intro{padding-block:65px}
 .day-intro>p:not(.small-label){font-size:15px}
 .gallery-controls button{width:44px;height:44px}
 .gallery-track{aspect-ratio:4/3}
 .portrait-gallery .gallery-track{aspect-ratio:4/5}
 .chapter-copy::before{content:none}
}

/* A little camera takes the photograph; the photographs themselves stay still. */
.wedding-hero .wedding-heading,.wedding-hero .photo-composition .center-photo,.wedding-hero .photo-composition .side-photo,.wedding-hero .hero-actions{transform:none!important}
.hero-camera{width:112px;margin:16px auto 0;color:#263c30}
.hero-camera svg{display:block;width:100%;height:auto;overflow:visible}
.camera-spark{opacity:0}
.camera-lens,.camera-drawing{transform-box:fill-box;transform-origin:center}
.hero-camera.has-shot .camera-button{animation:shutter-press .6s ease-out}
.hero-camera.has-shot .camera-lens{animation:lens-click .6s ease-out}
.hero-camera.has-shot .camera-spark{animation:camera-spark .6s ease-out}
@keyframes shutter-press{0%,100%{transform:translateY(0)}25%,45%{transform:translateY(4px)}}
@keyframes lens-click{0%,55%,100%{transform:scale(1)}30%{transform:scale(.65)}}
@keyframes camera-spark{0%,25%,75%,100%{opacity:0}40%,55%{opacity:1}}
.wedding-hero .hero-gallery{margin-top:16px}
.wedding-hero .photo-composition{grid-template-columns:minmax(0,1.25fr) minmax(0,2.1fr) minmax(0,1.25fr)}
.wedding-hero .photo-composition .hero-portrait{width:88%;margin-left:0}
.day-chapter .planning-tip{min-height:var(--tip-space,200px)}
@media(max-width:650px){
 .wedding-hero .photo-composition{grid-template-columns:1fr 1.15fr}
 .wedding-hero .photo-composition .hero-portrait{width:94%;margin-left:0}
 .hero-camera{width:88px;margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.hero-camera *{animation:none!important}}
@media(prefers-reduced-motion:reduce){
 .wedding-heading,.wedding-hero .center-photo,.wedding-hero .side-photo,.hero-gallery-controls,.hero-actions{transform:none!important}
 .side-photo button img{transition:none;translate:none!important}
 .chapter-6 h2,.chapter-7 h2{text-shadow:none}
 .gallery-track{scroll-behavior:auto}
}

/* One continuous day, with no individual backing panels. */
.day-page{overflow-anchor:none}
.day-story{max-width:none;padding:0;overflow-anchor:none}
.day-page .day-chapter{position:relative;padding-inline:max(7%,calc((100% - 1376px)/2));background:transparent}
.day-chapter::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(var(--chapter-start) 0%,var(--chapter-ground) 24%,var(--chapter-ground) 76%,var(--chapter-end) 100%);pointer-events:none}
.chapter-0{--chapter-start:#f1f2ec;--chapter-ground:#f1f2ec;--chapter-end:#f0f0e9}
.chapter-1{--chapter-start:#f0f0e9;--chapter-ground:#eeefe6;--chapter-end:#eaebdf}
.chapter-2{--chapter-start:#eaebdf;--chapter-ground:#e7e7d8;--chapter-end:#e0e3d0}
.chapter-3{--chapter-start:#e0e3d0;--chapter-ground:#dadfc9;--chapter-end:#d0d7bd}
.chapter-4{--chapter-start:#d0d7bd;--chapter-ground:#c7cfb1;--chapter-end:#bcc6a7}
.chapter-5{--chapter-start:#bcc6a7;--chapter-ground:#b2bc9d;--chapter-end:#a8b294}
.chapter-6{--chapter-start:#a8b294;--chapter-ground:#9da88a;--chapter-end:#667960;--chapter-ink:#030503}
.chapter-7{--chapter-start:#667960;--chapter-ground:#304a37;--chapter-end:#2a4334}
.chapter-8{--chapter-start:#2a4334;--chapter-ground:#243c30;--chapter-end:#243c30}
.chapter-layout{align-items:start}
.chapter-copy,.gallery-controls,.gallery-caption,.gallery-count{background:transparent}
.photo-clip{background:var(--chapter-ground)}
.day-chapter .planning-tip{border-block:1px solid color-mix(in srgb,currentColor 35%,transparent)}
.planning-tip summary{padding:14px 0;min-height:76px;font-size:15px}
.planning-tip[open] summary .tip-label{transform:none}
.tip-label small{display:block;font-size:12px;text-decoration:underline;text-underline-offset:4px;margin-top:3px}
.tip-label .tip-open,.planning-tip[open] .tip-closed{display:none}
.planning-tip[open] .tip-open{display:block}
.tip-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border:1px solid currentColor;border-radius:50%;font-size:24px;line-height:1;transition:transform .2s}
.planning-tip summary:hover .tip-icon{background:color-mix(in srgb,currentColor 10%,transparent)}
.planning-tip[open] p{padding:18px 0 24px}

@media(max-width:650px){
 .day-page .day-chapter{padding-inline:7%}
 .day-thread .thread-base{opacity:.11}
 .day-thread .thread-progress{opacity:.16}
 .day-thread path{stroke-width:1.4}
 .tip-icon{flex-basis:32px;height:32px}
 .planning-tip summary{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.tip-icon{transition:none}}

/* Three photographic planes open outwards as the main moment lingers. */
.photo-composition{grid-template-columns:minmax(0,1fr) minmax(0,2.5fr) minmax(0,1fr);gap:3%;max-width:1520px;padding:0 4%;align-items:center}
.photo-composition .center-photo{aspect-ratio:auto;height:auto;border-radius:90px 90px 12px 12px;overflow:hidden;box-shadow:none;transform:translateY(calc(var(--hero-p)*40px)) scale(calc(1 + var(--hero-p)*.035))}
.photo-composition img{width:100%;height:auto;object-fit:contain}
.photo-composition .side-photo{display:grid;gap:26px;height:auto;min-width:0}
.photo-composition .side-photo figure{overflow:hidden}
.photo-composition .left-photo{align-self:start;padding-top:18px;transform:translate(calc(var(--hero-p)*-24px),calc(var(--hero-p)*-70px)) rotate(calc(var(--hero-p)*-2deg))}
.photo-composition .right-photo{align-self:end;padding-bottom:18px;transform:translate(calc(var(--hero-p)*24px),calc(var(--hero-p)*-40px)) rotate(calc(var(--hero-p)*2deg))}
.photo-composition .hero-portrait{width:72%;margin-left:8%;border-radius:85px 85px 9px 9px}
.photo-composition .hero-moment{border-radius:10px 70px 70px 10px}
.wedding-hero:has(.photo-composition) .hero-actions{margin-top:34px;transform:translateY(calc(var(--hero-p)*40px))}
@media(max-width:950px){.photo-composition{grid-template-columns:minmax(0,1fr) minmax(0,2.3fr) minmax(0,1fr);gap:3%;padding:0 4%}.photo-composition .side-photo{gap:16px}.photo-composition .center-photo{border-radius:60px 60px 10px 10px}}
@media(max-width:650px){
 .photo-composition{grid-template-columns:1fr 1.2fr;gap:32px 7%;padding:0 7%;margin:0;max-width:none}
 .photo-composition .center-photo{grid-column:1/-1;grid-row:1;border-radius:65px 65px 10px 10px;transform:translateY(calc(var(--hero-p)*12px))}
 .photo-composition .left-photo{grid-column:1;grid-row:2;padding:0;transform:translate(calc(var(--hero-p)*-6px),calc(var(--hero-p)*-10px))}
 .photo-composition .right-photo{grid-column:2;grid-row:2;padding:12px 0 0;align-self:center;transform:translate(calc(var(--hero-p)*6px),calc(var(--hero-p)*-6px))}
 .photo-composition .hero-portrait{width:80%;margin-left:6%}
 .photo-composition .hero-moment{border-radius:8px 45px 45px 8px}
 .wedding-hero:has(.photo-composition) .hero-actions{transform:none;margin-top:30px}
}

/* Gleiche Typografie wie im Startseiten-Hero: Versalzeile plus Handschrift.
   Aufbau der Seite, Kapitelnavigation und Faden bleiben unveraendert. */


.day-title{font-size:inherit;line-height:1;font-weight:400;letter-spacing:0;margin:0}
.day-straight{display:block;font-family:'Barlow Condensed',Arial,sans-serif;font-size:clamp(17px,1.75vw,28px);font-weight:400;line-height:1.4;text-transform:uppercase;letter-spacing:.14em}
.day-script{display:block;font:400 clamp(58px,8.6vw,150px)/1 'Beauty Handwriting',cursive;letter-spacing:0;margin-top:10px}
@media(max-width:760px){
 .day-straight{font-size:clamp(14px,3.6vw,19px);letter-spacing:.11em}
 .day-script{font-size:clamp(42px,11vw,72px);margin-top:8px}
}
