/* =========================
   Fokus Blur
   ========================= */



.blur-focus-word {
  display: inline-block !important;
  filter: blur(12px);
  opacity: 0.2;
  transform: translateY(8px);
  transition: filter 0.9s ease, opacity 0.9s ease, transform 0.9s ease;
}

.blur-focus-word.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}



/* =========================
   Untersteichung Welleneffekt
   ========================= */

.wave-underline {
  position: relative;
  display: inline-block;
}

.wave-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 6 Q 7.5 0 15 6 T 30 6 T 45 6 T 60 6 T 75 6 T 90 6 T 105 6 T 120 6' fill='none' stroke='%23080808' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 12px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease;
}

.wave-underline.is-visible::after {
  transform: scaleX(1);
}




/* =========================
   Unterstreichung Welleneffekt (weiss)
   ========================= */

.wave-underline-white {
  position: relative;
  display: inline-block;
}

.wave-underline-white::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28em; /* mehr Abstand zur Schrift */
  width: 100%;
  height: 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 6 Q 7.5 0 15 6 T 30 6 T 45 6 T 60 6 T 75 6 T 90 6 T 105 6 T 120 6' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 12px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease;
}

.wave-underline-white.is-visible::after {
  transform: scaleX(1);
}






/* =========================
   LINK WAVE UNDERLINE HOVER
   (SMALL WAVES)
   ========================= */

a {
  position: relative;
  text-decoration: none;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.04em;
  width: 100%;
  height: 6px; /* kleiner */

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='6' viewBox='0 0 80 6'%3E%3Cpath d='M0 3 Q 4 0 8 3 T 16 3 T 24 3 T 32 3 T 40 3 T 48 3 T 56 3 T 64 3 T 72 3 T 80 3' fill='none' stroke='%235c5c5c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 6px;

  transform: translateY(5px) scaleX(0);
  transform-origin: left;
  opacity: 0;

  transition: transform 0.35s ease, opacity 0.25s ease;
}

a:hover::after {
  transform: translateY(0) scaleX(1);
  opacity: 1;
}







   
/* =========================
   MAP SECTION LAYOUT
   ========================= */

.map-section {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.map-section-head {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.map-section-head h2 {
  margin: 0;
  max-width: 520px;
  text-align: right;
}


/* =========================
   MAP WRAPPER
   ========================= */

.map-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;

  transform: translateY(-220px);
  margin-bottom: -220px;
}

.map-wrap svg {
  width: min(100%, 1100px);
  height: auto;
  display: block;
  overflow: visible;
  margin-left: 0;
  margin-right: auto;
  transform: translateX(-3%);
}


/* =========================
   BASE MAP APPEAR
   ========================= */

.map-wrap [data-name="Forests"] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transform-origin: center;
  transition:
    opacity 1s ease,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-wrap.is-visible [data-name="Forests"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* =========================
   RIVERS DRAW
   ========================= */

.map-wrap [data-name="Rivers"] path {
  opacity: 0;
}


/* =========================
   HOUSES APPEAR
   ========================= */

.map-wrap [data-name="HOUSES"] {
  opacity: 0;
  transform: scale(0.82);
  transform-origin: center;
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-wrap.is-visible [data-name="HOUSES"] {
  opacity: 1;
  transform: scale(1);
}


/* =========================
   DESTINATIONS GROW IN PLACE
   ========================= */

.map-wrap [data-name="DESTINATIONS"] > g {
  opacity: 1;
}

.map-wrap [data-name="DESTINATIONS"] > g circle:not(.map-hit-area) {
  opacity: 0;
  transform: scale(0.12);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.4s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-wrap [data-name="DESTINATIONS"] > g.is-arrived circle:not(.map-hit-area) {
  opacity: 1;
  transform: scale(1);
}


/* =========================
   LINES DRAW
   ========================= */

.map-wrap [data-name="LINES"] path {
  opacity: 0;
}


/* =========================
   HOVER / HIT AREAS
   ========================= */

.map-wrap [data-name="DESTINATIONS"] > g circle:not(.map-hit-area),
.map-wrap [data-name="HOUSES"] circle:not(.map-hit-area) {
  cursor: pointer;
}

.map-wrap [data-name="DESTINATIONS"] > g circle:not(.map-hit-area),
.map-wrap [data-name="HOUSES"] circle:not(.map-hit-area),
.map-wrap [data-name="HOUSES"] path {
  pointer-events: none;
}

.map-hit-area {
  pointer-events: all;
  cursor: pointer;
}


/* =========================
   CITY TOOLTIP
   ========================= */

.map-city-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  background: #000;
  color: #fff;
  padding: 5px;
  font-family: "Made Tomy", sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-city-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-14px);
}


/* =========================
   HOUSE IMAGE PREVIEW
   ========================= */

.map-house-preview {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.96);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  width: 220px;
}

.map-house-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.map-house-preview img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   RIVER HOVER
   ========================= */

.map-wrap [data-name="Rivers"] g path {
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.map-wrap [data-name="Rivers"] g.is-hovered path {
  stroke: #e0e0e0;
  stroke-width: 2.6;
}

.map-river-hit {
  fill: none;
  stroke: #000;
  stroke-opacity: 0.001;
  stroke-width: 18;
  pointer-events: stroke;
  cursor: pointer;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
  .map-wrap {
    transform: translateY(-160px);
    margin-bottom: -160px;
  }

  .map-wrap svg {
    width: 100%;
    transform: translateX(-2%);
  }
}

@media (max-width: 767px) {
  .map-wrap {
    transform: translateY(-120px);
    margin-bottom: -120px;
  }

  .map-section-head {
    justify-content: flex-start;
  }

  .map-section-head h2 {
    max-width: 100%;
    text-align: left;
  }

  .map-wrap svg {
    width: 100%;
    transform: translateX(0);
  }

  .map-house-preview {
    width: 180px;
  }
}












/* =========================
   SPLIT GALLERY
   ========================= */

.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: stretch;
}

.gallery-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  min-height: 0;
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: #000;
  min-width: 0;
  min-height: 0;
}

