/* Neue Darstellung «Neu». Alle Regeln gelten nur, wenn <html> die Klasse "neu" trägt.
   Das Original (styles.css) bleibt unverändert. Plan: design-system/squad-coach/DESIGNPLAN.md */

html.neu {
  color-scheme: dark;
  --n-bg: #081017;
  --n-raise: #101a22;
  --n-line: #26313a;
  --n-edge: #7a8995;
  --n-text: #f5f7f8;
  --n-soft: #a9b3bb;
  --n-body: #c5cdd3;
  --n-set-edge: #6b7882;
  --n-gap: clamp(1.25rem, 3vw, 2.5rem);
  scroll-padding-top: 5.5rem;
}

.neu body {
  background: var(--n-bg);
  color: var(--n-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

.neu ::selection {
  background: var(--neon);
  color: var(--ink);
}

.neu a {
  text-underline-offset: 0.2em;
}

.neu button,
.neu .btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.neu p {
  text-wrap: pretty;
}

.neu :focus-visible,
.neu .section :focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
}

.neu .phone :focus-visible,
.neu .plan.is-featured :focus-visible {
  outline-color: var(--ink);
}

.neu .btn-primary:focus-visible {
  outline-color: #fff;
}

.neu main {
  outline: none;
}

/* Kopf: ganze Navigation, Hauptknopf rechts */

.neu .werkzeug {
  background: #050b10;
}

.neu .site-header {
  background: rgb(8 16 23 / 0.95);
  border-bottom: 1px solid var(--n-line);
}

.neu .header-row {
  gap: 1rem;
  min-height: 4.25rem;
}

.neu .header-row nav {
  margin-left: auto;
}

.neu .nav-list {
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

.neu .nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  color: var(--n-soft);
  font-size: 1.0625rem;
}

.neu .nav-list a:hover,
.neu .nav-list a[aria-current] {
  color: #fff;
}

.neu .nav-list a[aria-current]::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--neon);
}

.neu .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 0.375rem;
  background: var(--neon);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.neu .nav-cta:hover {
  background: #c2ff38;
}

/* Knöpfe */

.neu .btn {
  min-height: 2.75rem;
}

.neu .btn-ghost {
  border-color: var(--n-edge);
}

.neu .btn-ghost:hover {
  border-color: #fff;
}

.neu .btn-outline {
  border-color: var(--n-soft);
  color: #fff;
}

.neu .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* Hero */

.neu .hero {
  background: var(--n-bg);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
}

.neu .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.neu .hero h1 {
  font-size: clamp(3.25rem, 13vw, 7rem);
  line-height: 0.95;
}

.neu .hero h1 .line {
  display: block;
  text-wrap: balance;
}

.neu .hero-text {
  color: var(--n-body);
}

.neu .hero-hint {
  display: none;
}

.neu .hero-demo {
  justify-items: center;
}

.neu .phone-hint {
  display: block;
  margin-bottom: 1rem;
  color: var(--n-soft);
  font-weight: 500;
  text-align: center;
}

.neu .phone-hint::before {
  content: '';
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--neon);
}

/* Handy mit der Einheit: aufrecht, grosse Trefferflächen */

.neu .phone {
  width: min(100%, 22rem);
  background: #16222c;
  box-shadow: 0 0 0 1px #2e3c48;
  transform: none;
}

.neu .phone-screen {
  min-height: 0;
  padding: 1.5rem 1.25rem;
}

