/* ==========================================================================
   Hausmesse Ebikon (28.-31.10.2026) — Ergänzung zu style.css
   Nur was die /hausmesse-Seite zusätzlich braucht; alles andere (Hero,
   Marken, Benefits, Booking, Footer) kommt unverändert aus style.css.
   ========================================================================== */

.page-hausmesse .hero-video {
  object-position: 0% 62%;
}

/* Desktop: links dunkel für den Text, rechts frei, damit der IBEX gut sichtbar ist */
@media (min-width: 701px) {
  .page-hausmesse .hero-media::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 8, 0.86) 0%, rgba(8, 8, 8, 0.6) 38%, rgba(8, 8, 8, 0.08) 68%, rgba(8, 8, 8, 0) 100%),
      linear-gradient(180deg, rgba(8, 8, 8, 0.45) 0%, rgba(8, 8, 8, 0) 22%, rgba(8, 8, 8, 0) 70%, rgba(8, 8, 8, 0.6) 100%);
  }
  .page-hausmesse .hero > .wrap { width: 100%; }
  .page-hausmesse .hero-content { max-width: 560px; }
  .page-hausmesse .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
}

/* Marken ohne Standangabe: Logos brauchen keinen Platz für die Zeile darunter */
.page-hausmesse .brand-grid {
  align-items: center;
}

/* ------------------------------ Erst Bern, dann Ebikon -------------------- */

.hm-route-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* durchgehende Linie zwischen den beiden Stationen */
.hm-route-line::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 50%, var(--accent) 50%, var(--accent) 100%);
}

.hm-route-line li {
  position: relative;
  padding: 40px 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hm-route-line li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  box-sizing: border-box;
}

.hm-route-line li.is-next::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.hm-route-date {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hm-route-line li.is-past .hm-route-date {
  color: var(--ink-soft);
  opacity: 0.55;
}

.hm-route-line li.is-next .hm-route-date {
  color: var(--accent-strong);
}

.hm-route-place {
  font-weight: 700;
  font-size: 1.02rem;
}

.hm-route-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ------------------------------ Infos ------------------------------------ */

.hm-stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .hm-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hm-route-line {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 34px;
  }

  .hm-route-line::before {
    top: 9px;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--line) 0%, var(--line) 50%, var(--accent) 50%, var(--accent) 100%);
  }

  .hm-route-line li {
    padding: 0;
  }

  .hm-route-line li::before {
    left: -34px;
  }
}

.page-hausmesse .messe-info-link {
  color: rgba(255, 255, 255, 0.78);
}

/* ------------------------------ Sunlight direkt aus Bern ----------------- */

.hm-sun {
  background: var(--accent-soft);
}

.hm-sun-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.hm-sun h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}

.hm-sun-grid > div:first-child p {
  color: var(--ink-soft);
  max-width: 50ch;
}

.hm-sun-deal {
  background: var(--accent-strong);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 44px);
}

.hm-sun-deal-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hm-sun-deal strong {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 10px 0 14px;
}

.hm-sun-deal p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
}

.hm-sun-deal .btn-primary {
  background: #fff;
  color: var(--accent-strong);
}

.hm-sun-deals {
  display: grid;
  gap: 16px;
}

/* Zweite Aktion hell, damit die beiden Karten klar getrennt sind */
.hm-sun-deal--clima {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--accent);
}

.hm-sun-deal--clima .hm-sun-deal-label {
  color: var(--accent-strong);
  opacity: 1;
}

.hm-sun-deal--clima strong {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.hm-sun-deal--clima p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ------------------------------ Offroad-Familie -------------------------- */

.hm-off-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.hm-off-media {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 520px;
}

.hm-off-media figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.hm-off-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-off-media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}

.hm-off-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
}

.hm-off-pair figure {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hm-off-pair img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}

.hm-off-pair figcaption strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.hm-off-pair figcaption span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hm-special-img {
  margin: 0;
  width: 260px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.hm-special-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-special-row .hm-special-tag {
  display: inline-block;
  margin-bottom: 10px;
}

.hm-off-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: off;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.hm-off-list li {
  counter-increment: off;
  position: relative;
  padding: 22px 0 22px 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hm-off-list li::before {
  content: "0" counter(off);
  position: absolute;
  left: 0;
  top: 24px;
  font-weight: 800;
  color: var(--accent);
}

.hm-off-brand {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hm-off-list strong {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.hm-off-list li > span:last-child {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ------------------------------ Hobby-Sondermodell ----------------------- */

.hm-special {
  padding-top: 0;
}

.hm-special-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.hm-special-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.hm-special-row strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hm-special-row p {
  color: var(--ink-soft);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hm-sun-grid,
  .hm-off-grid { grid-template-columns: 1fr; }
  .hm-off-media { min-height: 0; grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .hm-off-media figure { aspect-ratio: 4 / 3; }
  .hm-off-pair { grid-template-columns: 1fr; }
  .hm-off-pair img { height: 180px; }
  .hm-special-img { width: 100%; }
  .hm-special-row { grid-template-columns: 1fr; justify-items: start; }
}

/* ------------------------------ Mobile ------------------------------------ */

/* Fünf Logos im 2er-Raster (nur mobil): das letzte (Dethleffs) mittig über beide Spalten */
@media (max-width: 860px) {
  .page-hausmesse .brand-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Hero als Bild oben, Text darunter: im Vollbild war vom IBEX nur noch ein
   Ausschnitt der Front zu sehen, und der Text lag darüber. */
@media (max-width: 700px) {
  .page-hausmesse .hero {
    min-height: 0;
    display: block;
    padding-top: 0;
    background: #0c0c0c;
  }

  .page-hausmesse .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: calc(72px + 70vw);
  }

  .page-hausmesse .hero-video {
    object-position: 50% 50%;
  }

  .page-hausmesse .hero-media::after {
    z-index: 2;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0) 30%, rgba(12, 12, 12, 0) 65%, #0c0c0c 100%);
  }

  .page-hausmesse .hero-content {
    padding-top: 6px;
    padding-bottom: 48px;
  }

  .page-hausmesse .hero h1 { font-size: 2.15rem; }
  .page-hausmesse .scroll-cue { display: none; }

  .hm-sun-deal .btn,
  .hm-special-row .btn { width: 100%; justify-content: center; text-align: center; }
  .hm-route-date { font-size: 2.4rem; }
}

/* Hero-Headline: zweiter Teil in Grün */
.page-hausmesse .hm-hero-accent { color: #9fca9f; display: inline-block; }
