/* =====================================================
   MAP WRAPPER & ZOOM
===================================================== */

.wm-map-wrapper {
  position: relative;
  overflow: hidden;
}

.wm-map {
  position: relative;
  transform-origin: top left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);

}


/* =====================================================
   SVG
===================================================== */

.wm-map__svg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  opacity: .15;
  /* Klicks nur auf Punkte */
}

/* =====================================================
   MAP POINTS
===================================================== */

.map-point {
  position: absolute;
  width: 15px;
  height: 15px;
  scale: 0.5;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #3fc92e;
  z-index: 10;
  border: none;

  opacity: 0;
  transition: opacity 1s ease;
}

.map-point.active {
  opacity: 1;


}

.map-point::after {
  content: '';
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  pointer-events: none;
  background: rgb(63 201 46 / 41%);
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);

  }
}

/* =====================================================
   TOOLTIP
===================================================== */

.map-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
  color: #fff;
  text-transform: uppercase;
  border-radius: 5px;
}

.map-tooltip.is-visible {
  opacity: 1;

}


.tooltipheader {
  line-height: 1em;
  pointer-events: none;
  font-size: 1.3em;
  font-weight: bold;
}

.tooltipcontent {
  margin-top: .5em;
}

.tooltipcontent p {
  line-height: 1.2em;
  margin: 0 !important;
}




/* =====================================================
   SLIDER – SINGLE GROUP VIEW
===================================================== */

.wm-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
  width: 100%;
}

.group-nav {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.group-slider {
  position: relative;
  height: 44px;
  /* Höhe eines Slides */
  overflow: hidden;
}

/* ALLE Slides liegen übereinander */
.group-slide {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;

  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: #f5f5f5;
  border: none;
  font-size: 0.95rem;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* NUR der aktive ist sichtbar */
.group-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  background: #3fc92e;
  color: #000000;
  /* border-color: #1d3557; */
}

.group-nav {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: #fff;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .map-tooltip {
    width: 185px;
  }

  .map-point {
    width: 15px;
    height: 15px;
    scale: 0.3;
  }



  .map-tooltip {
    font-size: 12px;
    width: 160px;
    hyphens: auto;

  }

  .group-nav {
    font-size: 1.25rem;
  }
}