/* HomeandSmart Latest Posts Grid (Frontend) */

/* Block Wrapper */
.hs-lpg{
  position: relative;
  padding: 48px 0;
  z-index: 0;
}

/* Vollflächiger blauer Hintergrund */
.hs-lpg::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  left: 50%;
  width: 100vw;
  transform: translateX(-50%);

  background: #fff;
  z-index: -1;

  max-width: var(--content-width);
  max-width: 1440x;
}

.hs-lpg__grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:18px;
  align-items:stretch;

  /* Inhalt bleibt sauber im Grid */
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.hs-lpg__card{
  display:block;
  position:relative;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  background:#e6e6e6;
  min-height:220px;
}

.hs-lpg__card--featured{
  grid-column:1 / 2;
  grid-row:1 / 3;
  min-height:420px;
}

.hs-lpg__card:nth-child(2){ grid-column:2 / 3; grid-row:1 / 2; }
.hs-lpg__card:nth-child(3){ grid-column:3 / 4; grid-row:1 / 2; }
.hs-lpg__card:nth-child(4){ grid-column:2 / 3; grid-row:2 / 3; }
.hs-lpg__card:nth-child(5){ grid-column:3 / 4; grid-row:2 / 3; }

.hs-lpg__media{ position:relative; width:100%; height:100%; }

.hs-lpg__img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.hs-lpg__img--placeholder{
  width:100%;
  height:100%;
  background:#cfcfcf;
}

.hs-lpg__badge {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 3;
  background: #378CB5;
  color: #fff;
  font-weight: 400;
  font-family: 'Brandon Text Regular';  
  font-size: 16px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
}

s.hs-lpg__gradient{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,0) 70%);
}

.hs-lpg__title{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:3;
  margin:0;
  color:#fff;
  font-weight: 400;
  font-family: 'Brandon Text Medium';  
  letter-spacing:.2px;
  text-shadow:0 2px 14px rgba(0,0,0,.45);
  font-size:22px;
  line-height:1.2;
}

.hs-lpg__card:not(.hs-lpg__card--featured) .hs-lpg__title{
  font-size:16px;
  bottom:12px;
  left:12px;
  right:12px;
}

@media (max-width:767px){
  .hs-lpg__grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
    padding: 0 22px;
  }
  .hs-lpg__card--featured{
    grid-row:auto;
  }
  .hs-lpg__card:nth-child(2),
  .hs-lpg__card:nth-child(3),
  .hs-lpg__card:nth-child(4),
  .hs-lpg__card:nth-child(5){ grid-column:1/1; grid-row:auto; }
  .hs-lpg {
    position: relative;
    padding: 0px 15px;
    z-index: 0;
  }

}

@media (max-width:560px){
  .hs-lpg__grid{ grid-template-columns:1fr; padding: 0 16px; }
  .hs-lpg__card{ min-height:220px; }
  .hs-lpg__card--featured{ min-height:260px; }
  .hs-lpg__title{ font-size:18px; }
}


/* overrides */
.hs-lpg__grid{padding:0px;}