@charset "UTF-8";
:root {
  --gap: 40px;
  --spaceBetweenDefault: 20px;
}
.px-teaserwall {
  container-type: inline-size;
}
.px-teaserwall-inner {
  width: var(--baseWidth);
  max-width: var(--maxWidthBig);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}
@container (width <=800px) {
  .px-teaserwall-inner {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}
@container (width <=450px) {
  .px-teaserwall-inner {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }
}
.px-teaserwall-inner .item {
  position: relative;
  height: clamp(16.6666666667rem, 14.4144144144rem + 12.6689189189vw, 25rem);
  background-color: none;
}
.px-teaserwall-inner .item:nth-child(4n+2), .px-teaserwall-inner .item:nth-child(4n+3) {
  grid-column: span 2;
}
@container (width <=1413px) {
  .px-teaserwall-inner .item {
    grid-column: span 1;
  }
  .px-teaserwall-inner .item:nth-child(4n+2), .px-teaserwall-inner .item:nth-child(4n+3) {
    grid-column: unset;
  }
  .px-teaserwall-inner .item:nth-child(3n+3) {
    grid-column: span 2;
  }
}
@container (width <=934px) {
  .px-teaserwall-inner .item {
    grid-column: span 1;
  }
  .px-teaserwall-inner .item:nth-child(3n+3) {
    grid-column: span 1;
  }
}
.px-teaserwall-inner .item > .image {
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.px-teaserwall-inner .item > .image:not(.image-color) img {
  filter: grayscale(1);
}
.px-teaserwall-inner .item > .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.px-teaserwall-inner .item > .image::after {
  transition: var(--baseTransition);
  opacity: 1;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.9) 100%);
}
.px-teaserwall-inner .item > .image::before {
  transition: var(--baseTransition) 0.15s;
  z-index: 1;
  opacity: 0;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}
.px-teaserwall-inner .item:not(:has(.content)) .image::before {
  top: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.3) 100%);
  transition: var(--baseTransition);
}
.px-teaserwall-inner .item .content {
  z-index: 2;
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #fff;
  transition: transform 0.3s ease;
  transform: translateY(0);
}
.px-teaserwall-inner .item .content .text {
  padding: 0 40px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
@container (width <=640px) {
  .px-teaserwall-inner .item .content .text {
    padding: 0 20px;
  }
}
.px-teaserwall-inner .item .content .title {
  padding: 40px;
  font-weight: 400;
  color: var(--contrastColorInverted);
  transition: var(--baseTransition);
}
@container (width <=640px) {
  .px-teaserwall-inner .item .content .title {
    padding: 20px;
  }
}
.px-teaserwall-inner .item:hover {
  opacity: 1;
}
.px-teaserwall-inner .item:hover:has(.content) .image::before {
  opacity: 1;
  transition: var(--baseTransition);
}
.px-teaserwall-inner .item:hover:not(:has(.content)) .image::before {
  opacity: 1;
  top: 0;
  transition: var(--baseTransition);
}
.px-teaserwall-inner .item:hover .content {
  transition: var(--baseTransition);
  transform: translateY(-40px);
  /* Headline nach oben */
}
.px-teaserwall-inner .item:hover .text {
  opacity: 1;
  max-height: 300px;
  /* Platz für den Text */
}
.px-teaserwall-inner .item:hover .title {
  transition: var(--baseTransition);
  padding: 20px 40px;
}
@container (width <=640px) {
  .px-teaserwall-inner .item:hover .title {
    padding: 20px;
  }
}
.editor-styles-wrapper .px-teaserwall-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.editor-styles-wrapper .px-teaserwall-inner h4::before {
  content: "<h4>";
  display: block;
  width: fit-content;
}
.editor-styles-wrapper .px-teaserwall-inner .item:nth-child(4n+2), .editor-styles-wrapper .px-teaserwall-inner .item:nth-child(4n+3) {
  grid-column: span 2;
}
