
@media only screen and (max-width: 767px) {
  :where(.hg-wp--02) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  :where(.hg-wp--02) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  :where(.hg-wp--02) h1 {
    font-size: 28px !important;
  }

  :where(.hg-wp--02) h2 {
    font-size: 21px !important;
  }

  :where(.hg-wp--02) h3 {
    font-size: 18px !important;
  }

  :where(.hg-wp--02) h4,
  :where(.hg-wp--02) h5 {
    font-size: 14px !important;
  }

  :where(.hg-wp--02) h6 {
    font-size: 12px !important;
  }
}

.hg-wp--02 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;

  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;
  --hg-font-body: 16px;
  --hg-font-lead: 18px;

  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}

@media (min-width: 992px) {
  .hg-wp--02 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}

@media (max-width: 767px) {
  .hg-wp--02 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;

    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;
    --hg-font-body: 14px;
    --hg-font-lead: 14px;

    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}

/* Einheitliche Abschnittsabstände */

:is(#main, body) :where(.hg-wp--02) :is(
  #hg-immobilien-intro,
  #hg-featured-properties,
  #hg-reference-slider,
  #hg-reference-slider-v6,
  #hg-service-overview,
  #hg-numbers,
  #hg-zahlen-slider,
  #hg-company-profile,
  #hg-partners,
  .hg-partner-section,
  #hg-customer-reviews,
  #hg-reviews,
  #hg-home-guide,
  #hg-home-contact,
  #hg-immobilienkompetenz
):not(.hg-section *) {
  margin-block: 0 !important;

  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}

:is(#main, body) :where(.hg-wp--02)
#hg-immobilien-intro > .hg-intro-inner {
  padding-block: 0 !important;
}

:is(#main, body) :where(.hg-wp--02) :is(
  #hg-immobilien-intro .hg-intro-title,
  #hg-immobilien-intro .hg-intro__title,
  #hg-reference-slider .hgrf__title,
  #hg-reference-slider-v6 .hgrf__heading,
  #hg-service-overview .hgsvc__heading,
  #hg-company-profile .hgcp__heading,
  #hg-partners .hgp__title,
  .hg-partner-section .hg-partner-section__title,
  #hg-home-contact .hgc__header h2
) {
  margin-bottom: var(--hg-space-heading) !important;
}

/* Einleitungsabschnitt */

:where(.hg-wp--02) #hg-immobilien-intro {
  width: 100%;
  margin: 0;
  padding: clamp(72px, 6vw, 96px) 0;

  background: transparent;
  color: #111111;

  font-family: inherit;
  box-sizing: border-box;
}

:where(.hg-wp--02) #hg-immobilien-intro,
:where(.hg-wp--02) #hg-immobilien-intro *,
:where(.hg-wp--02) #hg-immobilien-intro *::before,
:where(.hg-wp--02) #hg-immobilien-intro *::after {
  box-sizing: border-box;
}

/* Desktopaufteilung */

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 390px);

  align-items: center;
  column-gap: clamp(48px, 7vw, 125px);

  width: 100%;

  margin: 0;
  padding: 0;
}

/* Textbereich */

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__content {
  width: 100%;
  max-width: 670px;
  min-width: 0;

  margin: 0;
  padding: 0;
}

/* Zweizeilige Hauptüberschrift */

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__title {
  display: block;
  width: 100%;

  margin: 0 0 28px;
  padding: 0;
  border: 0;

  background: transparent;
  color: #111111 !important;

  font-family: inherit !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;

  letter-spacing: -0.02em !important;
  text-align: left;
  text-transform: none !important;
}

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__title-line {
  display: block;
  white-space: nowrap;
}

/* Fließtext */

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__text {
  width: 100%;

  margin: 0 0 22px;
  padding: 0;

  color: #111111;

  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;

  letter-spacing: 0 !important;
  text-align: left;
}

:where(.hg-wp--02) #hg-immobilien-intro
.hg-intro__text:last-child {
  margin-bottom: 0;
}

/* Porträt */

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__portrait {
  display: block;

  align-self: center;
  justify-self: center;

  width: 100%;
  max-width: 390px;

  margin: 0;
  padding: 0;

  transform: translateY(-8px);
}

:where(.hg-wp--02) #hg-immobilien-intro
.hg-intro__portrait-image {
  display: block;

  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  box-shadow: none;

  object-fit: contain;
}

/* Tablet */

@media (max-width: 991px) {
  :where(.hg-wp--02) #hg-immobilien-intro {
    padding: 68px 0;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(250px, 36%);

    column-gap: 40px;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__title {
    font-size: 34px !important;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__text {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}

/* Smartphone */

@media (max-width: 767px) {
  :where(.hg-wp--02) #hg-immobilien-intro {
    padding: 52px 0;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 34px;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__content {
    width: 100%;
    max-width: 100%;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__title {
    margin-bottom: 22px;

    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__text {
    margin-bottom: 18px;

    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__portrait {
    align-self: center;

    width: 76%;
    max-width: 370px;

    transform: none;
  }
}

/* Kleine Smartphones */

@media (max-width: 359px) {
  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__title {
    font-size: min(28px, 8vw) !important;
  }
}

/* Gemeinsamer Inhaltsrahmen */

.hg-wp--02 {
  --hg-paper: #f2eeea;
  --hg-white: #ffffff;
  --hg-ink: #1a1a1a;
  --hg-blue: #00102a;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;
  --hg-gutter: 15px;
}

:where(.hg-wp--02) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}

:where(.hg-wp--02) .hg-intro-frame {
  padding-block-start: 35px;
}

.hg-wp--02 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}

:is(#main, body) :where(.hg-wp--02) :is(
  h1, h2, h3, h4, h5, h6,
  p, figcaption, blockquote,
  address, dt, dd, .hgv-card-body
) {
  text-align: left !important;
}

/* Bildausschnitt */

:where(.hg-wp--02) #hg-immobilien-intro .hg-intro__portrait {
  aspect-ratio: 600 / 824;
  overflow: hidden;
}

:where(.hg-wp--02) #hg-immobilien-intro
.hg-intro__portrait-image {
  height: 100% !important;

  object-fit: cover;
  object-position: center bottom;
}

@media (min-width: 992px) {
  .hg-wp--02 {
    --hg-space-section: 176px;
  }
}

@media (max-width: 767px) {
  :where(.hg-wp--02) #hg-immobilien-intro .hg-intro__portrait {
    aspect-ratio: 600 / 840;
  }
}

/* Zusätzliche vertikale WPBakery-Abstände entfernen */

#main :is(.vc_row, .vc_column-inner, .wpb_raw_html):has(
  .wpb_wrapper > .hg-wp--02
) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

/*
  MOBILE BREITENANPASSUNG

  Der Inhaltsrahmen übernimmt die tatsächliche
  Inhaltsbreite des vorhandenen Footers.
*/

@media (max-width: 991px) {
  .hg-wp--02 {
    --hgi02-fallback-width: calc(100vw - 60px);
    --hgi02-fallback-offset: calc(50% - 50vw + 30px);
  }

  .hg-wp--02 > .hg-frame {
    box-sizing: border-box;

    width: var(
      --hgi02-mobile-width,
      var(--hgi02-fallback-width)
    );

    max-width: none;
    min-width: 0;

    margin-left: var(
      --hgi02-mobile-offset,
      var(--hgi02-fallback-offset)
    );

    margin-right: 0;

    /* Der obere Innenabstand von 35 px bleibt erhalten. */
    padding-inline: 0;
  }
}

@media (max-width: 767px) {
  .hg-wp--02 {
    --hgi02-fallback-width: calc(100vw - 30px);
    --hgi02-fallback-offset: calc(50% - 50vw + 15px);
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp--02 {
    --hgi02-fallback-width: 510px;
    --hgi02-fallback-offset: calc(50% - 255px);
  }
}


@media only screen and (max-width: 767px) {
  :where(.hg-wp--03) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }
  :where(.hg-wp--03) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }
  :where(.hg-wp--03) h1 {
    font-size: 28px !important;
  }
  :where(.hg-wp--03) h2 {
    font-size: 21px !important;
  }
  :where(.hg-wp--03) h3 {
    font-size: 18px !important;
  }
  :where(.hg-wp--03) h4 {
    font-size: 14px !important;
  }
  :where(.hg-wp--03) h5 {
    font-size: 14px !important;
  }
  :where(.hg-wp--03) h6 {
    font-size: 12px !important;
  }
}

.hg-wp--03 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;
  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;
  --hg-font-body: 16px;
  --hg-font-lead: 18px;
  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}

@media (min-width: 992px) {
  .hg-wp--03 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}

@media (max-width: 767px) {
  .hg-wp--03 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;
    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;
    --hg-font-body: 14px;
    --hg-font-lead: 14px;
    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}

:is(#main, body) :where(.hg-wp--03) :is(
  #hg-immobilien-intro,
  #hg-featured-properties,
  #hg-reference-slider,
  #hg-reference-slider-v6,
  #hg-service-overview,
  #hg-numbers,
  #hg-zahlen-slider,
  #hg-company-profile,
  #hg-partners,
  .hg-partner-section,
  #hg-customer-reviews,
  #hg-reviews,
  #hg-home-guide,
  #hg-home-contact,
  #hg-immobilienkompetenz
):not(.hg-section *) {
  margin-block: 0 !important;
  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}

/* Immobilien-Slider */

:where(.hg-wp--03) .hg-property-slider,
:where(.hg-wp--03) .hg-property-slider *,
:where(.hg-wp--03) .hg-property-slider *::before,
:where(.hg-wp--03) .hg-property-slider *::after {
  box-sizing: border-box;
}

:where(.hg-wp--03) .hg-property-slider {
  width: min(100%, 1250px);
  margin: 0 auto !important;
  padding: 80px 0 !important;
  background: #f2eeea;
  color: #1a1a1a;
  box-shadow: 0 0 0 100vmax #f2eeea;
  clip-path: inset(0 -100vmax);
  font-family: inherit;
}

:where(.hg-wp--03) .hg-property-slider h2 {
  margin: 0 0 22px !important;
  color: #1a1a1a !important;
  font-family: inherit !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}

