.timeline-card {
    background: var(--background-color-lighter);
    border: 1px solid var(--stroke-color-soft);
    border-radius: var(--radius-desktop);
    box-shadow: var(--shadow-sm);
    height: 86px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.timeline-card:hover {
    transform: translateY(-2px);
    border-color: var(--stroke-color);
    box-shadow: var(--shadow-md);
}


.timeline-card-title {
    font-size: 32px;
    font-weight: 500;

      /* ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* important for flex items so ellipsis can actually happen */
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) and (max-width: 1999px) {
  .timeline-card-title {
    font-size: 28px;
  }

  .timeline-card {
    height: 79px;
  }

  .timeline-icon {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}


@media (max-width: 767px) {
  .timeline-card {
    height: 76px;
  }

  .timeline-card-title {
    font-size: 25px;
  }

  .timeline {
    font-size: 18px;
  }

  .timeline .event:before {
    font-size: 1.25em;
  }
}

.timeline-icon {
    filter: invert(18%) sepia(14%) saturate(22%) hue-rotate(342deg) brightness(94%) contrast(87%);
    height: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
}


.timeline-content {
  margin-top: 2em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding-left: .3em;
  padding-right: .3em;
  margin-bottom: 0; /* collapsed */
}

.timeline-content.is-expanded {
  margin-bottom: 5em; /* space after expanded content */
}


.timeline {
  border-left: 4px solid var(--timeline-color-darker, var(--primary-color-darker));
  border-bottom-right-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  background: var(--background-color-light);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  letter-spacing: 0.2px;
  position: relative;
  line-height: 1.4em;
  font-size: 19px;
  padding: 50px;
  list-style: none;
  text-align: left;
  max-width: 40%;
}

.timeline {
  max-width: 98%;
  padding: 25px;
}

.timeline h1 {
  font-weight: 300;
  font-size: 1.4em;
}

.timeline h2,
.timeline h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.timeline .event {
  border-bottom: 1px dashed var(--stroke-color-soft);
  padding-bottom: 25px;
  margin-bottom: 25px;
  position: relative;
}

.timeline .event {
  padding-top: 30px;
  padding-left: 8px;
  padding-right: 12px;
}

.timeline .event:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}

.timeline .event:before,
.timeline .event:after {
  position: absolute;
  display: block;
  top: 0;
}

.timeline .event:before {
  left: 0px;
  content: attr(data-date);
  text-align: left;
  font-weight: normal;
  font-size: 1.35em;
  color: var(--timeline-color-darker, var(--primary-color-darker));
  min-width: 120px;
  padding-top: 8px;
  padding-left: 8px;
}

.timeline .event:after {
  -webkit-box-shadow: 0 0 0 3px var(--timeline-color-darker, var(--primary-color-darker));
  box-shadow: 0 0 0 4px var(--timeline-color-darker, var(--primary-color-darker));
  left: -31.8px;
  background: #fff;
  border-radius: 50%;
  height: 9px;
  width: 9px;
  content: "";
  top: 13px;
}

.timeline-header {
  font-size: 19px !important;
}

@media (max-width: 767) {
  .timeline .event {
    padding-left: 0px;
    padding-right: 0px;
  }

  .timeline .event:after {
    top: 5px;
  }

  .timeline .event:before {
    padding-top: 0px;
    padding-left: 0px;
  }
}


/* hover effect */

/* Clickable event (has a Story) */
.timeline .event-has-story {
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-desktop);
}

/* Hover state – whole event area (title + description) reacts */
.timeline .event-has-story:hover {
  background-color: color-mix(
    in srgb,
    var(--timeline-color-darker) 8%,
    transparent
  );
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


/* Zusätzliche Stufe für sehr schmale Screens (< 366px), siehe site.css. */
@media (max-width: 365px) {
  .timeline-card {
    height: 70px;
  }

  .timeline-card-title {
    font-size: 23px;
  }

  .timeline {
    font-size: 17px;
  }

  .timeline-header {
    font-size: 18px !important;
  }
}
