.fp-hero {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 15 / 10;
  min-height: 50svh;
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--image-overlay-font, #fff);
  background-color: var(--color-main);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.fp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--image-overlay);
  pointer-events: none;
}

.fp-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 100%;
}

.fp-hero__content {
  width: min(100%, 30rem);
  padding-top: clamp(6rem, 22vh, 9rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}

.fp-hero__title {
  margin: 0;
  color: var(--image-overlay-font, #fff);
  font-family: var(--font-primary);
  font-size: clamp(2.1rem, 11vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.fp-hero__subtitle {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--image-overlay-font, #fff);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fp-hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: 1.5rem;
  border-radius: 999px;
  background: var(--color-footer);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.fp-hero__scroll:hover,
.fp-hero__scroll:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fp-hero__scroll-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.fp-centered-text {
  color: var(--color-main-font);
}

.fp-centered-text__content {
  text-align: center;
}

.fp-centered-text__content > :last-child {
  margin-bottom: 0;
}

.fp-cta-bottom {
  color: var(--color-main-font);
}

.fp-cta-bottom__text {
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.fp-cta-bottom__text h2,
.fp-cta-bottom__text .h2 {
  font-size: 2rem;
}

.fp-cta-bottom__text > :first-child {
  margin-top: 0;
}

.fp-cta-bottom__text > :last-child {
  margin-bottom: 0;
}

.fp-cta-bottom__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.fp-cta-bottom__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-font);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.fp-cta-bottom__button:hover,
.fp-cta-bottom__button:focus {
  background: var(--button-hover-bg);
  color: var(--button-hover-font);
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-gallery {
  color: var(--color-main-font);
}

.fp-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fp-gallery__item {
  margin: 0;
}

.fp-gallery__link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 30px;
}

.fp-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-gallery__caption {
  margin: 8px 0 0;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

@media only screen and (max-width: 767.98px) {
  .fp-gallery__item:nth-child(3) {
    display: none;
  }
}

.fp-lagertyper {
  color: var(--color-main-font);
}

.fp-lagertyper__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.fp-lagertyper__title {
  margin: 0;
  color: var(--color-main-font);
  font-family: var(--font-primary);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.fp-lagertyper__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.fp-lagertyper__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-main-font);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.fp-lagertyper__button:hover,
.fp-lagertyper__button:focus {
  color: var(--color-main-font-hover);
  transform: translateY(-1px);
}

.fp-lagertyper__viewport {
  --fp-lagertyper-gap: 18px;
  --fp-lagertyper-card-width: min(85vw, 320px);
  width: 100%;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 8px;
}

.fp-lagertyper__track {
  display: flex;
  gap: var(--fp-lagertyper-gap);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  cursor: grab;
}

.fp-lagertyper__track::-webkit-scrollbar {
  display: none;
}

.fp-lagertyper__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.fp-lagertyper__card {
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--fp-lagertyper-card-width);
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-main-alt);
  color: var(--color-main-alt-font);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.fp-lagertyper__card.is-sold::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(242, 239, 232, 0.36), rgba(34, 40, 47, 0.34)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(34, 40, 47, 0.16));
  pointer-events: none;
}

.fp-lagertyper__card.is-sold .fp-lagertyper__media {
  opacity: 0.74;
}

.fp-lagertyper__card > * {
  position: relative;
  z-index: 2;
}

.fp-lagertyper__sold-badge {
  position: absolute;
  top: 46px;
  right: -18px;
  z-index: 3;
  transform: translateY(14px) rotate(11deg) scale(1.14);
  pointer-events: none;
}

.fp-lagertyper__sold-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.82rem 1.35rem;
  border: 1px solid rgba(242, 239, 232, 0.34);
  border-radius: 999px;
  background: rgba(34, 40, 47, 0.6);
  color: #f2efe8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  font-family: var(--font-primary);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fp-lagertyper__media {
  aspect-ratio: 1 / 0.6;
  overflow: hidden;
  background: rgba(34, 40, 47, 0.08);
}

.fp-lagertyper__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.fp-lagertyper__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
}

.fp-lagertyper__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.fp-lagertyper__card-title {
  margin: 0;
  color: var(--color-main-alt-font);
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.fp-lagertyper__kvm {
  margin: 0;
  color: var(--color-main-alt-font);
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  font-weight: 700;
  white-space: nowrap;
}

.fp-lagertyper__facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fp-lagertyper__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(34, 40, 47, 0.18);
}

.fp-lagertyper__fact dt,
.fp-lagertyper__fact dd {
  margin: 0;
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  line-height: 1.35;
}

.fp-lagertyper__fact dt {
  color: rgba(34, 40, 47, 0.85);
  font-size: 1.1rem;
  line-height: 1;
}

.fp-lagertyper__fact-icon {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  object-fit: contain;
}

.fp-lagertyper__fact dd {
  color: var(--color-main-alt-font);
  font-weight: 600;
  text-align: right;
}

.fp-lagertyper__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.fp-lagertyper__price {
  margin: 0;
  color: var(--color-main-alt-font);
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.fp-lagertyper__request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-font);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.fp-lagertyper__request:hover,
.fp-lagertyper__request:focus {
  background: var(--button-hover-bg);
  color: var(--button-hover-font);
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-lagertyper__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.fp-lagertyper__dot {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.5);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
}

.fp-lagertyper__dot.is-active {
  width: 30px;
  background: rgba(242, 239, 232, 0.9);
}

@media only screen and (min-width: 500px) {
  .fp-cta-bottom__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fp-cta-bottom__button {
    width: auto;
    min-width: 180px;
  }
}

@media only screen and (min-width: 768px) {
  .fp-lagertyper__viewport {
    --fp-lagertyper-card-width: calc((100% - var(--fp-lagertyper-gap)) / 2);
  }

  header.header-container--transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 30;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  header.header-container--transparent .header-container-inner {
    position: relative;
    z-index: 1;
  }
}

@media only screen and (min-width: 992px) {
  .fp-hero {
    aspect-ratio: auto;
    min-height: 100svh;
    max-height: none;
  }

  .fp-hero__inner {
    min-height: 100svh;
  }

  .fp-gallery__grid {
    gap: 20px;
  }

  .fp-lagertyper__viewport {
    --fp-lagertyper-gap: 20px;
    --fp-lagertyper-card-width: calc((100% - (2 * var(--fp-lagertyper-gap))) / 3);
    padding-top: 14px;
  }

  .fp-hero__content {
    width: min(100%, 46rem);
  }

  .fp-hero__subtitle {
    margin-top: 1.1rem;
  }

  .fp-hero__scroll {
    width: 3.6rem;
    height: 3.6rem;
    margin-top: 2rem;
  }

  .fp-hero__scroll-icon {
    font-size: 1.05rem;
  }
}

@media only screen and (min-width: 1501px) {
  .fp-hero__content {
    max-width: 52rem;
  }
}

@media only screen and (min-width: 768px) {
  .fp-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fp-lagertyper__body {
    padding: 40px;
  }

  .fp-lagertyper__footer {
    gap: 16px;
  }
}
