/* =========================================================
   SLBahnen – Über uns
   Datei: /css/about.css
   Voraussetzung: /data/css/style.css ist geladen
========================================================= */


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

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

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


/* =========================================================
   PAGE HERO – gleich aufgebaut wie Kontaktseite
========================================================= */

.page--about .about-hero {
  margin: 0 0 8px;
  padding-bottom: 8px;
}

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

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

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


/* =========================================================
   TEXTKARTE
========================================================= */

.page--about .about-card {
  background: rgba(52, 152, 219, .10);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.page--about .about-intro {
  max-width: 100%;
}

.page--about .about-card p {
  margin: 0 0 16px;
  color: rgba(0, 0, 0, .76);
  line-height: 1.62;
}

.page--about .about-card p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   BILDER ALS PRODUKTGALERIE
========================================================= */

.page--about .about-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.page--about .about-shot {
  position: relative;
  margin: 0;

  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;

  background: #f0efef;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
  border: 1px solid rgba(0, 0, 0, .07);

  isolation: isolate;
}

.page--about .about-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;

  transform: scale(1);
  transition:
    transform .55s cubic-bezier(.22, .61, .36, 1),
    filter .55s ease;
}

.page--about .about-shot:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.03);
}

.page--about .about-shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .28),
    rgba(0, 0, 0, 0)
  );
}

.page--about .about-shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;
  padding: 7px 12px;

  background: rgba(20, 20, 20, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  text-align: center;
  line-height: 1.2;
}


/* =========================================================
   TIMELINE
   1:1 wie bisher
========================================================= */

.timeline {
  --date-w: 120px;
  --rail-w: 26px;
  --line: var(--blue);
  --dot:  var(--blue);

  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.tl-item {
  display: grid;
  grid-template-columns: var(--date-w) var(--rail-w) 1fr;
  column-gap: 16px;
  align-items: start;
}

.tl-date {
  font-weight: 700;
  opacity: .9;
  text-align: right;
  line-height: 1.2;
}

.tl-rail {
  position: relative;
  min-height: 100%;
}

.tl-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
  border-radius: 999px;
}

/* Perle */
.tl-dot {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  margin: 2px auto 0;
  background: var(--dot);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}

.tl-content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.tl-content p {
  margin: 0;
  opacity: .9;
}

/* Mobile: Datum über den Text, Schiene bleibt links */
@media (max-width: 560px) {
  .tl-item {
    grid-template-columns: var(--rail-w) 1fr;
  }

  .tl-date {
    grid-column: 2;
    text-align: left;
    margin-bottom: 6px;
  }

  .tl-rail {
    grid-row: 1 / span 2;
  }

  .tl-content {
    grid-column: 2;
  }
}


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

@media (max-width: 980px) {
  .page--about .about-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .page--about .about-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page--about .about-main {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .page--about .about-section {
    margin-top: 40px;
  }

  .page--about .about-mosaic {
    grid-template-columns: 1fr;
  }

  .page--about .about-actions {
    flex-direction: column;
  }

}