/* OTHMAN Dienstleistungen — exact responsive image geometry taken from the
   BABIN BAU supplied Leistungen page (2 equal columns, 70/40 px gap,
   1.3 desktop and 1.4 mobile image aspect ratio).
   Only affects Leistungen page service rows. */
.babin-size-service-rows {
  width: min(calc(100% - 96px), 1240px);
  display: flex;
  flex-direction: column;
  gap: 85px;
}
.babin-size-service-rows > .service-detail {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  border: 0;
  min-width: 0;
}
.babin-size-service-rows > .service-detail:nth-child(even) .detail-image {
  order: 2;
}
.babin-size-service-rows > .service-detail > .detail-image {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  height: auto;
  max-height: none;
  aspect-ratio: 1.3;
  overflow: hidden;
  background: #eee;
  border-radius: 0;
  padding: 0;
}
.babin-size-service-rows > .service-detail > .detail-image > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.babin-size-service-rows > .service-detail > .detail-image > .image-number {
  z-index: 1;
}
@media (max-width: 1200px) {
  .babin-size-service-rows { width: calc(100% - 64px); }
}
@media (max-width: 1000px) {
  .babin-size-service-rows > .service-detail { gap: 40px; }
}
@media (max-width: 760px) {
  .babin-size-service-rows {
    width: calc(100% - 40px);
    gap: 55px;
  }
  .babin-size-service-rows > .service-detail,
  .babin-size-service-rows > .service-detail:nth-child(even) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding: 0;
  }
  .babin-size-service-rows > .service-detail:nth-child(even) .detail-image { order: 0; }
  .babin-size-service-rows > .service-detail > .detail-image { aspect-ratio: 1.4; }
}
@media (max-width: 360px) {
  .babin-size-service-rows { width: calc(100% - 30px); }
}
