/*
Theme Name: Digitales Exposé
Theme URI: http://vision2action.de
Author: Wiedenroth Design
Author URI: https://wiedenroth-design.de
Description: Digitales Exposé mit verschiedenen Modulen zur Veranschaulichung von Immobilien.
Tags: custom
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.5.2
Requires PHP: 8.0
Text Domain: V2A

V2A Wordpress Theme 2024
V2A Wordpress Theme 2024 is not distributed.
*/

html {
  font-family: adobe-jenson-pro, serif;
}

html {
  margin-top: 0 !important;
}

.underline-animation::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #cfab8e;
  transition: width 0.3s;
}

.underline-animation:hover::after {
  width: 100%;
}

.underline-animation:hover {
  color: #cfab8e;
}

.text-editor b,
strong {
  font-weight: bolder;
}

.text-editor ul,
ol {
  list-style: revert !important;
  margin-bottom: 15px !important;
  margin-left: 20px !important;
}

.text-editor h1 {
  font-size: 64px;
  font-style: normal;
  font-weight: bolder !important;
  line-height: 100%;
  /* 84px */
  letter-spacing: 1.2px;
  margin-bottom: 30px;
}

.text-editor h2 {
  font-size: 54px !important;
  font-style: normal;
  font-weight: bolder !important;
  line-height: 100%;
  letter-spacing: 1.04px;
  margin-bottom: 25px;
}

.text-editor h3 {
  font-size: 44px !important;
  font-style: normal;
  font-weight: bolder !important;
  line-height: 100%;
  letter-spacing: 0.64px;
  margin-bottom: 20px;
}

.text-editor h4 {
  font-size: 34px !important;
  font-style: normal;
  font-weight: bolder !important;
  line-height: 100%;
  letter-spacing: 0.64px;
  margin-bottom: 20px;
}

.text-editor h5 {
  font-size: 24px !important;
  font-style: normal;
  font-weight: bold !important;
  line-height: 100%;
  letter-spacing: 0.56px;
  margin-bottom: 20px;
}

.text-editor h6 {
  font-size: 14px !important;
  font-style: normal;
  font-weight: bold !important;
  line-height: 100%;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.text-editor-relative h1,
.text-editor-relative h2,
.text-editor-relative h3,
.text-editor-relative h4,
.text-editor-relative h5,
.text-editor-relative h6,
.text-editor-relative p {
  font-size: 4.2vw;
  font-style: normal;
  font-weight: bold !important;
  line-height: 100%;
  letter-spacing: 0.56px;
  margin-bottom: 20px;
}

.text-editor b,
strong {
  font-weight: bolder;
}

.text-popup ul,
ol {
  list-style: revert !important;
  margin-bottom: 15px !important;
  margin-left: 20px !important;
}

.text-popup p {
  margin-bottom: 15px;
}

.text-popup h1 {
  font-size: 24px;
  font-style: normal;
  font-weight: bolder;
  line-height: 100%;
  /* 84px */
  letter-spacing: 1.2px;
  margin-bottom: 30px;
}

.text-popup h2 {
  font-size: 20px;
  font-style: normal;
  font-weight: bolder;
  line-height: 100%;
  letter-spacing: 1.04px;
  margin-bottom: 25px;
}

.text-popup h3 {
  font-size: 16px;
  font-style: normal;
  font-weight: bolder;
  line-height: 100%;
  letter-spacing: 0.64px;
  margin-bottom: 20px;
}

.text-popup h4 {
  font-size: 14px;
  font-style: normal;
  font-weight: bolder;
  line-height: 100%;
  letter-spacing: 0.64px;
  margin-bottom: 20px;
}

.text-popup h5 {
  font-size: 12px;
  font-style: normal;
  font-weight: bold;
  line-height: 100%;
  letter-spacing: 0.56px;
  margin-bottom: 20px;
}

.text-popup h6 {
  font-size: 10px;
  font-style: normal;
  font-weight: bold;
  line-height: 100%;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.carousel-container {
  position: relative;
  width: 80%;
  margin: auto;
  overflow: hidden;
  display: flex;
  /* Add this line */
}

.carousel {
  transition: transform 0.5s ease-in-out;
  display: flex;
}

.carousel-image {
  width: 100%;
  object-fit: cover;
  flex: 0 0 auto;
  /* Add this line */
}

.indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 10px 0;
}

.indicator {
  width: 40px;
  height: 6px;
  background-color: #f2d6d7;
  margin: 0 10px;
  cursor: pointer;
  margin-bottom: 15px;
}

.indicator.active {
  background-color: #dca58c;
}

.prevBtn,
.nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.prevBtn {
  left: 0px;
}

.nextBtn {
  right: 0px;
}

.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-attrib.mapboxgl-compact {
  display: none !important;
}

.mapboxgl-popup-close-button {
  margin: 2px 5px;
  font-size: 20px;
}

.nav-hidden {
  transform: translateY(-100%); /* Verschiebt das Element komplett nach oben */
  transition: transform 0.3s ease-in-out;
}

.nav-visible {
  transform: translateY(
    0
  ); /* Setzt das Element zurück in seine ursprüngliche Position */
  transition: transform 0.3s ease-in-out;
}

.pre-animation {
  display: block;
  text-align: start;
  position: relative;
  transform: translateY(40px); /* Startet 40px unter der endgültigen Position */
  opacity: 0; /* Startet vollständig transparent */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Schnelle Animation ohne Verzögerung */
}

.post-animation {
  display: block;
  text-align: start;
  position: relative;
  transform: translateY(0px); /* Endet in der finalen Position */
  opacity: 1; /* Vollständig sichtbar am Ende */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Schnelle Animation ohne Verzögerung */
}

.side-pre-animation {
  display: block;
  position: relative;
  transform: translateX(
    -100%
  ); /* Startet außerhalb des linken Bildschirmrandes */
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Weichere und langsamere Transition */
}

.side-post-animation {
  display: block;
  position: relative;
  transform: translateX(0); /* Bewegt sich in die Standardposition */
  opacity: 1;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Weichere und langsamere Transition */
}

.side-pre-animation-right {
  display: block;
  position: absolute;
  transform: translateX(
    100vw
  ); /* Startet außerhalb des rechten Bildschirmrandes */
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Weichere und langsamere Transition */
}

.side-post-animation-right {
  display: block;
  position: absolute;
  transform: translateX(0); /* Bewegt sich in die Standardposition */
  opacity: 1;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Weichere und langsamere Transition */
}

.circular-chart {
  display: block;
  margin: 10px auto;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: rgb(207, 171, 142);
  stroke-width: 2.8;
  stroke-linecap: round;
}

.circle.animate {
  animation: progress linear infinite;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0, 100;
  }
  100% {
    stroke-dasharray: 100, 100;
  }
}