:where(.hg-wp--03) .hg-property-slider :is(
  button,
  [tabindex]
):focus-visible {
  outline: 2px solid #b4a996;
  outline-offset: 4px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-wide {
  width: var(--hgv-ref-width, 100%);
  margin-left: var(--hgv-ref-offset, 0px);
}

:where(.hg-wp--03) .hg-property-slider .hgv-track {
  --hgv-visible: 3;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

:where(.hg-wp--03) .hg-property-slider .hgv-track::-webkit-scrollbar {
  display: none;
}

:where(.hg-wp--03) .hg-property-slider .hgv-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  box-shadow: 0 2px 6px #00102a12;
  scroll-snap-align: start;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ded6;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.hg-wp--03) .hg-property-slider .hgv-sold {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 4px 9px;
  border-radius: 2px;
  background: #00102a;
  color: #fff;
  font-size: 12px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

:where(.hg-wp--03) .hg-property-slider h3 {
  overflow: hidden;
  margin: 0 0 11px !important;
  color: #1a1a1a !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.hg-wp--03) .hg-property-slider .hgv-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px !important;
  color: #667684;
  font-size: 14px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-location span {
  position: relative;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

:where(.hg-wp--03) .hg-property-slider .hgv-location span::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

:where(.hg-wp--03) .hg-property-slider dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px 12px;
  min-height: 98px;
  margin: 0 0 18px !important;
}

:where(.hg-wp--03) .hg-property-slider dt,
:where(.hg-wp--03) .hg-property-slider .hgv-price span {
  margin: 0 0 4px;
  color: #667684;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

:where(.hg-wp--03) .hg-property-slider dd {
  margin: 0 !important;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.45;
}

:where(.hg-wp--03) .hg-property-slider .hgv-price {
  display: grid;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #d9dfe4;
}

:where(.hg-wp--03) .hg-property-slider .hgv-price strong {
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 600;
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-progress {
  flex: 1;
  height: 1px;
  background: #d4cdc2;
}

:where(.hg-wp--03) .hg-property-slider .hgv-progress span {
  display: block;
  width: var(--hgv-progress, 50%);
  height: 2px;
  background: #766b5b;
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls button {
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #766b5b !important;
  font-size: 23px;
  cursor: pointer;
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls button:disabled {
  opacity: .35;
  cursor: default;
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls button:focus:not(:focus-visible) {
  outline: none !important;
}

:where(.hg-wp--03) .hg-property-slider .hgv-short,
:where(.hg-wp--03) .hg-property-slider .hgv-sold-mobile {
  display: none;
}

@media (max-width: 991px) {
  :where(.hg-wp--03) .hg-property-slider {
    padding-block: 50px !important;
  }
}

@media (max-width: 767px) {
  :where(.hg-wp--03) .hg-property-slider {
    width: min(100%, calc(100vw - 30px));
  }

  :where(.hg-wp--03) .hg-property-slider h2 {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-wide {
    position: relative;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-track {
    --hgv-visible: 1;
    grid-auto-columns: 100%;
    gap: 12px;
    padding-bottom: 0;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-card {
    box-shadow: none;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-card-photo {
    aspect-ratio: 3 / 2;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-card-body {
    width: var(--hgv-ref-text, calc(100% - 30px));
    margin-inline: auto;
    padding: 20px 0 24px;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-location {
    order: -1;
    margin-bottom: 8px !important;
    color: #766b5b;
  }

  :where(.hg-wp--03) .hg-property-slider h3 {
    margin-bottom: 12px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    white-space: normal;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-location span,
  :where(.hg-wp--03) .hg-property-slider .hgv-sold,
  :where(.hg-wp--03) .hg-property-slider .hgv-price,
  :where(.hg-wp--03) .hg-property-slider .hgv-progress {
    display: none;
  }

  :where(.hg-wp--03) .hg-property-slider dl {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    min-height: 0;
    margin: 0 !important;
  }

  :where(.hg-wp--03) .hg-property-slider dl > div {
    display: flex;
    gap: 9px;
    align-items: baseline;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-plot {
    order: -1;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-rooms {
    order: 1;
  }

  :where(.hg-wp--03) .hg-property-slider dl:has(.hgv-plot) .hgv-living::before,
  :where(.hg-wp--03) .hg-property-slider .hgv-rooms::before {
    content: "–";
    color: #766b5b;
  }

  :where(.hg-wp--03) .hg-property-slider dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  :where(.hg-wp--03) .hg-property-slider dd {
    font-size: 14px;
    white-space: nowrap;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-short {
    display: inline;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-sold-mobile {
    display: inline-block;
    align-self: flex-start;
    margin-top: 15px;
    padding: 3px 10px;
    background: #00102a;
    color: #fff;
    font-size: 14px;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-controls {
    position: absolute;
    z-index: 1;
    inset: calc(var(--hgv-ref-width, 100vw) / 3) 8px auto;
    justify-content: space-between;
    margin-top: 0;
    transform: translateY(-50%);
    pointer-events: none;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-controls button {
    pointer-events: auto;
    color: #fff !important;
    font-size: 0;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-controls button::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid;
    border-right: 1.5px solid;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 2px #000);
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-controls [data-prev]::after {
    transform: rotate(-135deg);
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  :where(.hg-wp--03) .hg-property-slider {
    max-width: 510px;
  }
}

/* Immobilienbereich und Übersichtsbutton */

:where(.hg-wp--03) #hg-featured-properties {
  --ink: #1a1a1a;
  --cacao: #766b5b;
  --soft: #f4f1ec;

  width: 100%;
  margin: 0;
  padding: clamp(72px, 6vw, 96px) 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
}

:where(.hg-wp--03) #hg-featured-properties *,
:where(.hg-wp--03) #hg-featured-properties *::before,
:where(.hg-wp--03) #hg-featured-properties *::after {
  box-sizing: border-box;
}

:where(.hg-wp--03) #hg-featured-properties .hgf__link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 480px;
  max-width: 100%;
  min-height: 60px;
  height: auto !important;

  padding: 16px 56px !important;
  border: 1px solid var(--cacao) !important;
  border-radius: 2px !important;

  background: #fff !important;
  color: #00102a !important;

  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;

  text-align: center;
  text-decoration: none !important;
  transition: background-color .18s ease;
}

/* Feste Pfeilgröße und Linienzeichnung für den Immobilien-Button */

.hg-wp--03 #hg-featured-properties .hgf__link > .hgf__arrow {
  position: absolute !important;
  top: 50% !important;
  right: 22px !important;

  display: block !important;

  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: translateY(-50%) !important;
  pointer-events: none;
}

.hg-wp--03 #hg-featured-properties .hgf__link > .hgf__arrow,
.hg-wp--03 #hg-featured-properties .hgf__link > .hgf__arrow path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

:where(.hg-wp--03) #hg-featured-properties .hgf__link:hover {
  background: var(--soft) !important;
  color: #00102a !important;
}

:where(.hg-wp--03) #hg-featured-properties .hgf__link:focus-visible {
  outline: 2px solid var(--cacao);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  :where(.hg-wp--03) #hg-featured-properties {
    padding: 52px 0;
  }

  :where(.hg-wp--03) #hg-featured-properties .hgf__link {
    width: 100%;
    min-height: 52px;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.hg-wp--03) #hg-featured-properties .hgf__link {
    transition: none;
  }
}

/* Farben und einheitliche Abstände */

.hg-wp--03 {
  --hg-paper: #f2eeea;
  --hg-white: #fff;
  --hg-ink: #1a1a1a;
  --hg-blue: #00102a;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;
  --hg-gutter: 15px;
}

:where(.hg-wp--03) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}

:where(.hg-wp--03) .hg-band--beige {
  background: var(--hg-paper);
}

:where(.hg-wp--03) .hg-band--gray {
  background: #3f3f3f;
}

:where(.hg-wp--03) .hg-band--blue {
  background: var(--hg-blue);
}

.hg-wp--03 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}

:is(#main, body) :where(.hg-wp--03) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figcaption,
  blockquote,
  address,
  dt,
  dd,
  .hgv-card-body
) {
  text-align: left !important;
}

:where(.hg-wp--03) .hg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 992px) {
  .hg-wp--03 {
    --hg-space-section: 176px;
  }
}

:is(#main, body) :where(.hg-wp--03) .hg-property-slider {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto !important;

  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;

  box-shadow: none;
  clip-path: none;
}

:where(.hg-wp--03) #hg-featured-properties {
  --hg-section-end: calc(var(--hg-space-section-edge) / 2);
}

:where(.hg-wp--03) .hg-property-slider .hgv-track {
  min-width: 0;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card-photo {
  display: block;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card-photo .hgv-visualization {
  object-position: right bottom;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card h3 a {
  color: inherit;
  text-decoration: none;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card h3:focus-within {
  overflow: visible;
  white-space: normal;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card h3 a:focus-visible {
  outline: 2px solid var(--hg-cacao);
  outline-offset: 2px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-card:focus-within {
  box-shadow: inset 0 0 0 2px var(--hg-accent);
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls {
  position: static;
  transform: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  min-height: 44px;
  margin-top: 18px;

  pointer-events: auto;
}

:where(.hg-wp--03) .hg-inventory__slider-nav:not([hidden]) {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-inline-start: auto;
}

:where(.hg-wp--03) .hg-inventory__count {
  min-width: 67px;
  margin-right: 6px;
  color: var(--hg-cacao);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls button {
  color: var(--hg-cacao) !important;
  font-size: 23px;
}

:where(.hg-wp--03) .hg-property-slider .hgv-controls button::after {
  content: none;
}

@media (min-width: 768px) and (max-width: 991px) {
  :where(.hg-wp--03) .hg-property-slider .hgv-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 767px) {
  :where(.hg-wp--03) .hg-property-slider .hgv-card-body {
    width: calc(100% - 28px);
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-card .hgv-price {
    display: grid;
    margin-top: auto;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-card-body dl {
    align-items: baseline;
    gap: 5px clamp(10px, 3vw, 15px);
    padding-bottom: 16px;
  }

  :where(.hg-wp--03) .hg-property-slider dl:has(.hgv-plot) .hgv-living::before,
  :where(.hg-wp--03) .hg-property-slider .hgv-rooms::before {
    content: none;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-card-body dd {
    line-height: 1.5;
  }

  :where(.hg-wp--03) .hg-property-slider .hgv-controls {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
  }

  :where(.hg-wp--03) .hg-inventory__slider-nav:not([hidden]) {
    gap: 0;
  }

  :where(.hg-wp--03) .hg-inventory__count {
    min-width: 0;
    margin-right: 3px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.hg-wp--03) .hg-property-slider .hgv-track {
    scroll-behavior: auto;
  }
}

/* Vertikale WPBakery-Abstände */

#main :is(
  .vc_row,
  .vc_column-inner,
  .wpb_raw_html
):has(.wpb_wrapper > .hg-wp--03) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

.hg-wp--03 .hg-inventory__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding-block: 12px;
}

.hg-wp--03 [data-property-controls][hidden] {
  display: none !important;
}

/*
 * Mobile Breite:
 * Zusätzliche WordPress-Einzüge ausgleichen und
 * den Immobilienbereich an der Footer-Inhaltsbreite ausrichten.
 */

@media (max-width: 767px) {
  .hg-wp-section.hg-wp--03 {
    position: relative;
    left: 0;
    right: auto;

    width: var(--hgf-mobile-viewport, 100vw) !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-left:
      var(--hgf-mobile-offset, calc(50% - 50vw)) !important;
    margin-right: 0 !important;

    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  .hg-wp-section.hg-wp--03 > .hg-band {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-inline: 0 !important;
    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  .hg-wp-section.hg-wp--03 > .hg-band > #hg-featured-properties {
    width:
      var(--hgf-footer-width, calc(100% - 30px)) !important;

    max-width: none !important;
    min-width: 0 !important;

    margin-left: var(--hgf-footer-left, auto) !important;
    margin-right: auto !important;

    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }
}

/* Ausgangsbreite bis zum Einlesen der tatsächlichen Footermaße */

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp-section.hg-wp--03 > .hg-band > #hg-featured-properties {
    width: var(--hgf-footer-width, 510px) !important;
  }
}


@media only screen and (max-width: 767px) {
  :where(.hg-wp--04) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }
  :where(.hg-wp--04) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }
  :where(.hg-wp--04) h1 {
    font-size: 28px !important;
  }
  :where(.hg-wp--04) h2 {
    font-size: 21px !important;
  }
  :where(.hg-wp--04) h3 {
    font-size: 18px !important;
  }
  :where(.hg-wp--04) h4 {
    font-size: 14px !important;
  }
  :where(.hg-wp--04) h5 {
    font-size: 14px !important;
  }
  :where(.hg-wp--04) h6 {
    font-size: 12px !important;
  }
}

.hg-wp--04 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;
  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;
  --hg-font-body: 16px;
  --hg-font-lead: 18px;
  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}

@media (min-width: 992px) {
  .hg-wp--04 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}

@media (max-width: 767px) {
  .hg-wp--04 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;
    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;
    --hg-font-body: 14px;
    --hg-font-lead: 14px;
    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}

/* Immobilien-Slider */

:where(.hg-wp--04) .hg-property-slider,
:where(.hg-wp--04) .hg-property-slider *,
:where(.hg-wp--04) .hg-property-slider *::before,
:where(.hg-wp--04) .hg-property-slider *::after {
  box-sizing: border-box;
}

:where(.hg-wp--04) .hg-property-slider {
  width: min(100%, 1250px);
  margin: 0 auto !important;
  padding: 80px 0 !important;
  background: #f2eeea;
  color: #1a1a1a;
  box-shadow: 0 0 0 100vmax #f2eeea;
  clip-path: inset(0 -100vmax);
  font-family: inherit;
}

:where(.hg-wp--04) .hg-property-slider h2 {
  margin: 0 0 22px !important;
  color: #1a1a1a !important;
  font-family: inherit !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}

:where(.hg-wp--04) .hg-property-slider :is(
  button,
  [tabindex]
):focus-visible {
  outline: 2px solid #b4a996;
  outline-offset: 4px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-wide {
  width: var(--hgv-ref-width, 100%);
  margin-left: var(--hgv-ref-offset, 0px);
}

:where(.hg-wp--04) .hg-property-slider .hgv-track {
  --hgv-visible: 3;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

:where(.hg-wp--04) .hg-property-slider .hgv-track::-webkit-scrollbar {
  display: none;
}

:where(.hg-wp--04) .hg-property-slider .hgv-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  box-shadow: 0 2px 6px #00102a12;
  scroll-snap-align: start;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ded6;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.hg-wp--04) .hg-property-slider .hgv-sold {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 4px 9px;
  border-radius: 2px;
  background: #00102a;
  color: #fff;
  font-size: 12px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

:where(.hg-wp--04) .hg-property-slider h3 {
  overflow: hidden;
  margin: 0 0 11px !important;
  color: #1a1a1a !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.hg-wp--04) .hg-property-slider .hgv-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px !important;
  color: #667684;
  font-size: 14px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-location span {
  position: relative;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

:where(.hg-wp--04) .hg-property-slider .hgv-location span::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

:where(.hg-wp--04) .hg-property-slider dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px 12px;
  min-height: 98px;
  margin: 0 0 18px !important;
}

:where(.hg-wp--04) .hg-property-slider dt,
:where(.hg-wp--04) .hg-property-slider .hgv-price span {
  margin: 0 0 4px;
  color: #667684;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

:where(.hg-wp--04) .hg-property-slider dd {
  margin: 0 !important;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.45;
}

:where(.hg-wp--04) .hg-property-slider .hgv-price {
  display: grid;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #d9dfe4;
}

:where(.hg-wp--04) .hg-property-slider .hgv-price strong {
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 600;
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-progress {
  flex: 1;
  height: 1px;
  background: #d4cdc2;
}

:where(.hg-wp--04) .hg-property-slider .hgv-progress span {
  display: block;
  width: var(--hgv-progress, 50%);
  height: 2px;
  background: #766b5b;
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls button {
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #766b5b !important;
  font-size: 23px;
  cursor: pointer;
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls button:disabled {
  opacity: .35;
  cursor: default;
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls button:focus:not(:focus-visible) {
  outline: none !important;
}

:where(.hg-wp--04) .hg-property-slider .hgv-short,
:where(.hg-wp--04) .hg-property-slider .hgv-sold-mobile {
  display: none;
}

@media (max-width: 991px) {
  :where(.hg-wp--04) .hg-property-slider {
    padding-block: 50px !important;
  }
}

@media (max-width: 767px) {
  :where(.hg-wp--04) .hg-property-slider {
    width: min(100%, calc(100vw - 30px));
  }

  :where(.hg-wp--04) .hg-property-slider h2 {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-wide {
    position: relative;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-track {
    --hgv-visible: 1;
    grid-auto-columns: 100%;
    gap: 12px;
    padding-bottom: 0;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-card {
    box-shadow: none;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-card-photo {
    aspect-ratio: 3 / 2;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-card-body {
    width: var(--hgv-ref-text, calc(100% - 30px));
    margin-inline: auto;
    padding: 20px 0 24px;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-location {
    order: -1;
    margin-bottom: 8px !important;
    color: #766b5b;
  }

  :where(.hg-wp--04) .hg-property-slider h3 {
    margin-bottom: 12px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    white-space: normal;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-location span,
  :where(.hg-wp--04) .hg-property-slider .hgv-sold,
  :where(.hg-wp--04) .hg-property-slider .hgv-price,
  :where(.hg-wp--04) .hg-property-slider .hgv-progress {
    display: none;
  }

  :where(.hg-wp--04) .hg-property-slider dl {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    min-height: 0;
    margin: 0 !important;
  }

  :where(.hg-wp--04) .hg-property-slider dl > div {
    display: flex;
    gap: 9px;
    align-items: baseline;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-plot {
    order: -1;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-rooms {
    order: 1;
  }

  :where(.hg-wp--04) .hg-property-slider dl:has(.hgv-plot) .hgv-living::before,
  :where(.hg-wp--04) .hg-property-slider .hgv-rooms::before {
    content: "–";
    color: #766b5b;
  }

  :where(.hg-wp--04) .hg-property-slider dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  :where(.hg-wp--04) .hg-property-slider dd {
    font-size: 14px;
    white-space: nowrap;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-short {
    display: inline;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-sold-mobile {
    display: inline-block;
    align-self: flex-start;
    margin-top: 15px;
    padding: 3px 10px;
    background: #00102a;
    color: #fff;
    font-size: 14px;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-controls {
    position: absolute;
    z-index: 1;
    inset: calc(var(--hgv-ref-width, 100vw) / 3) 8px auto;
    justify-content: space-between;
    margin-top: 0;
    transform: translateY(-50%);
    pointer-events: none;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-controls button {
    pointer-events: auto;
    color: #fff !important;
    font-size: 0;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-controls button::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid;
    border-right: 1.5px solid;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 2px #000);
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-controls [data-prev]::after {
    transform: rotate(-135deg);
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  :where(.hg-wp--04) .hg-property-slider {
    max-width: 510px;
  }
}

/* Farben, Inhaltsrahmen und Abschnittsabstände */

.hg-wp--04 {
  --hg-paper: #f2eeea;
  --hg-white: #fff;
  --hg-ink: #1a1a1a;
  --hg-blue: #00102a;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;
  --hg-gutter: 15px;
}

:where(.hg-wp--04) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}

:where(.hg-wp--04) .hg-band--beige {
  background: var(--hg-paper);
}

:where(.hg-wp--04) .hg-band--gray {
  background: #3f3f3f;
}

:where(.hg-wp--04) .hg-band--blue {
  background: var(--hg-blue);
}

.hg-wp--04 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}

:is(#main, body) :where(.hg-wp--04) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figcaption,
  blockquote,
  address,
  dt,
  dd,
  .hgv-card-body
) {
  text-align: left !important;
}

:where(.hg-wp--04) .hg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 992px) {
  .hg-wp--04 {
    --hg-space-section: 176px;
  }
}

:is(#main, body) :where(.hg-wp--04) .hg-property-slider {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto !important;

  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;

  box-shadow: none;
  clip-path: none;
}

:where(.hg-wp--04) #hgv-referenzen {
  --hg-section-start: calc(var(--hg-space-section-edge) / 2);
}

:where(.hg-wp--04) .hg-property-slider .hgv-track {
  min-width: 0;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card-photo {
  display: block;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card-photo .hgv-visualization {
  object-position: right bottom;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card h3 a {
  color: inherit;
  text-decoration: none;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card h3:focus-within {
  overflow: visible;
  white-space: normal;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card h3 a:focus-visible {
  outline: 2px solid var(--hg-cacao);
  outline-offset: 2px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-card:focus-within {
  box-shadow: inset 0 0 0 2px var(--hg-accent);
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-top: 18px;
  pointer-events: auto;
}

:where(.hg-wp--04) .hg-inventory__slider-nav:not([hidden]) {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-inline-start: auto;
}

:where(.hg-wp--04) .hg-inventory__count {
  min-width: 67px;
  margin-right: 6px;
  color: var(--hg-cacao);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls button {
  color: var(--hg-cacao) !important;
  font-size: 23px;
}

:where(.hg-wp--04) .hg-property-slider .hgv-controls button::after {
  content: none;
}

@media (min-width: 768px) and (max-width: 991px) {
  :where(.hg-wp--04) .hg-property-slider .hgv-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 767px) {
  :where(.hg-wp--04) .hg-property-slider .hgv-card-body {
    width: calc(100% - 28px);
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-card .hgv-price {
    display: grid;
    margin-top: auto;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-card-body dl {
    align-items: baseline;
    gap: 5px clamp(10px, 3vw, 15px);
    padding-bottom: 16px;
  }

  :where(.hg-wp--04) .hg-property-slider dl:has(.hgv-plot) .hgv-living::before,
  :where(.hg-wp--04) .hg-property-slider .hgv-rooms::before {
    content: none;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-card-body dd {
    line-height: 1.5;
  }

  :where(.hg-wp--04) .hg-property-slider .hgv-controls {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
  }

  :where(.hg-wp--04) .hg-inventory__slider-nav:not([hidden]) {
    gap: 0;
  }

  :where(.hg-wp--04) .hg-inventory__count {
    min-width: 0;
    margin-right: 3px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.hg-wp--04) .hg-property-slider .hgv-track {
    scroll-behavior: auto;
  }
}

/* Vertikale WPBakery-Abstände */

#main :is(
  .vc_row,
  .vc_column-inner,
  .wpb_raw_html
):has(.wpb_wrapper > .hg-wp--04) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

/*
 * Mobile Breite:
 * Zusätzliche WordPress-Einzüge ausgleichen und
 * den Referenzbereich an der Footer-Inhaltsbreite ausrichten.
 */

@media (max-width: 767px) {
  .hg-wp-section.hg-wp--04 {
    position: relative;
    left: 0;
    right: auto;

    width: var(--hgr-mobile-viewport, 100vw) !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-left:
      var(--hgr-mobile-offset, calc(50% - 50vw)) !important;
    margin-right: 0 !important;

    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  .hg-wp-section.hg-wp--04 > .hg-band {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-inline: 0 !important;
    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  .hg-wp-section.hg-wp--04 > .hg-band > #hgv-referenzen {
    width:
      var(--hgr-footer-width, calc(100% - 30px)) !important;

    max-width: none !important;
    min-width: 0 !important;

    margin-left: var(--hgr-footer-left, auto) !important;
    margin-right: auto !important;

    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }
}

/* Ausgangsbreite bis zum Einlesen der tatsächlichen Footermaße */

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp-section.hg-wp--04 > .hg-band > #hgv-referenzen {
    width: var(--hgr-footer-width, 510px) !important;
  }
}


@media only screen and (max-width: 767px) {
  :where(.hg-wp--05) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }
  :where(.hg-wp--05) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }
  :where(.hg-wp--05) h1 {
    font-size: 28px !important;
  }
  :where(.hg-wp--05) h2 {
    font-size: 21px !important;
  }
  :where(.hg-wp--05) h3 {
    font-size: 18px !important;
  }
  :where(.hg-wp--05) h4 {
    font-size: 14px !important;
  }
  :where(.hg-wp--05) h5 {
    font-size: 14px !important;
  }
  :where(.hg-wp--05) h6 {
    font-size: 12px !important;
  }
}
.hg-wp--05 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;
  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;
  --hg-font-body: 16px;
  --hg-font-lead: 18px;
  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}
@media (min-width: 992px) {
  .hg-wp--05 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}
@media (max-width: 767px) {
  .hg-wp--05 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;
    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;
    --hg-font-body: 14px;
    --hg-font-lead: 14px;
    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}
:is(#main, body) :where(.hg-wp--05) :is(
  #hg-immobilien-intro,
  #hg-featured-properties,
  #hg-reference-slider,
  #hg-reference-slider-v6,
  #hg-service-overview,
  #hg-numbers,
  #hg-zahlen-slider,
  #hg-company-profile,
  #hg-partners,
  .hg-partner-section,
  #hg-customer-reviews,
  #hg-reviews,
  #hg-home-guide,
  #hg-home-contact,
  #hg-immobilienkompetenz
):not(.hg-section *) {
  margin-block: 0 !important;
  padding-block: var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}
:is(#main, body) :where(.hg-wp--05) :is(
  #hg-immobilien-intro .hg-intro-title,
  #hg-immobilien-intro .hg-intro__title,
  #hg-reference-slider .hgrf__title,
  #hg-reference-slider-v6 .hgrf__heading,
  #hg-service-overview .hgsvc__heading,
  #hg-company-profile .hgcp__heading,
  #hg-partners .hgp__title,
  .hg-partner-section .hg-partner-section__title,
  #hg-home-contact .hgc__header h2
) {
  margin-bottom: var(--hg-space-heading) !important;
}

:where(.hg-wp--05) #hg-service-overview {
  --ink: #1a1a1a;
  --accent: #b4a996;
  --cacao: #766b5b;
  --muted: #6e655a;
  --line: #ded7cc;
  width: 100%;
  margin: 0;
  padding: clamp(72px,6vw,96px) 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
}
:where(.hg-wp--05) #hg-service-overview *,
:where(.hg-wp--05) #hg-service-overview *::before,
:where(.hg-wp--05) #hg-service-overview *::after {
  box-sizing: border-box;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__heading {
  margin: 0 0 32px !important;
  color: var(--ink) !important;
  font: 300 36px/1.2 inherit !important;
  text-transform: none !important;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__item {
  display: flex;
  min-width: 0;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px 18px;
  border-top: 2px solid var(--accent);
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__summary {
  margin: 0;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__toggle {
  appearance: none;
  display: grid;
  grid-template-rows: 50px auto;
  gap: 16px;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  text-align: left;
  cursor: default;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__icon {
  display: flex;
  width: 48px;
  height: 50px;
  color: var(--ink);
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__icon svg {
  width: 48px;
  height: 50px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__icon svg path,
:where(.hg-wp--05) #hg-service-overview .hgsvc__icon svg circle {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__title {
  display: block;
  color: var(--ink);
  font-size: 23px;
  font-weight: 300;
  line-height: 1.2;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__short {
  display: none;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__mobile-icon {
  display: none;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__body[hidden] {
  display: none !important;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__copy {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__link svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  fill: none;
  stroke: var(--cacao);
  stroke-width: 1.25;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__footer {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__cta {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 480px;
  max-width: 100%;
  min-height: 60px;
  padding: 16px 56px !important;
  border: 1px solid var(--cacao) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #00102a !important;
  font: 500 16px/1.45 inherit !important;
  text-align: center;
  text-decoration: none !important;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__cta:hover {
  background: #f4f1ec !important;
}
:where(.hg-wp--05) #hg-service-overview .hgsvc__cta svg {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--cacao);
  stroke-width: 1.5;
}
:where(.hg-wp--05) #hg-service-overview a:focus-visible,
:where(.hg-wp--05) #hg-service-overview button:focus-visible {
  outline: 2px solid var(--cacao);
  outline-offset: 4px;
}
@media (min-width: 768px) and (max-width: 1199px) {
  :where(.hg-wp--05) #hg-service-overview .hgsvc__list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 767px) {
  :where(.hg-wp--05) #hg-service-overview {
    padding: 52px 0;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__heading {
    margin-bottom: 24px !important;
    font-size: 21px !important;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__card {
    gap: 0;
    padding: 0;
    border-top: 0;
    border-left: 2px solid var(--accent);
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__toggle {
    grid-template-columns: 44px minmax(0,1fr) 28px;
    grid-template-rows: auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px 16px !important;
    cursor: pointer;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__title {
    font-size: 18px;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__short {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__mobile-icon {
    display: block;
    width: 28px;
    height: 28px;
    padding: 5px;
    fill: none;
    stroke: var(--cacao);
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__toggle[aria-expanded="true"] .hgsvc__vertical {
    display: none;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__body {
    gap: 16px;
    padding: 0 18px 22px 76px;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__copy,
  :where(.hg-wp--05) #hg-service-overview .hgsvc__link {
    font-size: 14px;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__footer {
    margin-top: 28px;
  }
  :where(.hg-wp--05) #hg-service-overview .hgsvc__cta {
    width: 100%;
    min-height: 52px;
    font-size: 14px !important;
  }
}

.hg-wp--05 {
  --hg-paper: #f2eeea;
  --hg-white: #fff;
  --hg-ink: #1a1a1a;
  --hg-blue: #00102a;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;
  --hg-gutter: 15px;
}
:where(.hg-wp--05) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}
@media (max-width: 767px) {
  :where(.hg-wp--05) .hg-frame {
    width: 100%;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  :where(.hg-wp--05) .hg-frame {
    max-width: 510px;
  }
}
.hg-wp--05 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}
:is(#main, body) :where(.hg-wp--05) :is(h1, h2, h3, h4, h5, h6, p, figcaption, blockquote, address, dt, dd, .hgv-card-body) {
  text-align: left !important;
}
@media (min-width: 992px) {
  .hg-wp--05 {
    --hg-space-section: 176px;
  }
}

#main :is(.vc_row, .vc_column-inner, .wpb_raw_html):has(.wpb_wrapper > .hg-wp--05) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}


@media only screen and (max-width: 767px) {
  :where(.hg-wp--06) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  :where(.hg-wp--06) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  :where(.hg-wp--06) h1 {
    font-size: 28px !important;
  }

  :where(.hg-wp--06) h2 {
    font-size: 21px !important;
  }

  :where(.hg-wp--06) h3 {
    font-size: 18px !important;
  }

  :where(.hg-wp--06) h4 {
    font-size: 14px !important;
  }

  :where(.hg-wp--06) h5 {
    font-size: 14px !important;
  }

  :where(.hg-wp--06) h6 {
    font-size: 12px !important;
  }
}

.hg-wp--06 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;
  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;
  --hg-font-body: 16px;
  --hg-font-lead: 18px;
  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}

@media (min-width: 992px) {
  .hg-wp--06 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}

@media (max-width: 767px) {
  .hg-wp--06 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;
    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;
    --hg-font-body: 14px;
    --hg-font-lead: 14px;
    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}

:is(#main, body) :where(.hg-wp--06) :is(
  #hg-immobilien-intro,
  #hg-featured-properties,
  #hg-reference-slider,
  #hg-reference-slider-v6,
  #hg-service-overview,
  #hg-numbers,
  #hg-zahlen-slider,
  #hg-company-profile,
  #hg-partners,
  .hg-partner-section,
  #hg-customer-reviews,
  #hg-reviews,
  #hg-home-guide,
  #hg-home-contact,
  #hg-immobilienkompetenz
):not(.hg-section *) {
  margin-block: 0 !important;
  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}

/* Zahlen-Slider */

:where(.hg-wp--06) #hg-numbers {
  --hgn-columns: 3;
  --hgn-gap: clamp(28px, 4vw, 68px);
  --hgn-slide-width:
    calc((100% - var(--hgn-gap) - var(--hgn-gap)) / 3);

  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(72px, 6vw, 96px) 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
}

:where(.hg-wp--06) #hg-numbers,
:where(.hg-wp--06) #hg-numbers *,
:where(.hg-wp--06) #hg-numbers *::before,
:where(.hg-wp--06) #hg-numbers *::after {
  box-sizing: border-box;
}

:where(.hg-wp--06) #hg-numbers .hgn__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap !important;
}

:where(.hg-wp--06) #hg-numbers .hgn__viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
}

:where(.hg-wp--06) #hg-numbers .hgn__viewport,
:where(.hg-wp--06) #hg-numbers .hgn__viewport * {
  touch-action: auto !important;
}

:where(.hg-wp--06) #hg-numbers[data-ready="1"] .hgn__viewport {
  scrollbar-width: none;
  cursor: grab;
}

:where(.hg-wp--06) #hg-numbers[data-ready="1"] .hgn__viewport::-webkit-scrollbar {
  display: none;
}

:where(.hg-wp--06) #hg-numbers .hgn__viewport.hgn__dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

:where(.hg-wp--06) #hg-numbers .hgn__viewport.hgn__dragging * {
  user-select: none;
}

:where(.hg-wp--06) #hg-numbers .hgn__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--hgn-slide-width);
  align-items: stretch;
  gap: var(--hgn-gap);
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

:where(.hg-wp--06) #hg-numbers .hgn__slide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 470px;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff;
  scroll-snap-align: start;
}

:where(.hg-wp--06) #hg-numbers[data-ready="1"] .hgn__slide:not(.hgn__snap) {
  scroll-snap-align: none;
}

:where(.hg-wp--06) #hg-numbers h2.hgn__statement {
  max-width: 25ch;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: clamp(23px, 2.15vw, 40px) !important;
  font-weight: 300 !important;
  line-height: 1.24 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
  overflow-wrap: break-word;
}

:where(.hg-wp--06) #hg-numbers .hgn__bottom {
  margin-top: auto;
  padding-top: 30px;
}

:where(.hg-wp--06) #hg-numbers .hgn__value {
  display: block;
  color: #fff;
  font-family:
    "Bodoni MT",
    Didot,
    "Iowan Old Style",
    Baskerville,
    Georgia,
    serif;
  font-size: clamp(75px, 8.2vw, 138px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
}

:where(.hg-wp--06) #hg-numbers .hgn__label {
  min-height: 58px;
  margin: 16px 0 0 !important;
  color: #fff !important;
  font-size: clamp(15px, 1.22vw, 20px) !important;
  line-height: 1.38 !important;
}

/* Navigation */

:where(.hg-wp--06) #hg-numbers .hgn__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

:where(.hg-wp--06) #hg-numbers .hgn__nav:empty {
  display: none;
}

:where(.hg-wp--06) #hg-numbers .hgn__dot {
  appearance: none;
  display: flex;
  align-items: center;
  flex: 0 1 56px;
  min-width: 0 !important;
  height: 42px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

:where(.hg-wp--06) #hg-numbers .hgn__dot::after {
  content: "";
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .35);
}

:where(.hg-wp--06) #hg-numbers .hgn__dot[aria-current="true"]::after {
  background: #fff;
}

:where(.hg-wp--06) #hg-numbers .hgn__viewport:focus-visible,
:where(.hg-wp--06) #hg-numbers .hgn__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* Zwei Spalten */

@media (max-width: 1099px) {
  :where(.hg-wp--06) #hg-numbers {
    --hgn-columns: 2;
    --hgn-gap: 36px;
    --hgn-slide-width: calc((100% - var(--hgn-gap)) / 2);
  }

  :where(.hg-wp--06) #hg-numbers .hgn__slide {
    min-height: 430px;
  }

  :where(.hg-wp--06) #hg-numbers h2.hgn__statement {
    font-size: clamp(24px, 3vw, 32px) !important;
  }

  :where(.hg-wp--06) #hg-numbers .hgn__value {
    font-size: clamp(78px, 8vw, 105px);
  }
}

/* Eine Spalte */

@media (max-width: 699px) {
  :where(.hg-wp--06) #hg-numbers {
    --hgn-columns: 1;
    --hgn-gap: 0px;
    --hgn-slide-width: 100%;
    padding: 52px 0;
  }

  :where(.hg-wp--06) #hg-numbers .hgn__slide {
    min-height: 300px;
  }

  :where(.hg-wp--06) #hg-numbers h2.hgn__statement {
    font-size: clamp(25px, 6.5vw, 31px) !important;
  }

  :where(.hg-wp--06) #hg-numbers .hgn__value {
    font-size: clamp(77px, 17.5vw, 108px);
  }

  :where(.hg-wp--06) #hg-numbers .hgn__label {
    min-height: 48px;
    margin-top: 11px !important;
    font-size: 16px !important;
  }

  :where(.hg-wp--06) #hg-numbers .hgn__nav {
    gap: 5px;
    margin-top: 10px;
  }

  :where(.hg-wp--06) #hg-numbers .hgn__dot {
    flex-basis: 29px;
    height: 40px;
  }
}

/* Farben und Rahmen */

.hg-wp--06 {
  --hg-paper: #f2eeea;
  --hg-white: #fff;
  --hg-ink: #1a1a1a;
  --hg-blue: #00102a;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;
  --hg-gutter: 15px;
}

:where(.hg-wp--06) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}

:where(.hg-wp--06) .hg-band--beige {
  background: var(--hg-paper);
}

:where(.hg-wp--06) .hg-band--gray {
  background: #3f3f3f;
}

:where(.hg-wp--06) .hg-band--blue {
  background: var(--hg-blue);
}

.hg-wp--06 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}

:is(#main, body) :where(.hg-wp--06) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figcaption,
  blockquote,
  address,
  dt,
  dd,
  .hgv-card-body
) {
  text-align: left !important;
}

@media (min-width: 992px) {
  .hg-wp--06 {
    --hg-space-section: 176px;
  }
}

#main :is(
  .vc_row,
  .vc_column-inner,
  .wpb_raw_html
):has(.wpb_wrapper > .hg-wp--06) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

/* Mobile Breite:
   Hintergrund über die Bildschirmbreite,
   Inhalt an den Footer-Inhaltskanten ausrichten. */

@media (max-width: 991px) {
  .hg-wp--06 {
    --hgn-fallback-width: calc(100vw - 60px);
    --hgn-fallback-offset: 30px;
  }

  .hg-wp--06 > .hg-band {
    box-sizing: border-box;
    width: var(--hgn-band-width, 100vw);
    max-width: none;
    min-width: 0;
    margin-left: var(
      --hgn-band-offset,
      calc(50% - 50vw)
    );
    margin-right: 0;
    padding-inline: 0;
  }

  .hg-wp--06 > .hg-band > .hg-frame {
    box-sizing: border-box;
    width: var(
      --hgn-mobile-width,
      var(--hgn-fallback-width)
    );
    max-width: none;
    min-width: 0;
    margin-left: var(
      --hgn-mobile-offset,
      var(--hgn-fallback-offset)
    );
    margin-right: 0;
    padding-inline: 0;
  }
}

@media (max-width: 767px) {
  .hg-wp--06 {
    --hgn-fallback-width: calc(100vw - 30px);
    --hgn-fallback-offset: 15px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp--06 {
    --hgn-fallback-width: 510px;
    --hgn-fallback-offset: calc(50vw - 255px);
  }
}


@media only screen and (max-width: 767px) {
  :where(.hg-wp--07) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  :where(.hg-wp--07) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  :where(.hg-wp--07) h1 {
    font-size: 28px !important;
  }

  :where(.hg-wp--07) h2 {
    font-size: 21px !important;
  }

  :where(.hg-wp--07) h3 {
    font-size: 18px !important;
  }

  :where(.hg-wp--07) h4 {
    font-size: 14px !important;
  }

  :where(.hg-wp--07) h5 {
    font-size: 14px !important;
  }

  :where(.hg-wp--07) h6 {
    font-size: 12px !important;
  }
}

.hg-wp--07 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;
  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;
  --hg-font-body: 16px;
  --hg-font-lead: 18px;
  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}

@media (min-width: 992px) {
  .hg-wp--07 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}

@media (max-width: 767px) {
  .hg-wp--07 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;
    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;
    --hg-font-body: 14px;
    --hg-font-lead: 14px;
    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}

:is(#main, body) :where(.hg-wp--07) :is(
  #hg-immobilien-intro,
  #hg-featured-properties,
  #hg-reference-slider,
  #hg-reference-slider-v6,
  #hg-service-overview,
  #hg-numbers,
  #hg-zahlen-slider,
  #hg-company-profile,
  #hg-partners,
  .hg-partner-section,
  #hg-customer-reviews,
  #hg-reviews,
  #hg-home-guide,
  #hg-home-contact,
  #hg-immobilienkompetenz
):not(.hg-section *) {
  margin-block: 0 !important;
  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}

:is(#main, body) :where(.hg-wp--07) :is(
  #hg-immobilien-intro .hg-intro-title,
  #hg-immobilien-intro .hg-intro__title,
  #hg-reference-slider .hgrf__title,
  #hg-reference-slider-v6 .hgrf__heading,
  #hg-service-overview .hgsvc__heading,
  #hg-company-profile .hgcp__heading,
  #hg-partners .hgp__title,
  .hg-partner-section .hg-partner-section__title,
  #hg-home-contact .hgc__header h2
) {
  margin-bottom: var(--hg-space-heading) !important;
}

:where(.hg-wp--07) #hg-company-profile {
  --ink: #1a1a1a;
  --cacao: #766b5b;
  --accent: #b4a996;
  --line: #ded7cc;

  width: 100%;
  margin: 0;
  padding: clamp(72px, 6vw, 96px) 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
}

:where(.hg-wp--07) #hg-company-profile *,
:where(.hg-wp--07) #hg-company-profile *::before,
:where(.hg-wp--07) #hg-company-profile *::after {
  box-sizing: border-box;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

:where(.hg-wp--07) #hg-company-profile .hgcp__heading {
  margin: 0 0 24px !important;
  color: var(--ink) !important;
  font: 300 36px/1.2 inherit !important;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__heading span {
  display: block;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__intro {
  margin: 0 0 30px !important;
  color: var(--ink) !important;
  font: 400 18px/1.6 inherit !important;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__principles {
  border-top: 2px solid var(--accent);
}

:where(.hg-wp--07) #hg-company-profile .hgcp__detail {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__summary {
  display: block;
  min-height: 62px;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__summary::-webkit-details-marker {
  display: none;
}

:where(.hg-wp--07) #hg-company-profile h3.hgcp__title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink) !important;
  font-size: 18px !important;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__number {
  color: var(--cacao);
  font-size: 12px;
  letter-spacing: .04em;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__indicator {
  position: relative;
  width: 28px;
  height: 28px;
  color: var(--cacao);
}

:where(.hg-wp--07) #hg-company-profile .hgcp__indicator::before,
:where(.hg-wp--07) #hg-company-profile .hgcp__indicator::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 13px;
  width: 12px;
  height: 1px;
  background: currentColor;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__indicator::after {
  left: 13px;
  top: 7px;
  width: 1px;
  height: 12px;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__detail[open] .hgcp__indicator::after {
  display: none;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__answer {
  padding: 0 40px 20px 36px;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__answer p {
  margin: 0;
  color: var(--ink) !important;
  font-size: 16px;
  line-height: 1.6;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__summary:focus-visible {
  outline: 2px solid var(--cacao);
  outline-offset: 4px;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__portrait {
  width: 100%;
  margin: 0;
  justify-self: end;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__image-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f2eeea;
}

:where(.hg-wp--07) #hg-company-profile .hgcp__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  :where(.hg-wp--07) #hg-company-profile {
    padding: 52px 0;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__heading {
    margin-bottom: 18px !important;
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__intro {
    margin-bottom: 24px !important;
    font-size: 16px !important;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__title {
    grid-template-columns: 22px minmax(0, 1fr) 28px;
    gap: 10px;
    font-size: 18px !important;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__answer {
    padding: 0 0 20px 32px;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__image {
    height: auto;
    object-fit: contain;
  }
}

.hg-wp--07 {
  --hg-paper: #f2eeea;
  --hg-white: #fff;
  --hg-ink: #1a1a1a;
  --hg-blue: #00102a;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;
  --hg-gutter: 15px;
}

:where(.hg-wp--07) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}

.hg-wp--07 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}

:is(#main, body) :where(.hg-wp--07) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figcaption,
  blockquote,
  address,
  dt,
  dd,
  .hgv-card-body
) {
  text-align: left !important;
}

@media (min-width: 992px) {
  .hg-wp--07 {
    --hg-space-section: 176px;
  }
}

/* Mobile Inhaltsbreite passend zum Footer.
   Die seitlichen Abstände kommen bereits vom Theme-Container. */

@media (max-width: 767px) {
  .hg-wp--07 > .hg-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }

  :where(.hg-wp--07) #hg-company-profile .hgcp__portrait {
    width: calc(100% + 2 * var(--hg-gutter)) !important;
    max-width: none !important;
    margin-inline: calc(-1 * var(--hg-gutter)) !important;
  }
}

/* Breitere Mobilansicht: gleiche Inhaltsbreite wie im Footer. */

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp--07 > .hg-frame {
    max-width: 510px !important;
  }
}

/* Bestehende vertikale WPBakery-Abstände ausgleichen. */

#main :is(
  .vc_row,
  .vc_column-inner,
  .wpb_raw_html
):has(.wpb_wrapper > .hg-wp--07) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}


#main .vc_row:has(> .wpb_column:only-child > .vc_column-inner > .wpb_wrapper > .wpb_raw_html:only-child > .wpb_wrapper > #hg-customer-reviews.hgr-v10),
#main .wpb_raw_html:has(> .wpb_wrapper > #hg-customer-reviews.hgr-v10) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

#main .vc_column-inner:has(> .wpb_wrapper > .wpb_raw_html:only-child > .wpb_wrapper > #hg-customer-reviews.hgr-v10) {
  padding-block: 0 !important;
}

#hg-customer-reviews.hgr-v10 {
  --hgr-paper: #f2eeea;
  --hgr-ink: #1a1a1a;
  --hgr-quote: #453b35;
  --hgr-cacao: #766b5b;
  --hgr-sand: #b4a996;
  --hgr-line: #d8d0c6;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 88px 0;
  background: var(--hgr-paper);
  color: var(--hgr-ink);
  font-family: Inter, Arial, sans-serif;
  text-align: left;
}

#hg-customer-reviews.hgr-v10::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  box-shadow: 0 0 0 100vmax var(--hgr-paper);
  clip-path: inset(0 -100vmax);
}

#hg-customer-reviews.hgr-v10,
#hg-customer-reviews.hgr-v10 * { box-sizing: border-box; }

#hg-customer-reviews .hgr-v10__frame {
  width: 100%;
  max-width: 1250px;
  min-width: 0;
  margin-inline: auto;
}

#hg-customer-reviews .hgr-v10__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 25px;
}

#hg-customer-reviews .hgr-v10__heading {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hgr-ink) !important;
  font: 300 36px/1.22 Inter, Arial, sans-serif !important;
  letter-spacing: -.022em !important;
  text-transform: none !important;
}

#hg-customer-reviews .hgr-v10__google {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--hgr-cacao) !important;
  font: 400 14px/1.45 Inter, Arial, sans-serif;
  text-decoration: underline !important;
  text-decoration-color: var(--hgr-sand) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

#hg-customer-reviews .hgr-v10__google:hover {
  text-decoration-color: currentColor !important;
}

#hg-customer-reviews .hgr-v10__track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  border-block: 1px solid var(--hgr-line);
}

#hg-customer-reviews.hgr-v10[data-ready] .hgr-v10__track { scrollbar-width: none; }
#hg-customer-reviews.hgr-v10[data-ready] .hgr-v10__track::-webkit-scrollbar { display: none; }

#hg-customer-reviews .hgr-v10__slide {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 2fr);
  align-items: center;
  min-width: 0;
  min-height: 142px;
  gap: clamp(24px, 5vw, 66px);
  margin: 0 !important;
  padding: 24px 0 !important;
  scroll-snap-align: start;
  background: transparent !important;
}

#hg-customer-reviews .hgr-v10__author {
  display: block;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hgr-ink) !important;
  font: 500 16px/1.5 Inter, Arial, sans-serif !important;
  text-align: left !important;
}

#hg-customer-reviews .hgr-v10__source {
  display: block;
  margin-top: 4px;
  color: var(--hgr-cacao);
  font-size: 13px;
  font-weight: 400;
}

#hg-customer-reviews .hgr-v10__quote {
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 0 26px !important;
  border: 0 !important;
  border-left: 1px solid var(--hgr-sand) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

#hg-customer-reviews .hgr-v10__quote::before,
#hg-customer-reviews .hgr-v10__quote::after { content: none !important; }

#hg-customer-reviews .hgr-v10__quote p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hgr-quote) !important;
  font: 300 30px/1.4 Inter, Arial, sans-serif !important;
  letter-spacing: -.017em !important;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

#hg-customer-reviews .hgr-v10__control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

#hg-customer-reviews .hgr-v10__control-bar[hidden] { display: none; }

#hg-customer-reviews .hgr-v10__position {
  color: var(--hgr-cacao);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

#hg-customer-reviews .hgr-v10__arrows { display: flex; align-items: center; gap: 4px; }

#hg-customer-reviews .hgr-v10__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hgr-cacao) !important;
  font: 400 22px/1 Inter, Arial, sans-serif !important;
  cursor: pointer;
}

#hg-customer-reviews .hgr-v10__arrow[aria-disabled="true"] {
  color: var(--hgr-sand) !important;
  cursor: default;
}

#hg-customer-reviews .hgr-v10__arrow[aria-disabled="false"]:hover {
  color: var(--hgr-ink) !important;
}

#hg-customer-reviews :is(.hgr-v10__arrow, .hgr-v10__google, .hgr-v10__track):focus-visible {
  outline: 2px solid var(--hgr-cacao);
  outline-offset: 3px;
}

#hg-customer-reviews .hgr-v10__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 991px) {
  #hg-customer-reviews.hgr-v10 { padding-block: 56px; }
  #hg-customer-reviews .hgr-v10__header { margin-bottom: 13px; }
  #hg-customer-reviews .hgr-v10__heading { font-size: 21px !important; }
  #hg-customer-reviews .hgr-v10__slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 16px;
    min-height: 0;
    padding-block: 18px !important;
  }
  #hg-customer-reviews .hgr-v10__author { font-size: 14px !important; }
  #hg-customer-reviews .hgr-v10__source { margin-top: 2px; font-size: 12px; }
  #hg-customer-reviews .hgr-v10__quote { padding-left: 15px !important; }
  #hg-customer-reviews .hgr-v10__quote p { font-size: 21px !important; }
}


@media only screen and (max-width: 767px) {
  :where(.hg-wp--08) .text-20 {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  :where(.hg-wp--08) .text-18 {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  :where(.hg-wp--08) h1 {
    font-size: 28px !important;
  }

  :where(.hg-wp--08) h2 {
    font-size: 21px !important;
  }

  :where(.hg-wp--08) h3 {
    font-size: 18px !important;
  }

  :where(.hg-wp--08) h4 {
    font-size: 14px !important;
  }

  :where(.hg-wp--08) h5 {
    font-size: 14px !important;
  }

  :where(.hg-wp--08) h6 {
    font-size: 12px !important;
  }
}

.hg-wp--08 {
  --hg-space-section: 100px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;
  --hg-space-paragraph: 20px;

  --hg-font-h1: 40px;
  --hg-font-h2: 36px;
  --hg-font-h3: 24px;
  --hg-font-h4: 18px;
  --hg-font-h5: 16px;
  --hg-font-h6: 14px;

  --hg-font-body: 16px;
  --hg-font-lead: 18px;

  --hg-line-h1: 1.2;
  --hg-line-h2: 1.25;
  --hg-line-lead: 1.55;
}

@media (min-width: 992px) {
  .hg-wp--08 {
    --hg-space-section: 160px;
    --hg-space-heading: 24px;
  }
}

@media (max-width: 767px) {
  .hg-wp--08 {
    --hg-space-heading: 16px;
    --hg-space-paragraph: 16px;

    --hg-font-h1: 28px;
    --hg-font-h2: 21px;
    --hg-font-h3: 18px;
    --hg-font-h4: 14px;
    --hg-font-h5: 14px;
    --hg-font-h6: 12px;

    --hg-font-body: 14px;
    --hg-font-lead: 14px;

    --hg-line-h1: 1.25;
    --hg-line-h2: 1.3;
    --hg-line-lead: 1.6;
  }
}

:is(#main, body) :where(.hg-wp--08) :is(
  #hg-immobilien-intro,
  #hg-featured-properties,
  #hg-reference-slider,
  #hg-reference-slider-v6,
  #hg-service-overview,
  #hg-numbers,
  #hg-zahlen-slider,
  #hg-company-profile,
  #hg-partners,
  .hg-partner-section,
  #hg-customer-reviews,
  #hg-reviews,
  #hg-home-guide,
  #hg-home-contact,
  #hg-immobilienkompetenz
):not(.hg-section *) {
  margin-block: 0 !important;
  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}

:is(#main, body) :where(.hg-wp--08) :is(
  #hg-immobilien-intro .hg-intro-title,
  #hg-immobilien-intro .hg-intro__title,
  #hg-reference-slider .hgrf__title,
  #hg-reference-slider-v6 .hgrf__heading,
  #hg-service-overview .hgsvc__heading,
  #hg-company-profile .hgcp__heading,
  #hg-partners .hgp__title,
  .hg-partner-section .hg-partner-section__title,
  #hg-home-contact .hgc__header h2
) {
  margin-bottom: var(--hg-space-heading) !important;
}

/* Partnerbereich */

:where(.hg-wp--08) #hg-partners {
  --line: rgba(255, 255, 255, .75);

  width: 100%;
  margin: 0;
  padding: clamp(72px, 6vw, 96px) 0;

  background: transparent;
  color: #fff;
  font-family: inherit;

  box-sizing: border-box;
}

:where(.hg-wp--08) #hg-partners *,
:where(.hg-wp--08) #hg-partners *::before,
:where(.hg-wp--08) #hg-partners *::after {
  box-sizing: border-box;
}

:where(.hg-wp--08) #hg-partners .hgp__title {
  margin: 0 0 30px !important;
  color: #fff !important;
  font: 400 36px/1.2 inherit !important;
  letter-spacing: -.02em !important;
}

:where(.hg-wp--08) #hg-partners .hgp__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

:where(.hg-wp--08) #hg-partners .hgp__card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 333px;

  padding: 32px 29px 30px;
  border: 1px solid var(--line);

  color: #fff;

  scroll-snap-align: start;
}

:where(.hg-wp--08) #hg-partners .hgp__logo {
  display: flex;
  align-items: center;

  height: 106px;
  margin-bottom: 25px;
}

:where(.hg-wp--08) #hg-partners .hgp__logo img {
  display: block;

  width: auto;
  height: auto;
  max-width: 255px;
  max-height: 90px;

  object-fit: contain;
  filter: brightness(0) invert(1);

  user-select: none;
  -webkit-user-drag: none;
}

:where(.hg-wp--08) #hg-partners .hgp__logo--small img {
  max-width: 205px;
}

:where(.hg-wp--08) #hg-partners .hgp__card p {
  margin: 0;
  color: rgba(255, 255, 255, .94) !important;
  font-size: 15px;
  line-height: 1.7;
}

:where(.hg-wp--08) #hg-partners .hgp__sr {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

:where(.hg-wp--08) #hg-partners .hgp__dots {
  display: none;
}

