/*
Theme Name: Landeseiten
Theme URI:
Author: Dominique Rademacher
Author URI:  https://landeseiten.de
Version: 1.1.0
*/

/* =================================================================== */
/* 1. GLOBAL & UTILITY STYLES
/* -------------------------------------------------------------------
/* General styles applied across the site.
/* =================================================================== */

/* Prevents horizontal scroll on the page */
body,
html,
[data-elementor-type="wp-page"] {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Basic hover animation for primary buttons */
.cs-button-primary .elementor-button {
  will-change: transform;
  transition: transform 0.2s ease;
}

.cs-button-primary .elementor-button:hover .elementor-button-icon {
  will-change: transform;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

/* =================================================================== */
/* 2. LANDESEITEN FORM - CHILD THEME CUSTOMIZATION
/* -------------------------------------------------------------------
/* Variables to easily override the default form styles.
/* =================================================================== */

.cs-landeseiten-form {
  /* --- 🎨 Key Colors --- */
  --landeseiten-form-accent-color: var(--e-global-color-primary);
  --landeseiten-form-accent-contrast: #ffffff;
  --landeseiten-form-text-color: #222222;
  --landeseiten-form-border-color: #d1d1d1;

  /* --- 📏 Sizing & Spacing --- */
  --landeseiten-form-input-height: 45px;
  --landeseiten-form-field-vertical-padding: 35px;
  --landeseiten-form-input-border-radius: 4px;
  --landeseiten-form-button-border-radius: 4px;
  --landeseiten-form-choice-border-radius: 99px;

  /* --- ✒️ Typography --- */
  --landeseiten-form-label-font-size: 26px;
  --landeseiten-form-input-font-size: 16px;
}

/* =================================================================== */
/* 3. TESTIMONIALS CAROUSEL (.cs-testimonials-carousel)
/* -------------------------------------------------------------------
/* Styles for the main testimonials carousel.
/* =================================================================== */

/* --- 3.1. Testimonial Card Layout & Content --- */

/* Reverses order to show image/name below the quote */
.cs-testimonials-carousel .elementor-testimonial {
  display: flex;
  flex-direction: column-reverse;
  padding: 40px;
}

/* Removes default padding */
.cs-testimonials-carousel .elementor-testimonial__content {
  padding: 0 !important;
}
.cs-testimonials-carousel .elementor-testimonial__header {
  padding: 0 !important;
  margin-top: 24px;
}

/* Adds the custom quote icon before the content */
.cs-testimonials-carousel .elementor-testimonial__content::before {
  content: url("http://felixw73.sg-host.com/wp-content/uploads/2025/07/quote.svg");
  display: block;
  width: 33px;
  height: 24px;
  margin-bottom: 24px;
}

/* --- 3.2. Carousel Animation (Desktop View) --- */
/* This creates the effect where the center slide is large and side slides are smaller */

.cs-testimonials-carousel .swiper-slide-next {
  z-index: 2; /* Ensures the next slide is on top of the active one during transition */
}

/* Scales down the slides that are not in the center */
.cs-testimonials-carousel .swiper-slide-active,
.cs-testimonials-carousel .swiper-slide-next + .swiper-slide {
  transform: scale(0.85);
  opacity: 0.6;
}

/* Positions the left-side slide */
.cs-testimonials-carousel .swiper-slide-active {
  transform-origin: right center;
  right: -5%;
}

/* Positions the right-side slide */
.cs-testimonials-carousel .swiper-slide-next + .swiper-slide {
  transform-origin: left center;
  left: -5%;
}

/* --- 3.3. Navigation Arrow Positioning --- */

.cs-testimonials-carousel .elementor-swiper-button {
  position: absolute;
  top: 95% !important;
  z-index: 20 !important;
}

.cs-testimonials-carousel .elementor-swiper-button-prev {
  left: 30%;
}

.cs-testimonials-carousel .elementor-swiper-button-next {
  left: 70%;
}

/* =================================================================== */
/* 4. RESPONSIVE STYLES (MEDIA QUERIES)
/* -------------------------------------------------------------------
/* Adjustments for tablet and mobile devices.
/* =================================================================== */

/* --- 4.1. Tablet View (max-width: 1024px) --- */
@media (max-width: 1024px) {
  /* Adjusts the container width and makes overflow visible for the effect */
  .cs-testimonials-carousel .swiper {
    overflow: visible;
    width: 50%;
  }

  /* Resets the desktop scaling effect */
  .cs-testimonials-carousel .swiper-slide-active,
  .cs-testimonials-carousel .swiper-slide-next + .swiper-slide {
    transform: scale(1);
    opacity: 1;
  }

  .cs-testimonials-carousel .swiper-slide-active {
    transform-origin: center center;
    right: initial;
    z-index: 4;
  }

  .cs-testimonials-carousel .swiper-slide-next + .swiper-slide {
    transform-origin: left center;
    right: initial;
  }

  /* Creates the new tablet effect where adjacent slides are smaller */
  .cs-testimonials-carousel .swiper-slide-prev,
  .cs-testimonials-carousel .swiper-slide-next {
    transform: scale(0.9);
    opacity: 0.6;
  }

  /* Pushes the adjacent slides out to the sides */
  .cs-testimonials-carousel .swiper-slide-prev {
    transform-origin: right center;
    right: -35%;
  }
  .cs-testimonials-carousel .swiper-slide-next {
    transform-origin: left center;
    left: -35%;
  }
}

/* --- 4.2. Mobile View (max-width: 767px) --- */
@media (max-width: 767px) {
  /* Sets carousel to full width and hides overflow for a standard swipe */
  .cs-testimonials-carousel .swiper {
    width: 100%;
    overflow: hidden;
  }

  /* Resets the side-positioning from tablet view */
  .cs-testimonials-carousel .swiper-slide-prev {
    right: initial;
    left: 0 !important;
  }
  .cs-testimonials-carousel .swiper-slide-next {
    left: unset !important;
    right: 0 !important;
  }
}

/* Header and Footer Fix */
.page-id-74 .elementor-location-header, .page-id-74 .elementor-location-footer, .page-id-1522 .elementor-location-header, .page-id-1522 .elementor-location-footer {
	display: none !important;
}