/*
 * Capricorn Apartments - Custom Styles
 * Extends the base fullpage template for vacation rental website
 */

/* ==========================================================================
   BRAND COLORS - NAVIGATION
   Alpines Grün für ein naturnahes, vertrauenswürdiges Design
   Basierend auf Forest Green (#3d5a3d) - passend zum Schweizer Alpen-Thema
   ========================================================================== */
:root {
  /* Primäre Navigationsfarbe - Alpine Forest Green */
  --nav-color-primary: #4a7c59;           /* Etwas heller für bessere Sichtbarkeit */
  --nav-color-primary-light: #5a8f6a;     /* Hover-Variante */
  --nav-color-primary-dark: #3d5a3d;      /* Dunklere Variante (wie Widget-Button) */

  /* Überschreibt die alten blauen Variablen */
  --ic24-blue: var(--nav-color-primary);
  --brand-blue-500: var(--nav-color-primary);

  /* Typography System — harmonisierte Werte */
  --text-heading: #1a1a1a;
  --text-body: #2d2d2d;
  --text-secondary: #555;
  --text-body-light: rgba(255,255,255,0.93);
  --text-heading-light: #fff;
  --lh-body: 1.6;
}

/* Globaler Typografie-Baseline */
body {
  line-height: var(--lh-body);
  color: var(--text-body);
}
.default-text-black {
  color: var(--text-heading);
}

/* ==========================================================================
   NAVIGATION OVERRIDE - Grün statt Blau
   ========================================================================== */

/* Aktive Navigationspunkte (rechts) */
#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span {
  background: var(--nav-color-primary) !important;
}

/* Inaktive Navigationspunkte — dunkler für Sichtbarkeit auf weissem Hintergrund */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: rgba(0, 0, 0, 0.25) !important;
}

/* Hover auf Navigationspunkte */
#fp-nav ul li:hover a span,
.fp-slidesNav ul li:hover a span {
  background: var(--nav-color-primary-light) !important;
}

/* Tooltip-Text (Hover-Label rechts) */
#fp-nav a.active + .fp-tooltip,
#fp-nav.fp-show-active a.active + .fp-tooltip,
#fp-nav ul li:hover .fp-tooltip {
  color: var(--nav-color-primary) !important;
}

/* Section-Label unten links (#top-claim) */
#top-claim {
  color: var(--nav-color-primary) !important;
}

/* Sprachumschalter: aktive Sprache in gleicher Farbe wie aktiver Breadcrumb */
.language-active {
  color: var(--nav-color-primary) !important;
}

/* ==========================================================================
   GROSSE BILDSCHIRME — Titel und Texte proportional vergrössern
   damit Slides auf breiten Monitoren nicht zu leer wirken
   ========================================================================== */
@media screen and (min-width: 1600px) {
  /* Titel & Fliesstext */
  .default-text-medium-lg {
    font-size: 2.5em !important;
  }
  .default-text-medium {
    font-size: 1.75em !important;
  }

  /* FAQ-Fragen & Icons */
  .faq-q-block .faq-q-text strong {
    font-size: 1.8em;
  }
  .faq-q-icon {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.5rem;
  }

  /* Rentals: Apartment-Cards & Cube-Texte */
  .apartment-card-title {
    font-size: 1.5rem;
  }
  .apartment-card-description {
    font-size: 1.15rem;
  }
  .cubeSwiper .apartment-card-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
  }
  .cubeSwiper .apartment-card-description {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    max-width: 1000px;
  }

  /* Kontaktformular */
  .contact-form label,
  .contact-form-field label {
    font-size: 1.2em !important;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form-field input,
  .contact-form-field select,
  .contact-form-field textarea {
    font-size: 1.15rem !important;
  }
  .contact-form .submit-button,
  .contact-form button[type="submit"] {
    font-size: 1.15rem !important;
  }
}