/* Mobile Sliderdarstellung */

@media (max-width: 767px) {
  :where(.hg-wp--08) #hg-partners {
    padding: 54px 0 58px;
  }

  :where(.hg-wp--08) #hg-partners .hgp__title {
    margin-bottom: 24px !important;
    font-size: 21px !important;
  }

  :where(.hg-wp--08) #hg-partners .hgp__track {
    display: flex;
    gap: 14px;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    touch-action: auto;
    cursor: grab;
  }

  :where(.hg-wp--08) #hg-partners .hgp__track::-webkit-scrollbar {
    display: none;
  }

  :where(.hg-wp--08) #hg-partners .hgp__track.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
  }

  :where(.hg-wp--08) #hg-partners .hgp__card {
    flex: 0 0 100%;

    min-width: 0;
    min-height: 345px;

    padding: 29px 25px 30px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  :where(.hg-wp--08) #hg-partners .hgp__logo img {
    max-width: min(255px, 100%);
  }

  :where(.hg-wp--08) #hg-partners .hgp__logo--small img {
    max-width: min(205px, 100%);
  }

  :where(.hg-wp--08) #hg-partners .hgp__dots {
    display: flex;
    justify-content: center;
    gap: 13px;

    margin-top: 24px;
  }

  :where(.hg-wp--08) #hg-partners .hgp__dot {
    width: 44px;
    height: 44px;

    padding: 0 !important;
    border: 0 !important;

    background: transparent !important;
  }

  :where(.hg-wp--08) #hg-partners .hgp__dot::after {
    content: "";
    display: block;

    width: 32px;
    height: 1px;
    margin: auto;

    background: rgba(255, 255, 255, .38);
  }

  :where(.hg-wp--08) #hg-partners .hgp__dot[aria-current="true"]::after {
    height: 2px;
    background: #fff;
  }
}

