.roadmap {
  --rm-line: rgba(255, 255, 255, 0.18);
  --rm-dot: var(--muted, #8fa2bf);
  --rm-current: var(--primary, #2f7efb);
  padding: 4rem 1rem;
}

.roadmap .container {
  max-width: 960px;
  margin: 0 auto;
}

.roadmap__viewport {
  position: relative;
}

@media (max-width: 767.98px) {
  .roadmap__viewport {
    padding-left: 0.75rem;
  }
}

.roadmap .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.roadmap .timeline::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 1rem;
  width: 2px;
  background: var(--rm-line);
  border-radius: 999px;
}

.roadmap .node {
  position: relative;
  padding-left: 2.5rem;
  display: grid;
  gap: 0.75rem;
  color: var(--text, #cdd7e5);
  outline: none;
  cursor: pointer;
}

.roadmap .node:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 126, 251, 0.35);
  border-radius: 1rem;
}

.roadmap .node__dot {
  position: absolute;
  left: 1rem;
  top: 0.2rem;
  transform: translate(-50%, 0);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--rm-dot);
  border: 3px solid rgba(11, 20, 34, 0.85);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.roadmap .node__meta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 18px 46px rgba(6, 12, 24, 0.32);
}

.roadmap .node__meta h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

/* no description on nodes; details panel below shows items */
.roadmap .node__items { display: none; }

.roadmap .node--current .node__dot {
  background: var(--rm-current);
  box-shadow: 0 0 0 6px rgba(47, 126, 251, 0.25);
  width: 20px;
  height: 20px;
}

.roadmap .node--current .node__meta { border-color: rgba(47, 126, 251, 0.45); }

.roadmap .node--current .node__meta h3 {
  font-weight: 700;
}

.roadmap .node--past .node__dot {
  opacity: 0.6;
}

.roadmap .node--future .node__dot {
  background: rgba(255, 255, 255, 0.3);
}

.roadmap .node--future .node__meta {
  opacity: 0.9;
}

.roadmap .node--current .node__title::after {
  content: "Aktuell";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cfe2ff;
  background: rgba(47, 126, 251, 0.25);
  border: 1px solid rgba(47, 126, 251, 0.55);
  border-radius: 999px;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .roadmap {
    padding: 5rem 1rem;
  }

  .roadmap__viewport {
    padding-left: 0;
  }

  .roadmap .timeline {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
    padding-top: 3rem;
  }

  .roadmap .timeline::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    height: 2px;
  }

  .roadmap .node {
    padding: 0;
    flex: 0 0 auto;
    text-align: center;
  }

  .roadmap .node__dot {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .roadmap .node__meta {
    margin-top: 1.25rem;
    text-align: center;
  }

  .roadmap .node__meta h3 {
    text-align: center;
  }

  .roadmap .node__items { display: none; }
}

/* details panel under the timeline */
.roadmap__details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 18px 46px rgba(6, 12, 24, 0.32);
}
.roadmap__details .details__title {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.roadmap__details .details__items {
  margin: 0.25rem 0 0 1.125rem;
}
.roadmap .node--active .node__dot { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22); }

.roadmap .roadmap-fallback {
  max-width: 640px;
  margin: 2rem auto 0 auto;
  padding-left: 0;
}

.roadmap .roadmap-fallback strong {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.roadmap .roadmap-fallback ul {
  padding-left: 1.25rem;
}
