
.plan-section {
  width: 100%; padding: 4rem 2rem;
  display: flex; justify-content: center; align-items: center;
}

.plan-card {
  background: var(--bg-card); width: 100%; max-width: 1100px;
  border-radius: 32px; padding: 3rem;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border-color);
  
  display: grid; grid-template-columns: 1fr 1.8fr; gap: 3rem; align-items: start;
}

.plan-intro h2 { color: var(--text-main); }
.stat strong { color: var(--text-main); }


.modern-table {
  width: 100%; border-collapse: collapse;

  & th {
    color: var(--text-muted); border-bottom: 2px solid var(--border-color);
    padding: 1.2rem 1rem; text-align: left; vertical-align: middle;
  }

  & td {
    color: var(--text-main); border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 1rem; vertical-align: middle;
  }

  & tbody tr:hover td { background-color: var(--border-color); }
}


.testhero {
  display: flex; align-items: center; justify-content: center;
  min-height: 40vh; background-color: transparent;
  position: relative; z-index: 10; padding: 0rem 0rem; text-align: center;
}

.testhero-content { max-width: 800px; }
.testhero-content h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }


.training-step {
  position: relative; min-height: 500vh; margin-bottom: 0; padding-bottom: 0;
  box-sizing: border-box; z-index: 5; transform: translate3d(0,0,0);
}

.sticky-wrapper {
  position: sticky; top: 0; height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: visible;
}

.step-card {
  position: relative; width: 90%; max-width: 1100px; height: 70vh;
  background-color: var(--bg-card);
  border-radius: 32px;
  overflow: hidden; display: flex; pointer-events: auto;
  
  opacity: 0; transform: translateY(50px); will-change: transform, opacity;
}

.training-step__content {
  position: relative; width: 100%; height: 100%; padding: 0 4rem;
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 2rem; box-sizing: border-box;
}

.training-step__text {
  position: relative; z-index: 2; flex: 1; max-width: 400px;
  
  & h3 { margin-top: 0; font-size: 2rem; margin-bottom: 1rem; color: var(--text-main); }
}

.training-step__illustration {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  margin: 0; transform: none; pointer-events: none; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  
  & svg { width: 100%; height: 100%; display: block; }
}



/* 1. Dauerlauf */
#dauerlauf {
  & .step-card {
    background: var(--card-bg-gradient); /* Nutzt globale Variable */
  }
  & .training-step__content { flex-direction: row; }
}
.dauerlauf-path-wrapper { width: 120%; left: -10%; top: 10%; }
.dauerlauf-path { height: auto; max-height: 100%; opacity: 0.8; }

/* 2. Intervall */
#intervall .step-card {
  background: var(--card-bg-gradient);
  position: relative;
}

.intervall-ekg {
  width: 100%; display: flex; align-items: flex-end; justify-content: center;
  position: absolute; bottom: 0; left: 0;
  height: 120px; z-index: 0; padding-bottom: 1rem; pointer-events: none;
}

