/* ========== 8) Floating Buttons (Miet-/Sale-Anfrageliste) + Tooltip ========== */

#to-mietanfrageliste-wrapper,
#to-saleanfrageliste-wrapper {
  position: fixed; right: 0; z-index: 1000; background: transparent; border: none;
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: right;
}
#to-mietanfrageliste-wrapper { top: 20%; }
#to-saleanfrageliste-wrapper { top: calc(20% + 50px); }

#to-mietanfrageliste-button {
  background:#1D1E1C; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #F5B505; border-radius: 3px 0 0 3px; border: none; transition: all .3s ease;
}
#to-mietanfrageliste-button:hover { color: #1D1E1C; background:#F5B505; }
#to-mietanfrageliste-button::before {
  content: attr(data-count);
  position: absolute; top: -10px; left: -4px;
  background: #F5B505; color: #1D1E1C; width: 25px; height: 25px; padding: 13px;
  font-size: 14px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease-in-out; border: 3px solid #fff;
}
#to-mietanfrageliste-button.has-items::before { opacity: 1; }

#to-saleanfrageliste-button {
  background:#F5B505; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #1D1E1C; border-radius: 3px 0 0 3px; border: none; transition: all .3s ease;
}
#to-saleanfrageliste-button:hover { color: #F5B505; background:#1D1E1C; }
#to-saleanfrageliste-button::before {
  content: attr(data-count);
  position: absolute; top: -10px; left: -4px;
  background: #F5B505; color: #1D1E1C; width: 25px; height: 25px; padding: 13px;
  font-size: 14px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease-in-out; border: 3px solid #fff;
}
#to-saleanfrageliste-button.has-items::before { opacity: 1; }

/* Tooltip */
:where(#to-mietanfrageliste-wrapper,#to-saleanfrageliste-wrapper) #tooltip {
  display: flex; align-items: center; justify-content: center;
  position: absolute; left: -111px; top: 50%; transform: translateY(-50%);
  background: rgba(245,245,245,1); height: 45px; color: #000; padding: 8px 12px; border-radius: 0;
  font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .4s, transform .4s;
}
#to-mietanfrageliste-link:hover #tooltip,
#to-saleanfrageliste-link:hover :where(#to-mietanfrageliste-wrapper,#to-saleanfrageliste-wrapper) #tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(-10px); }

