/* ===========================================================================
   Alex Fliger – Performance & Health Coach
   Designsystem im Stil von apple.com: viel Weißraum, große Typografie,
   dezente Farben, weiche Animationen.
   =========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-soft: #1d1d1f;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-soft-on-dark: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --success: #1d8a3e;
  --danger: #d70015;
  --radius-card: 18px;
  --radius-pill: 980px;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Nav -- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.2s;
}
.nav-links a:hover { color: #000; text-decoration: none; }

.nav-cta {
  font-size: 12px;
  background: var(--accent);
  color: #fff !important;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.cart-count {
  display: inline-block;
  min-width: 17px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 10.5px;
  padding: 1.5px 4px;
  margin-left: 3px;
  vertical-align: 1px;
}
.cart-count:empty { display: none; }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(251, 251, 253, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; font-size: 16px; }
  .nav-links .nav-cta { margin: 8px 24px 10px; display: inline-block; }
  .nav-burger { display: block; }
}

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

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn:hover { text-decoration: none; }

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

.btn-small { font-size: 14px; padding: 7px 16px; }

.link-arrow { font-size: 17px; color: var(--link); white-space: nowrap; }
.link-arrow::after { content: " ›"; }

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

.section { padding: 110px 22px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark-soft { background: var(--bg-dark-soft); color: var(--text-on-dark); }

.container { max-width: 1024px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.headline {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.headline-xl {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.subheadline {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-top: 18px;
}

.section-dark .subheadline,
.section-dark-soft .subheadline { color: var(--text-soft-on-dark); }

.center { text-align: center; }

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

.hero {
  background: linear-gradient(180deg, #000 0%, #101012 70%, #1d1d1f 100%);
  color: var(--text-on-dark);
  padding: calc(var(--nav-h) + 70px) 22px 0;
  text-align: center;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 17px;
  color: var(--text-soft-on-dark);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(46px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-sub {
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text-soft-on-dark);
  margin: 20px auto 0;
  max-width: 640px;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-img {
  margin: 50px auto -4px;
  max-width: 420px;
  width: 70%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* ----------------------------------------------------------- Stats bar --- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-value {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #2997ff, #0a84ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 15px;
  color: var(--text-soft-on-dark);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 38px; }
}

/* ----------------------------------------------------------- Card grid --- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 880px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Angebote: 2 pro Reihe, letzte ungerade Karte zentriert */
.offer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.offer-grid > .card {
  flex: 0 1 calc((100% - 24px) / 2);
  min-width: 280px;
  max-width: 560px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.card-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card .card-tagline { font-weight: 600; font-size: 16px; }
.card p { color: var(--text-soft); font-size: 15px; }
.card .card-foot { margin-top: auto; padding-top: 12px; }

/* ----------------------------------------------------- Feature (split) --- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

.split img { border-radius: var(--radius-card); }

/* -------------------------------------------------------------- Pricing -- */

/* Symmetrische Aufteilung: 3 Pläne oben, 2 zentriert darunter */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.plan {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  flex: 0 1 calc((100% - 36px) / 3);
  min-width: 250px;
  max-width: 420px;
}

.plan-price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0;
}

.plan.featured { outline: 2px solid var(--accent); }

.plan-flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan h3 { font-size: 22px; font-weight: 600; }
.plan .plan-purpose { font-size: 13.5px; color: var(--text-soft); min-height: 42px; }

.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }

.plan li {
  font-size: 13.5px;
  padding-left: 22px;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.plan li.addon::before { content: "+"; color: var(--accent); }
.plan li small { color: var(--text-soft); display: block; font-size: 12px; }

.plan-cta { display: flex; flex-direction: column; gap: 8px; }
.plan-cta .btn { width: 100%; }

/* -------------------------------------------------------------- FAQ ------ */

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  padding: 22px 36px 22px 0;
  list-style: none;
  position: relative;
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--text-soft);
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 0 24px;
  color: var(--text-soft);
  font-size: 16px;
  max-width: 680px;
}

/* ------------------------------------------------------------ Kontakt ---- */

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

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: 30px;
  text-align: center;
}

.contact-card .contact-icon { font-size: 30px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.contact-card a, .contact-card p { font-size: 16px; }

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

.footer {
  background: var(--bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 34px 22px 44px;
  font-size: 12px;
  color: var(--text-soft);
}

.footer .container { display: flex; flex-direction: column; gap: 14px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  list-style: none;
}

.footer-links li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #d2d2d7;
  margin: 0 12px;
  vertical-align: -1px;
}

.footer-links a { color: var(--text); font-size: 12px; }

/* ----------------------------------------------------------- Promo bar --- */

.promo-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 12px 22px;
  font-size: 14px;
}
.promo-bar strong { font-weight: 600; }

/* ------------------------------------------------------------- Shop ------ */

.shop-header {
  padding: calc(var(--nav-h) + 60px) 22px 50px;
  text-align: center;
}

.shop-category {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 64px 0 30px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.product-grid > .product-card {
  flex: 0 1 300px;
  max-width: 340px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.product-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--bg-alt); }

.product-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.product-body p { font-size: 13.5px; color: var(--text-soft); flex: 1; }

.product-price { font-size: 19px; font-weight: 600; }
.product-price .old {
  color: var(--text-soft);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 15px;
  margin-right: 8px;
}
.product-price .vat { display: block; font-size: 11px; font-weight: 400; color: var(--text-soft); }

/* ------------------------------------------------------------ Warenkorb -- */

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 1200;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-head h2 { font-size: 20px; }

.cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-soft); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
}

.cart-item .qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 5px; }

.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid #d2d2d7;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cart-remove { background: none; border: none; color: var(--danger); font-size: 12px; cursor: pointer; padding: 0; }

.cart-foot { padding: 20px 24px 28px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; margin-bottom: 16px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------ Checkout --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 18px;
  background: rgba(0, 0, 0, 0.45);
}

.modal.show { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-card);
  max-width: 560px;
  width: 100%;
  padding: 36px;
}

.modal-box h2 { font-size: 26px; letter-spacing: -0.015em; margin-bottom: 6px; }
.modal-box .modal-sub { color: var(--text-soft); font-size: 14px; margin-bottom: 22px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}

.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.checkbox-group input { margin-top: 3px; flex-shrink: 0; }

.form-error { color: var(--danger); font-size: 13.5px; margin-bottom: 12px; min-height: 18px; }

.order-success { text-align: center; padding: 20px 0; }
.order-success .big { font-size: 50px; margin-bottom: 10px; }

.bank-box {
  text-align: left;
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
.bank-box .bank-title { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.bank-list { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; }
.bank-list dt { font-size: 13px; color: var(--text-soft); }
.bank-list dd { font-size: 14px; font-weight: 600; margin: 0; word-break: break-word; }

/* ------------------------------------------------------- Animationen ----- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------- Legal pages --- */

.legal {
  padding: calc(var(--nav-h) + 60px) 22px 90px;
}

.legal .container-narrow > h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; color: #424245; margin-bottom: 10px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal .legal-updated { color: var(--text-soft); font-size: 13px; margin-bottom: 30px; }
.legal .hint {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-soft);
}
