/* Shared contact section for the home page and the four service pages. */
body.kf-relaunch-site .elementor.elementor[data-elementor-type="wp-page"] #kontakt.kf-contact-section {
  --kf-contact-accent: #00a19a;
  background: #fff;
  padding-block: clamp(96px, 8.5vw, 150px) 0 !important;
  margin-bottom: 0 !important;

  .kf-contact-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
    gap: clamp(60px, 8%, 110px) !important;
    align-items: center;
    padding: 0 !important;
  }

  .kf-contact-copy {
    min-width: 0;
    padding: 0 !important;
    gap: 0 !important;
  }

  .kf-contact-copy h2 {
    max-width: none !important;
    margin-bottom: 30px !important;
  }

  .kf-contact-copy h2 > span:first-child {
    position: relative;
    display: table;
    padding: 0 0 8px !important;
    margin-bottom: 30px !important;
    font: 900 clamp(96px, 11vw, 176px)/1.12 "Nunito Sans", sans-serif !important;
    letter-spacing: -.025em !important;
  }

  .kf-contact-copy h2 > span:first-child:not(:has(> .kf-live-underline))::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 6px !important;
    background: var(--kf-contact-accent);
    border-radius: 0;
    opacity: 1;
    transform: none;
    mask: none;
    clip-path: polygon(0 25%, 29% 0, 66% 35%, 100% 5%, 100% 65%, 62% 100%, 31% 70%, 0 100%);
    pointer-events: none;
  }

  .kf-contact-copy h2 > span:last-child {
    display: block;
    font: 400 clamp(28px, 2.4vw, 40px)/1.2 "Nunito Sans", sans-serif !important;
    letter-spacing: -.025em !important;
  }

  .kf-contact-copy :is(.e-paragraph-base, .elementor-widget-text-editor p) {
    margin-block: 0 20px !important;
    font: 400 clamp(17px, 1.4vw, 20px)/1.6 "Nunito Sans", sans-serif !important;
  }

  .kf-contact-copy :is(.e-paragraph-base, .elementor-widget-text-editor p):last-child {
    margin-bottom: 0 !important;
  }

  .kf-contact-panel {
    position: relative;
    min-width: 0;
    padding: 38px 35px 30px !important;
    gap: 18px !important;
    background: #fff;
    border: 1px solid var(--kf-contact-border, var(--kf-contact-accent)) !important;
  }

  .kf-contact-panel h3 {
    margin: 0 0 14px !important;
    font: 700 clamp(30px, 2.6vw, 48px)/1.2 "Nunito Sans", sans-serif !important;
    letter-spacing: -.02em !important;
  }

  .kf-contact-panel .elementor-field-label {
    margin-bottom: 6px;
    font: 700 17px/1.35 "Nunito Sans", sans-serif !important;
  }

  .kf-contact-panel :is(input, textarea).elementor-field {
    font: 400 clamp(17px, 1.4vw, 20px)/1.6 "Nunito Sans", sans-serif !important;
  }

  .kf-contact-panel .elementor-widget-image.kf-native-megaphone {
    position: absolute;
    z-index: 2;
    filter: none;
    pointer-events: none;
    inset: -82px auto auto -145px;
    width: 160px;
    max-width: 160px;
    transform: rotate(-9deg) !important;
    animation: none !important;
  }


  .kf-contact-panel .kf-native-megaphone.kf-collage-wobble {
    --kf-rest-angle: -9deg;
    pointer-events: auto;
  }

  .kf-contact-panel .kf-native-megaphone img {
    width: 100%;
    height: auto;
  }

  .kf-contact-panel .kf-native-megaphone img[src*="kf-relaunch-megaphone."] {
    content: var(--kf-contact-megaphone, normal);
  }

  .kf-contact-location {
    position: relative;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 56px 0 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    scroll-snap-align: none !important;
  }

  .kf-contact-location > .kf-wrap {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .kf-location-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 40%) !important;
    gap: 48px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .kf-contact-location-copy {
    min-width: 0;
    gap: 12px !important;
    padding-block: 32px !important;
    align-self: center !important;
  }

  .kf-contact-location .kf-section-kicker .elementor-heading-title {
    font: var(--kf-location-kicker-font, 800 12px/1.5 "Nunito Sans", sans-serif) !important;
    letter-spacing: .09em !important;
  }

  .kf-contact-location-title .elementor-heading-title {
    font: 900 clamp(28px, 2.3vw, 36px)/1.1 "Nunito Sans", sans-serif !important;
    letter-spacing: -.035em !important;
  }

  .kf-contact-location .elementor-widget-text-editor,
  .kf-contact-location .elementor-widget-text-editor p {
    max-width: 750px !important;
    margin-block: 0 !important;
    font: 400 16px/1.5 "Nunito Sans", sans-serif !important;
  }

  .kf-location-map {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 420px !important;
    margin-bottom: 0 !important;
    place-self: stretch !important;
    overflow: hidden;
  }

  .kf-location-map svg {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    filter: none !important;
  }

  @media (max-width: 1100px) {
    .kf-contact-panel {
      padding: 30px 24px !important;
    }

    .kf-contact-panel .elementor-widget-image.kf-native-megaphone {
      inset: -70px auto auto -95px;
      width: 120px;
      max-width: 120px;
    }
  }

  @media (max-width: 767px) {
    padding-top: 72px !important;

    > .kf-wrap {
      width: calc(100% - var(--kf-contact-mobile-inset, 24px) * 2) !important;
      max-width: none !important;
    }

    .kf-contact-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 110px !important;
    }

    .kf-contact-copy h2 > span:first-child {
      font-size: clamp(76px, 24vw, 112px) !important;
    }

    .kf-contact-panel .elementor-widget-image.kf-native-megaphone {
      inset: -104px 0 auto auto;
      width: 110px;
      max-width: 110px;
    }

    .kf-contact-location {
      margin-top: 40px !important;
    }

    .kf-location-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 0 !important;
    }

    .kf-contact-location-copy {
      padding-top: 32px !important;
    }

    .kf-location-map {
      min-height: 0 !important;
      aspect-ratio: 1;
    }
  }
}