@media screen and (min-width: 2200px) {
  /* Titel & Fliesstext */
  .default-text-medium-lg {
    font-size: 3em !important;
  }
  .default-text-medium {
    font-size: 2em !important;
  }

  /* FAQ-Fragen & Icons */
  .faq-q-block .faq-q-text strong {
    font-size: 2em;
  }
  .faq-q-icon {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.7rem;
  }

  /* Rentals: Apartment-Cards & Cube-Texte */
  .apartment-card-title {
    font-size: 1.8rem;
  }
  .apartment-card-description {
    font-size: 1.35rem;
  }
  .cubeSwiper .apartment-card-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
  .cubeSwiper .apartment-card-description {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
  }
  .hero-subtitle {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    max-width: 1200px;
  }

  /* Kontaktformular */
  .contact-form label,
  .contact-form-field label {
    font-size: 1.35em !important;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form-field input,
  .contact-form-field select,
  .contact-form-field textarea {
    font-size: 1.3rem !important;
  }
  .contact-form .submit-button,
  .contact-form button[type="submit"] {
    font-size: 1.3rem !important;
  }
}

/* Mobile: Alle Arrows kleiner, Down-Arrow hoeher, Up-Arrow tiefer */
@media (max-width: 767px) {
  .section-controlArrow.fp-down {
    bottom: 3.5em !important;
  }
  .section-controlArrow.fp-up {
    top: 0.5em !important;
  }
  .section-controlArrow:before,
  .fp-controlArrow:before {
    font-size: 3em !important;
  }
}

/* ==========================================================================
   FULLSCREEN VIDEO HERO
   ========================================================================== */

/* Video als bildschirmfuellender Hintergrund */
.video-fullscreen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-fullscreen-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Dunkles Overlay ueber Video fuer bessere Lesbarkeit */
.video-fullscreen-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Hero Content ueber dem Video */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.95);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ==========================================================================
   BOOKING WIDGET
   ========================================================================== */

.booking-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  /* Konsistent mit .textbox-black-half-transparent */
  background: var(--scrim-gray, rgba(10,14,20,0.68));
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  padding: 1rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Hostfully Search Widget - Maximale Spezifitaet */
.booking-widget #searchwidget,
#searchwidget {
  width: 100%;
}

.booking-widget #searchwidget > div,
#searchwidget > div,
.booking-widget .search-widget-container,
.search-widget-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  justify-content: center !important;
  background: transparent !important;
}

/* Alle Inputs im Widget - mehrfache Selektoren fuer maximale Spezifitaet */
.booking-widget #searchwidget input,
.booking-widget #searchwidget select,
#searchwidget input,
#searchwidget select,
.booking-widget .search-widget-container input,
.booking-widget .search-widget-container select,
.search-widget-container input,
.search-widget-container select,
.booking-widget input[type="text"],
.booking-widget select {
  padding: 0.75rem 1rem !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  /* Dunkler, transparenter Hintergrund */
  background-color: rgba(0,0,0,0.4) !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  min-width: 140px !important;
}

/* Select Dropdown-Pfeil */
.booking-widget #searchwidget select,
#searchwidget select,
.booking-widget .search-widget-container select,
.search-widget-container select,
.booking-widget select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-color: rgba(0,0,0,0.4) !important;
  padding-right: 2.5rem !important;
  cursor: pointer !important;
}

/* Placeholder */
.booking-widget #searchwidget input::placeholder,
#searchwidget input::placeholder,
.booking-widget input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

/* Focus-Zustand */
.booking-widget #searchwidget input:focus,
.booking-widget #searchwidget select:focus,
#searchwidget input:focus,
#searchwidget select:focus {
  outline: none !important;
  border-color: rgba(255,255,255,0.5) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15) !important;
}

/* Button */
.booking-widget #searchwidget button,
#searchwidget button,
.booking-widget .search-widget-container button,
.search-widget-container button {
  padding: 0.75rem 2rem !important;
  background: #3d5a3d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.booking-widget #searchwidget button:hover,
#searchwidget button:hover {
  background: #2d442d !important;
}

/* Select Dropdown-Liste - Kalender-Style */
.booking-widget #searchwidget select option,
#searchwidget select option,
.booking-widget select option,
select option {
  background: var(--scrim-gray, rgba(10,14,20,0.95)) !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  border: none !important;
}

