/* ── Reset & base ── */
#ablauf * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#ablauf {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  background: transparent;
}

/* ── Container ── */
#ablauf .tl-wrap {
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

#ablauf .tl-head {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* ── Track ── */
#ablauf .tl-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

#ablauf .tl-track::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #d4d4d4;
  z-index: 0;
}

/* ── Step node ── */
#ablauf .tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  user-select: none;
}

#ablauf .tl-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #b0b0b0;
  color: #666666;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

#ablauf .tl-step.active .tl-node {
  background: #EEEDFE;
  border-color: #3857a5;
  color: #1f3587;
}

#ablauf .tl-step:hover .tl-node {
  border-color: #3857a5;
  color: #1f3587;
}

#ablauf .tl-lname {
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 10px;
  text-align: center;
  line-height: 1.3;
}

#ablauf .tl-lsub {
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  margin-top: 3px;
  text-align: center;
  line-height: 1.3;
}

#ablauf .tl-step.active .tl-lname {
  color: #1f3587;
}

/* ── Arrow indicators ── */
#ablauf .tl-arrows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}

#ablauf .tl-arr {
  display: flex;
  justify-content: center;
}

#ablauf .tl-arr-tri {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 0px solid transparent;
  transition: border-top 0.15s ease;
}

#ablauf .tl-arr-tri.show {
  border-top: 8px solid #c8c8c8;
}

/* ── Detail panel ── */
#ablauf .tl-panel {
  display: none;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 6px;
}

#ablauf .tl-panel.open {
  display: flex;
}

/* ── Panel left: bullets ── */
#ablauf .tl-panel-left {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}

#ablauf .tl-ptitle {
  font-size: 19px;
  font-weight: 700;
  color: #1f3587;
  margin-bottom: 16px;
  line-height: 1.3;
}

#ablauf .tl-plist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#ablauf .tl-plist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: #444444;
  line-height: 1.5;
}

#ablauf .tl-plist li i {
  color: #3857a5;
  font-size: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}

#ablauf .tl-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  background: #ecd65a;
  color: #1f3587;
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 18px;
}

#ablauf .tl-tag i {
  font-size: 13px;
}

/* ── Panel right: photo + quote ── */
#ablauf .tl-panel-right {
  width: 260px;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0e0e0;
}

#ablauf .tl-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

#ablauf .tl-quote {
  padding: 16px 18px;
  flex: 1;
}

#ablauf .tl-quote-text {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 10px;
}

#ablauf .tl-quote-meta {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  font-style: normal;
}

/* ── RESPONSIVE ── */

/* Tablets and smaller */
@media (max-width: 1024px) {
  #ablauf .tl-track {
    grid-template-columns: repeat(2, 1fr);
  }

  #ablauf .tl-track::before {
    display: none;
    /* line not suitable for 2 columns */
  }

  #ablauf .tl-arrows {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  #ablauf .tl-wrap {
    padding: 2rem 0.5rem;
  }

  /* Horizontal scrollable track */
  #ablauf .tl-track {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0.5rem 0.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    /* reset */
  }

  #ablauf .tl-track::before {
    display: none;
  }

  #ablauf .tl-step {
    flex: 0 0 auto;
    min-width: 80px;
    scroll-snap-align: start;
    align-items: center;
  }

  /* Hide arrows on mobile */
  #ablauf .tl-arrows {
    display: none;
  }

  /* Panel stacks vertically */
  #ablauf .tl-panel {
    flex-direction: column;
  }

  #ablauf .tl-panel-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e0e0e0;
  }

  #ablauf .tl-panel-left {
    padding: 16px;
  }

  #ablauf .tl-ptitle {
    font-size: 17px;
  }

  #ablauf .tl-lname {
    font-size: 14px;
  }

  #ablauf .tl-lsub {
    font-size: 11px;
  }

  #ablauf .tl-img {
    height: auto;
    /* let the image scale naturally */
    max-height: 200px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  #ablauf .tl-wrap {
    padding: 1rem 0.25rem;
  }

  #ablauf .tl-step {
    min-width: 70px;
  }

  #ablauf .tl-node {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  #ablauf .tl-lname {
    font-size: 12px;
  }

  #ablauf .tl-lsub {
    font-size: 10px;
  }

  #ablauf .tl-panel-left {
    padding: 12px;
  }

  #ablauf .tl-ptitle {
    font-size: 15px;
  }

  #ablauf .tl-plist li {
    font-size: 13px;
  }

  #ablauf .tl-quote-text {
    font-size: 12px;
  }
}