/* GYMHUB – Landing Page (/)
   Minimalistisches, modernes Mobile-First-Layout.
   Statisch, keine externen Ressourcen (CSP: default-src 'self', font-src 'self'). */

:root {
  --accent: #eeff00;
  --accent-pink: #ff70a6;
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --wrap: 1080px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.03;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.accent {
  color: var(--accent);
}

/* Ruhige Sektion-Kicker ohne Pill-Fläche (keine Konkurrenz zu Buttons) */
.kicker {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--accent);
  color: #000000;
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  min-height: 40px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 600;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* Store-Button-Paar: mobil 2 gleich breite Buttons nebeneinander, auf Kleinstscreens gestapelt */
.store-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 350px) {
  .store-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .store-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav__links {
  display: none;
  gap: 28px;
  margin: 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.nav__links a {
  padding: 8px 0;
  transition: color 0.16s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-toggle {
  min-width: 44px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 36px 0 56px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

/* Marken-Lockup: nur die Tagline (Haltung) – keine Leitidee-Zeile mehr */
.hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hero__tagline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

@media (min-width: 520px) {
  .hero__lockup {
    margin-bottom: 22px;
  }
}

.hero h1 {
  font-size: clamp(38px, 10vw, 66px);
}

.hero h1 .accent {
  transition: color 0.65s ease-in-out;
}

.hero .btn--primary {
  transition: opacity 0.18s ease, background-color 0.65s ease-in-out, border-color 0.18s ease,
    transform 0.15s ease;
}

.hero[data-hero-theme="pink"] h1 .accent {
  color: var(--accent-pink);
}

.hero[data-hero-theme="pink"] .btn--primary {
  background: var(--accent-pink);
}

.hero[data-hero-theme="pink"] :focus-visible {
  outline-color: var(--accent-pink);
}

.hero__lead {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  margin-top: 28px;
}

.hero__note {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
}

/* ---------- Phone frames ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 248px;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: #0d0d0d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  /* Exakt das Seitenverhältnis der App-Screenshots (1080 × 2424 px) */
  aspect-ratio: 45 / 101;
  border-radius: 28px;
  background: #060606;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone__slide--pink {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease-in-out;
  will-change: opacity;
}

.hero[data-hero-theme="pink"] .phone__slide--pink {
  opacity: 1;
}

.phone__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.phone__fallback img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  opacity: 0.85;
}

.phone__fallback span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.phone.is-empty .phone__screen img {
  display: none;
}

.phone.is-empty .phone__fallback {
  display: flex;
}

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 18px;
}

.hero__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__badge strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.hero__badge small {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted-2);
}

.hero__badge div {
  display: flex;
  align-items: baseline;
}

/* ---------- Marquee strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050505;
  padding: 13px 0;
  overflow: hidden;
}

.strip__track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: slide 38s linear infinite;
}

.strip__track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.strip__track span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 18px));
  }
}

/* ---------- Sections ---------- */

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

.section__head {
  max-width: 600px;
  margin-bottom: 36px;
}

.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section__head--row > div {
  max-width: 600px;
}

.section h2 {
  font-size: clamp(28px, 6.2vw, 42px);
}

.section__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- 3. Der blinde Fleck (Architektur-Hairlines statt Karten-Flut) ---------- */

.diag-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.diag-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.diag-item h3 {
  margin-top: 10px;
  font-size: 18px;
}

.diag-item p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.diag-bridge {
  max-width: 60ch;
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- 4. Feature cards ---------- */

.features {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  font-size: 16px;
}

.card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 5. Steps ---------- */

.steps {
  display: grid;
  gap: 12px;
}

.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step h3 {
  margin-top: 12px;
  font-size: 16px;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 6. Screenshot gallery (Mobil: Natives Swipe-Karussell) ---------- */

.swipe-hint {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.wrap--gallery {
  padding-left: 0;
  padding-right: 0;
}

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  padding: 4px max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 74%;
  max-width: 248px;
  margin: 0;
  scroll-snap-align: center;
}

.shot--split {
  flex: none;
  width: 100%;
  max-width: 256px;
  margin: 0 auto;
}

.shot figcaption {
  margin-top: 14px;
  text-align: center;
}

.shot figcaption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.shot figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- 7. Split ("Kein stilles Logbuch. Ein echtes Ranking.") ---------- */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split__list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.split__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.split__bullet {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.split__list strong {
  font-weight: 600;
  color: var(--text);
}

/* ---------- 8. GYMHUB Pro ---------- */

.pro-panel {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
}

.pro-panel__text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.pro-panel__note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.pro-panel__pillars {
  display: grid;
  gap: 12px;
}

.pro-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.pro-pillar .num {
  margin-top: 2px;
}

.pro-pillar strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.pro-pillar p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 10. FAQ ---------- */

.faq-layout {
  display: grid;
  gap: 24px;
}

.faq-layout__head {
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq p {
  max-width: 64ch;
  padding-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 11. Final CTA ---------- */

.cta {
  padding: 72px 0;
  text-align: center;
}

.cta__inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(32px, 7.5vw, 52px);
}

.cta__lead {
  max-width: 46ch;
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

.cta__actions {
  margin-top: 28px;
}

@media (min-width: 640px) {
  .cta__actions {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */

.footer {
  padding: 36px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer__inner {
  display: grid;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__brand strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer__brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Tablet & Desktop Breakpoints ---------- */

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pro-panel {
    padding: 36px;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer__copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .diag-grid {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .diag-item {
    padding: 28px 24px 28px 0;
    border-bottom: none;
  }

  .diag-item + .diag-item {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  /* Ab Tablet: 3er-Grid statt Swipe-Karussell */
  .swipe-hint {
    display: none;
  }

  .wrap--gallery {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    overflow: visible;
    padding: 0;
    justify-items: center;
  }

  .shot {
    flex: none;
    width: 100%;
    max-width: 252px;
  }
}

@media (min-width: 920px) {
  .nav__inner {
    min-height: 68px;
  }

  .nav__links {
    display: flex;
  }

  .hero {
    padding: 76px 0 92px;
  }

  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
  }

  .hero__lead {
    font-size: 16.5px;
  }

  .hero__phones .phone {
    max-width: 280px;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 64px;
  }

  .pro-panel {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding: 44px;
  }

  .faq-layout {
    grid-template-columns: 0.38fr 0.62fr;
    gap: 48px;
    align-items: start;
  }

  .section {
    padding: 92px 0;
  }

  .cta {
    padding: 96px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .strip__track {
    animation: none;
  }

  .btn,
  .hero h1 .accent,
  .faq summary::after,
  .phone__slide--pink {
    transition: none;
  }
}