@media only screen and (min-width: 768px) {
  .connector-left,
  .connector-right {
    border-top: 2px dashed #cfab8e;
    height: calc(100% - (50% - 32px));
  }

  .connector-left {
    border-left: 2px dashed #cfab8e;
    border-top-left-radius: 25px;
    margin-left: auto;
    width: 50%;
  }

  .connector-right {
    border-right: 2px dashed #cfab8e;
    border-top-right-radius: 25px;
    margin-right: auto;
    width: 50%;
  }

  .timeline {
    position: relative;
  }

  .timeline-item {
    position: relative;
    width: calc(50% - 2rem);
    padding: 1rem;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    z-index: 1;
  }

  .timeline-item.left {
    left: 0;
    transform: translateX(-100%);
  }

  .timeline-item.right {
    left: 50%;
    transform: translateX(0);
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    background-color: #ff7f50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }
}

@media only screen and (max-width: 767px) {
  .connector-left,
  .connector-right {
    height: 80px;
    width: 50%;
    border-right: 2px dashed #cfab8e;
  }
}

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: start; /* Änderung von 'center' zu 'start' */
  justify-content: center;
  padding-top: 2rem; /* Fügt einen oberen Padding hinzu */
}

.popup-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  max-width: 70%;
  width: 100%;
  margin: 0 1rem;
  max-height: 80vh; /* Neue Eigenschaft: Begrenzt die Höhe */
  overflow-y: auto; /* Neue Eigenschaft: Ermöglicht Scrollen */
}

.close-button {
  position: absolute;
  top: 0.3rem;
  right: 0.8rem;
  color: #4A5568;
  cursor: pointer;
  font-size: 24px;
}

.close-button:hover {
  color: #2D3748; /* Tailwind color gray-700 */
}

.carousel-image {
  transition: transform 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.carousel-image.active-slide {
   /* transform: scale(1.05); Vergrößert das aktive Bild leicht */
  z-index: 2; /* Stellt sicher, dass es über den anderen Bildern liegt */
  padding: 0px;
}

.scroll-section {
  position: relative;
  width: 100%;
  height: 100vh;
}

.scroll-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.scroll-motiv {
  position: absolute;
  background: #ffffff;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.text-contact a {
  text-decoration: underline;
}  

.text-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.text-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.text-carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  flex: 0 0 100%;
}

.text-carousel-slide h1,
.text-carousel-slide p {
  margin: 0;
}

.text-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 10px;
}

.text-indicator {
  width: 40px;
  height: 6px;
  background-color: #f2d6d7;
  margin: 0 10px;
  cursor: pointer;
  margin-bottom: 15px;
}

.text-indicator.active {
  background-color: #dca58c;
}

.active-text-slide {
  padding: 0;
}

.scroll-section {
  position: relative;
  overflow: hidden;
}

.scroll-motiv {
  position: absolute;
  width: 100%;
  height: 100%;
}

.scroll-video-container {
  will-change: transform;
  transform: translateZ(0);
}

#wpadminbar {
  position: relative;
}