/* Terminal snap target: the footer belongs to the chapter journey, including its settings. */
html body footer.complete-footer,html.legacy-balance body>footer,html.legacy-balance footer {
 scroll-snap-align:end;scroll-snap-stop:normal;scroll-margin:0 0 20px;
}
html body footer.complete-footer {
 width:calc(100% - 40px);max-width:1440px;margin:28px auto 20px;
 padding:48px clamp(24px,4vw,64px);border:0;border-radius:36px;
 background:#34312e;color:#f7f3ea;
 display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:24px 56px;
 font-size:15px;line-height:1.65;
}
html body footer.complete-footer>p{font-size:15px;line-height:1.65;max-width:37ch;color:#f7f3ea;margin:0}
html body footer.complete-footer>p strong{display:inline-block;font-size:23px;font-weight:600;letter-spacing:-.03em;margin-bottom:10px}
html body footer.complete-footer .provider-id{color:#d8ccba;font-size:12px;margin-top:20px}
html body footer.complete-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
html body footer.complete-footer nav::before{content:attr(aria-label);display:block;color:#c6a57a;font-size:12px;line-height:1.4;margin:0 0 12px}
html body footer.complete-footer a{color:#f7f3ea;font-size:14px;line-height:1.4;min-height:44px;display:inline-flex;align-items:center;text-decoration:none;border:0;gap:12px;max-width:100%;overflow-wrap:anywhere}
html body footer.complete-footer a:hover{text-decoration:underline;text-underline-offset:5px;color:#e1c49e}
html body footer.complete-footer a:focus-visible,html body footer.complete-footer button:focus-visible{outline:2px solid #e1c49e;outline-offset:4px;border-radius:6px}
html body footer.complete-footer small{grid-column:1/-1;max-width:none;font-size:12px;line-height:1.6;color:#d8ccba;border-top:1px solid #6b6256;padding-top:20px;margin-top:8px}
html body footer.complete-footer svg{width:16px;height:16px;flex-shrink:0}
html body footer.complete-footer button{color:#f7f3ea}
html.complete-page #vorbereitung{min-height:0;padding:144px 0 48px;scroll-snap-align:start}
html.complete-page #vorbereitung>.wrap{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);gap:22px 72px;align-items:start}
html.complete-page #vorbereitung h2{grid-column:1;max-width:22ch;font-size:clamp(32px,3.4vw,48px);line-height:1.15;margin:0;letter-spacing:-.03em}
html.complete-page #vorbereitung .lead{grid-column:1;font-size:18px;line-height:1.7;max-width:58ch;margin:0}
html.complete-page #vorbereitung .contact-person{grid-column:2;grid-row:1/span 2;display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin:0}
html.complete-page #vorbereitung .contact-person img{width:84px;height:84px}
html.complete-page #vorbereitung .contact-person p{font-size:15px;line-height:1.65;margin:0}
html.complete-page #vorbereitung .contact-person a{font-size:14px;margin-top:12px}
@media(max-width:800px){
 html body footer.complete-footer{width:calc(100% - 24px);padding:32px 24px;border-radius:28px;grid-template-columns:1fr 1fr;gap:28px 20px;margin-top:20px;margin-bottom:12px;scroll-margin-bottom:12px}
 html body footer.complete-footer>p{grid-column:1/-1;max-width:36ch}
 html body footer.complete-footer>p strong{font-size:22px}
 html body footer.complete-footer nav{gap:2px}
 html body footer.complete-footer a{font-size:13px}
 html.complete-page #vorbereitung{padding:56px 0 28px}
 html.complete-page #vorbereitung>.wrap{grid-template-columns:1fr;gap:22px}
 html.complete-page #vorbereitung h2{font-size:34px}
 html.complete-page #vorbereitung .lead{font-size:17px}
 html.complete-page #vorbereitung .contact-person{grid-column:1;grid-row:auto;flex-direction:row;gap:18px;padding-top:10px}
 html.complete-page #vorbereitung .contact-person img{width:64px;height:64px;flex-shrink:0}
}
@media(max-width:359px){html body footer.complete-footer{grid-template-columns:1fr}html body footer.complete-footer nav{grid-column:1}}
@media print{html body footer.complete-footer{display:none}}

/* Shared terminal composition: contact, related links, footer.
   Content height is intrinsic; chapter and footer snap targets stay intact. */
html:has(main > :is(.closing-conversation,.service-contact):last-child) main > :is(.closing-conversation,.service-contact):last-child {
 width:calc(100% - 40px);max-width:1440px;
 margin-inline:auto;margin-bottom:0;border-radius:36px 36px 0 0;
 min-height:0;padding-block:64px;background:#34312e;color:#f7f3ea;
}
html:has(main > :is(.closing-conversation,.service-contact):last-child) main > :is(.closing-conversation,.service-contact):last-child > .wrap {
 width:100%;max-width:none;margin:0;padding-inline:clamp(24px,4vw,64px);
}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .service-contact :is(h2,h3) {color:#f7f3ea}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .service-contact h2 em {color:#c6a57a}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .service-contact p {color:#e9e0d2}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .service-contact .button {background:#c6a57a;color:#34312e}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .related-services {
 width:calc(100% - 40px);max-width:1440px;margin:0 auto;
 padding:36px clamp(24px,4vw,64px);border-top:1px solid #6b6256;
 background:#34312e;color:#f7f3ea;scroll-snap-align:none;
}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .related-services h2 {font-size:23px;color:#f7f3ea}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .related-services a {
 display:inline-flex;align-items:center;min-height:44px;color:#e9e0d2;
}
html:has(main > :is(.closing-conversation,.service-contact):last-child) body footer.complete-footer {
 margin-top:0;border-radius:0 0 36px 36px;border-top:1px solid #6b6256;
}
html:has(main > :is(.closing-conversation,.service-contact):last-child) .site-nav {
 transition:translate .22s ease-out,opacity .22s ease-out;
}
html.mh-closing-visible .site-nav:not(:focus-within) {
 translate:0 calc(-100% - 48px);opacity:0;pointer-events:none;
}
@media(max-width:800px){
 html:has(main > :is(.closing-conversation,.service-contact):last-child) main > :is(.closing-conversation,.service-contact):last-child {
  width:calc(100% - 24px);border-radius:28px 28px 0 0;padding-block:40px;
 }
 html:has(main > :is(.closing-conversation,.service-contact):last-child) main > :is(.closing-conversation,.service-contact):last-child > .wrap {padding-inline:24px}
 html:has(main > :is(.closing-conversation,.service-contact):last-child) .related-services {width:calc(100% - 24px);padding:28px 24px}
 html:has(main > :is(.closing-conversation,.service-contact):last-child) .related-services h2 {font-size:21px}
 html:has(main > :is(.closing-conversation,.service-contact):last-child) .related-services > div {margin-top:20px;gap:4px}
 html:has(main > :is(.closing-conversation,.service-contact):last-child) body footer.complete-footer {border-radius:0 0 28px 28px}
}
@media(prefers-reduced-motion:reduce){
 html:has(main > :is(.closing-conversation,.service-contact):last-child) .site-nav {transition:none}
}
html.motion-off:has(main > :is(.closing-conversation,.service-contact):last-child) .site-nav {transition:none}
