/* Clean desktop contact bar; one persistent phone action on mobile. */
aside.anruf {
  position: fixed;
  inset: auto clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px) auto;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border: 1px solid rgba(25, 25, 28, .12);
  border-radius: 18px;
  background: #fff;
  color: var(--ink, #19191c);
  box-shadow: 0 8px 32px rgba(25, 25, 28, .12);
  font-family: var(--sans, Figtree, system-ui, sans-serif);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
}
aside.anruf.is-sichtbar { opacity: 1; pointer-events: auto; transform: none; }
aside.anruf::before, aside.anruf::after { content: none; }
aside.anruf .anruf__bild { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: none; }
aside.anruf .anruf__text { display: block; flex: 0 1 auto; margin: 0 4px 0 0; min-width: 0; overflow: visible; white-space: normal; font-size: 14px; line-height: 1.4; }
aside.anruf .anruf__text b { display: block; padding: 0; background: none; font-size: 16px; font-weight: 700; }
aside.anruf .anruf__text span { display: block; color: #56565c; }
aside.anruf .anruf__tel, aside.anruf .anruf__wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease;
}
aside.anruf .anruf__tel { background: var(--cta, #22c7d6); color: #19191c; }
aside.anruf .anruf__tel:hover { background: var(--cta-hover, #16b4c2); }
aside.anruf .anruf__wa { border-color: #d9d9dd; background: #fff; color: #19191c; }
aside.anruf .anruf__wa:hover { background: #f3f5f5; }
aside.anruf .anruf__tel::before, aside.anruf .anruf__tel::after,
aside.anruf .anruf__wa::before, aside.anruf .anruf__wa::after { content: none; }
aside.anruf svg.anruf__icon { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
aside.anruf svg.anruf__handset { display: none; }
aside.anruf .anruf__zu { display: grid; place-items: center; flex: none; width: 32px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #56565c; font-size: 22px; cursor: pointer; }
aside.anruf .anruf__zu:hover { background: #f3f5f5; }
aside.anruf a:focus-visible, aside.anruf button:focus-visible { outline: 3px solid #0e7180; outline-offset: 4px; }

@media (max-width: 640px) {
  aside.anruf {
    inset: auto calc(18px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) auto;
    width: 56px;
    max-width: none;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
  }
  aside.anruf .anruf__bild, aside.anruf .anruf__text, aside.anruf .anruf__wa, aside.anruf .anruf__zu { display: none; }
  aside.anruf .anruf__tel {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border: 1px solid rgba(25, 25, 28, .12);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(25, 25, 28, .18);
    isolation: isolate;
  }
  aside.anruf .anruf__tel span, aside.anruf .anruf__tel svg.anruf__icon { display: none; }
  aside.anruf .anruf__tel svg.anruf__handset { display: block; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  aside.anruf .anruf__tel::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border: 1px solid #1594a0;
    border-radius: 50%;
    background: none;
    pointer-events: none;
    animation: anruf-puls 3.2s ease-out infinite;
  }
}
@keyframes anruf-puls {
  0%, 100% { transform: scale(1); opacity: .12; }
  45% { transform: scale(1.14); opacity: .32; }
  75% { transform: scale(1.24); opacity: 0; }
}
/* Navigation and modal interactions take precedence over floating contact. */
body:has(#site-menu:not([hidden])) aside.anruf,
body:has(dialog[open]) aside.anruf { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  aside.anruf { transition: none; transform: none; }
  aside.anruf .anruf__tel::before { animation: none; opacity: 0; }
}