/* Farben und Inhaltsrahmen */

body.home .vc_section:has(.hg-wp--08 #hg-partners):not(:has(.vc_section #hg-partners)) {
  background-color: #4F4237 !important;
}

.hg-wp--08 {
  --hg-paper: #f2eeea;
  --hg-white: #fff;
  --hg-ink: #1a1a1a;
  --hg-blue: #4F4237;
  --hg-cacao: #766b5b;
  --hg-accent: #b4a996;

  --hg-gutter: 15px;
}

:where(.hg-wp--08) .hg-frame {
  width: min(calc(100% - 2 * var(--hg-gutter)), 1250px);
  margin-inline: auto;
}

:where(.hg-wp--08) .hg-band--beige {
  background: var(--hg-paper);
}

:where(.hg-wp--08) .hg-band--gray {
  background: #3f3f3f;
}

:where(.hg-wp--08) .hg-band--blue {
  background: var(--hg-blue);
}

.hg-wp--08 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
}

:is(#main, body) :where(.hg-wp--08) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figcaption,
  blockquote,
  address,
  dt,
  dd,
  .hgv-card-body
) {
  text-align: left !important;
}

:where(.hg-wp--08) #hg-partners .hgp__track {
  position: relative;
}

@media (min-width: 992px) {
  .hg-wp--08 {
    --hg-space-section: 176px;
  }
}

