/* Strace – Website
   Farben: Schwarz wie die App, Lila = Marke/Bedienung, Grün NUR für abgehakte Sätze,
   Gold NUR für Rekorde. Eine Schrift (Archivo), Persönlichkeit über die Breite (wdth). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --black: #000000;
  --graphite: #141416;
  --graphite-2: #1c1c1f;
  --rule: #2b2b30;
  --chalk: #f3f3f5;
  --steel: #9d9da7;
  --lilac: #b7a6ff;
  --lilac-deep: #8f7cf0;
  --green: #32d15d;
  --gold: #ffc53d;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;

  --t-body: 1.125rem;   /* 18 */
  --t-small: 0.9375rem; /* 15 */
  --t-lead: clamp(1.1875rem, 1.6vw, 1.375rem);
  --t-h3: clamp(1.5rem, 2.4vw, 2rem);
  --t-h2: clamp(2.375rem, 5.6vw, 4.5rem);
  --t-display: clamp(4rem, 12.4vw, 10.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--chalk);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--lilac) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--lilac); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--lilac); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografie ---------- */
.display {
  font-size: var(--t-display);
  line-height: 0.86;
  font-weight: 860;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.035em;
  margin-bottom: 0.32em;
}
.h2 {
  font-size: var(--t-h2);
  line-height: 0.95;
  font-weight: 820;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.025em;
}
.h3 {
  font-size: var(--t-h3);
  line-height: 1.12;
  font-weight: 720;
  font-variation-settings: "wdth" 106;
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}
.lead { font-size: var(--t-lead); color: #d6d6dc; max-width: 34em; margin-bottom: 1.6em; }

/* ---------- Knöpfe ---------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--radius-s);
  background: var(--lilac);
  color: #0a0716;
  font: inherit;
  font-weight: 720;
  font-variation-settings: "wdth" 108;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: #c9bcff; color: #0a0716; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: var(--t-small); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-variation-settings: "wdth" 118; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.brand:hover { color: var(--chalk); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.brand + .btn--small { margin-left: auto; }
.nav__links a { text-decoration: none; color: #cfcfd6; font-size: var(--t-small); font-weight: 560; }
.nav__links a:hover { color: var(--chalk); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

/* Anmeldung */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 540px; }
.signup input {
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--rule);
  background: var(--graphite);
  color: var(--chalk);
  font: inherit;
  min-width: 0;
}
.signup input::placeholder { color: #6f6f79; }
.signup input:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lilac) 30%, transparent); }
.signup input[aria-invalid="true"] { border-color: #ff6b6b; }
.signup__note { grid-column: 1 / -1; margin: 4px 0 0; font-size: var(--t-small); color: var(--steel); }
.signup__note.is-ok { color: var(--chalk); }
.signup__note.is-error { color: #ff8f8f; }
.signup.is-done input, .signup.is-done button { display: none; }
.signup button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Trainingslog (Hero-Demo) ---------- */
.log {
  background: var(--graphite);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.4vw, 28px);
  font-variant-numeric: tabular-nums;
}
.log__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 22px; }
.log__thumb { width: 56px; height: 56px; border-radius: 14px; background: #ececf1; display: grid; place-items: center; }
.log__thumb svg { width: 36px; fill: #4a4a55; }
.log__title { margin: 0; font-size: 1.375rem; font-weight: 760; font-variation-settings: "wdth" 108; line-height: 1.15; }
.log__sub { margin: 0; color: var(--steel); font-size: var(--t-small); }
.log__vol { margin: 0; text-align: right; line-height: 1.2; }
.log__vol span { display: block; color: var(--steel); font-size: 0.8125rem; }
.log__vol strong { font-size: 1.125rem; font-weight: 760; font-variation-settings: "wdth" 112; }

.log__cols, .row { display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.85fr) 48px; gap: 10px; align-items: center; }
.log__cols { padding: 0 13px 8px; color: #73737d; font-size: 0.8125rem; font-weight: 650; }
.log__cols span:first-child, .log__cols span:nth-child(2) { text-align: center; }
.log__cols span:nth-child(3), .log__cols span:nth-child(4) { padding-left: 15px; }
.log__ck { display: grid; place-items: center; }
.log__ck svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.log__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.row {
  padding: 10px 12px;
  border-radius: var(--radius-m);
  border: 1px solid var(--rule);
  background: #101012;
  transition: background-color .3s ease, border-color .3s ease;
}
.row__n {
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #26262b;
  border: 1px solid #36363c;
  font-weight: 720;
}
.row__prev { color: #77777f; text-align: center; white-space: nowrap; }
.row__f {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #050506;
  border: 1px solid #34343a;
  font-weight: 720;
  font-size: 1.1875rem;
}
.row__check {
  appearance: none;
  width: 44px;
  height: 44px;
  justify-self: end;
  border-radius: 11px;
  border: 2px solid #6d6d77;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background-color .2s ease, border-color .2s ease, transform .12s ease;
}
.row__check svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .28s ease .05s; }
.row__check:hover { border-color: var(--lilac); }
.row__check:active { transform: scale(.92); }
.row.is-done { background: color-mix(in srgb, var(--green) 13%, #0b0b0c); border-color: var(--green); }
.row.is-done .row__check { background: var(--green); border-color: var(--green); }
.row.is-done .row__check svg { stroke-dashoffset: 0; }
.row.is-waiting .row__check { border-color: var(--lilac); animation: wait 1.6s ease-in-out infinite; }
@keyframes wait { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lilac) 55%, transparent); } 60% { box-shadow: 0 0 0 10px transparent; } }
.row.is-pr { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 28px -4px color-mix(in srgb, var(--gold) 55%, transparent); }

.log__pr {
  margin: 16px 0 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  font-variation-settings: "wdth" 112;
  color: var(--gold);
  font-size: 1.125rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.log__pr.is-on { opacity: 1; transform: none; }
.log__pr svg { width: 28px; height: 28px; flex: none; fill: var(--gold); }
.log__hint { margin: 2px 0 0; color: var(--steel); font-size: var(--t-small); }
.log.is-complete .log__hint { visibility: hidden; }

/* ---------- Eine App statt fünf ---------- */
.ledger { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.ledger__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ledger__intro { color: #d0d0d7; max-width: 36em; margin-bottom: 2em; }
.ledger__table { width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.ledger__table th { text-align: left; color: var(--steel); font-weight: 600; font-size: var(--t-small); padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.ledger__table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger__table td:first-child { width: 44%; color: #7c7c86; }
.ledger__table s { text-decoration-thickness: 2px; text-decoration-color: #5d5d66; }
.ledger__table td:last-child { font-weight: 620; }

/* ---------- Funktionen ---------- */
.features { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.features .h2 { margin-bottom: 36px; }
.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--graphite);
  border: 1px solid var(--rule);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.tabs__list button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  background: transparent;
  color: #b4b4bd;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-variation-settings: "wdth" 106;
  transition: background-color .2s ease, color .2s ease;
}
.tabs__list button:hover { color: var(--chalk); }
.tabs__list button[aria-selected="true"] { background: var(--chalk); color: #000; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__text { max-width: 36em; }
.panel__text > p { color: #d0d0d7; }

.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--lilac);
}
.ticks b { font-weight: 720; }

.phone {
  margin: 0;
  width: clamp(240px, 26vw, 330px);
  padding: 10px;
  border-radius: 48px;
  background: #1a1a1d;
  border: 1px solid #34343a;
  box-shadow: 0 40px 80px -30px rgba(120, 100, 255, .28);
}
.phone img { border-radius: 38px; width: 100%; }

/* ---------- Pro ---------- */
.pro { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.pro__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px; margin-top: clamp(32px, 4vw, 56px); align-items: stretch; }
.plan { border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 40px); }
.plan--pro { border-color: var(--lilac-deep); background: linear-gradient(180deg, color-mix(in srgb, var(--lilac) 9%, var(--black)), var(--black) 70%); }
.plan__name { font-size: 1.5rem; font-variation-settings: "wdth" 115; font-weight: 800; margin-bottom: 16px; }
.plan__price { margin: 0 0 6px; color: var(--steel); }
.plan__price strong { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--chalk); font-weight: 840; font-variation-settings: "wdth" 120; letter-spacing: -0.02em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.plan__desc { color: #cfcfd6; min-height: 1.55em; }
.plan__fine { margin: 24px 0 0; color: var(--steel); font-size: var(--t-small); }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: #121214; border: 1px solid var(--rule); margin-bottom: 22px; flex-wrap: wrap; }
.seg button { appearance: none; border: 0; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 10px; background: transparent; color: #b4b4bd; font: inherit; font-size: var(--t-small); font-weight: 650; }
.seg button[aria-checked="true"] { background: var(--lilac); color: #0a0716; }

/* ---------- Warum ---------- */
.why { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.why__quote { margin: 0; font-size: clamp(1.375rem, 2.3vw, 1.875rem); line-height: 1.38; font-weight: 500; letter-spacing: -0.005em; }
.why__quote p { margin-bottom: 0.9em; max-width: 30em; }
.why__quote footer { margin-top: 1.4em; font-size: var(--t-body); color: var(--steel); font-weight: 560; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list details:first-child { border-top: 1px solid var(--rule); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  position: relative;
  font-size: 1.25rem;
  font-weight: 680;
  font-variation-settings: "wdth" 104;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--lilac);
  transition: transform .2s ease;
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details p { color: #d0d0d7; max-width: 38em; padding-bottom: 8px; }

/* ---------- Warteliste ---------- */
.cta { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--rule); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.display--cta { font-size: clamp(3rem, 7.6vw, 6.75rem); margin: 0; }
.social { margin: 28px 0 0; color: var(--steel); }
.social a { color: var(--chalk); font-weight: 650; }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--rule); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--steel); font-size: var(--t-small); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand--foot { margin: 0; color: var(--chalk); font-size: 1.0625rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { text-decoration: none; color: #c4c4cc; }
.foot nav a:hover { color: var(--chalk); }
.foot__c { margin: 0 0 0 auto; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.legal__in { max-width: 760px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 0.95; font-variation-settings: "wdth" 120; font-weight: 840; letter-spacing: -0.025em; margin-bottom: 14px; }
.legal__date { color: var(--steel); margin-bottom: 40px; }
.legal h2 { font-size: 1.375rem; font-variation-settings: "wdth" 108; font-weight: 740; margin: 40px 0 10px; }
.legal p, .legal li { color: #d6d6dc; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.45em; }
.legal h2.legal__part { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-variation-settings: "wdth" 118; font-weight: 820; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--rule); }
.legal section h2:first-child { margin-top: 0; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--steel); text-decoration: none; }
.legal .back:hover { color: var(--chalk); }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero__grid, .ledger__grid, .why__grid, .faq__grid, .cta__grid, .pro__grid { grid-template-columns: minmax(0, 1fr); }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .phone { justify-self: center; }
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
}
@media (max-width: 560px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
  .signup .btn { width: 100%; }
  .log__cols, .row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.8fr) 44px; gap: 8px; }
  .row { padding: 8px 9px; }
  .row__f { padding: 0 10px; font-size: 1.0625rem; height: 42px; }
  .row__check { width: 42px; height: 42px; }
  .log__cols { padding: 0 10px 8px; }
  .log__head { grid-template-columns: auto 1fr; }
  .log__vol { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .log__vol span { display: inline; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 0; padding: 0 8px; }
  .tabs__list { display: flex; border-radius: 22px; }
  .tabs__list button { flex: 1 1 auto; padding: 0 14px; }
  .ledger__table td:first-child { width: 42%; }
  .foot__c { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Impressum: aufklappbare Punkte ---------- */
.legal__lead { color: var(--steel); max-width: 38em; }
.legal__acc { margin-top: 28px; }
.legal__acc summary { font-size: 1.1rem; }
.legal__acc details[open] { padding-bottom: 14px; }
.legal__acc summary:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; border-radius: 4px; }
