/* Iman / Angelina, 4 Nov 2026. Existing CI, mobile banners and originals retained. */
body { color: #233949; }
main :is(p,li,h1,h2,h3,h4,summary,.eyebrow,.lead,.source-text,.btn,.related-card,.service-card,.card-link,.b3-link-label) {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  word-break: normal;
}
/* Emergency wrapping prevents overflow without adding artificial hyphens. */
main :is(.related-card,.service-card,.lead,.source-text) { overflow-wrap: anywhere; }

article.page .page-hero:not(.oc-r317-hero) > .hero-grid { align-items: start; }
article.page .page-hero:not(.oc-r317-hero) > .hero-grid > .hero-image {
  align-self: start; justify-content: flex-start; margin: 0;
}
article.page .page-hero:not(.oc-r317-hero) > .hero-grid > div > .eyebrow:first-child { margin-top: 0; }
.page-hero .oc-r343-reused-motif img { aspect-ratio: auto !important; height: auto !important; object-fit: contain; }

/* Give the service photographs the same usable area as other paired heroes. */
body article.oc-r38-functional .page-hero .hero-grid {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(2rem,4vw,3.5rem); align-items: start;
}
body article.oc-r38-functional .page-hero .hero-image {
  display: block; width: 100%; max-width: none; max-height: none !important; margin: 0;
}
body article.oc-r38-functional .page-hero .hero-image :is(picture,img) {
  display: block; width: 100%; height: auto !important; max-height: none; aspect-ratio: auto; object-fit: contain;
}

/* Existing panoramic shoulder artwork remains below the full-width introduction. */
body :is(#P170,#P171,#P121) .page-hero > .wrap > div,
body :is(#P170,#P171,#P121,#P049) .page-hero :is(h1,.lead),
body #P121--angehoerige :is(.wrap,p) { max-width: none; }
body :is(#P170,#P171) .page-hero .hero-image { margin: 2rem 0 0; }
body :is(#P170,#P171) .page-hero .hero-image img { aspect-ratio: auto; object-fit: contain; height: auto; max-height: none; }

body #P062--osteologieablauf .visit-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem !important; }
body #P126--besuchsablauf-title { margin-top: 2.5rem; margin-bottom: 1.25rem; }
body #P142--teamaufgaben .wrap { max-width: var(--width); }
body #P142--teamaufgaben-title { margin-bottom: 1.75rem; }
body #P142--teamaufgaben .cards-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.25rem; }
body #P142--teamaufgaben h3 { margin-bottom: .9rem; }
body #P142--teamaufgaben p { margin-top: 0; max-width: none; }

/* Button colours express the destination consistently. */
body .btn[data-oc-reception-launch] { background: #233949; color: #fff; border-color: #233949; }
body .btn[data-oc-reception-launch]:hover { background: #445a68; border-color: #445a68; color: #fff; }
body :is(#P111,#P112,#P113,#P114,#P115) a.btn[href="https://app.arzt-direkt.de/orthocoast/booking"] {
  background: #f38b1c; border-color: #f38b1c; color: #233949; text-decoration: none;
}
body :is(#P111,#P112,#P113,#P114,#P115) .side-panel > .btn { margin-block: .75rem; }
body #P124 .oc-service-choice { display: flex; flex-direction: column; }
body #P124 .oc-r343-choice-actions { margin-top: auto; min-block-size: 8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; width: 100%; }
body #P124 .oc-r343-choice-actions > .btn { margin: 0; max-width: 100%; }
@supports (grid-template-rows: subgrid) {
  body #P124 .oc-service-choice-grid { grid-template-rows: auto 1fr auto; row-gap: 1rem; }
  body #P124 .oc-service-choice { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
  body #P124 .oc-r343-choice-actions { min-block-size: 0; align-self: start; margin-top: 0; }
}

/* Use the already rendered original flyer cover on both download pages. */
body :is(#P062,#P127) .oc-flyer-download > .wrap { display: grid; grid-template-columns: minmax(8rem,12rem) minmax(0,1fr); gap: 2rem; align-items: center; }
body :is(#P062,#P127) .oc-r323-flyer-preview { display: block; max-width: 12rem; }
body :is(#P062,#P127) .oc-r323-flyer-preview img { display: block; width: 100%; height: auto; object-fit: contain; }
body .oc-flyer-download .oc-r323-flyer-description > p { font-size: .875rem; line-height: 1.5; color: #445a68; margin-block: .5rem 1rem; }
body #P103 .oc-r343-availability-note { padding: 1rem 1.25rem; border-left: 3px solid #f38b1c; background: #f4f5f6; color: #233949; line-height: 1.65; }
body #P103 .oc-r343-visible-availability { margin-block: 1.5rem 2rem; }
body #P103 .oc-r343-visible-availability > h3 { margin-bottom: 1rem; }
body #P103--doctors .doctor-grid { grid-template-columns: minmax(0,16rem); }
body #P103--doctors .doctor-card > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
body #P202 .oc-r343-clinical-group { margin-bottom: 2rem; }
body #P202 .oc-r343-clinical-group > h2 { margin-bottom: 1rem; }

@media (max-width: 64rem) {
  body #P062--osteologieablauf .visit-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 48rem) {
  body article.oc-r38-functional .page-hero .hero-grid { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  body article.oc-r38-functional .page-hero .hero-image { order: 2; }
  body #P142--teamaufgaben .cards-grid { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  body #P124 .oc-service-choice-grid { display: flex; flex-direction: column; }
  body #P124 .oc-service-choice { display: flex; }
  body #P124 .oc-r343-choice-actions { min-block-size: 0; margin-top: .75rem; }
}
@media (max-width: 40rem) {
  body #P062--osteologieablauf .visit-steps { grid-template-columns: minmax(0,1fr); }
  body :is(#P062,#P127) .oc-flyer-download > .wrap { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  body :is(#P062,#P127) .oc-r323-flyer-preview { max-width: 9rem; }
}
@media print {
  body #P010 .page-hero.oc-r317-hero,
  body #P010 .page-hero.oc-r317-hero .hero-copy :is(h1,.eyebrow,.lead,a,.oc-r310-intro),
  body .page-hero.oc-r317-hero { color: #233949 !important; }
}

/* Portrait reception photographs: keep both colleagues visible in a landscape crop. */
body :is(#P124,#P127).oc-r38-functional .page-hero .hero-image picture { aspect-ratio: 3/2; overflow: hidden; }
body :is(#P124,#P127).oc-r38-functional .page-hero .hero-image img { aspect-ratio: 3/2; height: 100% !important; object-fit: cover; object-position: center 52%; }
