/* ============================================================
   Sticky Telefon-Bar
   Praxis am Hanseplatz
   ============================================================ */

.pah-sticky-phone {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1800;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pah-sticky-phone.visible {
  opacity: 1;
  visibility: visible;
}

/* Icon-Button */
.pah-phone-icon-btn {
  width: 46px;
  height: 46px;
  background-color: rgba(74, 127, 165, 0.88);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(74, 127, 165, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease, border-radius 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  text-decoration: none;
}

.pah-phone-icon-btn:hover {
  background-color: rgba(74, 127, 165, 1);
  transform: scale(1.1);
  box-shadow: 0 5px 18px rgba(74, 127, 165, 0.5);
}

.pah-phone-icon-btn:active {
  transform: scale(0.93);
}

/* Nummer-Label (Desktop) */
.pah-phone-label {
  background-color: rgba(74, 127, 165, 0.92);
  color: #ffffff;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 0 16px 0 14px;
  height: 38px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 0 24px 24px 0;
  box-shadow: 0 3px 12px rgba(74, 127, 165, 0.3);
  overflow: hidden;
  max-width: 200px;
  margin-left: 6px;
  transition: max-width 0.35s ease, padding 0.35s ease,
              opacity 0.35s ease, margin-left 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Eingeklappt */
.pah-sticky-phone.collapsed .pah-phone-label {
  max-width: 0;
  padding: 0;
  opacity: 0;
  margin-left: 0;
}

.pah-phone-label a {
  color: #ffffff;
  text-decoration: none;
}

.pah-phone-label a:hover {
  color: #cde0f0;
}

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
  .pah-sticky-phone {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .pah-phone-icon-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 50% !important;
  }

  /* Label auf Mobile ausblenden — Icon öffnet direkt Anruf */
  .pah-phone-label {
    display: none;
  }
}

@media screen and (max-width: 375px) {
  .pah-sticky-phone {
    left: 8px;
  }

  .pah-phone-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
