/* =========================================================
   SLBahnen – Modellbahn Übersicht (modellbahn.php)
   Datei: css/modellbahn.css
   Voraussetzung: css/style.css ist geladen
   Scope: nur .page--modellbahn
========================================================= */


/* =========================================================
   PAGE LAYOUT
========================================================= */

.page--modellbahn .moba-main {
  padding-top: 26px;
  padding-bottom: 60px;
}

.page--modellbahn .moba-section {
  margin-top: 48px;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page--modellbahn .moba-hero {
  margin: 0 0 8px;
  padding: 25px 0 15px 0;
}

.page--modellbahn .moba-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--blue-dark);
  opacity: .9;
  margin-bottom: 8px;
}

.page--modellbahn .moba-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  line-height: 1.1;
  color: var(--blue-dark);
}

.page--modellbahn .moba-hero__lead {
  margin: 0;
  color: rgba(0, 0, 0, .70);
  line-height: 1.6;
  max-width: 68ch;
}


/* =========================================================
   BUTTONS
========================================================= */

.page--modellbahn .moba-card__body .btn,
.page--modellbahn .moba-article-card__body .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}


/* =========================================================
   BADGES & TAGS
========================================================= */

.page--modellbahn .moba-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page--modellbahn .moba-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  color: #fff;
}

.page--modellbahn .moba-badge--green  { background: var(--green); }
.page--modellbahn .moba-badge--blue   { background: var(--blue); }
.page--modellbahn .moba-badge--orange { background: var(--orange); }
.page--modellbahn .moba-badge--grey   { background: var(--grey); }

.page--modellbahn .moba-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(0, 0, 0, .10);
  color: var(--blue-dark);
}


/* =========================================================
   VARIANTEN-CHIPS
========================================================= */

.page--modellbahn .moba-variants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page--modellbahn .moba-variants__label {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(0, 0, 0, .55);
  flex-shrink: 0;
}

.page--modellbahn .moba-variants__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page--modellbahn .moba-variant-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(52, 152, 219, .12);
  border: 1px solid rgba(52, 152, 219, .25);
  color: var(--blue-dark);
}


/* =========================================================
   PRODUKT-KARTEN (vertikal, 2-spaltig)
========================================================= */

.page--modellbahn .moba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.page--modellbahn .moba-card {
  background: rgba(52, 152, 219, .10);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}


.page--modellbahn .moba-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.page--modellbahn .moba-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .6s cubic-bezier(.22, .61, .36, 1),
    filter .6s ease;
}

.page--modellbahn .moba-card:hover .moba-card__media img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.page--modellbahn .moba-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.page--modellbahn .moba-card__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blue-dark);
  line-height: 1.3;
}

.page--modellbahn .moba-card__text {
  margin: 0;
  color: rgba(0, 0, 0, .72);
  line-height: 1.55;
  font-size: .95rem;
}


/* =========================================================
   BEITRAGS-KARTEN (horizontal, wie news-card auf Home)
========================================================= */

.page--modellbahn .moba-article-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page--modellbahn .moba-article-card {
  display: flex;
  flex-direction: row;
  background: rgba(52, 152, 219, .10);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}


.page--modellbahn .moba-article-card__media {
  width: min(34%, 320px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
  flex-shrink: 0;
  align-self: stretch;
}

.page--modellbahn .moba-article-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform .6s cubic-bezier(.22, .61, .36, 1),
    filter .6s ease;
}

.page--modellbahn .moba-article-card:hover .moba-article-card__media img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.page--modellbahn .moba-article-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.page--modellbahn .moba-article-card__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.page--modellbahn .moba-article-card__text {
  margin: 0;
  color: rgba(0, 0, 0, .72);
  line-height: 1.55;
  font-size: .95rem;
}


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

@media (max-width: 860px) {
  .page--modellbahn .moba-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page--modellbahn .moba-article-card {
    flex-direction: column;
  }

  .page--modellbahn .moba-article-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    align-self: auto;
  }

}