/* ============================================================
   Block: Onepager Terminierung
   ============================================================ */

.block-onepager-terminierung {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: "Jost", sans-serif;
  min-height: 500px;
}

/* ---- Linke Spalte ----------------------------------------- */

.ont-left {
  background: #15325a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px);
}

/* ---- Timeline: Schritte mit Jahres-Badges ------------------ */

.ont-timeline {
  --badge: 56px;
  --line-color: rgba(255, 255, 255, 0.15);

  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
}

/* ---- Einzelner Eintrag ------------------------------------ */

.ont-entry {
  position: relative;
  display: grid;
  grid-template-columns: var(--badge) 1fr;
  column-gap: 1.75rem;
  padding-bottom: 2.5rem;
}

.ont-entry:last-child {
  padding-bottom: 0;
}

/* Verbindungslinie zwischen den Jahres-Badges */
.ont-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--badge);
  bottom: 0;
  left: calc(var(--badge) / 2 - 1px);
  width: 2px;
  background: var(--line-color);
}

.ont-entry__year {
  position: relative;
  z-index: 1;
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: #fb0024;
  color: #fff; 
}

/* Letzter Eintrag = Zielmeilenstein, dezent als "Ziel" hervorgehoben */
.ont-entry:last-child .ont-entry__year {
  background: #fff; 
  border: 1px solid #fb0024;
  color: #fb0024;
}

.ont-entry__content {
  padding-top: 0.55rem;
}

.ont-entry__label {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.ont-entry__text {
  font-size: 1.05rem;
  font-weight: 300;
  color: #aebbcf;
  margin: 0;
  line-height: 1.5;
}

/* ---- Rechte Spalte (Bild) --------------------------------- */

.ont-right {
  overflow: hidden;
}

.ont-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Responsive ------------------------------------------- */

/* Schmales Desktop / Tablet */
@media (max-width: 900px) {
  .ont-timeline {
    --badge: 48px;
  }

  .ont-entry {
    column-gap: 1.25rem;
    padding-bottom: 2rem;
  }

  .ont-entry__year {
    font-size: 0.85rem;
  }
  .ont-entry__label {
    font-size: 1.2rem;
  }
  .ont-entry__text {
    font-size: 1.1rem;
  }
}

/* Mobil: Block stackt, Bild kommt zuerst */
@media (max-width: 680px) {
  .block-onepager-terminierung {
    grid-template-columns: 1fr;
  }

  .ont-right {
    height: 240px;
    order: -1;
  }

  .ont-left {
    padding: 32px 24px;
  }

  .ont-timeline {
    --badge: 44px;
    max-width: none;
  }

  .ont-entry {
    column-gap: 1rem;
    padding-bottom: 1.75rem;
  }

  .ont-entry__year {
    font-size: 0.75rem;
  }
  .ont-entry__label {
    font-size: 1rem;
  }
  .ont-entry__text {
    font-size: 0.95rem;
  }
}