.booking-widget #searchwidget select option:checked,
#searchwidget select option:checked,
.booking-widget select option:checked,
select option:checked,
.booking-widget #searchwidget select option:hover,
#searchwidget select option:hover {
  background: #3d5a3d !important;
  color: #ffffff !important;
}

/* Pikaday Kalender - Voll deckend für bessere Lesbarkeit */
.pika-single {
  font-family: inherit !important;
  font-size: 1rem !important;
  border: none !important;
  /* Voll deckend - Kalender liegt über Text */
  background: rgb(10,14,20) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4) !important;
  color: #fff !important;
  padding: 1rem !important;
  z-index: 10000001 !important;  /* über Header (999999) */
  margin-top: 8px !important;
  margin-left: 8px !important;
  min-width: 360px !important;   /* genug Platz für alle 31 Tage */
}

.pika-single .pika-title {
  padding: 0.75rem 0 !important;
}

.pika-single .pika-label {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: transparent !important;
}

.pika-single .pika-prev,
.pika-single .pika-next {
  width: 32px !important;
  height: 32px !important;
  opacity: 0.8 !important;
  font-size: 0 !important;           /* Text verstecken */
  position: relative !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

.pika-single .pika-prev::before,
.pika-single .pika-next::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 10px !important;
  height: 10px !important;
  border-top: 2px solid #fff !important;
  border-right: 2px solid #fff !important;
}

.pika-single .pika-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg) !important;  /* Pfeil links */
}

.pika-single .pika-next::before {
  transform: translate(-70%, -50%) rotate(45deg) !important;    /* Pfeil rechts */
}

.pika-single .pika-prev:hover,
.pika-single .pika-next:hover {
  opacity: 1 !important;
}

.pika-single table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 4px !important;
}

.pika-single th {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.6) !important;
  padding: 0.5rem !important;
  text-transform: uppercase !important;
}

.pika-single td {
  padding: 0 !important;
}

.pika-single .pika-button {
  font-size: 1rem !important;
  padding: 0.75rem !important;
  width: 100% !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}

.pika-single .pika-button:hover {
  background: rgba(61, 90, 61, 0.5) !important;
  color: #fff !important;
}

.pika-single .is-today .pika-button {
  background: rgba(61, 90, 61, 0.3) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.pika-single .is-selected .pika-button {
  background: #3d5a3d !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.pika-single .is-disabled .pika-button {
  background: transparent !important;
  color: rgba(255,255,255,0.25) !important;
  cursor: not-allowed !important;
}

/* Phone: 320-767px - Texte etwas kleiner */
@media screen and (min-width: 320px) and (max-width: 767px) {
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  /* Kalender auf Mobile: kompakter und besser positioniert */
  .pika-single {
    margin-top: 16px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    min-width: auto !important;
    max-width: calc(100vw - 16px) !important;
    padding: 0.75rem !important;
  }

  .pika-single table {
    border-spacing: 2px !important;
  }

  .pika-single .pika-button {
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0.5rem !important;
    font-size: 0.9rem !important;
  }

  .pika-single th {
    font-size: 0.75rem !important;
    padding: 0.3rem !important;
  }

  /* Prev/Next Buttons: kleiner auf Mobile */
  .pika-single .pika-prev,
  .pika-single .pika-next {
    width: 28px !important;
    height: 28px !important;
  }

  .pika-single .pika-prev::before,
  .pika-single .pika-next::before {
    width: 8px !important;
    height: 8px !important;
  }
}

/* ==========================================================================
   SECTION BADGES (ABOUT US, OUR RENTALS, etc.)
   ========================================================================== */

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(61, 90, 61, 0.12);
  color: #3d5a3d;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge i {
  font-size: 0.9rem;
}

