:root {
  /* Fallbacks — werden von Base.astro aus der Config überschrieben */
  --accent: #16a34a;
  --accent-dark: #15803d;
  --ink: #14241a;
  --muted: #5b6b61;
  --bg: #ffffff;
  --soft: #f3f8f4;
  --radius: 14px;
  --font-heading: Georgia, serif;
  --font-body: system-ui, sans-serif;
  --border: #e6ebe7;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: var(--font-heading); letter-spacing: -0.015em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
  font-family: var(--font-body);
  padding: 1rem 2.2rem; border: none; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn--ghost {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); box-shadow: none;
}
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.trustrow {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; color: var(--muted);
  font-size: 0.92rem; margin-top: 1rem;
}
.trustrow span { display: flex; align-items: center; gap: 0.4rem; }
.trustrow span::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 0.4rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.8; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav .btn { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.soft { background: var(--soft); }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-align: center; margin-bottom: 0.6rem; }
.section .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 3rem; font-size: 1.1rem; }

/* ---------- HERO ---------- */
.hero-section { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) 93%, transparent) 0%,
    color-mix(in srgb, var(--bg) 80%, transparent) 48%,
    color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}
.hero-section .hero { position: relative; z-index: 2; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 800; }
.hero .sub { font-size: 1.25rem; color: var(--muted); margin-top: 1.1rem; }
.hero .problem { font-weight: 600; margin-top: 1rem; }
.hero .stat { background: var(--soft); border-left: 4px solid var(--accent); padding: 0.9rem 1.1rem; border-radius: 8px; margin: 1.4rem 0; font-size: 0.98rem; }
.price { font-size: 1.5rem; font-weight: 800; margin: 1.4rem 0 0.4rem; }
.price small { color: var(--muted); font-weight: 400; font-size: 1rem; }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 400; margin-left: 0.5rem; opacity: 0.7; }
.bigprice .price-old { font-size: 1.4rem; }
.socialproof { color: var(--muted); font-size: 0.92rem; margin-top: 1.2rem; }
.socialproof strong { color: var(--ink); }