/* Vertikale WPBakery-Abstände */

#main :is(
  .vc_row,
  .vc_column-inner,
  .wpb_raw_html
):has(.wpb_wrapper > .hg-wp--08) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

/*
 * Mobile Breite:
 * Zusätzliche Einzüge der WordPress-Container ausgleichen.
 * Den Inhaltsrahmen an der tatsächlichen Footerbreite ausrichten.
 */

@media (max-width: 767px) {
  .hg-wp-section.hg-wp--08 {
    position: relative;
    left: 0;
    right: auto;

    width: var(--hgp-mobile-viewport, 100vw) !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-left:
      var(--hgp-mobile-offset, calc(50% - 50vw)) !important;
    margin-right: 0 !important;

    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  .hg-wp-section.hg-wp--08 > .hg-band {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-inline: 0 !important;
    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  .hg-wp-section.hg-wp--08 > .hg-band > .hg-frame {
    width:
      var(--hgp-footer-width, calc(100% - 30px)) !important;

    max-width: none !important;
    min-width: 0 !important;

    margin-left: var(--hgp-footer-left, auto) !important;
    margin-right: auto !important;

    padding-inline: 0 !important;
    border-inline: 0 !important;

    box-sizing: border-box;
  }

  :where(.hg-wp--08) #hg-partners {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
}

/* Ausgangsbreite, bis die Footermaße eingelesen sind */

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp-section.hg-wp--08 > .hg-band > .hg-frame {
    width: var(--hgp-footer-width, 510px) !important;
  }
}


.hg-wp--10 {
  --hg-space-section: 112px;
  --hg-space-section-edge: calc(var(--hg-space-section) / 2);
  --hg-space-heading: 14px;

  --hgg-content-gutter: 30px;
  --hgg-content-max: 1250px;
  --hgg-image-position: 50% 44%;
}

@media (min-width: 992px) {
  .hg-wp--10 {
    --hg-space-section: 176px;
    --hg-space-heading: 24px;
    --hgg-content-gutter: 15px;
  }
}

/* Abschnitt */

:where(.hg-wp--10) #hg-home-guide {
  --ink: #1a1a1a;
  --text: #4c4843;
  --cacao: #766b5b;
  --line: #ded7cc;

  width: 100%;
  margin: 0;
  padding-inline: 0;
  border: 0;

  background: transparent;
  color: var(--ink);

  font-family: inherit;
  box-sizing: border-box;
}