/* Badge auf dunklem Hintergrund */
.textbox-black-half-transparent .section-badge {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   APARTMENT CARDS
   ========================================================================== */

.apartment-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.apartment-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.apartment-card-content {
  padding: 1.25rem;
}

.apartment-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.apartment-card-description {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ==========================================================================
   CUBE IN SPLIT LAYOUT (Rentals)
   ========================================================================== */

/* Rentals: kein Hintergrundbild, heller Hintergrund */
.section[data-anchor="rentals"] .slide {
  background-image: none !important;
  background-color: #f8f9fa !important;
}
.section[data-anchor="rentals"] .mixed-slide-white {
  background: rgba(255, 255, 255, 0.55) !important;
}

/* Left text panel in rentals: push content below logo, no truncation */
.section[data-anchor="rentals"] .mixed-slide-white article {
  top: 16% !important;
  /* max-height wird dynamisch von sizeTextPanels() in navigation.js gesetzt */
  padding: 1rem 2rem 2rem 2rem !important;
  width: 85% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  max-height: none !important;
}

/* Panel holding the cube: transparent bg, center cube vertically + horizontally */
.cube-slide-panel {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Symmetrisches Padding: gleicher Abstand links und rechts (Arrow-Platz rechts) */
  padding: 1rem;
  box-sizing: border-box;
}

/* Cube container: zentriert mit Abstand zu den Arrows */
.cube-slide-panel .cube-parent-container {
  width: min(65vh, 75%);
  max-width: calc(100% - 8rem);
  margin: 0 auto;
}

/* Override full-screen cube defaults when inside the split panel */
.cube-slide-panel .cubeSwiper {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
}

/* Swiper cube needs slides at 100% of container — don't override slide height */
.cube-slide-panel .cubeSwiper .swiper-wrapper,
.cube-slide-panel .cubeSwiper .swiper-slide {
  min-height: 0 !important;
}

/* Ensure slides are positioning context for overlay */
.cube-slide-panel .cubeSwiper .swiper-slide {
  position: relative !important;
  overflow: visible !important;
}

/* Text overlay on cube slides — full-slide overlay, gradient from ~25% */
.cubeSwiper .apartment-card-content {
  position: absolute !important;
  inset: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 15%,
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.85) 70%,
    rgba(0, 0, 0, 0.92) 100%
  );
  padding: 0 1.5rem 1.2rem;
  z-index: 2;
}

