/* Swim Timing – Landingpage. Farben folgen dem dunklen Farbschema der App. */
:root {
  --bg: #000;
  --surface: #0b0f14;
  --surface-2: #161b22;
  --line: #232a33;
  --text: #fff;
  --muted: #9aa1ab;
  --cyan: #29d3ff;
  --amber: #ffc400;
  --good: #3ddc84;
  --bad: #ff5468;
  --radius: 18px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 9vw, 5.4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 850; }
h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.accent { color: var(--cyan); }
.dim { color: var(--muted); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding-block: clamp(64px, 10vw, 120px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 2px solid var(--cyan); border-radius: 999px;
  background: var(--cyan); color: #000;
  font: 750 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(41, 211, 255, .6); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .chip input:focus-visible + span, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* ── Hero ── */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(50% 60% at 78% 30%, rgba(41, 211, 255, .22), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(0, 80, 200, .35), transparent 70%);
  pointer-events: none;
}
/* Bahnleinen als Hintergrundmotiv */
.lanes {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(41, 211, 255, .5) 0 14px, transparent 14px 28px);
  background-size: 28px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  animation: rope 1.6s linear infinite;
}
@keyframes rope { to { background-position: 28px 100%; } }

.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.lead { margin-top: 24px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #d5dae1; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* ── Handy-Demo ── */
.phone {
  justify-self: center; width: min(340px, 100%);
  padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #2a323d, #0d1116);
  box-shadow: 0 40px 80px -30px rgba(41, 211, 255, .45), 0 0 0 1px #2e3742;
  transform: rotate(2deg);
}
.phone-screen { background: #000; border-radius: 35px; padding: 22px 16px 16px; overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.demo-rep b { color: var(--text); }
.demo-clock {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 3.1rem; font-weight: 700; letter-spacing: -0.04em;
  text-align: center; margin: 10px 0 12px;
}
.demo-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.demo-lane {
  display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 12px;
  background: var(--surface-2); border: 1.5px solid transparent;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.demo-lane .num { font-family: var(--mono); color: var(--muted); font-size: .78rem; }
.demo-lane .time, .demo-lane .delta { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.demo-lane .time { color: var(--muted); min-width: 4.6ch; text-align: right; }
.demo-lane .delta { font-size: .76rem; min-width: 5.2ch; text-align: right; }
.demo-lane.is-next { border-color: var(--cyan); }
.demo-lane.is-done .time { color: var(--text); }
.demo-lane.is-hit { animation: hit .5s ease-out; }
.delta.good { color: var(--good); }
.delta.slow { color: var(--amber); }
@keyframes hit { 0% { background: var(--cyan); } 100% { background: var(--surface-2); } }

.demo-tap {
  margin-top: 10px; padding: 18px 12px; border-radius: 18px; text-align: center;
  background: rgba(41, 211, 255, .1); border: 1.5px solid rgba(41, 211, 255, .45);
  transition: background .25s, border-color .25s;
}
.demo-tap.is-pressed { background: rgba(41, 211, 255, .38); }
.demo-tap.is-ready { background: rgba(61, 220, 132, .2); border-color: var(--good); }
.demo-tap-label { display: block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.demo-tap-next { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }

/* ── Problem ── */
.problem h2 { max-width: 18em; }
.swap { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 720px) { .swap { grid-template-columns: 1fr 1fr; } }
.swap-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.swap-col h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.swap-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.swap-col li { padding-left: 30px; position: relative; }
.swap-col li::before { position: absolute; left: 0; font-weight: 800; }
.swap-old { color: var(--muted); }
.swap-old h3 { color: var(--muted); }
.swap-old li { text-decoration: line-through; text-decoration-color: rgba(154, 161, 171, .5); }
.swap-old li::before { content: "✕"; color: var(--bad); text-decoration: none; display: inline-block; }
.swap-new { background: linear-gradient(160deg, rgba(41, 211, 255, .14), rgba(41, 211, 255, .03)); border-color: rgba(41, 211, 255, .4); }
.swap-new h3 { color: var(--cyan); }
.swap-new li::before { content: "✓"; color: var(--cyan); }

/* ── Features ── */
.features h2 { max-width: 16em; }
.cards { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } .card-wide { grid-column: 1 / -1; } }
.card {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(41, 211, 255, .5); transform: translateY(-3px); }
.card p { margin-top: 10px; color: #c3c9d1; max-width: 46em; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: rgba(255, 196, 0, .12);
}
.mono-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mono-strip span { font-family: var(--mono); font-size: .95rem; padding: 8px 14px; border-radius: 10px; background: var(--surface-2); color: var(--cyan); }

/* ── Roadmap ── */
.roadmap { background: linear-gradient(180deg, #000, #02101c 50%, #000); }
.roadmap h2 { max-width: 17em; }
.track { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; }
.stop { position: relative; padding: 0 0 36px 34px; border-left: 3px dashed rgba(41, 211, 255, .35); }
.stop:last-child { padding-bottom: 0; border-left-color: transparent; }
.stop::before {
  content: ""; position: absolute; left: -10.5px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #000; border: 3px solid var(--cyan);
}
.stop-now::before { background: var(--cyan); box-shadow: 0 0 0 6px rgba(41, 211, 255, .2); }
.stop-label { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.stop h3 { margin-top: 6px; }
.stop p { margin-top: 8px; color: #c3c9d1; max-width: 38em; }
@media (min-width: 900px) {
  .track { grid-template-columns: repeat(4, 1fr); }
  .stop { padding: 34px 24px 0 0; border-left: 0; border-top: 3px dashed rgba(41, 211, 255, .35); }
  .stop:last-child { border-top-color: rgba(41, 211, 255, .35); }
  .stop::before { left: 0; top: -10.5px; }
}
.roadmap-cta {
  margin-top: 52px; padding: 26px 28px; border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--line);
}
.roadmap-cta p { max-width: 36em; color: #c3c9d1; }
.roadmap-cta strong { color: var(--text); }

/* ── Preis ── */
.price { padding-block: clamp(24px, 5vw, 56px); }
.price-box {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 48px); border-radius: 28px;
  background: var(--cyan); color: #000;
}
@media (min-width: 760px) { .price-box { grid-template-columns: auto 1fr; gap: 56px; } }
.price-figure { display: flex; align-items: center; gap: 16px; }
.price-num { font-size: clamp(4rem, 12vw, 6.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: .9; }
.price-unit { font-weight: 750; line-height: 1.2; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.price-list li { padding-left: 28px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; }

/* ── Formular ── */
.signup-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .signup-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .signup-copy { position: sticky; top: 100px; } }
.signup-copy > p:not(.eyebrow) { margin-top: 18px; color: #c3c9d1; }
.signup-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.signup-points li { padding-left: 28px; position: relative; }
.signup-points li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }

.form {
  padding: clamp(20px, 4vw, 36px); border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 100px -50px rgba(41, 211, 255, .5);
  min-width: 0;
}
.demo-banner { margin-bottom: 18px; padding: 10px 14px; border-radius: 10px; font-size: .86rem; background: rgba(255, 196, 0, .12); color: var(--amber); border: 1px solid rgba(255, 196, 0, .4); }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 33.3%; border-radius: inherit; background: var(--cyan); transition: width .35s ease; }
.progress-text { font-family: var(--mono); font-size: .76rem; color: var(--muted); white-space: nowrap; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
legend { padding: 0; font-size: 1.5rem; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 22px; }

.field { margin-bottom: 26px; }
.field.two { display: grid; gap: 26px; }
@media (min-width: 560px) { .field.two { grid-template-columns: 1fr 1fr; gap: 20px; } }
.label { display: block; font-weight: 700; margin-bottom: 10px; }
.label em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.hint { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.hint b { color: var(--cyan); font-family: var(--mono); font-weight: 600; }

input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--text);
  font: inherit;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-color: var(--cyan); }
textarea { resize: vertical; min-height: 96px; }
::placeholder { color: #6b727c; }
input.is-invalid { border-color: var(--bad); }
.error { margin-top: 8px; font-size: .88rem; color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--line); font-size: .94rem;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.chip:hover span { border-color: var(--cyan); }
.chip input:checked + span { background: var(--cyan); border-color: var(--cyan); color: #000; font-weight: 700; }

.range-row { display: flex; align-items: center; gap: 16px; }
.range-out { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; min-width: 4ch; text-align: right; color: var(--cyan); font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; accent-color: var(--cyan); cursor: pointer; }

.stepper { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); background: var(--surface-2); }
.stepper button { width: 48px; min-height: 48px; border: 0; background: transparent; color: var(--cyan); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: rgba(41, 211, 255, .12); }
.stepper input { width: 60px; border: 0; background: transparent; color: var(--text); text-align: center; font: 700 1.2rem var(--mono); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .94rem; color: #d5dae1; cursor: pointer; }
.stepper-row .check { margin-bottom: 0; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

.done { text-align: center; padding: 24px 0 8px; outline: none; }
.done-clock {
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cyan); color: #000; font: 900 1.7rem var(--mono);
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done h3 { font-size: 1.9rem; }
.done p { margin-top: 10px; color: #c3c9d1; }
.done-share-label { margin-top: 30px !important; font-weight: 700; color: var(--text) !important; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* ── FAQ ── */
.faq { max-width: 780px; padding-top: 0; }
.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--cyan); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: #c3c9d1; max-width: 42em; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 22px; }
.footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: var(--text); }

/* ── Rechtstexte ── */
.legal { max-width: 720px; padding-block: 56px 96px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal p { color: #c3c9d1; margin-bottom: 12px; }
.confirm { text-align: center; padding-top: 72px; }
.confirm .done-clock { margin-bottom: 28px; }
.confirm .share { justify-content: center; margin-top: 28px; }
.legal .todo { padding: 14px 16px; border-radius: 12px; background: rgba(255, 196, 0, .12); border: 1px solid rgba(255, 196, 0, .4); color: var(--amber); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
