/* ========================================
   Process Section - Horizontal Scroll Cards
   webentwickler-frankfurt.com
   ======================================== */

#prozess {
  position: relative;
  height: 750px;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}

.prozess-header {
  padding-top: 50px;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

#prozess .prozess-header h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.prozess-wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 50px;
}

.horizontal-track {
  display: flex;
  align-items: center;
  will-change: transform;
  padding: 0 40px;
  gap: 0;
}

.step-card {
  position: relative;
  min-width: 420px;
  max-width: 460px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px 40px 36px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  opacity: 0.12;
  transform: scale(0.9) translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.step-card:not(.cta-card)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.step-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 240, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.step-card.active::after {
  opacity: 1;
}

.step-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.step-label {
  color: var(--c-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 6px;
}

#prozess .step-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black, 900);
  margin: 0;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.step-duration {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.step-card.active .step-duration {
  color: #000;
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.step-duration svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.step-content {
  position: relative;
  z-index: 1;
}

#prozess .step-subtitle {
  color: var(--c-accent);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

#prozess .step-text {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 0;
}

#prozess .step-card.active .step-text {
  color: rgba(255, 255, 255, 0.95);
}

.arrow-connector {
  width: 140px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.arrow-path {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 0.5s ease;
}

.flip-y {
  transform: scaleY(-1);
}

#prozess .step-card.cta-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 340px;
}

#prozess .cta-card__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  margin-bottom: 24px;
  color: #fff;
}

#prozess .cta-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--c-accent);
  color: #000;
  border-radius: 200px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-card__btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.cta-card__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  #prozess { height: auto; padding-bottom: 60px; }
  .prozess-header { position: relative; top: 0; left: 0; transform: none; padding-top: 40px; margin-bottom: 20px; text-align: left; padding: 0 20px;}
  #prozess .prozess-header h2 { font-size: 1.8rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
  .prozess-wrap { padding-top: 20px; }
  .horizontal-track { flex-direction: column; padding: 0 20px; gap: 20px; transform: none !important; }
  .step-card { width: 100%; min-width: 100%; max-width: 100%; padding: 30px; transform: none !important; opacity: 1; }
  .step-card::after { opacity: 1 !important; }
  .step-title { font-size: 1.4rem; }
  .arrow-connector { width: 60px; height: 60px; margin: 10px auto; transform: rotate(90deg) !important; }
  .arrow-connector.flip-y { transform: rotate(90deg) scaleX(-1) !important; }
}