body.kf-page-elo.kf-relaunch-site .elementor[data-elementor-type="wp-page"] #kontakt.kf-contact-section {
  --kf-contact-accent: #f7b70c;
  --kf-contact-border: var(--kf-contact-accent);
  --kf-contact-megaphone: url("../media/kontakt-megafon-gelb.webp");
}

body.kf-page-it.kf-relaunch-site .elementor[data-elementor-type="wp-page"] #kontakt.kf-contact-section {
  --kf-contact-accent: #00a0da;
  --kf-contact-megaphone: url("../media/kontakt-megafon-blau.webp");
}

body.kf-page-website.kf-relaunch-site .elementor[data-elementor-type="wp-page"] #kontakt.kf-contact-section {
  --kf-contact-accent: #c2136a;
  --kf-contact-megaphone: url("../media/kontakt-megafon-pink.webp");
}


body.kf-relaunch-site .elementor .kf-location-map.kf-branded-map { border: 0 !important; }

.kf-contact-section .kf-contact-copy h2 .kf-live-underline path { opacity: 1 !important; }

/* Fuchsohren am Standort-Pin */
.kf-contact-section .kf-editorial-map-pin > circle,
.kf-contact-section .kf-editorial-map-pin > path[transform]:not(.kf-pin-ear) { display: none; }
.kf-contact-section .kf-editorial-map-pin .kf-pin-color { fill: var(--kf-contact-accent) !important; stroke: #fff; stroke-width: 3.5 !important; }
.kf-pin-ear { fill: none; pointer-events: none; stroke: #fff; stroke-width: 5; stroke-linejoin: miter; stroke-linecap: round; }
@media (hover:hover) and (pointer:fine) and (min-width:768px) and (prefers-reduced-motion:no-preference) {
  .kf-pin-ear { fill:none; stroke:#fff; stroke-width:5; stroke-linecap:round; stroke-linejoin:miter; stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset .18s; }
  .kf-editorial-map-pin:is(:hover,:focus-visible) .kf-pin-ear { stroke-dashoffset:0; transition:stroke-dashoffset .42s ease-out; }
  .kf-editorial-map-pin:is(:hover,:focus-visible) .kf-pin-ear:last-of-type { transition:stroke-dashoffset .25s ease-out .28s; }
}

body.kf-page-start .kf-contact-location { --kf-location-kicker-font: 300 18px/1.6 "Nunito Sans", sans-serif; }

body.kf-service-editorial #kontakt.kf-contact-section .kf-contact-copy a:is([href^="tel:"], [href^="mailto:"]):is(:hover, :focus-visible) {
  color: var(--kf-contact-accent) !important;
}

body.kf-page-start {
  --kf-contact-mobile-inset: 10px;
}

@media (max-width: 767px) {
  .kf-location-grid .elementor-element.kf-location-map {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    margin-inline: calc(50% - 50vw) !important;
    padding-inline: 0 !important;
  }
  .kf-location-map > .elementor-widget-container { padding-inline: 0; }
}
