/* Stoeckl: edge-to-edge photos, 2026-11-10.
 * The original edition styles own the image windows, arches, object-fit,
 * hover and drift. No global contain, inner padding or replacement frames.
 * Only Jobs and About need an intrinsic image ratio instead of a crop to
 * the old placeholder or a landscape mobile frame. Native CMS IDs remain.
 */

.jobs-photo { width:min(calc(100% - 24px),520px); min-width:0; }
.jobs-photo-window { overflow:visible; }
.jobs-photo #jobs-teamfoto {
  display:block; width:100% !important; height:auto !important;
  min-height:0 !important; max-height:none !important; aspect-ratio:auto 4 / 3 !important;
  object-fit:cover; object-position:center; padding:0; border-radius:0;
}
/* Keep seasonal ornaments above the rectangular photo, clear of faces. */
.jobs-photo-window::after { top:auto; bottom:100%; right:5%; width:30%; max-width:120px; }
@media(max-width:960px) {
  .jobs-lead-grid { grid-template-columns:minmax(0,1fr); }
  .jobs-photo { width:min(calc(100% - 24px),520px); justify-self:center; margin-inline:0; }
}

/* About portrait: the frame follows the portrait at every viewport width.
 * A mobile landscape aspect ratio must not crop off the top of the head. */
.detail-image #ueber-uns-index-39 {
  width:100% !important; height:auto !important;
  aspect-ratio:auto 1060 / 1484 !important; max-height:none !important;
  object-fit:cover; object-position:center top;
}

/* Keep the existing campaign cards inside narrow viewports. */
.service-campaign-slide > * { min-width:0; }
.service-campaign-copy .text-link { max-width:100%; overflow-wrap:anywhere; }
@media(max-width:699px) { .service-campaign-slide { grid-template-columns:minmax(0,1fr); } }
