/* =========================================================
   MONTEURQUARTIER RUHR – KONTAKTPILLEN V1.6.0
   Desktop und Mobile sind vollständig getrennt.
   Desktop öffnet per CSS UND zusätzlicher JS-Klasse.
   ========================================================= */

#mqr150-desktop-dock,
#mqr150-desktop-dock *,
#mqr150-desktop-dock *::before,
#mqr150-desktop-dock *::after,
#mqr150-mobile-dock,
#mqr150-mobile-dock *,
#mqr150-mobile-dock *::before,
#mqr150-mobile-dock *::after {
  box-sizing: border-box !important;
}

/* =========================================================
   DESKTOP – komplett eigenständige Ausgabe
   ========================================================= */

html body #mqr150-desktop-dock.mqr150-desktop-dock {
  position: fixed !important;
  z-index: 2147483645 !important;
  top: var(--mqr150-desktop-top, 50%) !important;
  left: max(var(--mqr150-desktop-left, 16px), env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: auto !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 9px !important;

  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  transform: translate3d(0, -50%, 0) !important;
  pointer-events: auto !important;
  isolation: isolate !important;
  font-family: "Manrope", Arial, sans-serif !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill,
html body #mqr150-desktop-dock a.mqr150-desktop-pill,
html body #mqr150-desktop-dock a.mqr150-desktop-pill:link,
html body #mqr150-desktop-dock a.mqr150-desktop-pill:visited {
  --mqr150-color: var(--mqr150-phone, #0878b5);

  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  isolation: isolate !important;

  display: grid !important;
  grid-template-columns: 54px 200px 36px !important;
  align-items: stretch !important;
  justify-content: start !important;
  gap: 0 !important;

  width: 54px !important;
  min-width: 54px !important;
  max-width: 290px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 4px !important;
  outline: 0 !important;

  color: #ffffff !important;
  background: var(--mqr150-color) !important;
  box-shadow: 0 12px 30px rgba(3, 31, 48, 0.27) !important;

  float: none !important;
  clear: none !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0, 0, 0) !important;
  filter: none !important;
  cursor: pointer !important;

  transition:
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill--whatsapp {
  --mqr150-color: var(--mqr150-whatsapp, #168d5b);
}

html body #mqr150-desktop-dock .mqr150-desktop-pill--email {
  --mqr150-color: var(--mqr150-email, #0d6d9d);
}

html body #mqr150-desktop-dock .mqr150-desktop-pill--apartments {
  --mqr150-color: var(--mqr150-apartments, #17252e);
}

/* CSS-Fallback und zusätzliche JS-Klasse. */
html body #mqr150-desktop-dock .mqr150-desktop-pill:hover,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus-visible,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus-within,
html body #mqr150-desktop-dock .mqr150-desktop-pill.mqr150-is-open {
  z-index: 50 !important;
  width: 290px !important;
  min-width: 290px !important;
  max-width: 290px !important;
  color: #ffffff !important;
  background: var(--mqr150-color) !important;
  transform: translate3d(5px, 0, 0) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 20px 48px rgba(3, 31, 48, 0.34) !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__icon {
  position: relative !important;
  z-index: 3 !important;

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

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

  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.16) !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__icon svg {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__content {
  position: relative !important;
  z-index: 2 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;

  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  margin: 0 !important;
  padding: 6px 13px !important;
  overflow: hidden !important;

  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate3d(-14px, 0, 0) !important;
  pointer-events: none !important;

  transition:
    opacity 0.18s ease,
    visibility 0s linear 0.30s,
    transform 0.30s ease !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill:hover .mqr150-desktop-pill__content,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus .mqr150-desktop-pill__content,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus-visible .mqr150-desktop-pill__content,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus-within .mqr150-desktop-pill__content,
html body #mqr150-desktop-dock .mqr150-desktop-pill.mqr150-is-open .mqr150-desktop-pill__content {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0, 0, 0) !important;
  transition:
    opacity 0.24s ease 0.07s,
    visibility 0s linear 0s,
    transform 0.31s ease 0.03s !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__content strong,
html body #mqr150-desktop-dock .mqr150-desktop-pill__content small {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;

  font-family: "Manrope", Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__content strong {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__content small {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__arrow {
  position: relative !important;
  z-index: 2 !important;

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

  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  color: rgba(255, 255, 255, 0.84) !important;
  background: transparent !important;
  border: 0 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate3d(-8px, 0, 0) !important;
  pointer-events: none !important;

  transition:
    opacity 0.18s ease,
    visibility 0s linear 0.30s,
    transform 0.28s ease !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill:hover .mqr150-desktop-pill__arrow,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus .mqr150-desktop-pill__arrow,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus-visible .mqr150-desktop-pill__arrow,
html body #mqr150-desktop-dock .mqr150-desktop-pill:focus-within .mqr150-desktop-pill__arrow,
html body #mqr150-desktop-dock .mqr150-desktop-pill.mqr150-is-open .mqr150-desktop-pill__arrow {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0, 0, 0) !important;
}

html body #mqr150-desktop-dock .mqr150-desktop-pill__arrow svg {
  display: block !important;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile auf Desktop unter allen Umständen ausblenden. */
html body #mqr150-mobile-dock.mqr150-mobile-dock {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =========================================================
   MOBILE – frei auswählbare Buttons
   ========================================================= */

@media screen and (max-width: 767px) {
  html body #mqr150-desktop-dock.mqr150-desktop-dock {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock {
    position: fixed !important;
    z-index: 2147483646 !important;
    top: auto !important;
    right: auto !important;
    bottom: calc(var(--mqr150-mobile-bottom, 12px) + env(safe-area-inset-bottom)) !important;
    left: 50% !important;

    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-template-columns: repeat(var(--mqr150-mobile-count, 2), minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-width: 450px !important;
    height: auto !important;
    min-height: 42px !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    transform: translate3d(-50%, 0, 0) !important;
    pointer-events: auto !important;
    font-family: "Manrope", Arial, sans-serif !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-1 {
    max-width: 150px !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-2 {
    max-width: 220px !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-3 {
    max-width: 334px !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button,
  html body #mqr150-mobile-dock a.mqr150-mobile-button,
  html body #mqr150-mobile-dock a.mqr150-mobile-button:link,
  html body #mqr150-mobile-dock a.mqr150-mobile-button:visited,
  html body #mqr150-mobile-dock a.mqr150-mobile-button:hover,
  html body #mqr150-mobile-dock a.mqr150-mobile-button:focus,
  html body #mqr150-mobile-dock a.mqr150-mobile-button:focus-visible {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: none !important;

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

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    margin: 0 !important;
    padding: 0 11px !important;
    overflow: hidden !important;

    border: 1px solid rgba(255, 255, 255, 0.33) !important;
    border-radius: 4px !important;
    outline: 0 !important;

    color: #ffffff !important;
    background: var(--mqr150-phone, #0878b5) !important;
    box-shadow: 0 8px 22px rgba(3, 31, 48, 0.26) !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-indent: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button--whatsapp {
    background: var(--mqr150-whatsapp, #168d5b) !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button--email {
    background: var(--mqr150-email, #0d6d9d) !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button--apartments {
    background: var(--mqr150-apartments, #17252e) !important;
  }

  html body #mqr150-mobile-dock a.mqr150-mobile-button:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 5px 14px rgba(3, 31, 48, 0.22) !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button__icon {
    position: static !important;
    inset: auto !important;

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

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

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

    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button__icon svg {
    display: block !important;
    flex: 0 0 17px !important;
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button__text {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #ffffff !important;
    background: transparent !important;
    font: inherit !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-4 .mqr150-mobile-button {
    gap: 5px !important;
    padding: 0 7px !important;
    font-size: 9.5px !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-4 .mqr150-mobile-button__icon,
  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-4 .mqr150-mobile-button__icon svg {
    flex-basis: 15px !important;
    width: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    height: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
  }
}

@media screen and (max-width: 340px) {
  html body #mqr150-mobile-dock.mqr150-mobile-dock {
    width: calc(100vw - 12px) !important;
    gap: 5px !important;
  }

  html body #mqr150-mobile-dock .mqr150-mobile-button,
  html body #mqr150-mobile-dock a.mqr150-mobile-button {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 7px !important;
    gap: 5px !important;
    font-size: 9.8px !important;
  }

  html body #mqr150-mobile-dock.mqr150-mobile-dock--count-4 .mqr150-mobile-button {
    padding: 0 5px !important;
    gap: 4px !important;
    font-size: 8.8px !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html body #mqr150-desktop-dock.mqr150-desktop-dock {
    animation: mqr150-desktop-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @media screen and (max-width: 767px) {
    html body #mqr150-mobile-dock.mqr150-mobile-dock {
      animation: mqr150-mobile-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
  }
}

@keyframes mqr150-desktop-enter {
  from {
    opacity: 0;
    transform: translate3d(-25px, -50%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes mqr150-mobile-enter {
  from {
    opacity: 0;
    transform: translate3d(-50%, 20px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}
