#angebot-bg {
  height: clamp(500px, 60vw, 700px);
  overflow: hidden;
  background: url('../images/index/ernst.jpg');
  background-repeat: no-repeat;
  background-position: 80% 0%;
  background-size: cover;
}

#angebot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  height: 100%;
}

#angebot h1 {
  margin: 0px;
  font-size: var(--font-title);
  line-height: 1.2;
  color: var(--grey-light);
}

#angebot ul {
  margin: 0px;
  font-size: var(--font-lg);
  color: var(--grey-light);
}

@media (max-width: 640px) {
  #angebot ul {
    font-size: var(--font-base);
  }
}

#button-angebot {
  margin-left: clamp(0rem, 2vw, 2rem);
}

#leistungen .heading-1 {
  text-align: center;
}

#leistungen .post-grid {
  margin-top: 0;
}

#leistungen .post-card-image {
  aspect-ratio: 5 / 4;
  background: var(--white);
}

#leistungen .post-card-image img {
  padding-top: 1rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

#leistungen .post-card h2 {
  font-size: var(--font-lg);
}

#leistungen .post-card p {
  margin: 0;
  font-size: var(--font-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  #leistungen .post-grid {
    grid-template-columns: 1fr;
  }

  #leistungen .post-card {
    flex-direction: row;
  }

  #leistungen .post-card-image {
    flex: 0 0 36%;
    min-height: 170px;
    aspect-ratio: auto;
  }

  #leistungen .post-card-image img {
    padding-top: 0.75rem;
  }

  #leistungen .post-card-body {
    padding: 1rem 1.1rem;
  }

  #leistungen .post-card h2 {
    font-size: var(--font-lg);
  }

  #leistungen .post-card p {
    font-size: var(--font-sm);
  }
}

#ablauf-bg {
  margin-top: 60px;
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--black-rgb), 0.5), rgba(var(--black-rgb), 0.5)),
    url('../images/index/viessmann.jpg');
  background-position: 20% 75%;
  background-size: cover;
}

#ablauf .heading-1 {
  color: var(--grey-light);
}

#ablauf ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 40px;
  align-content: space-evenly;
  padding: 0px;
  color: var(--grey-light);
  list-style: none;
  counter-reset: my-counter;
}

@media (min-width: 900px) {
  #ablauf ul {
    height: 360px;
  }
}

#ablauf li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  font-weight: bold;
  vertical-align: middle;
  content: counter(my-counter);
  counter-increment: my-counter;
  border: 2px solid var(--grey-light);
  border-radius: 50%;
}

#ablauf li span {
  display: inline-block;
  vertical-align: middle;
}