.cubeSwiper .apartment-card-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.cubeSwiper .apartment-card-description {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ---------- MOBILE: stack text on top, cube on bottom ---------- */
@media screen and (max-width: 767px) {
  /* Kein Hintergrundbild auf Mobile — heller Hintergrund mit Teilung */
  .section[data-anchor="rentals"] .slide {
    background-image: none !important;
    background-color: #eaecef !important;
  }

  /* Override left/right absolute positioning to vertical stacking */
  .section[data-anchor="rentals"] .mixed-slide-left.mixed-slide-narrow {
    position: absolute !important;
    width: 100% !important;
    height: 50% !important;
    top: 0 !important;
    left: 0 !important;
  }
  .section[data-anchor="rentals"] .mixed-slide-right.mixed-slide-wide {
    position: absolute !important;
    width: 100% !important;
    height: 50% !important;
    top: 50% !important;
    left: 0 !important;
  }

  /* Text panel: unter Logo, volle Breite nutzen */
  .section[data-anchor="rentals"] .mixed-slide-white article {
    top: 18vh !important;
    width: 70% !important;
    left: 15% !important;
    padding: 0.3rem 1rem 0.3rem 1rem !important;
  }
  .section[data-anchor="rentals"] .mixed-slide-white article .default-text-left {
    text-align: center !important;
  }
  .section[data-anchor="rentals"] .mixed-slide-white .default-text-medium-lg {
    font-size: 1.8em;
    margin-bottom: 0.3rem;
  }
  .section[data-anchor="rentals"] .mixed-slide-white .default-text-medium {
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 0.3rem;
  }
  .section[data-anchor="rentals"] .mixed-slide-white .link-cta {
    font-size: 0.8em;
  }

  /* Cube panel: ganz oben, Platz optimal nutzen */
  .section[data-anchor="rentals"] .cube-slide-panel {
    padding: 0 2rem;
    align-items: flex-start !important;
    justify-content: center;
  }
  .section[data-anchor="rentals"] .cube-slide-panel .cube-parent-container {
    margin-top: 0 !important;
  }
  /* Cube size: wird per JS berechnet (reviewsCubeSize) */

  /* Cube text on mobile */
  .cube-slide-panel .cubeSwiper .apartment-card-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  .cube-slide-panel .cubeSwiper .apartment-card-description {
    font-size: 0.75rem;
    line-height: 1.35;
  }
  .cube-slide-panel .cubeSwiper .apartment-card-content {
    padding: 0.5rem 0.8rem 0.8rem;
  }
}

/* Grössere Phones (iPhone 12 Pro, Pro Max etc.) — mehr Platz für Text */
@media screen and (min-width: 375px) and (max-width: 767px) and (min-height: 800px) {
  .section[data-anchor="rentals"] .mixed-slide-left.mixed-slide-narrow {
    height: 50% !important;
  }
  .section[data-anchor="rentals"] .mixed-slide-right.mixed-slide-wide {
    height: 50% !important;
    top: 50% !important;
  }
  .section[data-anchor="rentals"] .mixed-slide-white .default-text-medium-lg {
    font-size: 2.2em;
  }
  .section[data-anchor="rentals"] .mixed-slide-white .default-text-medium {
    font-size: 1.4em;
  }
}

/* Feature-Cards (Amenities) — generiert durch features.js, kein CSS noetig */


/* ==========================================================================
   MOBILE VERTICAL STACKING — Split-Layout (Bild/Text) auf Phones
   Wandelt links/rechts (content-narrow/content-wide) in oben/unten um.
   Nur Phones (max 767px), NICHT iPad (768px+).
   Betrifft FAQ- und Experience-Slides, NICHT den Rentals-Cube
   (der nutzt mixed-slide-narrow/wide statt content-narrow/content-wide).
   ========================================================================== */

@media screen and (max-width: 767px) {

  /* Alle Panels auf volle Breite */
  .mixed-slide-content-narrow.mixed-slide-height,
  .mixed-slide-content-wide.mixed-slide-height {
    width: 100% !important;
    left: 0 !important;
  }

  /* Bild-Panel (schmal, 40%) → 35% Höhe */
  .mixed-slide-content-narrow.mixed-slide-height {
    height: 35% !important;
  }

  /* Text-Panel (breit, 60%) → 65% Höhe */
  .mixed-slide-content-wide.mixed-slide-height {
    height: 65% !important;
  }

  /* LEFT-Panel → TOP (Position 0) */
  .mixed-slide-left.mixed-slide-content-narrow,
  .mixed-slide-left.mixed-slide-content-wide {
    top: 0 !important;
  }

  /* RIGHT-Panel → BOTTOM (Position = Höhe des LEFT-Panels) */
  /* Wenn links breit (Text 65%), dann rechts ab 65% (Bild unten) */
  .mixed-slide-right.mixed-slide-content-narrow {
    top: 65% !important;
  }
  /* Wenn links schmal (Bild 35%), dann rechts ab 35% (Text unten) */
  .mixed-slide-right.mixed-slide-content-wide {
    top: 35% !important;
  }

  /* Text-Panel OBEN (links→oben): Artikel muss unter Logo starten (Logo endet ~140px) */
  .mixed-slide-left.mixed-slide-content-wide.mixed-slide-centered article {
    top: 32% !important;
    bottom: auto !important;
    transform: none !important;
    padding: 0.5rem 1rem 0.5rem 1.2rem !important;
    max-height: 66% !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .mixed-slide-left.mixed-slide-content-wide.mixed-slide-centered article::-webkit-scrollbar {
    display: none !important;
  }

  /* Text-Panel UNTEN (rechts→unten): Panel startet bei 35vh, kein Logo-Konflikt */
  .mixed-slide-right.mixed-slide-content-wide.mixed-slide-centered article {
    top: 3% !important;
    bottom: auto !important;
    transform: none !important;
    padding: 0.5rem 1rem 0.5rem 1.2rem !important;
    max-height: 78% !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;           /* Firefox */
    -ms-overflow-style: none !important;        /* IE/Edge */
  }
  .mixed-slide-right.mixed-slide-content-wide.mixed-slide-centered article::-webkit-scrollbar {
    display: none !important;                   /* Chrome/Safari */
  }

  /* Titel und Text im gestapelten Layout — gleiche Grösse wie Experiences */
  .mixed-slide-content-wide .default-text-medium-lg {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 0.4rem !important;
  }
  .mixed-slide-content-wide .default-text-medium {
    font-size: clamp(0.85rem, 3.2vw, 1.05rem) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.3rem !important;
  }

  /* FAQ-Elemente kompakter */
  .mixed-slide-content-wide .faq-q-block {
    margin-top: 0.3rem;
  }
  .mixed-slide-content-wide .faq-q-separator {
    margin: 0.8rem 0;
  }
  .mixed-slide-content-wide .faq-q-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  /* Gradient-Overlay auf Slide-Ebene entfernen (nicht noetig bei gestapeltem Layout) */
  .slide-gradient-left::before {
    display: none !important;
  }
}


/* ==========================================================================
   FAQ/EXPERIENCE ICONS - kleines rundes Icon neben Fragen/Titeln
   ========================================================================== */
.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: rgba(61, 90, 61, 0.08);
  border: 1px solid rgba(61, 90, 61, 0.15);
  color: #3d5a3d;
  font-size: 1.3rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
  vertical-align: middle;
}
.faq-q-separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1.2rem 0;
}
.faq-q-block {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.faq-q-block .faq-q-text {
  flex: 1;
}
.faq-q-block .faq-q-text strong {
  display: block;
  font-size: 1.6em;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.faq-q-block .faq-q-text p {
  margin: 0;
}

/* ==========================================================================
   EXPERIENCE ICON ROW - Desktop: Icon im Titel, Mobile: Icon neben Text
   ========================================================================== */
.exp-icon-desktop {
  display: inline-flex;
}
.exp-icon-row .faq-q-icon {
  display: none;
}
@media screen and (max-width: 767px) {
  .exp-icon-desktop {
    display: none;
  }
  .exp-icon-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .exp-icon-row .faq-q-icon {
    display: inline-flex;
    margin-top: 0.15rem;
  }
  .exp-icon-row .default-text-medium {
    flex: 1;
  }
}

/* ==========================================================================
   REVIEW CARDS (Desktop) - Mobile wird komplett von reviews.js generiert
   ========================================================================== */
.apartment-card.review-card {
  background: #ffffff;
  border: 1px solid #d0d0d0;
  overflow: visible;
}
.apartment-card.review-card:hover {
  transform: none;
  box-shadow: none;
}
.review-card .apartment-card-title {
  color: #1a1a1a;
}
.review-card .apartment-card-description {
  color: var(--text-body);
}
.review-card .review-author {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #555;
}
.review-card .review-author strong {
  font-weight: 800;
  color: #1a1a1a;
}


/* ==========================================================================
   EXPERIENCE CARDS (Activities)
   ========================================================================== */

.experience-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 90, 61, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.experience-icon i {
  font-size: 1.5rem;
  color: #7cb97c;
}

/* Auf dunklem Hintergrund */
.textbox-black-half-transparent .experience-icon {
  background: rgba(255, 255, 255, 0.1);
}

.textbox-black-half-transparent .experience-icon i {
  color: #fff;
}

/* ==========================================================================
   FAQ STYLING
   ========================================================================== */

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.faq-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 90, 61, 0.15);
  border-radius: 10px;
  color: #7cb97c;
  font-size: 1.1rem;
}

