/* Mobile only. Never change the ordinary footer contact row.
   Prefix-independent selector: no Elementor/KBA layout dependency. */
body.twb-contact-glass-repair-enabled nav.twb-system-contact-dock[data-twb-contact-dock] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@media screen and (max-width: 767px) {
  body.twb-contact-glass-repair-enabled nav.twb-system-contact-dock[data-twb-contact-dock] {
    position: fixed !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 1100;
    width: max-content;
    height: auto;
    min-width: 0;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    gap: 4px;
    padding: 5px;
    margin: 0 !important;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(50,83,138,.56), rgba(31,62,99,.46));
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(14,35,61,.20), inset 0 1px 0 rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
    transition: none !important;
  }
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-left nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-right nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-left-bottom nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-right-bottom nav.twb-system-contact-dock[data-twb-contact-dock] {
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-left nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-right nav.twb-system-contact-dock[data-twb-contact-dock] {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-left-bottom nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-right-bottom nav.twb-system-contact-dock[data-twb-contact-dock] {
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-left nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-left-bottom nav.twb-system-contact-dock[data-twb-contact-dock] {
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
  }
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-right nav.twb-system-contact-dock[data-twb-contact-dock],
  body.twb-contact-glass-repair-enabled.twb-contact-glass-position-right-bottom nav.twb-system-contact-dock[data-twb-contact-dock] {
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: #fff !important;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    text-decoration: none !important;
    box-shadow: none;
    box-sizing: border-box;
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-action svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .96;
  }

  /* All four contact symbols should have the same visual weight. WhatsApp uses
     the supplied original white glyph; because that glyph is filled rather than
     stroked it is rendered slightly smaller and softer than the line icons. */
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action[href*="wa.me/"],
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action[href*="whatsapp.com/"] {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.08);
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action[href*="wa.me/"]::before,
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action[href*="whatsapp.com/"]::before {
    content: "";
    width: 25px;
    height: 25px;
    display: block;
    background: url('whatsapp-original.png') center / contain no-repeat;
    opacity: .90;
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action[href*="wa.me/"] svg,
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock > a.twb-system-contact-action[href*="whatsapp.com/"] svg {
    display: none !important;
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-action:hover,
  body.twb-contact-glass-repair-enabled .twb-system-contact-action:focus-visible {
    background-color: rgba(255,255,255,.18);
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
  }
  body.twb-contact-glass-repair-enabled .twb-system-contact-dock .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Live legacy contact bar: Elementor template 8877 (KBA Kontaktleiste final).
   Hide only on mobile; tablet/desktop behavior of the live site remains untouched. */
@media (max-width: 767px) {
  body.twb-contact-glass-repair-enabled .elementor-8877,
  body.twb-contact-glass-repair-enabled [data-elementor-id="8877"],
  body.twb-contact-glass-repair-enabled [data-elementor-post-id="8877"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

@media print {
  body.twb-contact-glass-repair-enabled nav.twb-system-contact-dock[data-twb-contact-dock] { display: none !important; }
}