.neu .session-day,
.neu .session-meta,
.neu .exercise-detail,
.neu .session-status,
.neu .session-load {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.neu .progress {
  height: 0.625rem;
  background: #c7d0d6;
}

.neu .progress span {
  background: #3d7a00;
}

.neu .exercise {
  display: block;
}

.neu .sets {
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.neu .set {
  width: 3rem;
  height: 3rem;
  border-color: var(--n-set-edge);
  font-size: 1.0625rem;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.neu .set[aria-pressed='true'] {
  transform: none;
}

.neu .rpe {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.neu .rpe-btn {
  min-height: 2.75rem;
  border-color: var(--n-set-edge);
  font-size: 1.0625rem;
}

/* Abschnitte: Titel links, Einleitung rechts */

.neu .section {
  background: var(--n-bg);
  border-top: 1px solid var(--n-line);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.neu .section-tint {
  background: var(--n-raise);
}

.neu :where(#funktionen, #ablauf, #video, #preise) > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 3rem;
  align-items: end;
}

.neu :where(#funktionen, #ablauf, #video, #preise) > .wrap > * {
  grid-column: 1 / -1;
}

.neu .section > .wrap > .section-title {
  grid-column: 1;
}

.neu .section > .wrap > .section-intro {
  grid-column: 2;
  align-self: end;
  margin-top: 0;
  padding-bottom: 0.35rem;
}

.neu .section-title {
  max-width: none;
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
}

.neu .section-intro {
  margin-top: 1rem;
  color: var(--n-soft);
  font-size: 1.1875rem;
}

/* Funktionen: offene Listen, erster Eintrag gross */

.neu .feature-group h3 {
  border-bottom: 2px solid var(--n-edge);
  color: #fff;
}

.neu .feature-group h3 span {
  color: var(--n-soft);
}

.neu .feature {
  border-bottom: 1px solid var(--n-line);
}

.neu .feature dt {
  color: #fff;
  font-size: 1.1875rem;
}

.neu .feature dd {
  color: var(--n-soft);
}

.neu .feature:first-child dt {
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.neu .feature:first-child dd {
  color: var(--n-body);
  font-size: 1.1875rem;
}

/* Ablauf: verbundene Satz-Kreise */

.neu .steps {
  --step-circle: 3.25rem;
  gap: var(--n-gap);
}

.neu .steps li {
  position: relative;
  padding-top: 0;
  border-top: 0;
}

.neu .steps li::before {
  display: grid;
  place-items: center;
  width: var(--step-circle);
  height: var(--step-circle);
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--neon);
  color: var(--ink);
  font-size: 1.75rem;
  -webkit-text-stroke: 0;
}

.neu .steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--step-circle) / 2 - 1px);
  left: calc(var(--step-circle) + 0.5rem);
  width: calc(100% - var(--step-circle) - 0.5rem + var(--n-gap) - 0.5rem);
  height: 2px;
  background: var(--n-edge);
}

.neu .steps h3 {
  color: #fff;
  font-size: 1.25rem;
}

.neu .steps p {
  color: var(--n-soft);
}

/* Trainingslast */

.neu .load-facts > div {
  border-top: 1px solid var(--n-line);
}

.neu .load-facts dt {
  color: var(--n-soft);
  font-size: 1rem;
}

.neu .load-facts strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.neu .load-facts dd {
  color: var(--n-body);
}

.neu .chart {
  background: var(--n-raise);
  border: 1px solid var(--n-line);
}

.neu .bar-value,
.neu .bar-label {
  font-size: 1rem;
  color: var(--n-soft);
}

.neu .bar-col.is-flag .bar {
  background: repeating-linear-gradient(135deg, var(--warn) 0 0.45rem, #ffc2a8 0.45rem 0.9rem);
}

.neu .bar-col.is-flag .bar-value {
  color: #fff;
}

.neu .chart figcaption {
  font-size: 1rem;
  color: var(--n-soft);
}

/* Video */

.neu .section-dark {
  background: #050b10;
}

.neu .section-dark .section-title {
  color: #fff;
}

.neu .video-figure video {
  border-color: var(--n-line);
}

.neu .video-figure figcaption {
  font-size: 1rem;
  color: var(--n-soft);
}

/* Preise */

.neu .plans {
  gap: var(--n-gap);
}

.neu .plan {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--n-edge);
  background: transparent;
}

.neu .plan h3 {
  color: #fff;
}

.neu .plan-amount {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.neu .plan-price,
.neu .plan-text {
  color: var(--n-soft);
}

.neu .plan li {
  border-top-color: rgb(255 255 255 / 0.16);
}

.neu .plan.is-featured {
  border: 1px solid var(--neon);
  background: var(--neon);
  color: var(--ink);
}

.neu .plan.is-featured h3,
.neu .plan.is-featured .plan-amount {
  color: var(--ink);
}

.neu .plan.is-featured li {
  border-top-color: rgb(8 16 23 / 0.25);
}

/* Meldung der Testen-Knöpfe: am unteren Bildrand, damit man sie sieht */

.neu .trial-message {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  width: min(calc(100% - 2rem), 32rem);
  margin: 0;
  padding: 1rem 1.25rem;
  border: 2px solid var(--neon);
  border-radius: 0.5rem;
  background: var(--n-raise);
  color: #fff;
  font-size: 1.0625rem;
  transform: translateX(-50%);
}

/* Fusszeile */

.neu .site-footer {
  background: var(--n-raise);
  border-top: 1px solid var(--n-line);
  color: var(--n-soft);
}

.neu .pipeline dd {
  font-variant-numeric: tabular-nums;
}

.neu .pipeline code {
  font-size: 1rem;
}

/* Mittlere Breiten: Diagramm mit waagrechten Balken, damit Zahlen lesbar bleiben */

@media (max-width: 64rem) {
  .neu .bars {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 0.5rem;
  }

  .neu .bar-col {
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.5rem;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }

  .neu .bar-label {
    order: -1;
    writing-mode: horizontal-tb;
    justify-self: start;
  }

  .neu .bar {
    align-self: center;
    width: calc(var(--v) * 1%);
    height: 1.25rem !important;
    border-radius: 0 0.2rem 0.2rem 0;
  }

  .neu .bar-value {
    order: 1;
    text-align: right;
  }
}

/* Schmale Bildschirme */

@media (max-width: 60rem) {
  .neu .steps li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 48rem) {
  html.neu {
    scroll-padding-top: 1rem;
  }

  .neu :where(#funktionen, #ablauf, #video, #preise) > .wrap {
    display: block;
  }

  .neu .section > .wrap > .section-intro {
    margin-top: 1rem;
    padding-bottom: 0;
  }

  .neu .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Kopf scrollt mit; die Navigation ist eine eigene Zeile mit allen vier Links */
  .neu .site-header {
    position: static;
  }

  .neu .header-row {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 0.5rem 0;
  }

  .neu .logo {
    display: block;
  }

  .neu .nav-cta {
    margin-left: auto;
  }

  .neu .header-row nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .neu .nav-list {
    gap: 1.1rem;
    width: max-content;
  }

  .neu .nav-list a {
    padding: 0;
    font-size: 1rem;
  }

  .neu .nav-list a[aria-current]::after {
    left: 0;
    right: 0;
  }

  .neu .nav-list li:nth-child(n + 3) {
    display: list-item;
  }
}

@media (max-width: 30rem) {
  .neu .steps {
    gap: 1.75rem;
  }

  .neu .steps li {
    min-height: var(--step-circle);
    padding-left: calc(var(--step-circle) + 1rem);
  }

  .neu .steps li::before {
    position: absolute;
    top: 0;
    left: 0;
  }

  .neu .steps li:not(:last-child)::after {
    display: block;
    top: calc(var(--step-circle) + 0.5rem);
    left: calc(var(--step-circle) / 2 - 1px);
    width: 2px;
    height: calc(100% - var(--step-circle) - 0.5rem + 1.75rem - 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .neu .set {
    transition: none;
  }
}