.textbox-black-half-transparent .faq-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.faq-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.faq-answer {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

/* ==========================================================================
   CTA SECTION (Ready to Experience)
   ========================================================================== */

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  min-width: 160px;
  text-align: center;
  transition: background 0.2s ease;
  cursor: pointer;
}

.cta-card:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cta-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 90, 61, 0.3);
  border-radius: 50%;
}

.cta-card-icon i {
  font-size: 1.3rem;
  color: #fff;
}

.cta-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cta-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-primary {
  padding: 0.9rem 2rem;
  background: #3d5a3d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #2d442d;
  color: #fff;
}

.btn-secondary {
  padding: 0.9rem 2rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   CAPRICORN COLOR SCHEME OVERRIDES
   ========================================================================== */

/* Green accent color for links and highlights */
.keyword-highlight {
  color: #7cb97c;
  font-weight: 600;
}

.link-cta {
  color: #7cb97c !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-cta:hover {
  color: #9dd69d !important;
  text-decoration: underline;
}

/* ==========================================================================
   LOCATION/CONTACT ADAPTATIONS
   ========================================================================== */

.capricorn-location .loc-title,
.capricorn-location .contact-title {
  color: #7cb97c;
}

.capricorn-location .contact-link {
  color: #7cb97c !important;
}

.capricorn-location .contact-link:hover {
  color: #9dd69d !important;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }

  .booking-widget {
    padding: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-card {
    width: 100%;
    max-width: 280px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ==========================================================================
   CONTACT CTA – LIGHT BACKGROUND VARIANT (page 19)
   ========================================================================== */

/* Overlay-Container */
.contact-cta-overlay {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Kein gruener Strich unter dem Titel auf der CTA-Slide */
.contact-cta-overlay h1.default-text-medium-lg::after {
  content: none !important;
}

/* Contact CTA Titel gleiche Grösse wie mixed-slide-white Titel */
.contact-cta-overlay .default-text-medium-lg {
  font-size: 2em;
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .contact-cta-overlay .default-text-medium-lg {
    font-size: 2.4em;
  }
}
@media screen and (max-width: 767px) {
  .contact-cta-overlay .default-text-medium-lg {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
}

/* Content-Row: Text links, Bild rechts */
.contact-cta-content-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Text-Spalte */
.contact-cta-text-col {
  flex: 1;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-cta-text-col {
    font-size: 1.35rem;
    line-height: 1.7;
  }
}

.contact-cta-text-col p {
  margin: 0 0 1rem 0;
}

/* Bild-Spalte (rechts neben Text) */
.contact-cta-img-col {
  flex: 0 0 38%;
  overflow: hidden;
  border-radius: 10px;
  align-self: center;
}

.contact-cta-img-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Mobile: Bild volle Breite, cover erlaubt */
@media (max-width: 767px) {
  .contact-cta-img-col img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Trennlinie */
.contact-cta-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.6rem 0;
  width: 100%;
}

/* Icon-Bubbles Row */
.contact-cta-icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 0.5rem;
}

.contact-cta-icon-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.contact-cta-icon-item:hover {
  transform: translateY(-2px);
}

.contact-cta-icon-item:hover .contact-cta-icon-pill {
  background: rgba(74,124,89,0.18);
  border-color: rgba(74,124,89,0.4);
}

/* Icon Pill */
.contact-cta-icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background: rgba(74,124,89,0.10);
  border-radius: 24px;
  border: 1px solid rgba(74,124,89,0.25);
  margin-bottom: 0.2rem;
}

.contact-cta-icon-pill i {
  font-size: 1rem;
  color: #3d5a3d;
}

@media (min-width: 768px) {
  .contact-cta-icon-pill {
    height: 64px;
    margin-bottom: 0.4rem;
  }
  .contact-cta-icon-pill i {
    font-size: 2rem;
  }
  .section[data-anchor="contact"] .btn-primary-light {
    padding: 1.1rem 2.8rem;
    font-size: 1.2rem;
  }
  .section[data-anchor="contact"] .btn-secondary-light {
    padding: 1.1rem 2.8rem;
    font-size: 1.2rem;
  }
  .contact-cta-buttons {
    margin-top: 0.5rem;
  }
}

.contact-cta-icon-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.1rem;
}

.contact-cta-icon-desc {
  color: #666;
}

/* Buttons */
.contact-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 0.5rem;
}

@media screen and (max-width: 767px) {
  .contact-cta-buttons {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .contact-cta-buttons .btn-primary-light,
  .contact-cta-buttons .btn-secondary-light {
    flex: 1;
    padding: 0.4rem 0.3rem;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
  }
}

.btn-primary-light {
  padding: 1.1rem 2.8rem;
  background: #3d5a3d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary-light:hover {
  background: #2d442d;
}

.section[data-anchor="contact"] .btn-secondary-light {
  padding: 1.1rem 2.8rem;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.section[data-anchor="contact"] .btn-secondary-light:hover {
  background: #f5f5f5;
}

/* Tagline */
.contact-cta-tagline {
  color: #1a1a1a;
  text-align: center;
  padding-top: 0;
  margin: 0;
}

/* Icon-Titel + Desc — Basiswerte (Mobile) */
.contact-cta-icon-title {
  font-size: 1rem;
  margin-top: 0.3rem;
}

.contact-cta-icon-desc {
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* Desktop: groesser */
@media (min-width: 768px) {
  .contact-cta-icon-title {
    font-size: 1.7rem;
    margin-top: 0.6rem;
  }
  .contact-cta-icon-desc {
    font-size: 1.35rem;
    margin-top: 0.3rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .contact-cta-content-row {
    flex-direction: column;
    gap: 4px;
  }

  .contact-cta-img-col {
    border-radius: 8px;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }

  .contact-cta-img-col img {
    border-radius: 0;
  }

  .contact-cta-icons {
    flex-direction: row;
    gap: 8px;
  }

  .contact-cta-icon-item {
    flex: 1;
    text-align: center;
  }

  .contact-cta-icon-title,
  .contact-cta-icon-desc {
    white-space: nowrap;
    font-size: 0.7rem;
    margin-top: 0.1rem;
    margin-bottom: 0;
  }

  .contact-cta-icon-pill {
    height: 32px;
    width: 32px;
    margin: 0 auto;
  }

  .contact-cta-icon-pill i {
    font-size: 1.1rem;
  }

  .contact-cta-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn-primary-light,
  .btn-secondary-light {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .contact-cta-tagline {
    display: none;
  }
}

/* ==========================================================================
   IMAGE BACKGROUNDS WITH TRANSPARENCY
   ========================================================================== */

/* Halbtransparentes Hintergrundbild fuer Sections */
.bg-image-overlay {
  position: relative;
}

.bg-image-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  opacity: 0.6;
  z-index: -1;
}

/* ==========================================================================
   SPLASH SCREEN OVERRIDE
   ========================================================================== */

#splash h1 {
  font-family: inherit;
}

/* ==========================================================================
   SLIDE MIT DIFFUSEM HINTERGRUNDBILD (weisses Overlay ueber Background)
   Analog zu textbox-black-half-transparent / textbox-white-half-transparent
   Verwendung: Klasse auf .slide setzen, Hintergrundbild per style= wie ueblich
   ========================================================================== */
.slide-overlay-white::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
  pointer-events: none;
}

/* Staerkeres Overlay fuer FAQ-Slides (Bild kaum sichtbar wie im PDF) */
.slide-overlay-white-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  z-index: 0;
  pointer-events: none;
}
.slide-overlay-white-strong > * {
  z-index: 1;
}
.slide-overlay-white > * {
  z-index: 1;
}

/* ==========================================================================
   DUNKLE PFEILE + GRADIENT AUF WEISSEN SLIDES
   Klasse auf den .slide setzen wenn Pfeil auf weissem Hintergrund liegt
   ========================================================================== */

/* Alle Arrows grau — ausser auf Home (dunkler Hintergrund) */
.section-controlArrow.fp-up:before,
.section-controlArrow.fp-down:before,
.fp-controlArrow.fp-prev:before,
.fp-controlArrow.fp-next:before {
  color: rgba(0, 0, 0, 0.3) !important;
}
.section-controlArrow.fp-up:hover:before,
.section-controlArrow.fp-down:hover:before,
.fp-controlArrow.fp-prev:hover:before,
.fp-controlArrow.fp-next:hover:before {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Home-Section: Arrows bleiben weiss (dunkler Video-Hintergrund) */
.section[data-anchor="home"] .section-controlArrow.fp-down:before,
.section[data-anchor="home"] .fp-controlArrow.fp-prev:before,
.section[data-anchor="home"] .fp-controlArrow.fp-next:before {
  color: rgba(255, 255, 255, 0.8) !important;
}
.section[data-anchor="home"] .section-controlArrow.fp-down:hover:before,
.section[data-anchor="home"] .fp-controlArrow.fp-prev:hover:before,
.section[data-anchor="home"] .fp-controlArrow.fp-next:hover:before {
  color: #fff !important;
}

/* Dezenter Gradient am linken Rand (analog zum Header-Gradient oben) */
.slide-gradient-left::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.15), transparent);
  z-index: 2;
  pointer-events: none;
}
