/* === HERO === */
.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-image: url('/images/hero/tegernsee-panorama.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  position: relative;
}
@media (max-width: 1023px) {
  /* Disable parallax on tablets/mobile for performance */
  .hero { background-attachment: scroll; }
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
}
/* Logo zoom + fade reveal */
.hero__logo--reveal {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__logo--reveal.is-revealed {
  opacity: 1;
  transform: scale(1);
}
.hero__logo img {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.12));
}
@media (max-width: 767px) {
  .hero__logo img { width: 170px; }
  .hero { min-height: 500px; }
}

/* === INTRO SECTION === */
.intro-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4xl) 30px;
  text-align: center;
}
.intro-section h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: var(--fw-light);
  font-style: normal;
  color: #000;
  margin-bottom: 20px;
  line-height: 40px;
}
.intro-section p {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: var(--fw-light);
  color: #625F5F;
  line-height: 40px;
  margin-bottom: 14px;
}
.intro-section .author {
  font-family: 'Mr De Haviland', cursive;
  font-size: 70px;
  font-weight: 300;
  color: #000;
  line-height: 70px;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 10px;
  margin-bottom: 14px;
}
.intro-section .highlights {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: var(--fw-light);
  color: #625F5F;
  line-height: 34px;
  text-align: center;
  margin-top: 20px;
}

/* === SERVICES ROW === */
.services-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 60px 24px 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.services-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: default;
}
.services-row__item:hover { transform: translateY(-3px); }
.services-row__icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.services-row__item:hover .services-row__icon { transform: scale(1.05); }
.services-row__label {
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: var(--color-burgundy);
  letter-spacing: 0.02em;
  max-width: 200px;
}
@media (max-width: 767px) {
  .services-row { flex-wrap: wrap; gap: 32px; }
}

/* === BURGUNDY SECTION === */
.burgundy-section {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  padding: var(--space-4xl) 30px;
}
.burgundy-section .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.burgundy-section h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: var(--fw-light);
  color: var(--color-white);
  line-height: 40px;
  margin-bottom: 20px;
}
.burgundy-section p {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: var(--fw-light);
  color: #fff;
  line-height: 38px;
}

/* Optional image inside burgundy section */
.burgundy-section__image {
  max-width: 1100px;
  margin: 48px auto 0;
  overflow: hidden;
  border-radius: 4px;
}
.burgundy-section__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* === APARTMENTS SECTION === */
.apartments-section {
  background-color: #f5f5f4;
  padding: var(--space-4xl) 0;
}
.apartments-section h2 {
  text-align: center;
  font-size: 44px;
  font-weight: var(--fw-light);
  font-style: normal;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.apt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 1023px) { .apt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .apt-grid { grid-template-columns: 1fr; padding: 0 20px; } }
