.weitere-posts-block { 
  height: 100%;
  width: 100%; 
  padding: 2rem 0rem 2rem;
  box-sizing: border-box; 
}

.weitere-posts-block-wrapper {
  max-width: 1400px;
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
  flex-direction: column;
}

.weitere-posts-block .content {
  width: 50%;
  padding-right: 4rem;
  box-sizing: border-box;
  color: #ffffff;
}  

.weitere-posts-block .content h3 { 
  font-size: 36px;
  line-height: 1.1;
  max-width: 600px;
  color: #b5a167;
  margin-bottom: 20px;
  margin-top: 10px;
  font-family: 'Vidaloka-Regular'; 
}

.weitere-posts-block .posts { 
  color: #ffffff;
  width: 100%;
  height: 280px;
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.weitere-posts-block > a.cta-button {
  text-decoration: none;
  color: #000000;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-left: 2rem;
  display: flex;
  align-items: center;
  border: none;
  align-items: center;
  background: transparent;
  margin: 1rem 0 0;
  padding-left: 0;
} 

.weitere-posts-block > a.cta-button:hover {
  background: transparent;
  color: #000000;
}
 

.weitere-posts-block .posts .referenz {
  background: #000000;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  min-height: 240px;
  cursor: pointer;
  position: relative;
  user-select: none; /* Standard-Syntax */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

.weitere-posts-block .posts .referenz .content h3 {
  font-size: 26px;
  font-family: 'Vidaloka-Regular'; 
  margin: 0;
  margin-bottom: 0.5rem;
}

@media only screen and (max-width: 768px) {
  .weitere-posts-block .posts .referenz .content h3 {
    word-break: break-word;
    hyphens: auto;
  }
}

.weitere-posts-block .posts .referenz .content {
  width: fit-content;
  padding: 0;
  max-width: 300px;
  text-align: left;
  font-family: 'Lato', sans-serif;
  z-index: 20;
}

.weitere-posts-block .posts .referenz .content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-family: 'Lato', sans-serif;
}

.weitere-posts-block .posts .referenz .content a.cta-button {
  text-align: center;
  background-color: transparent;
  font-family: 'Lato-Regular', sans-serif;
  padding-top: 16px;
  padding-left: 26px;
  padding-right: 26px;
  padding-bottom: 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  transition-property: all;
  color: #ffffff;
  border-top-color: #ffffff;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  border-left-color: #ffffff;
  margin-top: 24px;
  border-radius: 0;
  display: block;
}

.weitere-posts-block .posts .referenz .content a.cta-button:hover {
  border-top-color: #95949e;
  border-right-color: #95949e;
  border-bottom-color: #95949e;
  border-left-color: #95949e;
  background-color: #95949e;
  background: #95949e;
  color: #000000;
}

.weitere-posts-block .posts .referenz .image-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.weitere-posts-block .posts .referenz .image-wrapper .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgb(0,0,0);
  background: linear-gradient(180deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.40) 100%);
  z-index: 1;
}
 
.weitere-posts-block .posts .referenz .image-wrapper > img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

@media only screen and (max-width: 768px) {
  .weitere-posts-block .weitere-posts-block-wrapper {
    flex-direction: column;
  }
  .weitere-posts-block .posts,
  .weitere-posts-block .content {
    width: 100%;
  }
  .weitere-posts-block .content {
    padding-right: 0;
  }
  .weitere-posts-block .posts {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    height: 100%;
  }
  .weitere-posts-block {
    padding: 2rem 0rem;
  }
  .weitere-posts-block .content h3 {
    font-size: 32px;
  }
  .weitere-posts-block .content p.overline {
    font-size: 16px;
    margin-bottom: 0.4rem;
  }
  .weitere-posts-block .posts p { 
    font-size: 14px; 
    line-height: 1.3;
  }
}

/* EDITOR */
  
.block-editor-block-list__block .weitere-posts-block .weitere-posts-block-wrapper {
  flex-direction: column;
}

.block-editor-block-list__block .weitere-posts-block .posts {
  grid-template-columns: 1fr 1fr 1fr;
  height: 100%;
}

.block-editor-block-list__block .weitere-posts-block .content {
  padding-right: 0;
  width: 100%;
}

.block-editor-block-list__block .weitere-posts-block .weitere-posts-block-wrapper a.cta-button {
  margin-top: 1.5rem;
  width: fit-content;
  height: auto;
  text-decoration: none;
  display: block;
  color: #000000;
  background: #ffffff;
  border-radius: 4px;
  text-align: center;
  padding: 10px 20px;
  box-sizing: border-box;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}