/* Floating bubble menu (bottom-left) */
.floating-menu {
  position: fixed;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-menu-toggle {
  position: fixed;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  background: var(--color-red);
  color: var(--background-color);
  font-size: 2em;
  line-height: 0.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  left: 24px;
  bottom: 24px;
  z-index: 1501;
  pointer-events: auto;
}

.floating-lageplan-toggle {
  position: fixed;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  background: var(--color-red);
  color: var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  right: 24px;
  bottom: 24px;
  z-index: 1501;
  pointer-events: auto;
}

.floating-lageplan-toggle:hover {
  transform: translateY(-3px);
}

.floating-lageplan-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

.floating-menu-toggle:hover {
  transform: translateY(-3px);
}

.floating-menu-panel {
  background: var(--background-color);
  color: var(--text-color);
  padding: 12px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  min-width: 180px;
  pointer-events: none;
}

.floating-menu.open .floating-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 0;
  z-index: 1400;
  overflow: auto;
  pointer-events: auto;
}

.floating-menu.open .floating-menu-toggle {
  background: var(--color-red);
  color: var(--primary-color);
  border-color: var(--primary-color);
  left: 24px;
  bottom: 24px;
  position: fixed;
}

.floating-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: auto;
  text-align: center;
}

.floating-menu-list li {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.floating-menu-list a {
  color: var(--background-color);
  text-decoration: none;
  font-size: 2rem;
  padding: 10px 18px;
  display: inline-block;
  text-align: center;
}

.floating-menu-list a:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

.floating-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.overlay-open {
  overflow: hidden;
}

body.footer-in-view .floating-menu-toggle {
  opacity: 0;
  pointer-events: none;
}

body.footer-in-view .floating-lageplan-toggle {
  opacity: 0;
  pointer-events: none;
}


@media (max-width: 768px) {
  .floating-menu-list {
    gap: 16px;
  }

  .floating-menu-list a {
    font-size: 1.7rem;
    padding: 10px 16px;
  }
}