/* ANGEBOT section: uniform image height via archive class (arc_26=DE, arc_33=EN, arc_38=FR) */
.layout_latest.arc_26 .image_container,
.layout_latest.arc_33 .image_container,
.layout_latest.arc_38 .image_container {
  overflow: hidden;
  height: 242px;
}
.layout_latest.arc_26 .image_container img,
.layout_latest.arc_33 .image_container img,
.layout_latest.arc_38 .image_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Homepage TEAM section: only show 3 items */
body.home .mod_newslist.team .layout_latest:nth-child(n+4) { display: none; }

/* ANGEBOT cards: spacing around image and CTA link */
.layout_latest.arc_26 .image_container,
.layout_latest.arc_33 .image_container,
.layout_latest.arc_38 .image_container {
  margin-bottom: 12px;
}
.layout_latest.arc_26 > a,
.layout_latest.arc_33 > a,
.layout_latest.arc_38 > a {
  display: block;
  margin-top: 12px;
}
/* Row gap between grid rows */
.layout_latest.arc_26,
.layout_latest.arc_33,
.layout_latest.arc_38 {
  padding-bottom: 24px;
}

/* Load-more button */
.se-more-btn {
  display: block;
  margin: 20px auto 10px;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid #b81f24;
  color: #b81f24;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.se-more-btn:hover {
  background: #b81f24;
  color: #fff;
}

/* Publikationen: headings above their section (override the staggered default grid).
   Original CSS puts :nth-child(2) in row 1 col 1 (newslist) and :nth-child(3) in row 2 col 1 (heading).
   We swap the row assignments so h2 → row 1, newslist → row 2 for each column. */
body.publikationen #main .mod_article > :nth-child(1) { grid-area: 1 / 1; }
body.publikationen #main .mod_article > :nth-child(2) { grid-area: 2 / 1; }
body.publikationen #main .mod_article > :nth-child(3) { grid-area: 1 / 2; }
body.publikationen #main .mod_article > :nth-child(4) { grid-area: 2 / 2; }
body.publikationen #main .mod_article > :nth-child(5) { grid-area: 1 / 3; }
body.publikationen #main .mod_article > :nth-child(6) { grid-area: 2 / 3; }

/* Projekte page: hide server-side pagination (replaced by JS load-more button) */
.pagination { display: none; }

/* TEAM: einheitliches Bildformat (3:2), unabhaengig vom Seitenverhaeltnis des Originals.
   arc_2 = DE, arc_6 = EN, arc_36 = FR. Zugeschnitten wird ueber object-fit, Kopf bleibt oben. */
.layout_latest.arc_2 .image_container img,
.layout_latest.arc_6 .image_container img,
.layout_latest.arc_36 .image_container img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 372 / 242;
  object-fit: cover;
  object-position: 50% 20%;
}