.apt-card {
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-navy);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.apt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  color: var(--color-navy);
}
.apt-card__carousel { position: relative; overflow: hidden; }
.apt-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: none;
}
.apt-card__img--active { display: block; }
.apt-card__prev,
.apt-card__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.75);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  color: var(--color-burgundy);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}
.apt-card:hover .apt-card__prev,
.apt-card:hover .apt-card__next { opacity: 1; }
.apt-card__prev { left: 10px; }
.apt-card__next { right: 10px; }
.apt-card__prev:hover,
.apt-card__next:hover { background: rgba(255,255,255,0.95); }
.apt-card__body {
  padding: 20px 24px 0;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.apt-card__name {
  font-size: 22px;
  font-weight: var(--fw-medium);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0d5d5;
}
.apt-card__specs {
  font-size: 22px;
  color: var(--color-medium-gray);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.apt-card__specs svg {
  width: 22px;
  height: 22px;
  fill: var(--color-burgundy);
  flex-shrink: 0;
}
.apt-card__terrace {
  font-size: 16px;
  color: var(--color-muted-gray);
  margin-bottom: 0;
  line-height: 1.5;
  flex: 1;
}
.apt-card__link {
  display: block;
  background: var(--color-burgundy);
  color: var(--color-white);
  text-align: center;
  padding: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
  font-weight: var(--fw-semibold);
  margin: 16px -24px 0;
  transition: background 0.2s;
}
.apt-card__link:hover { background: #6b002e; }

/* === BOOKING SECTION === */
.booking-section {
  background-color: var(--color-burgundy);
  padding: var(--space-4xl) 24px;
  text-align: center;
}
.booking-section h2,
.booking-section p {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.booking-section h2 {
  font-size: 38px;
  font-weight: var(--fw-light);
  color: var(--color-white);
  margin-bottom: 12px;
}
.booking-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}
/* Smoobu widget container — let iframe determine height */
.booking-section .smoobu-booking-tool-container {
  max-width: 1000px;
  margin: 0 auto;
}
.booking-section .smoobu-booking-tool-container iframe {
  border-radius: 8px;
  background: var(--color-white);
}
/* Fallback for direct iframe */
.booking-section > iframe,
.booking-section iframe {
  width: 100%;
  max-width: 1000px;
  border: none;
  border-radius: 8px;
  background: var(--color-white);
}

/* === IMPRESSIONS GALLERY === */
.impressions-section {
  background-color: #f5f5f4;
  padding: var(--space-4xl) 0;
}
.impressions-section h2 {
  text-align: center;
  font-size: 44px;
  font-weight: var(--fw-light);
  font-style: normal;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.impressions-video {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}
.impressions-video__wrap {
  position: relative;
}
.impressions-video__wrap video {
  width: 100%;
  border-radius: 6px;
}
.impressions-video__overlay {
  position: absolute;
  inset: 0 0 40px 0;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.impressions-video__overlay.is-hidden {
  pointer-events: none;
  opacity: 0;
}
.impressions-video__play {
  width: 80px;
  height: 80px;
  background: rgba(134, 0, 56, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s, opacity 0.3s;
}
.impressions-video__overlay:hover .impressions-video__play {
  transform: scale(1.1);
  background: rgba(134, 0, 56, 1);
}
.impressions-video__play svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px;
}
.impressions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 48px auto 0;
}
.impressions-grid .gallery__item img,
.impressions-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity 0.3s;
}
.impressions-grid .gallery__item:hover img { opacity: 0.85; }

/* === PRESS SLIDER === */
.press-section {
  padding: var(--space-4xl) 24px;
  text-align: center;
}
.press-section h2 {
  font-size: 38px;
  font-weight: var(--fw-light);
  font-style: normal;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
/* press-logos row hidden */
.press-logos {
  display: none;
}
/* Slider */
.press-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.press-slider__track {
  position: relative;
  min-height: 200px;
}
.press-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.press-slide--active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.press-slide__logo {
  max-height: 64px;
  width: auto;
  margin-bottom: 28px;
}
.press-slide__quote {
  font-family: var(--font-primary);
  font-size: 19px;
  font-style: italic;
  color: #475467;
  line-height: 1.75;
  max-width: 700px;
  margin: 0;
  padding: 0;
  border: none;
}
.press-slider__prev,
.press-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 48px;
  color: #c0c0c0;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}
.press-slider__prev:hover,
.press-slider__next:hover { color: var(--color-burgundy); }
.press-slider__prev { left: -48px; }
.press-slider__next { right: -48px; }
.press-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.press-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.press-slider__dot--active {
  background: var(--color-navy);
  transform: scale(1.2);
}

/* === TESTIMONIALS SLIDER (Boxed, 3/2/1 cards) === */
.testimonials-section {
  background-color: #f5f5f4;
  padding: 100px 24px 160px; /* Increased bottom padding for sticky nav overlap */
  text-align: center;
}
.testimonials-section h2 {
  font-size: 38px;
  font-weight: var(--fw-light);
  font-style: normal;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

/* Slider container – boxed like "Bekannt aus" */
.testimonials-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-slider__viewport {
  overflow: hidden;
  padding: 20px; /* Vertical and horizontal space for shadows */
  margin: -20px;
}

.testimonials-slider__track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s ease;
}

/* Card design – ORIGINAL (white, stars, dark text) */
.testimonial-card {
  flex: 0 0 calc((100% - 40px - 64px) / 3); /* 100% is viewport (container+40px). So we substract 40px padding and 64px gaps. */
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars {
  color: #d4a843;
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.testimonial-card__quote {
  font-family: var(--font-primary);
  font-size: 18px;
  font-style: italic;
  color: #475467;
  line-height: 1.75;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  flex: 1;
}
.testimonial-card__author {
  font-size: 14px;
  font-style: normal;
  color: var(--color-muted-gray);
  letter-spacing: 0.04em;
}

/* Arrows */
.testimonials-slider__prev,
.testimonials-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 48px;
  color: #c0c0c0;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}
.testimonials-slider__prev:hover,
.testimonials-slider__next:hover { color: var(--color-burgundy); }
.testimonials-slider__prev { left: -48px; }
.testimonials-slider__next { right: -48px; }

/* Dots */
.testimonials-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.testimonials-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.testimonials-slider__dot--active {
  background: var(--color-navy);
  transform: scale(1.2);
}

/* Tablet: 2 cards visible */
@media (max-width: 1023px) and (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 32px) / 2);
  }
  .testimonials-slider__prev { left: -36px; }
  .testimonials-slider__next { right: -36px; }
}

/* Mobile: 1 card visible */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 64px 20px;
  }
  .testimonials-section h2 {
    font-size: 28px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    flex: 0 0 100%;
  }
  .testimonial-card__quote {
    font-size: 16px;
  }
  .testimonials-slider__track {
    gap: 20px;
  }
  .testimonials-slider__prev { left: -28px; }
  .testimonials-slider__next { right: -28px; }
  .testimonials-slider__prev,
  .testimonials-slider__next {
    font-size: 36px;
  }
}

/* === AWARDS === */
.awards-section {
  background-color: #f5f5f4;
  padding: 72px 24px;
  text-align: center;
}
.awards-section h2 {
  font-size: 36px;
  font-weight: var(--fw-light);
  font-style: normal;
  margin-bottom: 40px;
}
.awards-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.award-item { text-align: center; max-width: 400px; }
.award-item img { height: 250px; max-width: 100%; object-fit: contain; width: auto; margin-bottom: 16px; transition: transform var(--transition-fast); }
.award-item:hover img { transform: scale(1.05); }
.award-item p { font-size: 16px; color: var(--color-muted-gray); letter-spacing: 0.04em; }

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 767px) {
  .intro-section {
    padding: 48px 20px;
  }
  .intro-section h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .intro-section p {
    font-size: 16px;
    line-height: 1.7;
  }
  .intro-section .author {
    font-size: 44px;
    line-height: 1;
  }
  .intro-section .highlights {
    font-size: 14px;
    line-height: 1.6;
  }
  .services-row__icon {
    width: 100px;
    height: 100px;
  }
  .services-row__label {
    font-size: 14px;
  }
  .burgundy-section {
    padding: var(--space-2xl) 20px;
  }
  .burgundy-section h2 {
    font-size: 28px;
    line-height: 1.2;
  }
  .burgundy-section p {
    font-size: 16px;
    line-height: 1.7;
  }
  .apartments-section {
    padding: var(--space-2xl) 0;
  }
  .apartments-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }
  .booking-section {
    padding: var(--space-2xl) 20px;
  }
  .booking-section h2 {
    font-size: 28px;
  }
  .impressions-section {
    padding: var(--space-2xl) 0;
  }
  .impressions-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }
  .impressions-video {
    padding: 0 16px;
  }
  .impressions-grid {
    padding: 0 16px;
    gap: 3px;
  }
  .press-section {
    padding: var(--space-2xl) 20px;
  }
  .press-section h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .press-slider__prev,
  .press-slider__next,
  .testimonials-slider__prev,
  .testimonials-slider__next {
    font-size: 32px;
    left: -8px;
  }
  .press-slider__next,
  .testimonials-slider__next {
    left: auto;
    right: -8px;
  }
  .press-slide__quote {
    font-size: 16px;
    padding: 0 32px;
  }
  .testimonials-section {
    padding: 60px 20px;
  }
  .testimonials-section h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .testimonial-slide__quote {
    font-size: 18px;
    padding: 0 32px;
  }
  .awards-section {
    padding: 48px 20px;
  }
  .awards-section h2 {
    font-size: 28px;
  }
}

