/* My Private Gym – Landingpage */

:root {
  color-scheme: light dark;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-bg: #ffffff;
  --color-bg-subtle: #f5f5f7;
  --color-elevated: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  /* Akzent: dunkles Gold (an Logo-Feder angelehnt) */
  --color-ios-blue: #a67c00;
  --gradient-start: #9a6f00;
  --gradient-end: #c9a227;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 18px 48px rgba(154, 111, 0, 0.14);
  --header-h: 56px;
  --max-w: 1080px;
  --cell-yes: #1a7f37;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-bg: #0c0c0e;
    --color-bg-subtle: #1c1c1e;
    --color-elevated: #161618;
    --color-border: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.55);
    --cell-yes: #34c759;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-ios-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(22, 22, 24, 0.82);
  }
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-lang {
  flex-shrink: 0;
  margin-left: 12px;
  position: relative;
}

.lang-menu {
  position: relative;
}

.lang-menu__trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.2rem 0.12rem 0.12rem;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-menu__trigger::-webkit-details-marker {
  display: none;
}

.lang-menu__trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-secondary);
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.lang-menu[open] > .lang-menu__trigger::after {
  transform: rotate(180deg);
}

.lang-menu__trigger:hover {
  color: var(--color-text);
}

.lang-menu__trigger:hover::after {
  border-top-color: var(--color-text);
}

.lang-menu__trigger:focus-visible {
  outline: 2px solid var(--color-ios-blue);
  outline-offset: 2px;
}

.lang-menu__current {
  display: inline-flex;
  line-height: 0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.lang-menu__current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .lang-menu__current::after {
    background: rgba(255, 255, 255, 0.28);
  }
}

.lang-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 80;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  max-width: min(100vw - 2rem, 20rem);
  padding: 0.4rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.lang-menu__link {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: max-content;
  box-sizing: border-box;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.lang-menu__label {
  flex-shrink: 0;
}

.lang-menu__link .lang-flag {
  flex-shrink: 0;
}

.lang-menu__link:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

.lang-menu__link:focus-visible {
  outline: 2px solid var(--color-ios-blue);
  outline-offset: 1px;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .lang-flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}

.lang-menu__link:hover .lang-flag {
  filter: brightness(0.92);
}

.header-lang__sep {
  display: none;
}

.nav-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.nav-main a {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 4px 16px rgba(154, 111, 0, 0.38);
}

.btn--primary:hover {
  box-shadow: 0 6px 22px rgba(154, 111, 0, 0.48);
}

.btn--secondary {
  color: var(--color-ios-blue);
  background: rgba(166, 124, 0, 0.12);
}

.btn--secondary:hover {
  background: rgba(166, 124, 0, 0.2);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: color-mix(in srgb, var(--color-bg) 96%, transparent);
    backdrop-filter: blur(12px);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    display: none;
    border-bottom: 1px solid var(--color-border);
    flex: none;
    justify-content: flex-start;
    box-shadow: var(--shadow-card);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

/* Sections */
.section {
  padding: 72px 20px;
}

.section--tight-top {
  padding-top: 40px;
}

.section--subtle {
  background: var(--color-bg-subtle);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ios-blue);
  margin: 0 0 12px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.55;
}

/* Hero */
.hero {
  padding: 48px 20px 64px;
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-soft);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0 0 28px;
}

.hero__trust {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-bg-subtle);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.section--subtle .card {
  background: var(--color-elevated);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.compare-table th {
  font-weight: 600;
  background: var(--color-bg-subtle);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .col-app {
  color: var(--color-ios-blue);
  font-weight: 600;
}

.cell-yes {
  color: var(--cell-yes);
  font-weight: 600;
}

.cell-no {
  color: var(--color-text-secondary);
}

/* Proof columns */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-block h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.proof-block p {
  color: var(--color-text-secondary);
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.proof-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.proof-block li {
  margin-bottom: 6px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-tile {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--color-elevated);
  border: 1px solid var(--color-border);
}

.feature-tile h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.faq-trigger:hover {
  color: var(--color-ios-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 11px;
  left: 6px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 6px;
  left: 11px;
}

.faq-item.is-open .faq-icon::after {
  transform: scaleY(0);
}

.faq-panel {
  display: none;
  padding: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-elevated) 100%);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  padding: 32px 20px 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.site-footer a {
  color: var(--color-text-secondary);
  margin: 0 10px;
}

.site-footer a:hover {
  color: var(--color-ios-blue);
}