:is(#main, body) :where(.hg-wp--10)
#hg-home-guide:not(.hg-section *) {
  margin-block: 0 !important;

  padding-block:
    var(--hg-section-start, var(--hg-space-section-edge))
    var(--hg-section-end, var(--hg-space-section-edge)) !important;
}

:where(.hg-wp--10) #hg-home-guide *,
:where(.hg-wp--10) #hg-home-guide *::before,
:where(.hg-wp--10) #hg-home-guide *::after {
  box-sizing: border-box;
}

:is(#main, body) :where(.hg-wp--10)
#hg-home-guide :is(h2, h3, p, figcaption) {
  text-align: left !important;
}

/* Äußerer Rahmen für die Ausrichtung am Footer */

:where(.hg-wp--10) #hg-home-guide .hgg__band {
  display: block;

  width: var(--hgg-viewport-width, 100vw);
  max-width: none;

  margin-left: var(--hgg-band-offset, calc(50% - 50vw));
  margin-right: 0;

  padding: 0;
}

/* Desktop: Bild links, Inhalt rechts */

:where(.hg-wp--10) #hg-home-guide .hgg__layout {
  display: grid;

  grid-template-columns:
    minmax(0, .9fr)
    minmax(0, 1.35fr);

  column-gap: 64px;
  align-items: start;

  width: calc(100% - 2 * var(--hgg-content-gutter));
  max-width: var(--hgg-content-max);
  min-width: 0;

  margin-inline: auto;
  padding: 0;
}

