/**
 * Startseite (Front Page) – nach Figma-Vorlage
 */

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 608fr 836fr;
  min-height: 787px;
  background-color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--side-padding);
  gap: var(--space-7);               /* Figma: 28px */
  max-width: 608px;
}

.hero__overline {
  font-size: var(--text-sm);          /* 13px */
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
}

.hero__title {
  font-family: var(--font-display);   /* Bitter ExtraBold */
  font-size: clamp(3.5rem, 7vw, var(--text-hero));
  font-weight: var(--weight-extrabold);
  line-height: 1;                     /* leading-none wie Figma */
  color: var(--color-text);
  margin: 0;
}

/* Wortmarke zweizeilig: "shop" / "& food" */
.hero__title-line {
  display: block;
}

.hero__lead {
  font-size: var(--text-lg);          /* 20px */
  line-height: var(--leading-relaxed); /* 1.65 */
  max-width: 564px;
  color: var(--color-text);
}

.hero__cta {
  margin-top: var(--space-4);
}

/* Hero-Bild-Bereich */
.hero__image-wrap {
  position: relative;
  overflow: hidden;
  background-color: #c8c3bc;
}

.hero__image-wrap img,
.hero__image-wrap .hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.hero-slider__slide.is-active {
  opacity: 1;
}
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider-Pfeile im Hero */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-raised);
}

.hero__arrow--prev { left: var(--space-10); }
.hero__arrow--next { right: var(--space-10); }

/* ─── Section: Nächste Touren (Rot) ──────────────────────── */

.next-tours {
  background-color: var(--color-red);
  color: var(--color-cream);
  padding: var(--space-20) 0;
}

.next-tours__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.next-tours__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.next-tours__header h2 {
  color: var(--color-cream);          /* Figma: Cream, nicht weiss */
  font-size: clamp(2rem, 4vw, var(--text-3xl));
}

.next-tours__header .btn--outline-light,
.next-tours__more .btn--outline-light {
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.next-tours__header .btn--outline-light:hover,
.next-tours__more .btn--outline-light:hover {
  background-color: var(--color-cream);
  color: var(--color-red);
}

.next-tours__description {
  font-size: var(--text-lg);          /* 20px */
  line-height: var(--leading-relaxed); /* 1.65 */
  color: var(--color-cream);
  margin-bottom: var(--space-10);
}

/* Tour-Rows: 20px Cream, Hover invertiert (Cream-Zeile) */
.next-tours__list {
  display: flex;
  flex-direction: column;
}

.next-tours .tour-row {
  position: relative;
  display: grid;
  grid-template-columns: 226px 1fr auto;
  align-items: center;
  padding: var(--space-3) 0;
  min-height: 64px;
  gap: var(--space-6);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  /* Ganze Zeile ist ein <a> (ausser "ausgebucht") – Link-Defaultstyle entfernen */
  text-decoration: none;
  cursor: pointer;
}

.next-tours .tour-row--ausgebucht {
  cursor: default;
}

/* Trennlinie + Hover-Fläche bis ganz an den Browserrand (nicht nur Container-Breite) */
.next-tours .tour-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  margin-left: -50vw;
  border-top: 1.5px solid var(--color-cream);
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

/* Inhalt der Zeile muss über der Hover-Fläche liegen */
.next-tours .tour-row > * {
  position: relative;
  z-index: 1;
}

.next-tours .tour-row:last-of-type::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-bottom: 1.5px solid var(--color-cream);
}

/* Hover-Variante aus Figma: Zeile wird cream, Text schwarz – randständig */
.next-tours .tour-row:hover::before {
  background-color: var(--color-cream);
}
.next-tours .tour-row:hover .tour-row__date,
.next-tours .tour-row:hover .tour-row__name {
  color: var(--color-black);
}

.tour-row__date {
  font-size: var(--text-lg);          /* 20px, Regular */
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-cream);
}

.tour-row__name {
  font-family: var(--font-display);   /* Bitter */
  font-size: var(--text-lg);          /* 20px */
  font-weight: var(--weight-semibold);
  line-height: var(--leading-relaxed);
  color: var(--color-cream);
}

.next-tours__more {
  margin-top: var(--space-10);
}

/* ─── Section: Aktuell (Cream) ───────────────────────────── */

.aktuell-section {
  background-color: var(--color-cream);
  padding: var(--space-20) 0;
}

.aktuell-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* "Alle anzeigen →" auf Cream: schwarzer Outline */
.aktuell-section .btn--outline {
  border-color: var(--color-black);
  color: var(--color-black);
}
.aktuell-section .btn--outline:hover {
  background-color: transparent; /* Gradient aus animations.css übernimmt den Fill */
  color: #fff;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__image-wrap {
    height: 50vw;
    min-height: 280px;
  }

  .hero__content {
    padding: var(--space-10) var(--side-padding);
    max-width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .next-tours {
    padding: var(--space-12) 0;
  }

  .next-tours__header {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .next-tours .tour-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .tour-row__date {
    grid-row: 1;
    font-size: var(--text-base);
  }

  .tour-row__name {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: var(--text-base);
  }

  .hero__content {
    gap: var(--space-5);
  }
}
