.route-link .route-compact { display: none; }
@media (max-width: 760px), (orientation: landscape) and (max-width: 1024px) and (max-height: 650px) and (pointer: coarse) {
  .hero-byline { display: none; }
  #start.hero-copy { grid-template-areas: "copy photo"; }
}
@media screen {
  .reveal-mobile-header .scene-copy.hero-copy {
    padding-top: calc(clamp(28px, 6svh, 52px) + env(safe-area-inset-top, 0px));
  }
  .reveal-mobile-header .site-header {
    transform: translateY(min(0px, calc(var(--header-scroll-distance, 0px) - 100%)));
  }
  .reveal-mobile-header .menu-open .site-header,
  .reveal-mobile-header .site-header:has(:focus-visible) {
    transform: none;
  }
}
@media screen and (min-width: 761px) and (min-height: 651px) {
  .photo-recognition img { object-position: 66% center; }
  /* Keep the conversation and the breast model visible above the questions. */
  #scene .question-float:nth-child(1) { top: 58%; right: 16%; }
  #scene .question-float:nth-child(2) { top: 69%; right: 4%; }
  #scene .question-float:nth-child(3) { top: 79%; right: 9%; }
  /* Both offers use the same space so the heading and controls stay still. */
  .has-journey #beratung { transform: none !important; }
  .has-journey .offer-window { display: grid; }
  .has-journey .offer-panel { grid-area: 1 / 1; align-self: start; }
  .has-journey .offer-panel[hidden] { display: block !important; visibility: hidden; }
}
@media screen and (min-width: 1440px) and (min-height: 651px) {
  /* The offer copy and its photograph live in separate scroll layers. */
  #beratung, .photo-consultation {
    --offer-width: min(82rem, calc(100vw - 2 * var(--gutter)));
    --offer-margin: calc((100vw - var(--offer-width)) / 2);
  }
  #beratung { padding-inline: var(--offer-margin); }
  #beratung .offer-content { width: 41%; }
  body[data-leg="4"] #orb { visibility: hidden; }
  .photo-consultation {
    --photo-height: min(38rem, 66vh);
    right: var(--offer-margin);
    top: calc(50% - var(--photo-height) / 2 + 8px);
    width: calc(var(--offer-width) * .54);
    height: var(--photo-height);
    border-radius: 39% 7% 7% 39% / 44% 8% 8% 44%;
  }
}
@media screen and (min-width: 1440px) and (min-height: 880px) {
  #beratung .offer-panel > p:not(.medical-note):not(.course-status) {
    max-width: 46ch;
    font-size: 17px;
  }
  #beratung .service-list, #beratung .offer-tabs button { font-size: 16px; }
  #beratung .price-row span, #beratung .medical-note { font-size: 13px; }
}
@media screen and (min-width: 1600px) and (min-height: 651px) {
  #world {
    --spread-width: min(84rem, calc(100vw - 2 * var(--gutter)));
    --spread-edge: calc((100vw - var(--spread-width)) / 2);
    --recognition-height: min(40rem, 68vh);
    --recognition-top: calc(50% - var(--recognition-height) / 2);
  }
  #start, #verstanden { padding-inline: var(--spread-edge); }
  #weg .path-heading { padding-inline-start: calc(var(--spread-edge) - var(--gutter)); }
  #start .hero-content, #verstanden .recognition-content { width: 49%; }
  #start .hero-byline { left: var(--spread-edge); }
  .photo-hero {
    --hero-height: min(45rem, 72vh);
    right: var(--spread-edge);
    top: calc(50% - var(--hero-height) / 2 + 8px);
    width: calc(var(--spread-width) * .475);
    height: var(--hero-height);
  }
  body:is([data-leg="0"], [data-leg="1"]) #orb {
    right: calc(var(--spread-edge) - 2rem);
    width: min(32rem, 52vh);
    height: min(32rem, 52vh);
  }
  .photo-recognition, .question-cloud {
    inset: var(--recognition-top) var(--spread-edge) auto auto;
    width: calc(var(--spread-width) * .51);
    height: var(--recognition-height);
  }
  .photo-recognition { border-radius: 40% 8% 8% 32% / 40% 8% 8% 34%; }
  .has-journey #kontakt .final-content {
    margin-inline: var(--spread-edge) 0;
    width: calc(var(--spread-width) * .49);
  }
  .photo-finale {
    --finale-height: min(40rem, calc(100vh - var(--header-h) - 12rem));
    right: var(--spread-edge);
    top: calc(50% - var(--finale-height) / 2);
    width: calc(var(--spread-width) * .49);
    height: var(--finale-height);
    border-radius: 49% 42% 7% 43% / 46% 46% 8% 43%;
  }
  body[data-leg="5"] #orb { visibility: hidden; }
}
@media screen and (min-width: 1600px) and (min-height: 651px) and (max-height: 820px) {
  #start {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }
  #start .hero-content { padding-bottom: 0; }
  #start h1 { font-size: clamp(74px, 12vh, 98px); }
  #start .eyebrow { margin-bottom: 14px; }
  #start .intro { font-size: 17px; margin-top: 18px; }
  #start .hero-actions { margin-top: 18px; }
  #start .hero-byline { position: static; }
  #verstanden h2 { font-size: clamp(54px, 9.2vh, 72px); margin-bottom: 18px; }
  #verstanden .recognition-content > p { max-width: 46ch; margin-top: 12px; }
  #verstanden .voice { margin-top: 18px; }
  #verstanden .voice blockquote p { font-size: 22px; }
  #scene .question-float { font-size: 22px; padding: 8px 16px; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(20px, 2.5vh, 32px);
}
.hero-actions .button { margin-top: 0; }
.secondary-action,
.email-link.local-action {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  width: fit-content;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #a3a18f;
  text-underline-offset: .35em;
}
.secondary-action:hover,
.email-link.local-action:hover { text-decoration-color: currentColor; }
.email-link.local-action {
  display: flex;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.voice {
  max-width: 43ch;
  margin: clamp(18px, 2.8vh, 32px) 0 0;
  padding-inline-start: 16px;
  border-inline-start: 2px solid #af735c;
}
.voice blockquote { margin: 0; }
.scene-copy .voice blockquote p {
  margin: 0;
  font: italic 400 clamp(21px, 1.75vw, 27px)/1.16 "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
}
.voice figcaption {
  margin-top: 7px;
  color: #505b4d;
  font: 400 12px/1.5 "DM Sans", sans-serif;
}
.voice figcaption a {
  display: inline-block;
  padding-block: 5px;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.site-footer {
  color: var(--ink);
  font-size: clamp(1rem, .94vw, 1.125rem);
  line-height: 1.5;
}
.site-footer .footer-group,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media screen and (min-width: 761px) and (min-height: 651px) {
  :root { --journey-nav-height: 73px; }
  .journey-nav {
    inset-inline: 0;
    height: var(--journey-nav-height);
    padding-inline: var(--gutter);
  }
  body[data-leg="5"] .journey-nav { background: var(--paper); }
  .has-journey #kontakt {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: var(--header-h) 0 var(--journey-nav-height);
    transform: none !important;
  }
  #kontakt .final-content {
    margin-inline: var(--gutter);
    width: calc(57% - var(--gutter));
    padding-bottom: 0;
  }
  #kontakt .site-footer {
    position: static;
    align-self: end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 28px;
    padding: 6px var(--gutter);
  }
}
@media screen and (min-width: 761px) and (min-height: 651px) and (max-height: 780px) {
  #kontakt .final-content { width: calc(50% - var(--gutter)); }
  #kontakt h2 { font-size: clamp(48px, 5.7vw, 72px); margin-bottom: 14px; }
  #kontakt .final-content > p { font-size: 16px; line-height: 1.5; }
  #kontakt .final-content .button { margin-top: 16px; }
}
@media (min-width: 761px) and (max-width: 1050px) and (min-height: 651px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .question-float {
    max-width: 36vw;
    padding: 9px 14px;
    font-size: clamp(18px, 2.45vw, 25px);
  }
  .question-float:nth-child(3) { right: 5%; }
}
@media (max-width: 760px), (max-height: 650px) {
  .hero-actions { gap: 4px 20px; }
  .hero-actions .button { margin: 0; }
  .scene-copy .voice { margin-top: 26px; }
  .scene-copy .voice blockquote p { font-size: 24px; }
  .site-footer .footer-group { display: grid; gap: 8px; }
  .path-tool .need-choices button { min-height: 44px; }
  .site-footer nav {
    align-items: center;
    column-gap: 15px;
    row-gap: 0;
  }
}
@media (max-width: 540px) and (orientation: portrait) {
  html { scroll-padding-top: calc(68px + env(safe-area-inset-top)); }
  .site-header {
    height: calc(68px + env(safe-area-inset-top));
    padding-block: calc(12px + env(safe-area-inset-top)) 12px;
  }
  .mobile-menu {
    top: calc(72px + env(safe-area-inset-top));
    max-height: calc(100dvh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .hero-copy { padding-top: calc(92px + env(safe-area-inset-top)); }
  .hero-copy .intro { margin-top: 16px; }
  .hero-actions { margin-top: 16px; }
  .mobile-hero-photo { margin-top: 22px; }
  .journey-nav, .is-dark .journey-nav {
    height: auto;
    flex-wrap: wrap;
    gap: 0 1px;
    padding-inline: max(4px, env(safe-area-inset-left)) max(4px, env(safe-area-inset-right));
    justify-content: space-around;
  }
  .route-link {
    flex: 1 0 auto;
    min-width: 44px;
    min-height: 50px;
    gap: 4px;
    font-size: 12px;
  }
  .route-link .route-full { display: none; }
  .route-link .route-compact { display: inline; }
  .finale-copy { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