/* Tatsächliche Inhaltsbreite des Footers übernehmen */

:where(.hg-wp--10)[data-hgg-footer-aligned]
#hg-home-guide .hgg__layout {
  width: var(--hgg-footer-width);
  max-width: none;

  margin-left: var(--hgg-footer-left);
  margin-right: 0;
}

/* Hochkantiges Bild wie in der Vorlage */

:where(.hg-wp--10) #hg-home-guide .hgg__photo {
  position: relative;

  width: 100%;
  max-width: none;
  min-width: 0;

  height: auto;
  aspect-ratio: 4 / 5;

  margin: 0 !important;
  padding: 0;

  overflow: hidden;
  background: #f4f1ec;
}

:where(.hg-wp--10) #hg-home-guide .hgg__image {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  max-width: none;
  height: 100%;

  margin: 0;

  object-fit: cover;
  object-position: var(--hgg-image-position);
}

/* Kleiner Bildhinweis unten rechts */

:where(.hg-wp--10) #hg-home-guide .hgg__image-credit {
  position: absolute;

  right: 7px;
  bottom: 6px;

  margin: 0;
  padding: 0;

  color: #ffffff;

  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;

  opacity: .6;
  pointer-events: none;
}

/* Rechte Inhaltsspalte */

:where(.hg-wp--10) #hg-home-guide .hgg__content {
  width: 100%;
  max-width: none;
  min-width: 0;

  margin: 0;
  padding: 0;
}

