.nv-rema-interactive-map-container {
  position: relative;
  width: 100%;
}
.nv-rema-interactive-map {
  position: relative;
  width: 100%;
  background: url('https://via.placeholder.com/800x600.png?text=No+Image+available') no-repeat center center;
  background-size: contain;
  aspect-ratio: 4 / 3;
}

.nv-rema-map-marker {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-sizing: border-box;
}

.view-map .nv-rema-map-marker {
  pointer-events: auto;
  cursor: pointer;
}


.show .nv-rema-interactive-map {
  pointer-events: none;
  max-height: inherit;
  width: fit-content;
  height: 100%;
  display: flex;
  min-width: 100%;
  max-width: inherit;
  background:none;
  aspect-ratio: unset;
}
.show .nv-rema-interactive-map img {
  max-height: inherit;
  height: 100%;
}


.nv-rema-marker-inner {
  position: relative;
  line-height: 1;
  width: 13px;
  height: 13px;
}

.nv-rema-marker-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 9999px;
  background: var(--nv-rema-col-error);
  border:2px solid #fff;
  transition: transform 0.2s ease-in-out;
  box-sizing: border-box;
}
.nv-rema-map-marker:hover {
  z-index: 4;
}
.nv-rema-map-marker:hover .nv-rema-marker-dot{
  transform: scale(1.2);
}

.nv-rema-marker-link {
  text-decoration: none;
  color: var(--nv-rema-col-error);
}

.nv-rema-map-marker:hover .nv-rema-tooltip,
.nv-rema-map-marker:focus-within .nv-rema-marker-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nv-rema-marker-layer {
  z-index: 3;
  position: absolute;
  inset: 0;
}

.nv-rema-marker-tooltip{
  position: absolute;
  z-index: 5;
  display: block;        /* wichtig fürs Messen */
  height: auto;          /* keine feste Höhe */
  max-width: 320px;      
  white-space: normal;   /* Zeilenumbruch erlauben */
  overflow: visible;     /* nichts abschneiden */
  padding: 8px 12px;
  background: var(--nv-rema-col-gray);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,.24);
  font-size: 12px;
  line-height: 1.3em;
  pointer-events: all;
}

.nv-rema-marker-tooltip.active::after{
  content:"";
  position:absolute;
  bottom:-4px;
  left:50%;
  width:10px;height:10px;
  transform:translateX(-50%) rotate(45deg);
  background:var(--nv-rema-col-gray);
}
.nv-rema-marker-tooltip.active {
  opacity: 1;
  visibility: visible;
}
