/* FamilyCart Website – gleiche Sprache wie die App-Store-Screenshots:
   dunkelgrüne Bühnen mit Leuchten, Plus Jakarta Sans extrabold, Akzentwort in Grün (Plus: Orange).
   Helle Inhaltsseiten folgen dem Hell-/Dunkelmodus des Geräts. */

@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Helle Flächen (wie die App) */
  --bg: #f3f5f1;
  --surface: #ffffff;
  --text: #13201a;
  --muted: #5b6b62;
  --border: #dfe6e1;
  --primary: #17784e;
  --primary-soft: #e3f1e9;
  --premium: #b4501a;
  --premium-soft: #fdeee3;
  /* Dunkle Bühne (immer dunkel, wie die Screenshots) */
  --stage: #0a1410;
  --stage-2: #10201a;
  --stage-text: #eef5f1;
  --stage-muted: #a3b8ad;
  --stage-green: #4fd394;
  --stage-orange: #f59a5e;
  --stage-line: rgba(255, 255, 255, 0.1);

  --font: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1411;
    --surface: #17201b;
    --text: #eaf2ed;
    --muted: #9fb2a7;
    --border: #26332c;
    --primary: #3dbe84;
    --primary-soft: #173728;
    --premium: #f08a50;
    --premium-soft: #3a2417;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--stage-green); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: 760px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 0; }
h3 { font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.accent { color: var(--primary); }
.accent-plus { color: var(--premium); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34ch; }

/* ---------- Kopfzeile ---------- */
.site-head { position: absolute; inset: 0 0 auto; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--stage-text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--stage-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--stage-text); }
.nav a.btn { padding: 9px 16px; font-size: 14px; color: #062014; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Helle Unterseiten: Kopfzeile auf hellem Grund */
.page .site-head { position: static; background: var(--stage); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 0;
  font: 800 16px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--stage-green); color: #062014;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 30px rgba(79, 211, 148, 0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(79, 211, 148, 0.35); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--stage-text); box-shadow: inset 0 0 0 1.5px var(--stage-line); }
.btn.on-light { background: var(--primary); color: #fff; box-shadow: none; }
@media (prefers-color-scheme: dark) { .btn.on-light { color: #06140d; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.cta-note { font-size: 14px; color: var(--stage-muted); }

/* ---------- Dunkle Bühne ---------- */
.stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(61, 190, 132, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(61, 190, 132, 0.12), transparent 60%),
    linear-gradient(180deg, var(--stage) 0%, var(--stage-2) 100%);
  color: var(--stage-text);
  --primary: var(--stage-green);
  --premium: var(--stage-orange);
  --muted: var(--stage-muted);
}
/* Leuchtlinie wie auf den Screenshots */
.stage::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -260px;
  border-radius: 50%; border: 2px solid rgba(79, 211, 148, 0.35);
  box-shadow: 0 0 40px rgba(79, 211, 148, 0.25), inset 0 0 40px rgba(79, 211, 148, 0.12);
  pointer-events: none;
}

.hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 22px; padding-bottom: 64px; align-content: center; align-self: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
/* Drei ganze Screenshots als Fächer: vorne gerade, zwei dahinter */
.hero-stack { position: relative; justify-self: center; width: min(440px, 90vw); aspect-ratio: 440 / 600; margin-bottom: 64px; }
.hero-stack img {
  position: absolute; top: 0; width: 62%; height: auto; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--stage-line);
}
.hero-stack .front { left: 19%; z-index: 2; }
.hero-stack .back { width: 50%; top: 9%; filter: brightness(0.7); }
.hero-stack .left { left: 0; }
.hero-stack .right { right: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--stage-muted); margin-top: 6px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--stage-green); }

@media (max-width: 860px) {
  .hero { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero-stack { width: min(380px, 92vw); margin-bottom: 40px; }
}

/* ---------- Abschnitte ---------- */
section { padding: 96px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 680px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Screenshot-Galerie */
.gallery-section { padding-top: 88px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter) var(--gutter-r);
  padding: 4px var(--gutter-r) 24px var(--gutter);
  margin: 0 auto; max-width: calc(var(--wrap) + 40px);
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 22px; box-shadow: 0 14px 40px rgba(10, 20, 16, 0.18); aspect-ratio: 720 / 1561; width: 100%; height: auto; background: var(--stage); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; padding: 0 4px; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; background: var(--primary-soft); color: var(--primary);
}
.steps p, .feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.feature svg { width: 28px; height: 28px; color: var(--primary); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Plus */
.plus.stage { background:
    radial-gradient(800px 500px at 90% 10%, rgba(240, 138, 80, 0.22), transparent 60%),
    linear-gradient(180deg, #120d0a 0%, #1a120d 100%); }
.plus.stage::after { border-color: rgba(245, 154, 94, 0.35); box-shadow: 0 0 40px rgba(245, 154, 94, 0.22), inset 0 0 40px rgba(245, 154, 94, 0.1); }
.plus .eyebrow { color: var(--stage-orange); }
.plus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; z-index: 1; }
.tier { border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--stage-line); }
.tier.highlight { background: rgba(245, 154, 94, 0.08); box-shadow: inset 0 0 0 1.5px rgba(245, 154, 94, 0.5); }
.tier h3 { font-size: 22px; }
.tier .price { font-size: 15px; color: var(--stage-muted); }
.tier .price strong { color: var(--stage-text); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tier li { padding-left: 28px; position: relative; color: var(--stage-text); font-size: 16px; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--stage-green); border-bottom: 2.5px solid var(--stage-green); transform: rotate(-45deg); }
.tier.highlight li::before { border-color: var(--stage-orange); }
.tier small { color: var(--stage-muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) { .plus-grid { grid-template-columns: 1fr; } }

/* Datenschutz-Band */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust div { display: grid; gap: 6px; padding-top: 18px; border-top: 2px solid var(--primary); }
.trust p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* Fragen */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 16px; }

/* Schluss-Aufruf */
.final { text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 20px; position: relative; z-index: 1; }
.final img.icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 40px rgba(79, 211, 148, 0.3); }

/* ---------- Fusszeile ---------- */
.site-foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

/* ---------- Inhaltsseiten (Hilfe, Datenschutz, Einladung) ---------- */
.page main { padding-top: 48px; padding-bottom: 64px; }
.page main h1 { font-size: clamp(32px, 5vw, 44px); margin: 8px 0 8px; overflow-wrap: anywhere; hyphens: auto; }
.page main h2 { font-size: 22px; margin: 36px 0 8px; }
.page main h3 { font-size: 17px; margin: 22px 0 4px; }
.page main p, .page main ul { margin: 8px 0; }
.page main li { margin: 4px 0; }
.meta { color: var(--muted); margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 18px 0; }
.card h2:first-child { margin-top: 0; }
.hero-small { text-align: center; padding: 8px 0 8px; }
.hero-small img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 8px; }
.hero-small p { color: var(--muted); font-size: 18px; }