ul.bullets { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.55rem; }
ul.bullets li { display: flex; gap: 0.6rem; align-items: flex-start; }
ul.bullets li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- 3D Book Mockup ---------- */
.book-scene { perspective: 2000px; display: flex; justify-content: center; padding: 2rem 0; }
.book {
  position: relative; width: 260px; aspect-ratio: 1 / 1.5;
  transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg);
  transition: transform 0.6s ease;
}
.book:hover { transform: rotateY(-12deg) rotateX(2deg); }
.book__cover {
  position: absolute; inset: 0; border-radius: 0; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); transform: translateZ(15px);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book__cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 100%);
}
/* Buchrücken (linke Kante, gebunden) — 30px Dicke, an die Cover-Kante gesetzt */
.book__spine {
  position: absolute; left: 0; top: 0; width: 30px; height: 100%;
  background: linear-gradient(90deg, #00000066, #00000022);
  transform: translateX(-15px) rotateY(90deg);
  border-radius: 0;
}
/* Seitenblock (rechte Kante / Fore-Edge) */
.book__pages {
  position: absolute; right: 0; top: 0; width: 30px; height: 100%;
  background: repeating-linear-gradient(90deg, #e6e6e6, #e6e6e6 1px, #fbfbfb 1px, #fbfbfb 3px);
  transform: translateX(15px) rotateY(90deg);
  border-radius: 0;
}

/* ---------- Pain ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pain-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.pain-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--accent-dark); }
.pain-card p { color: var(--muted); font-size: 0.97rem; }
.pullquote { text-align: center; font-family: var(--font-heading); font-size: 1.4rem; font-style: italic; max-width: 720px; margin: 3rem auto 0; color: var(--ink); }

/* ---------- Overview grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.card .ico { font-size: 2rem; display: block; margin-bottom: 0.7rem; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 0.9rem; }
.card--photo { padding: 0; overflow: hidden; }
.card-photo { aspect-ratio: 4/3; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 1.2rem; position: relative; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.card-photo h3 { position: relative; z-index: 1; color: #fff; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.card--photo > p { padding: 1.3rem 1.5rem 1.6rem; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tcard .who { display: flex; align-items: center; gap: 0.7rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Syllabus ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.module { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; background: #fff; position: relative; }
.module__num { position: absolute; top: -14px; left: 1.6rem; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-body); }
.module h3 { font-size: 1.2rem; margin: 0.5rem 0 0.9rem; }
.module ul { list-style: none; display: grid; gap: 0.4rem; }
.module li { display: flex; gap: 0.5rem; font-size: 0.95rem; color: var(--muted); }
.module li::before { content: "—"; color: var(--accent); }

/* ---------- Gallery / Leseprobe ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gitem { margin: 0; cursor: zoom-in; }
.gitem .frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  aspect-ratio: 1240 / 1754; transition: transform 0.2s ease;
}
.gitem:hover .frame { transform: translateY(-4px); }
.gitem img, .gitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gitem .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.25); color: #fff; font-size: 2.5rem;
}
.gitem figcaption { text-align: center; margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 2rem;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .close { position: absolute; top: 1.2rem; right: 1.6rem; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; background: none; border: none; }

/* ---------- Bonus ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 820px; margin: 0 auto; }
.bonus-card { background: #fff; border: 2px dashed var(--accent); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.bonus-card .value { position: absolute; top: 1rem; right: 1rem; }
.bonus-card h3 { margin-bottom: 0.5rem; padding-right: 4rem; }
.bonus-card p { color: var(--muted); font-size: 0.95rem; }
.bonus-total { text-align: center; margin-top: 2.5rem; font-size: 1.2rem; }
.bonus-total strong { color: var(--accent-dark); }

/* ---------- Learnings ---------- */
.learn { columns: 2; column-gap: 2.5rem; max-width: 820px; margin: 0 auto; }
.learn li { break-inside: avoid; list-style: none; display: flex; gap: 0.6rem; margin-bottom: 0.9rem; }
.learn li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- Testimonials ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.tcard .stars { color: #f5a623; margin-bottom: 0.7rem; }
.tcard blockquote { font-size: 0.98rem; margin-bottom: 1rem; }
.tcard .who { font-weight: 700; }
.tcard .who span { color: var(--muted); font-weight: 400; }
.rating { text-align: center; margin-top: 2rem; font-weight: 600; color: var(--muted); }

/* ---------- Fit ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fit-card { text-align: center; padding: 1.8rem; }
.fit-card h3 { color: var(--accent-dark); margin-bottom: 0.5rem; }
.fit-card p { color: var(--muted); }

/* ---------- Author ---------- */
.author-box { display: flex; gap: 1.8rem; align-items: center; }
.author-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.author-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.author-name { font-size: 1.4rem; margin: .2rem 0 .6rem; }
.author-name span { color: var(--muted); font-weight: 400; font-size: 1rem; }
.author-box p { color: var(--muted); }

/* ---------- Offer box ---------- */
.offer-box { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; box-shadow: 0 24px 60px rgba(0,0,0,0.08); text-align: center; }
.offer-box ul { list-style: none; text-align: left; display: grid; gap: 0.7rem; margin: 1.5rem 0; }
.offer-box li { display: flex; gap: 0.6rem; }
.offer-box li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.offer-box .oldval { color: var(--muted); }
.offer-box .bigprice { font-size: 2.4rem; font-weight: 800; font-family: var(--font-heading); margin: 0.3rem 0; }
.offer-box .fine { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 0.7rem; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; padding: 5.5rem 0; }
.cta h2 { font-size: clamp(1.8rem,3vw,2.4rem); margin-bottom: 1.5rem; }
.cta .tagline { color: var(--muted); margin-top: 1.2rem; }

/* ---------- Sticky Buy Bar ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0,0,0,.08);
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-buy.visible { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.5rem; }
.sticky-info { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-info strong { font-size: .95rem; }
.sticky-price { font-size: .95rem; font-weight: 800; }
.sticky-buy .btn { padding: .75rem 1.6rem; white-space: nowrap; }
@media (max-width: 600px) {
  .sticky-info strong { display: none; }
  .sticky-inner { padding: .55rem .9rem; }
  .sticky-buy .btn { flex: 1; }
}

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #fff; padding: 3rem 0; }
footer .container { display: grid; gap: 0.6rem; text-align: center; font-size: 0.9rem; opacity: 0.85; }
footer a { color: #fff; text-decoration: underline; opacity: 0.8; }
footer .flinks { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin: 0.5rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .stat { text-align: left; }
  ul.bullets, .trustrow { justify-content: center; }
  .pain-grid, .grid3, .modules, .bonus-grid, .tgrid, .fit-grid { grid-template-columns: 1fr; }
  .learn { columns: 1; }
  .nav__links { display: none; }
}

/* ============ Mehr Farbe ============ */
/* Hero bekommt einen sanften Marken-Verlauf, auch ohne Hintergrundbild */
.hero-section:not(.has-bg) {
  background:
    radial-gradient(1100px 520px at 85% -8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(900px 520px at -10% 115%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    linear-gradient(180deg, var(--soft), var(--bg) 72%);
}
/* Akzent-Unterstrich unter jeder Section-Überschrift */
.section h2, .cta h2 { position: relative; }
.section h2::after, .cta h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 3px; margin: .85rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
/* Marke + Pullquote farbig */
.brand { color: var(--accent-dark); }
.pullquote { color: var(--accent-dark); }
/* Karten: Akzent-Hover (Rand + farbiger Schatten + leichtes Anheben) */
.card, .pain-card, .module, .tcard, .fit-card, .bonus-card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card:hover, .pain-card:hover, .module:hover, .tcard:hover, .fit-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateY(-3px);
}
/* Offer-Box & Hero-Stat kräftiger */
.offer-box { border-top: 5px solid var(--accent); }
.hero .stat { background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.badge { background: color-mix(in srgb, var(--accent) 16%, transparent); }
/* Final-CTA: kräftiger Marken-Verlauf, weißer Text + weißer Button */
.cta.soft { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.cta.soft h2 { color: #fff; }
.cta.soft h2::after { background: rgba(255,255,255,.85); }
.cta.soft .tagline { color: rgba(255,255,255,.88); }
.cta.soft .btn { background: #fff; color: var(--accent-dark); box-shadow: 0 12px 30px rgba(0,0,0,.20); }
.cta.soft .btn:hover { background: #fff; filter: brightness(.95); }
