/* torvaya.org – gemeinsames Design für alle Seiten.
   Farben wie in der App: Hintergrund #121212, Akzent #00E5A0, Gold #E5B84F. */

:root {
  --bg: #121212;
  --bg-raised: #1b1b1b;
  --bg-card: #202020;
  --line: #2c2c2c;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --gold: #e5b84f;
  --silver: #c9ced6;
  --diamond: #7fd8ff;
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }

.ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  border-top-color: transparent;
  transform: rotate(-45deg);
}

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-muted); white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: #0b0b0b; }
.btn-ghost { border-color: #555; color: var(--text); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- Startbereich ---------- */

.hero { padding: 48px 0 40px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -1px;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero p.lead { font-size: 20px; color: var(--text-muted); margin: 0 0 28px; max-width: 34ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.phone {
  justify-self: center;
  width: min(250px, 70vw);
  border-radius: 36px;
  border: 8px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 229, 160, 0.12), 0 10px 30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Abschnitte ---------- */

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -0.5px; }
.sub { color: var(--text-muted); margin: 0 0 36px; max-width: 60ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 6px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-muted); font-size: 16px; }
.card .icon { font-size: 26px; }

/* Workout als Text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

pre.md {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  font: 15px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #d8d8d8;
  overflow-x: auto;
}
pre.md .h { color: var(--accent); }
pre.md .k { color: var(--gold); }

/* Bildschirmfotos */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.shots img {
  width: 220px;
  flex: none;
  border-radius: 22px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

/* Medaillen */
.medals .card { text-align: center; position: relative; }
.medal {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
}
.m-silver .medal { background: radial-gradient(circle at 35% 30%, #fff, var(--silver) 45%, #7b818a); }
.m-gold .medal { background: radial-gradient(circle at 35% 30%, #fff3c9, var(--gold) 45%, #8a6a1f); }
.m-diamond .medal { background: radial-gradient(circle at 35% 30%, #f1fbff, var(--diamond) 45%, #2f7ea3); }
.price { font-size: 26px; font-weight: 700; margin: 6px 0 14px; }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}
.note { color: var(--text-muted); font-size: 15px; margin-top: 22px; }

/* Schritte (Testen) */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li {
  counter-increment: s;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 70px;
  position: relative;
}
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0b0b;
  font-weight: 700;
  display: grid;
  place-items: center;
}
ol.steps h3 { margin: 0 0 4px; font-size: 18px; }
ol.steps p { margin: 0 0 10px; color: var(--text-muted); }

/* Platzhalter, die vor dem Veröffentlichen ersetzt werden müssen */
.todo {
  background: rgba(229, 184, 79, 0.15);
  color: var(--gold);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 0 6px;
}

/* ---------- Rechtstexte ---------- */

.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; }
.legal .stand { color: var(--text-muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { color: #d4d4d4; }
.legal address {
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 10px 0;
}

/* ---------- Fußzeile ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 15px;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* Kennzeichnung "Beta" (Web-App) */
.beta {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(229, 184, 79, 0.18);
  color: var(--gold);
}
.nav .beta, .btn .beta { font-size: 11px; }