.ekg-line {
  display: block; width: 100%; height: 100%; opacity: 0.5;
  & path { fill: none; stroke: #e53935; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

.interval-heart {
  position: absolute; top: 45%; right: 10%; width: 200px; max-width: 30%;
  transform: translateY(-50%); pointer-events: none; z-index: 1;
}

/* 3. Regeneration */
#regeneration .step-card {
  background: var(--card-bg-gradient);
}
.regeneration-spiral {
  position: absolute; top: 0; right: 0 !important; left: auto !important;
  width: 60%; height: 100%; max-width: none;
  display: flex; align-items: center; justify-content: flex-end;
  opacity: 0.8; pointer-events: none; z-index: 0; transform: translateX(10%);
}
.reg-spiral path { fill: none; stroke: url(#regenGradient); stroke-width: 6; stroke-linecap: round; }

/* 4. Ernährung */
#ernaehrung .step-card {
  background: var(--card-bg-gradient);
}
.nutrition-egg {
  position: absolute; top: 0; bottom: 0; height: 100%; z-index: 0;
  display: flex; align-items: flex-end; justify-content: center;
  
  & svg.egg-svg { display: block; width: 100%; height: 100%; }
}


.progress {
  min-height: 80vh; padding: 4rem 2rem;
  display: flex; justify-content: center; align-items: center;
  background-color: transparent;
}

.progress-card-wrapper {
  background: var(--card-bg-gradient);
  width: 100%; max-width: 900px; padding: 3rem;
  border-radius: 32px;
  text-align: center;
  
  & h2 { color: var(--text-main); margin-bottom: 0.5rem; }
  & p { color: #666; margin-bottom: 3rem; }
}

.progress-labels {
  display: flex; justify-content: space-between; margin-bottom: 0.5rem;
  font-size: 0.9rem; color: #888; font-weight: 500; padding: 0 4px;
}

.progress-track {
  position: relative; height: 24px; background-color: #EBF2F7;
  border-radius: 99px; overflow: visible;
}

.progress-fill {
  height: 100%; background: linear-gradient(90deg, #51CBFF 0%, #132739 100%);
  border-radius: 99px; position: relative; width: 0;
  transition: width 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.progress-dot {
  position: absolute; right: 0; top: 50%; transform: translate(50%, -50%);
  width: 32px; height: 32px; background-color: #fff;
  border: 4px solid #132739; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 2;
}

.label-current {
  position: absolute; right: 0; bottom: 140%; transform: translateX(50%);
  color: var(--text-main); font-size: 1.1rem; white-space: nowrap;
  
  & strong { display: block; font-size: 1.4rem; line-height: 1; }
}

@media (min-width: 769px) {
  #ernaehrung .nutrition-egg { width: 55%; left: auto; right: 0; top: 0; bottom: 0; height: 100%; }
}

@media (max-width: 900px) {
  .plan-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .plan-section { margin-top: 1rem; padding: 1rem; }
}

@media (max-width: 768px) {
  .step-card { width: 95%; height: 45vh; border-radius: 24px; flex-direction: column; }

  .training-step__content {
    flex-direction: column-reverse; padding: 2rem 1.5rem;
    justify-content: flex-end; gap: 1rem; text-align: center;
  }

  .training-step__text {
    flex: 0 0 auto; width: 100%; background: transparent;
    padding: 0; border-radius: 0; backdrop-filter: none;
    
    & h3, & p { text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
  }

  .training-step__illustration { position: absolute; top: 0; height: 60%; opacity: 1; }
  
  .nutrition-egg { width: 100%; left: 0; position: absolute; top: 0; height: 100%; }
  
  .progress-card-wrapper { padding: 2rem 1.5rem; }
  .label-current strong { font-size: 1.2rem; }
  
  .interval-heart { top: 20%; right: 5%; max-width: 25%; }
}

@media (max-width: 700px) {
  .plan-section { padding-left: 1rem; padding-right: 1rem; }
  .plan-card { padding: 1.25rem; gap: 1.5rem; }

  .modern-table {
    & thead { display: none; }
    & tbody tr { display: flex; flex-direction: column; position: relative; padding: 1.25rem 0; border-bottom: 1px solid #eee; width: 100%; }
    & tbody tr:last-child { border-bottom: none; }
    & td { display: block; padding: 0 !important; border: none !important; width: 100%; }
    
    & td:nth-child(1) { font-size: 0.8rem; text-transform: uppercase; color: #999; font-weight: 700; margin-bottom: 0.25rem; }
    & td:nth-child(2) { font-size: 1.1rem; padding-right: 110px !important; box-sizing: border-box; }
    & td:nth-child(2) small { font-size: 0.95rem; color: #666; margin-top: 4px; display: block; }
    
    & td:nth-child(3) { position: absolute; top: 1.25rem; right: 0; width: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .training-step { min-height: auto !important; margin-bottom: 2rem !important; }
  .sticky-wrapper { position: static !important; height: auto !important; padding: 2rem 0; }
  .step-card { opacity: 1 !important; transform: none !important; }
  .progress-fill { transition: none !important; width: 71% !important; }
  .fade-in-up { animation: none; opacity: 1; transform: none; }
}