.ersatzteile {
  position: relative;
  padding-top: 100px;
  padding-bottom: 70px;
}

.ersatzteile-title {
  margin-bottom: 70px;
}

.ersatzteile-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 90px 80px;
}

.ersatzteile-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ersatzteile-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 272px;
  height: 100vh;
  width: 100%;
  border-radius: 35px;
  overflow: hidden;
  margin-bottom: 32px;
}
.ersatzteile-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.12s ease-in-out;
}
.ersatzteile-card__base {
  width: 100%;
  text-align: center;
}
.ersatzteile-card__info {
  margin-top: auto;
  text-align: center;
}
.ersatzteile-card__name {
  text-align: center;
  margin-bottom: 44px;
}
.ersatzteile-card__content {
  margin-bottom: 40px;
}
.ersatzteile-card__price {
  width: 100%;
  text-align: center;
  margin-top: auto;
}
@media (any-hover: hover) {
  .ersatzteile-card:hover figure.ersatzteile-card__image img {
    transform: scale(1.1);
    transition: transform 0.12s ease-in-out;
  }
}

.ersatzteile-form-title {
  margin-bottom: 64px;
  margin-top: 190px;
}
.ersatzteile-form-title h2.section-title span.title-primary {
  width: 100%;
  text-align: center;
}

.ersatzteile-form__wrapper {
  position: relative;
  z-index: 0;
}
.ersatzteile-form__wrapper::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: 0;
  top: 320px;
  background-image: url("../../../img/pattern-right.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 254px;
  height: 730px;
  z-index: -1;
}
@media screen and (max-width: 1440px) {
  .ersatzteile-form__wrapper::after {
    width: 197px;
    height: 558px;
  }
}
@media screen and (max-width: 1280px) {
  .ersatzteile-form__wrapper::after {
    width: 172px;
    height: 489px;
  }
}
@media screen and (max-width: 1024px) {
  .ersatzteile-form__wrapper::after {
    width: 134px;
    height: 380px;
    top: -50px;
  }
}
@media screen and (max-width: 768px) {
  .ersatzteile-form__wrapper::after {
    width: 84px;
    height: 240px;
  }
}
@supports (width: clamp(1px, 2vw, 3px)) and (height: clamp(1px, 2vw, 3px)) {
  .ersatzteile-form__wrapper::after {
    width: clamp(84px, 13.8vw, 254px);
    height: clamp(240px, 38.1vw, 730px);
  }
}

/* .ersatzteile-form {
  position: relative;
  padding: 45px 50px 12px 50px;
  border-radius: 25px;
  flex: 1 480px;
  overflow: hidden;
  border: 1px solid var(--savian);
  background: linear-gradient(332deg, rgba(0, 0, 0, 0) 0%, rgb(182, 221, 213) 200%);
}
.ersatzteile-form input.wpcf7-form-control.wpcf7-submit.has-spinner.button-primary {
  margin-top: 80px;
  float: right;
}
.ersatzteile-form button#add-part-row {
  background-color: transparent;
  border: 1px solid;
  font-size: 14px;
  line-height: 1;
  padding: 12px 15px 8px 15px;
  transition: background-color 0.12s ease-in-out, color 0.12s ease-in-out;
}
@media screen and (any-hover: hover) {
  .ersatzteile-form button#add-part-row:hover {
    background-color: var(--schwarz);
    color: var(--white);
    transition: background-color 0.12s ease-in-out, color 0.12s ease-in-out;
  }
}
.ersatzteile-form button.remove-part-row {
  background-color: transparent;
  border: 1px solid;
  font-size: 14px;
  line-height: 1;
  padding: 12px 15px 8px 15px;
  transition: background-color 0.12s ease-in-out, color 0.12s ease-in-out;
  margin-bottom: auto;
  margin-top: 4px;
}
@media screen and (any-hover: hover) {
  .ersatzteile-form button.remove-part-row:hover {
    background-color: #ffa3a3;
    border-color: #ffa3a3;
    transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out;
  }
}
.ersatzteile-form #parts-selection {
  margin-top: 37px;
  margin-bottom: 70px;
}
.ersatzteile-form .parts-selection-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ersatzteile-form .parts-selection-row span.wpcf7-form-control-wrap[data-name=part-count] {
  max-width: 100px;
}
.ersatzteile-form .parts-selection-row span.wpcf7-form-control-wrap[data-name=part-select] {
  width: 100%;
} */

@media screen and (max-width: 1180px) {
  .ersatzteile {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .ersatzteile-form-title {
    margin-bottom: 40px;
    margin-top: 40px;
  }
  .ersatzteile-form {
    padding: 27px 5px 17px 5px;
  }
}