/* Layout: dunkle Bühne, eine steigende orange Diagonale aus dem Logo als einziges großes Motiv;
   Weiche „Ich trainiere / Ich betreibe ein Studio“ schaltet zwischen zwei Pfaden. Bewusst nur Dark Mode (CI 1.0). */
:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #191919;
  --raised: #222222;
  --hover: #2A2A2A;
  --text: #F7F7F5;
  --muted: #B0B4BB;
  --line: #353535;
  --control: #777777;
  --brand: #FF8917;
  --brand-hover: #FFA13D;
  --brand-pressed: #E77508;
  --on-brand: #111111;
  --brand-subtle: #2C2015;
  --info: #7DB3FF;
  --success: #72D7A2;
  --success-bg: #16291F;
  --focus: #A8CDFF;
  --danger: #FF9292;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-control: 10px;
  --max: 1200px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.subpage { padding-block: 72px 96px; }
.subpage .wrap { max-width: calc(46rem + 64px); }
.subpage h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.subpage p { color: var(--muted); font-size: 1.1rem; }
.subpage .btn { margin-top: 16px; }
.subpage ul { color: var(--muted); }
.subpage h2 { font-size: 1.35rem; margin: 40px 0 8px; scroll-margin-top: 100px; }
.subpage li { margin-bottom: 6px; }
.subpage p a, .subpage li a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a { color: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 64px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* Kopfzeile */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgb(17 17 17 / 88%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.top .logo img { width: 132px; height: auto; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.top nav a:hover { color: var(--text); background: var(--hover); }
@media (max-width: 720px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--radius-control);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-pressed); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--control); }
.btn-ghost:hover { background: var(--hover); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  /* die steigende Diagonale des Zeichens, groß und angeschnitten */
  content: ""; position: absolute; z-index: -1;
  right: -8%; top: -10%; width: 62%; height: 130%;
  background: var(--brand);
  clip-path: polygon(58% 100%, 100% 0, 100% 22%, 74% 100%);
  opacity: .92;
}
.hero .wrap {
  display: grid; gap: 48px; align-items: center;
  padding-block: 56px 72px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-block: 88px 104px; }
}
.eyebrow {
  margin: 0 0 16px; color: var(--brand); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem); line-height: .98; font-weight: 800; letter-spacing: -.04em;
}
h1 .accent { color: var(--brand); }
.lead { margin: 24px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* Weiche */
.switch-intro { margin: 40px 0 12px; font-weight: 600; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
@media (max-width: 420px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.path-card {
  display: grid; gap: 6px; text-align: left; text-decoration: none;
  padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), transform 150ms var(--ease);
}
.path-card:hover { border-color: var(--brand); background: var(--raised); }
.path-card .k { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.path-card .t { font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.path-card .t svg { flex: none; color: var(--brand); transition: transform 150ms var(--ease); }
.path-card:hover .t svg { transform: translateX(3px); }
.path-card[aria-current="true"] { border-color: var(--brand); background: var(--brand-subtle); }

/* Gerätemockups */
.stage { position: relative; min-height: 420px; }
.browser {
  border-radius: 12px; overflow: hidden; background: var(--surface);
  border: 1px solid #3a3a3a; box-shadow: 0 30px 80px rgb(0 0 0 / 55%);
}
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: var(--raised); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4a4a; }
.browser .bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.phone {
  width: 100%; max-width: 280px; aspect-ratio: 390 / 844;
  border-radius: 40px; padding: 10px; background: #050505;
  border: 1px solid #3a3a3a; box-shadow: 0 30px 70px rgb(0 0 0 / 60%);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.stage .browser { position: absolute; right: -14%; top: 4%; width: 118%; max-width: none; }
.stage .phone { position: relative; z-index: 2; margin-left: 2%; max-width: 250px; }
@media (max-width: 999px) {
  .hero::before { top: auto; bottom: 0; height: 46%; width: 90%; right: -20%; }
  .stage { min-height: 0; display: flex; justify-content: center; }
  .stage .browser { display: none; }
  .stage .phone { margin: 0; max-width: 260px; }
}

/* Abschnitte */
section { scroll-margin-top: 80px; }
.section { padding-block: 88px; }
.section-tight { padding-block: 64px; }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: 48px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* Pfadumschalter */
.pathbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 15;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.pathbar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.pathbar .label { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .pathbar { position: static; } }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button {
  font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer;
  min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted);
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

html[data-path="studio"] [data-panel="mitglied"],
html[data-path="mitglied"] [data-panel="studio"] { display: none; }

/* Funktionsliste */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.feature svg { color: var(--brand); }
.feature h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Galerie */
.gallery { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 72px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.gallery .phone { max-width: 240px; border-radius: 32px; padding: 8px; }
.gallery .phone img { border-radius: 24px; }
.gallery figcaption { text-align: center; font-size: .92rem; color: var(--muted); max-width: 22ch; }
.gallery figcaption b { display: block; color: var(--text); font-weight: 650; }

.desk-gallery { display: grid; gap: 40px; margin-top: 72px; }
.desk-row { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .desk-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; }
  .desk-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .desk-row.flip .browser { order: 2; }
}
.desk-row h3 { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px; }
.desk-row p { margin: 0; color: var(--muted); }
.desk-row ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.desk-row li { display: flex; gap: 10px; align-items: baseline; }
.desk-row li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--brand); transform: translateY(-4px) rotate(-30deg); }

/* Satz-fertig-Demo */
.tryout { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); margin-top: 72px; }
@media (min-width: 900px) { .tryout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; } }
.tryout h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tryout > div > p { color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.set-card { background: var(--brand-subtle); border: 1px solid #5a3a14; border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.set-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.set-card .row b { font-size: 1.15rem; }
.set-card .row span { color: var(--brand); font-size: .9rem; }
.set-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.set-values div { background: var(--bg); border: 1px solid var(--control); border-radius: var(--radius-control); padding: 10px 12px; }
.set-values small { display: block; color: var(--muted); font-size: .78rem; }
.set-values strong { white-space: nowrap; font-size: clamp(1.05rem, 4.2vw, 1.35rem); font-variant-numeric: tabular-nums; }
.done-btn {
  font: inherit; font-weight: 650; font-size: 1.05rem; cursor: pointer; min-height: 52px; width: 100%;
  border-radius: var(--radius-control); border: 1px solid #8a5414; background: #3a2612; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.done-btn:hover { background: #4a3016; }
.done-btn[aria-pressed="true"] { background: var(--success-bg); color: var(--success); border-color: #2f6e4c; }
.timer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #142033; border: 1px solid #2a4a7a; border-radius: var(--radius-control); padding: 10px 12px;
}
.timer .time { font-size: 1.6rem; font-weight: 700; color: var(--info); font-variant-numeric: tabular-nums; margin-right: auto; display: inline-flex; gap: 8px; align-items: center; }
.timer button {
  font: inherit; font-size: .9rem; cursor: pointer; min-height: 44px; min-width: 56px; padding: 6px 10px;
  border-radius: 8px; border: 1px solid var(--control); background: transparent; color: var(--text);
}
.timer button:hover { background: var(--hover); }
.set-hint { margin: 0; font-size: .85rem; color: var(--muted); }

/* Studio-Blick */
.glance { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.glance div { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.glance b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.glance span { color: var(--muted); font-size: .95rem; }

/* Ehrlicher Hinweis für Mitglieder */
.notice {
  margin-top: 72px; display: grid; gap: 24px; align-items: center;
  padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .notice { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 44px; } }
.notice h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.notice p { margin: 10px 0 0; color: var(--muted); max-width: 40em; }
.notice .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.features-spaced { margin-top: 72px; }
.faq-title { margin-top: 72px; font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 650; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; flex: none; transition: transform 150ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; color: var(--muted); max-width: 44em; }

/* Vertrauen */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.trust-grid div { display: grid; gap: 8px; align-content: start; }
.trust-grid svg { color: var(--brand); }
.trust-grid b { font-size: 1.05rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Kontakt */
.contact { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.contact-copy p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }
form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
@media (max-width: 480px) { form { padding: 20px; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.radio-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .radio-row { grid-template-columns: minmax(0, 1fr); } }
.radio-row label {
  display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 10px 14px; cursor: pointer;
  border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--bg); font-weight: 600;
}
.radio-row input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-subtle); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
.two { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
input[type=text], input[type=email], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--control); border-radius: var(--radius-control);
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8e95; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .88rem; color: var(--muted); margin: 0; padding: 12px 14px; border: 1px solid var(--control); border-radius: var(--radius-control); }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--radius-control); background: var(--success-bg); color: var(--success); border: 1px solid #2f6e4c; }
.form-status.is-error { background: #2E1717; color: var(--danger); border-color: #7a3434; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
button[disabled] { opacity: .6; cursor: progress; }

/* Rechtliches */
.legal { border-top: 1px solid var(--line); }
.legal-grid { display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.legal p { margin: 0; color: var(--muted); }
#impressum, #datenschutz { scroll-margin-top: 140px; }

/* Fuß */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-block: 36px 48px; }
footer img { width: 120px; height: auto; }
footer p { margin: 0; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--muted); font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
footer nav a:hover { color: var(--text); }

/* Einblenden: Ruhezustand ist sichtbar, nur eine leichte Bewegung beim ersten Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .switch-intro, .hero .paths { animation: rise 600ms var(--ease) both; }
  .hero .lead { animation-delay: 80ms; }
  .hero .switch-intro, .hero .paths { animation-delay: 160ms; }
  .hero .stage { animation: rise 800ms var(--ease) 120ms both; }
  @keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
