/**
 * Landing page (home article layout override)
 * Replaces the former SP Pagebuilder home page. Mobile-first, no JS.
 * Scoped under .landing-page so it can't leak into / clash with other pages.
 */

.landing-page {
  /* clips the ~scrollbar-width overshoot from the 100vw full-bleed hero below */
  overflow-x: hidden;
  --lr-primary: #7b1b67;
  --lr-accent: #bf4040;
  --lr-panel-bg: #6d1f45;
  --lr-panel-bg-alt: #8a2a52;
  --lr-text-light: #ffffff;
  --lr-text-dark: #3a1030;
  --lr-max-width: 1100px;
  --lr-box-max-width: 820px;
}

.landing-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Hero ---------- */

.landing-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  /* pulls the hero up to close the gap left by <main>'s default margin-top */
  margin-top: -1rem;
  /* on very wide screens, 70vh alone makes the box far wider than the photo's
     own aspect ratio, so `cover` zooms in hard and crops top/bottom heavily.
     Growing the height with viewport width caps that crop without a fixed
     breakpoint; on normal/narrow screens 70vh still wins and nothing changes. */
  min-height: max(70vh, 55vw);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../../../images/Reco-small/20231004_091106_s2000.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(227, 172, 170, 0.45) 40%, rgba(227, 172, 170, 0.92) 100%);
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--lr-text-dark);
}

.landing-hero__logo {
  width: clamp(220px, 55vw, 420px);
  margin: 0 auto 1.5rem;
}

.landing-hero__intro {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.landing-hero__stats {
  width: clamp(220px, 60vw, 320px);
  margin: 0 auto;
}

/* ---------- Orte-Teaser ---------- */

.landing-teaser {
  max-width: var(--lr-max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.landing-teaser__quote {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  font-style: italic;
  color: var(--lr-primary);
  line-height: 1.6;
}

.landing-teaser__quote-source {
  text-align: center;
  font-size: 0.85rem;
  color: #6b6b6b;
}

/* ---------- Boxen (Bild + Text) ---------- */

.landing-boxes {
  max-width: var(--lr-box-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.landing-box {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.landing-box__media {
  overflow: hidden;
  height: 220px;
}

.landing-box__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-box__mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}

.landing-box__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-box__content {
  background: var(--lr-panel-bg);
  color: var(--lr-text-light);
  padding: 1.5rem;
  flex: 1;
}

/* alternate panel shade for visual rhythm */
.landing-box:nth-child(even) .landing-box__content {
  background: var(--lr-panel-bg-alt);
}

.landing-box__content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.landing-box__content p {
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.landing-box__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.landing-box__link {
  display: inline-block;
  color: var(--lr-text-light);
  font-weight: 600;
  text-decoration: underline;
}

/* From medium screens up: always 1 box per row, image + text side by side.
   Deliberately no 2-column grid at any width — with narrow columns, long
   text wraps to more lines, stretching the row and cropping the image
   heavily on the sides. Single column + capped max-width avoids that. */
@media (min-width: 700px) {
  .landing-box {
    flex-direction: row;
  }

  .landing-box__media,
  .landing-box__content {
    flex: 1 1 50%;
  }

  .landing-box__media {
    height: auto;
    min-height: 260px;
  }

  .landing-box:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* ---------- Sponsor-Badge ---------- */

.landing-sponsor {
  text-align: center;
  padding: 1rem 1.25rem 3rem;
}

.landing-sponsor img {
  width: clamp(140px, 40vw, 220px);
  margin: 0 auto;
}
