/* Fitness Coach — Landing Page
   Farbtokens entsprechen der App (lib/ui/theme/app_colors.dart, Dark Theme). */

:root {
  --background: #111315;
  --surface: #1a1d21;
  --surface-variant: #22262b;
  --surface-sunken: #2b3036;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f7f8fa;
  --text-secondary: #a5adb8;
  --text-tertiary: #6e7681;
  --accent: #f5c527;
  --accent-strong: #d9a81a;
  --on-accent: #241f16;
  --success: #4caf7d;
  --data-protein: #5b8db8;
  --data-carb: #6fa67e;
  --radius: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  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; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
}
.lang-switch a, .lang-switch span {
  padding: 4px 12px;
  color: var(--text-secondary);
}
.lang-switch .active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.lang-switch a:hover { text-decoration: none; color: var(--text); }

.nav-toggle { display: none; }

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

.hero {
  padding: 88px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 197, 39, 0.12), transparent),
    var(--background);
}

.hero img.hero-logo {
  height: clamp(140px, 22vw, 200px);
  width: auto;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 20px;
}

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

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ---------- Store-Badges ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 20px;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  text-align: left;
}
.store-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; fill: var(--text); }
.store-btn .small { display: block; font-size: 0.68rem; color: var(--text-secondary); }
.store-btn .big { display: block; font-size: 1rem; font-weight: 600; line-height: 1.2; }

.store-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.store-btn.primary svg { fill: var(--on-accent); }
.store-btn.primary .small, .store-btn.primary .big { color: var(--on-accent); }
.store-btn.primary:hover { background: var(--accent-strong); }

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

section { padding: 72px 0; }

.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-secondary); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Feature-Grid ---------- */

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

.feature-card {
  background: var(--surface-variant);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.section-alt .feature-card { background: var(--surface-sunken); }

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 197, 39, 0.12);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------- Detail-Liste (Zick-Zack) ---------- */

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}
.detail-row:last-child { border-bottom: none; }

.detail-row h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-row p { color: var(--text-secondary); margin-bottom: 12px; }

.detail-row ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.detail-row ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.detail-visual {
  background: linear-gradient(145deg, var(--surface-variant), var(--surface-sunken));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(245, 197, 39, 0.14), transparent),
    var(--surface);
}

.cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
}

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

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-secondary); }

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

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-secondary); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .placeholder {
  background: rgba(245, 197, 39, 0.12);
  border: 1px dashed var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--accent);
  font-style: normal;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }
  .main-nav.open { display: flex; }

  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    color: var(--text);
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
  }

  .detail-row { grid-template-columns: 1fr; gap: 24px; }
  .detail-row.reverse .detail-visual { order: -1; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}

@media (min-width: 761px) {
  .detail-row.reverse .detail-visual { order: -1; }
}
