Section heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Call to action
<script>
window.addEventListener("load", (event) => {
  // Fetching Splide instance
  const splideInstances = window.bricksData.splideInstances;
  const targetId = 'fr-locations-slider-alpha';
  const splide = splideInstances && splideInstances.hasOwnProperty(targetId) ? splideInstances[targetId] : null;

  // Hier wird die splide Instanz in der Konsole ausgegeben
  console.log('splideInstance:', splide);

  if (!splide) {
    console.log(`No splide instance found with id ${targetId}`);
    return;
  }

  const locationCards = document.querySelectorAll('.fr-location-card-alpha');
  const mapMarkers = document.querySelectorAll('.fr-world-map-alpha__marker');

  locationCards.forEach(card => {
    const postId = card.getAttribute('data-post-id');
    card.addEventListener('mouseover', function() {
      const marker = document.querySelector(`.fr-world-map-alpha__marker[data-post-id="${postId}"]`);
      if (marker) marker.classList.add('hovered');
    });

    card.addEventListener('mouseout', function() {
      const marker = document.querySelector(`.fr-world-map-alpha__marker[data-post-id="${postId}"]`);
      if (marker) marker.classList.remove('hovered');
    });
  });

  mapMarkers.forEach(marker => {
    const postId = marker.getAttribute('data-post-id');

    marker.addEventListener('mouseover', function() {
      const card = document.querySelector(`.fr-location-card-alpha[data-post-id="${postId}"]`);
      if (card) card.classList.add('highlighted');
    });

    marker.addEventListener('mouseout', function() {
      const card = document.querySelector(`.fr-location-card-alpha[data-post-id="${postId}"]`);
      if (card) card.classList.remove('highlighted');
    });

    marker.addEventListener('click', function() {
      const cards = Array.from(document.querySelectorAll('.fr-location-card-alpha'));
      const index = cards.findIndex(card => card.getAttribute('data-post-id') === postId);
      if (index !== -1) {
        splide.go(index);  // navigate to the specific slide
      }
    });

    const markerTop = marker.dataset.markerInsetTop;
    const markerLeft = marker.dataset.markerInsetLeft;
    marker.style.setProperty('--marker-inset-top', markerTop + '%');
    marker.style.setProperty('--marker-inset-left', markerLeft + '%');
  });
});
  
  window.addEventListener("load", (event) => {
    const markers = document.querySelectorAll('.fr-world-map-alpha__marker');
    markers.forEach(marker => {
      marker.style.opacity = '1';
    });
});

</script>