/*
 * Haupt-CSS für FitnessJourney
 * Enthält helle und dunkle Farbvarianten sowie Layout‑Klassen.
 * Am Ende dieser Datei befinden sich zusätzliche Stile für den
 * Rabatt‑Badge im Preisschalter und das Instagram‑Icon.
 */

/* Farbvariablen */
:root {
  color-scheme: light;
  --bg: #f7fafc;
  --bg-alt: #eef5f6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #132033;
  --muted: #5d6b7d;
  --line: rgba(19, 32, 51, 0.1);
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --secondary: #10b981;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-soft-2: rgba(16, 185, 129, 0.12);
  --shadow: 0 18px 50px rgba(19, 32, 51, 0.1);
  --radius: 24px;
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07111f;
    --bg-alt: #0b1627;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --text: #f5f7fb;
    --muted: #b7c1d8;
    --line: rgba(255, 255, 255, 0.1);
    --primary: #6ea8fe;
    --primary-strong: #4a8cff;
    --secondary: #34d399;
    --accent-soft: rgba(110, 168, 254, 0.12);
    --accent-soft-2: rgba(52, 211, 153, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, var(--accent-soft), transparent 30%),
    radial-gradient(circle at 90% 20%, var(--accent-soft-2), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 36%, var(--bg-alt) 100%);
}

@media (prefers-color-scheme: dark) {
  body {
    background: radial-gradient(circle at 10% 10%, var(--accent-soft), transparent 30%),
      radial-gradient(circle at 90% 20%, var(--accent-soft-2), transparent 28%),
      linear-gradient(180deg, #050b16 0%, #0b1324 50%, #09101c 100%);
  }
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 16px 0 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.03), rgba(16, 185, 129, 0.03));
}

@media (prefers-color-scheme: dark) {
  .alt-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  }
}

.soft-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 18px;
  max-width: 62ch;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a {
  color: var(--text);
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--primary-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
}

.full-width {
  width: 100%;
}

/* Hero */
.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.hero-points li {
  color: var(--text);
  position: relative;
  padding-left: 20px;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  left: 0;
  top: 10px;
}

.hero-card {
  border-radius: 32px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Mini window preview */
.mini-window {
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .mini-window {
    background: #0d172c;
  }
}

.mini-topbar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

/* Browser-Punkte: Standard grau */
.mini-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(120, 130, 150, 0.35);
}

/* Farbige Punkte (rot, gelb, grün) */
.mini-topbar span:nth-child(1) {
  background: #ff605c;
}

.mini-topbar span:nth-child(2) {
  background: #ffbd44;
}

.mini-topbar span:nth-child(3) {
  background: #00c853;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 420px;
}

.preview-sidebar {
  background: rgba(37, 99, 235, 0.04);
  border-right: 1px solid var(--line);
  padding: 18px;
}

.preview-sidebar img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 26px;
}

.sidebar-lines span,
.preview-table div {
  display: block;
  border-radius: 999px;
  background: rgba(120, 130, 150, 0.18);
}

.sidebar-lines span {
  height: 10px;
  margin-bottom: 12px;
}

.preview-main {
  padding: 22px;
}

.preview-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  border-radius: 20px;
  padding: 18px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid var(--line);
}

.stat-box strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-box span {
  color: var(--muted);
  font-size: 14px;
}

.chart-box {
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.04));
  padding: 18px;
  margin-bottom: 18px;
}

.chart-bars {
  height: 100%;
  display: flex;
  align-items: end;
  gap: 14px;
}

.chart-bars span {
  flex: 1;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
}

.preview-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-table div {
  height: 16px;
}

.floating-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
}

/* Trust / Highlights / Feature / Pricing etc. */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card,
.feature-card,
.reference-card,
.price-card,
.pricing-note,
.contact-box,
.contact-form,
.info-panel,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.trust-card {
  padding: 22px;
}

.trust-label {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.trust-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.trust-card small {
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.feature-grid,
.reference-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--primary-strong);
  font-weight: 800;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}

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

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.step span {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.step p {
  margin-bottom: 0;
}

.info-panel {
  padding: 28px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 800;
}

.reference-card {
  padding: 26px;
}

.reference-card.featured {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.05));
}

.reference-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.partner-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: white;
  color: var(--primary-strong);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.reference-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.pricing-section .section-head {
  max-width: 800px;
}

/* Billing toggle (Monatlich/Jährlich) */
.billing-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.billing-btn {
  min-width: 128px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.billing-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

/* Preis-Karten */
.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.price-card {
  padding: 26px;
  position: relative;
}

.price-card.popular {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06));
  transform: translateY(-4px);
}

.popular-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.price-range {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.price-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.price-subtext {
  color: var(--muted);
  margin-bottom: 18px;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

.pricing-note {
  margin-top: 20px;
  padding: 18px 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FAQ & Kontakt */
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq-list details p {
  margin: 14px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
}

@media (prefers-color-scheme: dark) {

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
  }
}

.contact-form option {
  color: black;
}

.form-hint,
.form-status {
  font-size: 14px;
}

.form-status {
  min-height: 20px;
  color: var(--primary);
}

/* How-To Section */
.howto-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.howto-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.howto-step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.howto-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.howto-step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.howto-step p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .howto-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .howto-steps {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand p {
  margin-bottom: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

/* Icon-Grösse für Instagram-SVG */
.footer-links svg {
  width: 20px;
  height: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 1080px) {

  .hero-grid,
  .split-grid,
  .faq-grid,
  .contact-grid,
  .feature-grid,
  .reference-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reference-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero-grid,
  .split-grid,
  .faq-grid,
  .contact-grid,
  .feature-grid,
  .reference-grid,
  .trust-grid,
  .pricing-grid,
  .hero-points,
  .preview-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .reference-card.featured {
    grid-column: auto;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-note {
    display: block;
  }
}

/* Rabatt-Badge (rot) */
.discount-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  line-height: 1;
}
