/* ===================================================
   Prozess – Interaktive Timeline (Desktop) + Karten
   =================================================== */

/* ── Desktop-Timeline (zwischen Untertitel & Karten) ── */
.timeline-bar {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0.5rem 0 0;
  pointer-events: none;
}

.timeline-bar-inner {
  position: relative;
  --dot-half: clamp(22px, 2.25vw, 28px);
  --dot-row-y: calc(2.5rem + 0.625rem + var(--dot-half));
}

.timeline-bar-track {
  position: absolute;
  left: calc(12.5%);
  right: calc(12.5%);
  top: var(--dot-row-y);
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateY(-50%);
}

.timeline-bar-progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  box-shadow:
    0 0 6px rgba(0, 212, 255, 0.6),
    0 0 18px rgba(0, 212, 255, 0.25);
}

.timeline-bar-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.timeline-bar-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.625rem;
  padding: 0 0.5rem;
}

.timeline-bar-label {
  min-height: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.timeline-bar-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.timeline-bar-dot {
  width: clamp(44px, 4.5vw, 56px);
  height: clamp(44px, 4.5vw, 56px);
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-bar-step.is-active .timeline-bar-dot {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-cyan);
  box-shadow:
    0 0 0 4px rgba(0, 212, 255, 0.08),
    0 0 16px rgba(0, 212, 255, 0.3);
  transform: scale(1.12);
}

.timeline-bar-step.is-active .timeline-bar-label,
.timeline-bar-step.is-active .timeline-bar-time {
  opacity: 1;
  color: var(--accent-cyan);
  transform: translateY(0);
}

.timeline-bar.is-auto-playing .timeline-bar-step.is-active .timeline-bar-label,
.timeline-bar.is-auto-playing .timeline-bar-step.is-active .timeline-bar-time {
  opacity: 1;
}

/* ── Prozess-Karten (immer sichtbar) ── */
.prozess-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.prozess-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  transition:
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.prozess-card h3 {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.prozess-card p {
  font-size: clamp(0.76rem, 1vw, 0.85rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.prozess-card-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}

/* ── Tablet & Handy: Timeline aus, Karten bleiben ── */
@media (max-width: 900px) {
  .timeline-bar {
    display: none;
  }

  .prozess-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .prozess-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-bar-progress,
  .timeline-bar-dot,
  .timeline-bar-label,
  .timeline-bar-time,
  .prozess-card {
    transition-duration: 0.01ms;
  }
}