/* Überschrift */

:where(.hg-wp--10) #hg-home-guide .hgg__title {
  margin: 0 0 18px !important;

  color: var(--ink) !important;

  font-family: inherit !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  line-height: 1.25 !important;
}

/* Einleitung aus der Vorlage */

:where(.hg-wp--10) #hg-home-guide .hgg__lead {
  margin: 0 0 28px !important;

  color: var(--text) !important;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
}

/* Ratgeberfragen */

:where(.hg-wp--10) #hg-home-guide .hgg__list {
  border-top: 1px solid var(--line);
}

:where(.hg-wp--10) #hg-home-guide .hgg__item {
  margin: 0;

  border: 0;
  border-bottom: 1px solid var(--line);

  background: transparent;
}

:where(.hg-wp--10) #hg-home-guide .hgg__question {
  position: relative;

  display: block;
  min-height: 68px;

  padding: 22px 36px 22px 0;

  list-style: none;
  cursor: pointer;

  color: var(--ink);
}

:where(.hg-wp--10) #hg-home-guide .hgg__question::marker {
  content: "";
}

:where(.hg-wp--10) #hg-home-guide
.hgg__question::-webkit-details-marker {
  display: none;
}

/* Dezente Plus-/Minuszeichen */

:where(.hg-wp--10) #hg-home-guide .hgg__question::before,
:where(.hg-wp--10) #hg-home-guide .hgg__question::after {
  content: "";

  position: absolute;

  right: 8px;
  top: 50%;

  width: 14px;
  height: 1px;

  background: var(--cacao);

  transform: translateY(-50%);
}

:where(.hg-wp--10) #hg-home-guide .hgg__question::after {
  transform: translateY(-50%) rotate(90deg);
}

:where(.hg-wp--10) #hg-home-guide
.hgg__item[open] .hgg__question {
  color: var(--cacao);
}

:where(.hg-wp--10) #hg-home-guide
.hgg__item[open] .hgg__question::after {
  display: none;
}

:where(.hg-wp--10) #hg-home-guide .hgg__question h3 {
  margin: 0 !important;

  color: inherit !important;

  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  line-height: 1.35 !important;
}

:where(.hg-wp--10) #hg-home-guide .hgg__answer {
  padding: 0 36px 24px 0;
}

:where(.hg-wp--10) #hg-home-guide .hgg__answer p {
  margin: 0 !important;

  color: var(--text) !important;

  font-size: 16px;
  line-height: 1.8;
}

/* Button */

:where(.hg-wp--10) #hg-home-guide .hgg__action {
  margin-top: 32px;
}

:where(.hg-wp--10) #hg-home-guide .hgg__button {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 480px;
  max-width: 100%;
  min-height: 60px;

  padding: 16px 56px !important;

  border: 1px solid var(--cacao) !important;
  border-radius: 2px !important;

  background: #ffffff !important;
  color: #00102a !important;

  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;

  text-align: center;
  text-decoration: none !important;
}

:where(.hg-wp--10) #hg-home-guide .hgg__button:hover {
  background: #f4f1ec !important;
}

:where(.hg-wp--10) #hg-home-guide .hgg__button svg {
  position: absolute;

  right: 22px;
  top: 50%;

  width: 20px;
  height: 20px;

  transform: translateY(-50%);

  fill: none;
  stroke: var(--cacao);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(.hg-wp--10) #hg-home-guide summary:focus-visible,
:where(.hg-wp--10) #hg-home-guide a:focus-visible {
  outline: 2px solid var(--cacao);
  outline-offset: 4px;
}

/* Kompakte Desktopansicht */

@media (min-width: 992px) and (max-width: 1199px) {
  :where(.hg-wp--10) #hg-home-guide .hgg__layout {
    column-gap: 40px;
  }
}

/*
  Mobil und Tablet:
  Bild oben über die gesamte Bildschirmbreite.
  Inhalt darunter in der Footerbreite.
*/

@media (max-width: 991px) {
  :where(.hg-wp--10) #hg-home-guide .hgg__layout,
  :where(.hg-wp--10)[data-hgg-footer-aligned]
  #hg-home-guide .hgg__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;

    width: 100%;
    max-width: none;

    margin: 0;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__content {
    width: calc(100% - 2 * var(--hgg-content-gutter));
    max-width: var(--hgg-content-max);

    margin-inline: auto;
  }

  :where(.hg-wp--10)[data-hgg-footer-aligned]
  #hg-home-guide .hgg__content {
    width: var(--hgg-footer-width);
    max-width: none;

    margin-left: var(--hgg-footer-left);
    margin-right: 0;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__button {
    width: 100%;
  }
}

/* Smartphone */

@media (max-width: 767px) {
  .hg-wp--10 {
    --hg-space-heading: 16px;
    --hgg-content-gutter: 15px;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__title {
    margin-bottom: 16px !important;

    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__lead {
    font-size: 14px;
    line-height: 1.7;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__question {
    min-height: 64px;
    padding: 18px 32px 18px 0;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__question h3 {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__answer {
    padding: 0 8px 22px 0;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__answer p {
    font-size: 14px;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__action {
    margin-top: 28px;
  }

  :where(.hg-wp--10) #hg-home-guide .hgg__button {
    width: 100%;
    min-height: 52px;

    font-size: 14px !important;
  }
}

/* Breitere Mobilansicht entsprechend dem Footer */

@media (min-width: 576px) and (max-width: 767px) {
  .hg-wp--10 {
    --hgg-content-max: 510px;
  }
}

/* Zusätzliche vertikale WPBakery-Abstände entfernen */

#main :is(.vc_row, .vc_column-inner, .wpb_raw_html):has(
  .wpb_wrapper > .hg-wp--10
) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}