.gallery-card img,
.gallery-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Linke Seite: Hochformat */
.gallery-card-left::before {
  content: "";
  display: block;
  padding-top: 140%;
}

/* Rechte Seite: Querformat */
.gallery-card-top::before,
.gallery-card-bottom::before {
  content: "";
  display: block;
  padding-top: 66%;
}

/* =========================
   VIDEO CLEANUP
   ========================= */

.gallery-card video {
  pointer-events: none;
}

/* =========================
   HOVER LABEL
   ========================= */

.gallery-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: "BN Bergen", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-label {
  opacity: 1;
}

/* =========================
   MOBILE
   bleibt zweispaltig
   ========================= */

@media (max-width: 767px) {
  .gallery-split {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .gallery-right {
    gap: 15px;
  }

  .gallery-card-left::before {
    padding-top: 150%;
  }

  .gallery-card-top::before,
  .gallery-card-bottom::before {
    padding-top: 70%;
  }

  .gallery-label {
    font-size: 11px;
    letter-spacing: 2.5px;
    padding: 8px 10px;
  }
}


/* Video komplett clean */

.gallery-card-video video {
  pointer-events: none;
}


/* Video klickbar machen trotz pointer-events */

.gallery-card-video video {
  pointer-events: none;
}





/* =========================
   WUPPER HERO VIDEO
   ========================= */

.wupper-hero-video {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.wupper-hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Play-UI ausblenden, falls ein Browser etwas einblendet */
.wupper-hero-video-bg::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

.wupper-hero-video-bg::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
}

.wupper-hero-video-bg::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

.wupper-hero-video.is-ready .wupper-hero-video-bg {
  opacity: 1;
}

.wupper-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.wupper-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 20px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wupper-hero-title {
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: "Celine", sans-serif;
  font-size: 4rem;
  line-height: 4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wupper-line-break {
  display: block;
}

.wupper-hero-title em {
  font-style: italic;
}

@media (max-width: 1024px) {
  .wupper-hero-video {
    min-height: calc(90vh - 100px);
  }

  .wupper-hero-title {
    font-size: 3.2rem;
    line-height: 3.2rem;
  }
}

@media (max-width: 767px) {
  .wupper-hero-video {
    min-height: calc(82vh - 100px);
  }

  .wupper-hero-content {
    padding: 100px 16px 100px;
  }

  .wupper-hero-title {
    font-size: 2.4rem;
    line-height: 2.4rem;
  }
}