/* In-flow mobile composition. Desktop remains the approved fixed-stage journey. */
.mobile-photo,.mobile-thread{display:none;margin:0}
@media(max-width:760px), (max-height:650px){
  html{scroll-padding-top:80px}
  body{font-size:16px;overflow-x:clip}
  .site-header{height:80px;padding:16px 24px;background:var(--paper)!important;color:var(--ink)!important;border-bottom:1px solid #d6d9ce65}
  .brand{width:154px}.brand img{filter:none!important}
  .menu-toggle{color:var(--ink)!important}
  .mobile-menu{max-height:calc(100dvh - 94px);overflow-y:auto}
  #scene,[data-sc-spacer]{display:none!important}
  [data-sc-world-copy]{position:static!important;inset:auto!important;pointer-events:auto!important}
  .scene-copy{position:relative!important;inset:auto!important;display:block;min-height:0!important;height:auto!important;padding:72px 24px;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;will-change:auto;scroll-margin-top:0}
  .scene-copy>div,.scene-copy>div>div{max-width:100%}
  .scene-copy h1,.scene-copy h2{white-space:normal;text-wrap:balance;letter-spacing:-.045em}
  .scene-copy h1{font-size:clamp(45px,12.5vw,78px);line-height:1.02}
  .scene-copy h2{font-size:clamp(42px,11.8vw,66px);line-height:1.05;margin-bottom:24px}
  .scene-copy h3{font-size:34px;line-height:1.12}
  .scene-copy p{font-size:16px;line-height:1.65}
  .scene-copy .eyebrow{font-size:10px;letter-spacing:.16em;margin:0 0 20px}
  .hero-content,.recognition-content,.doctor-content,.offer-content,.final-content,.path-heading,.path-tool{width:100%;max-width:none!important;margin:0;padding:0;align-self:auto}
  .scene-copy .button{min-height:52px;padding:15px 24px;font-size:14px;gap:26px;white-space:normal;text-align:left;max-width:100%}
  .button>span[aria-hidden]{flex:0 0 auto}.button [data-label]{font-size:inherit}
  .hero-copy{padding-top:116px;padding-bottom:32px}
  .hero-copy .intro{font-size:16px;max-width:33ch;line-height:1.65;margin-top:24px}
  .hero-content .button{margin-top:26px}
  .hero-byline{position:static;display:flex;gap:13px;margin:23px 0 0;align-items:center}
  .hero-byline p{font-size:12px;line-height:1.6}.hero-byline p span{font-size:11px}
  .mobile-photo{display:block;position:relative;inset:auto;overflow:hidden;width:100%;height:auto;isolation:isolate;border-radius:18px;margin:30px 0 0;line-height:0}
  .mobile-photo img{display:block;width:100%;height:100%;object-fit:cover;transform:translateY(var(--photo-shift,0px)) scale(1.045);transform-origin:center;transition:none}
  .mobile-hero-photo{margin:36px -24px 0;width:calc(100% + 48px);aspect-ratio:1/1.04;border-radius:44% 44% 0 0 / 25% 25% 0 0}
  .mobile-hero-photo img{object-position:50% 49%}
  .recognition-copy{padding-top:50px;padding-bottom:0}
  .recognition-content h2{margin-bottom:26px}
  .recognition-content p{font-size:16px;max-width:none;margin:0 0 18px}
  .recognition-content .quiet-emphasis{font-size:17px;padding:0;margin:23px 0 0}
  .mobile-recognition-photo{margin:32px -24px 0;width:calc(100% + 48px);aspect-ratio:4/3;border-radius:0}
  .mobile-recognition-photo img{object-position:50% 55%}
  .path-copy{background:#a65340;color:#fff7eb;padding-top:64px;padding-bottom:64px}
  .path-heading h2{font-size:clamp(43px,11.9vw,68px);margin-bottom:24px}
  .path-heading em{color:#fff7eb}
  .path-heading>p:last-child{font-size:16px;line-height:1.65;margin-top:0;max-width:none}
  .mobile-thread{display:block;height:120px;width:100%;margin:16px 0 18px;overflow:hidden;color:#fff0df;pointer-events:none}
  .mobile-thread svg{width:100%;height:100%;display:block}
  .path-tool{padding:0}
  .choice-label{font-size:15px!important;margin:0 0 14px;font-weight:500}
  .need-choices{gap:9px;margin:0 0 24px}
  .need-choices button{min-height:44px;font-size:12px;line-height:1.3;padding:12px 16px}
  .recommendation{padding-top:26px;min-height:0}
  .recommendation h3{font-size:34px;max-width:calc(100% - 26px);margin-bottom:16px}
  .recommendation>p{font-size:15px;line-height:1.65;max-width:none}
  .recommend-icon{font-size:26px;top:27px;right:0}
  .recommendation .text-link{font-size:14px;padding:12px 0;margin-top:14px;min-height:46px}
  .recommendation .small-note{font-size:11px!important;margin-top:18px;line-height:1.6!important;max-width:none}
  .doctor-copy{padding-top:64px;padding-bottom:62px}
  .doctor-content h2{font-size:clamp(42px,11.7vw,67px);margin-bottom:0}
  .mobile-doctor-photo{margin:30px 0 28px;aspect-ratio:4/4.6;border-radius:45% 45% 12px 12px / 26% 26% 12px 12px}
  .mobile-doctor-photo img{object-position:center 36%}
  .doctor-content>p:not(.eyebrow):not(.signature){font-size:16px;line-height:1.65;max-width:none;margin:0 0 18px}
  .credentials{font-size:11px;line-height:1.7;gap:8px;margin-top:26px;max-width:none}
  .credentials span+span:before{margin-right:8px}
  .doctor-content .signature{font-size:42px;line-height:1.15;margin:18px 0 0}
  .offer-copy{padding-top:0;padding-bottom:64px}
  .offer-content h2{font-size:clamp(40px,11.2vw,64px);margin-bottom:0}
  .mobile-offer-photo{aspect-ratio:4/3;margin:29px 0 26px;border-radius:18px}
  .mobile-offer-photo img{object-position:center;transform:none}
  .offer-tabs{display:flex;gap:22px;margin-bottom:26px;flex-wrap:wrap}
  .offer-tabs button{font-size:13px;min-height:48px;padding:12px 0;line-height:1.4}
  .offer-panel p{font-size:15px;line-height:1.65;max-width:none}
  .service-list{font-size:15px;line-height:1.6;margin:24px 0;max-width:none}
  .service-list li{padding:7px 0 7px 24px}
  .price-row{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:20px;margin:28px 0;align-items:center}
  .price-row strong{font-size:47px;line-height:1.05;white-space:nowrap}
  .price-row span{font-size:12px;line-height:1.65;max-width:none}
  .offer-panel .button{min-height:52px;font-size:14px}
  .medical-note{font-size:11px!important;line-height:1.65!important;max-width:none!important;margin-top:18px}
  .offer-panel h3{font-size:35px;margin:10px 0 20px}
  .offer-panel .course-status{font-size:11px;letter-spacing:.12em}
  .offer-panel[data-panel=course] .button{margin-top:24px}
  .offer-panel .mobile-offer-photo{margin:0 0 22px}
  [data-scroll-offers] .offer-track{
    margin-top:18px;
    height:calc(var(--offer-height) + var(--offer-travel));
    overflow-anchor:none;
  }
  [data-scroll-offers] .offer-stage{
    position:sticky;
    top:var(--offer-top);
    height:var(--offer-height);
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    row-gap:12px;
    background:var(--paper);
  }
  [data-scroll-offers] .offer-tabs{margin:0;align-self:start}
  [data-scroll-offers] .offer-window{position:relative;overflow:clip}
  [data-scroll-offers] .offer-panel{
    display:flow-root;
    position:absolute;
    inset:0 0 auto;
    padding:2px 4px 6px;
    transform:translateY(var(--offer-shift,0px));
  }
  /* Keep the inactive panel measurable when fonts, viewport or copy change. */
  [data-scroll-offers] .offer-panel[hidden]{display:flow-root!important;visibility:hidden}
  [data-scroll-offers] .mobile-offer-photo{
    width:100%;
    height:clamp(120px,23svh,235px);
    margin:0 0 14px;
  }
  [data-scroll-offers] .mobile-offer-photo img{object-position:center 38%}
  [data-scroll-offers] .service-list{margin:12px 0}
  [data-scroll-offers] .service-list li{padding-block:4px}
  [data-scroll-offers] .price-row{margin:14px 0}
  [data-scroll-offers] .medical-note{margin-top:10px}
  @media (orientation:landscape) and (min-width:530px) {
    [data-scroll-offers] .offer-panel{
      padding-left:calc(35% + 20px);
      min-height:calc(clamp(120px,44svh,235px) + 8px);
    }
    [data-scroll-offers] .mobile-offer-photo{
      position:absolute;
      top:2px;
      left:4px;
      width:35%;
      height:clamp(120px,44svh,235px);
      margin:0;
    }
  }
  .finale-copy{padding-top:48px;padding-bottom:100px;border-top:1px solid #b9c0ac66}
  .final-content{padding:0}
  .final-content h2{font-size:clamp(50px,13.7vw,78px);line-height:1.02;margin-bottom:24px}
  .final-content>p{font-size:17px;line-height:1.65}
  .final-content .final-recommend{font-size:15px!important;line-height:1.65;max-width:none;margin-top:12px}
  .final-content .button{margin-top:26px}
  .email-link{font-size:13px;line-height:1.6;padding:8px 0;margin:18px 0 0;max-width:100%;overflow-wrap:anywhere;background:none}
  .mobile-final-photo{aspect-ratio:4/3;margin:34px -24px 0;width:calc(100% + 48px);border-radius:0}
  .site-footer{position:static;inset:auto;display:flex;flex-direction:column;margin-top:28px;padding:20px 0 0;gap:12px;font-size:10px;line-height:1.6}
  .site-footer nav{gap:16px;flex-wrap:wrap}.site-footer nav a{padding:8px 0}
  .journey-nav,.is-dark .journey-nav{left:0;right:0;bottom:0;padding:0 16px max(env(safe-area-inset-bottom),0px);height:calc(64px + env(safe-area-inset-bottom));color:#525b4b!important;background:var(--paper)!important;border-top:1px solid #bdc4b47d;gap:4px;justify-content:space-between}
  .journey-nav{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:8px;scroll-padding-inline:16px}
  .journey-nav::-webkit-scrollbar{display:none}
  .route-link{flex:0 0 auto;min-width:44px;min-height:52px;gap:8px;font-size:10px}.route-link span{white-space:nowrap}.route-link[aria-current=step]{color:var(--terra)!important}
  @media(min-width:560px){
    .scene-copy{padding-left:42px;padding-right:42px}.hero-copy{padding-top:112px}.mobile-hero-photo{max-height:590px;aspect-ratio:1.2;width:100%;margin-left:0;margin-right:0;border-radius:200px 200px 12px 12px}.mobile-doctor-photo{aspect-ratio:1.1;max-height:580px}.mobile-recognition-photo,.mobile-final-photo{width:calc(100% + 84px);margin-left:-42px;margin-right:-42px}.mobile-offer-photo{max-height:480px}.journey-nav{padding-left:42px;padding-right:42px}.route-link{font-size:11px}.need-choices button{font-size:14px}
  }
  @media(prefers-reduced-motion:reduce){.mobile-photo img{transform:none!important}}
}
@media(max-width:760px), (max-height:650px){.mobile-photo img{position:absolute;inset:0}}
/* Landscape and shallow desktop windows use the same readable document flow. */
@media(min-width:761px) and (max-height:650px){
  .scene-copy{padding-inline:max(42px, calc((100vw - 780px) / 2))}
  .mobile-photo{max-height:min(460px, 86vh);width:100%;margin-inline:0}
  .mobile-hero-photo img{object-position:50% 45%}
  .mobile-doctor-photo img{object-position:50% 34%}
}
@media print{
  #beratung .offer-track,#beratung .offer-stage,#beratung .offer-window{
    display:block;height:auto;position:static;overflow:visible;
  }
  #beratung .offer-tabs{display:none}
  #beratung .offer-panel,#beratung .offer-panel[hidden]{
    display:flow-root!important;position:static;visibility:visible;transform:none;
    padding:0 0 20px;break-inside:avoid;
  }
  #beratung .mobile-offer-photo{display:none}
}
