/* Funktionsleiste nach der Toolbar-Spezifikation vom 08.08.2026.
   Farbpalette und Transparenz entsprechen unveraendert der bisherigen Fassung. */
.contact-dock {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 70;
  box-sizing: border-box;
  width: 78px;
  padding: 8px 0;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background: linear-gradient(110deg,
    rgba(188, 196, 203, 0.86) 0%,
    rgba(174, 184, 192, 0.78) 72%,
    rgba(162, 173, 182, 0.68) 100%);
  box-shadow: 0 24px 70px rgba(49, 70, 90, 0.18);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.contact-dock a {
  position: relative;
  box-sizing: border-box !important;
  width: 100%;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 0;
  color: rgba(38, 61, 83, 0.88);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.contact-dock a + a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 1px;
  background: rgba(38, 61, 83, 0.24);
}

.contact-dock a:hover,
.contact-dock a:focus-visible {
  color: #ff9b3d;
}

.contact-dock a:focus-visible {
  outline: 3px solid rgba(239, 117, 0, 0.48);
  outline-offset: -3px;
}

.contact-dock svg {
  box-sizing: border-box !important;
  display: block;
  overflow: visible;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-dock svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.contact-dock span {
  box-sizing: border-box;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

/* Tablet / iPad: 701 bis 820 CSS-Pixel. */
@media (min-width: 701px) and (max-width: 820px) {
  .contact-dock {
    right: 10px;
    top: 50%;
    width: 74px;
    padding: 8px 0;
    border-radius: 24px;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
  }

  .contact-dock a {
    min-height: 64px;
    gap: 6px;
    padding: 9px 7px;
  }

  .contact-dock svg {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
    min-width: 21px;
    min-height: 21px;
  }

  .contact-dock span {
    display: block;
    font-size: 0.55rem;
  }
}

/* Smartphone: bis 700 CSS-Pixel, unten horizontal und ohne Text. */
@media (max-width: 700px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .contact-dock {
    position: fixed !important;
    top: auto;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    margin: 0;
    padding: 0;
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-radius: 21px;
  }

  .contact-dock a {
    width: auto;
    min-height: 58px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .contact-dock a + a::before {
    top: 12px;
    bottom: 12px;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
  }

  .contact-dock span {
    display: none;
  }

  .contact-dock svg {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
    min-width: 23px;
    min-height: 23px;
  }

  .cookie-notice {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dock a {
    transition: none;
  }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .contact-dock {
    background: rgba(174, 184, 192, 0.94);
  }
}
