/* KONTUR CMS 0.9.0.20
   Kartenblock: Die Karten nutzen immer die komplette globale Modulbreite.
   3 Karten = 3 gleich breite Spalten, 4 Karten = 4 gleich breite Spalten.
   Historische max-width-Begrenzungen der einzelnen Karten werden aufgehoben. */

body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4,
.preview .cms-balanced-grid.cms-auto-4{
  display:grid !important;
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)) !important;
  gap:24px !important;
  justify-content:stretch !important;
  justify-items:stretch !important;
  align-items:stretch !important;
}

body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4 > *,
.preview .cms-balanced-grid.cms-auto-4 > *{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}

/* Desktop: maximal vier Karten pro Reihe. Bei weniger Karten wird die komplette
   Modulbreite gleichmaessig unter den vorhandenen Karten aufgeteilt. */
@media (min-width:1180px){
  body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4,
  .preview .cms-balanced-grid.cms-auto-4{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }

  body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4:not(:has(> :nth-child(4))),
  .preview .cms-balanced-grid.cms-auto-4:not(:has(> :nth-child(4))){
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4:not(:has(> :nth-child(3))),
  .preview .cms-balanced-grid.cms-auto-4:not(:has(> :nth-child(3))){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4:not(:has(> :nth-child(2))),
  .preview .cms-balanced-grid.cms-auto-4:not(:has(> :nth-child(2))){
    grid-template-columns:minmax(0,1fr) !important;
  }
}

@media (max-width:760px){
  body:not(.cms-admin) .cms-width-standard .cms-balanced-grid.cms-auto-4,
  .preview .cms-balanced-grid.cms-auto-4{
    grid-template-columns:minmax(0,1fr) !important;
  }
}
