/* =========================================================
   VIRAL BLUEPRINT — Premium Guide
   Aesthetic: Apple / Nike. Black & white. Huge headlines.
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --paper: #ffffff;
  --paper-2: #f5f5f4;
  --line: #e6e6e3;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --accent: #0a0a0a;
  --max: 1180px;
  --read: 720px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Helvetica Neue", Helvetica, "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --black: #f5f5f4;
  --ink: #f2f2f0;
  --paper: #0a0a0a;
  --paper-2: #131313;
  --line: #262626;
  --muted: #9a9a9a;
  --muted-2: #6b6b6b;
  --accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --black: #f5f5f4;
    --ink: #f2f2f0;
    --paper: #0a0a0a;
    --paper-2: #131313;
    --line: #262626;
    --muted: #9a9a9a;
    --muted-2: #6b6b6b;
    --accent: #ffffff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(3rem, 12vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0;
}
h1, .h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 0.4em;
}
h2, .h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 0.5em;
}
h3, .h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1.2em; }
.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
}
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1.4em;
}
strong { font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }
@media (max-width: 560px) {
  .wrap, .nav { padding-left: 26px; padding-right: 26px; }
  .nav { padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .brand { font-size: 0.75rem; letter-spacing: -0.02em; white-space: nowrap; }
  .nav-links { gap: 10px; flex: none; }
  .lang-opt { padding: 0.38em 0.58em; font-size: 0.7rem !important; gap: 4px; }
  .theme-toggle { width: 34px; height: 34px; font-size: 0.9rem; }
}
.section { padding-block: clamp(56px, 9vh, 140px); }
@media (max-width: 640px) { .section { padding-block: 46px; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--accent);
  color: var(--paper);
  padding: 1.05em 2.2em;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-color: var(--line); }
.brand { font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5em; }
.brand .dot { width: 9px; height: 9px; background: var(--ink); border-radius: 50%; display: inline-block; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 0.85rem !important; padding: 0.7em 1.4em; }
.theme-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(-15deg); }
/* Sprach-Umschalter DE/EN — segmentiert, die aktive Sprache ist hervorgehoben */
.lang-switch {
  display: inline-flex; align-items: stretch; border: 1px solid var(--line);
  border-radius: 100px; overflow: hidden; flex: none;
}
.lang-opt {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem !important; font-weight: 700; color: var(--muted) !important;
  padding: 0.42em 0.72em; line-height: 1; white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.lang-opt.is-active { background: var(--ink); color: var(--paper) !important; }
.lang-opt:not(.is-active):hover { color: var(--ink) !important; background: var(--paper-2); }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 90px; position: relative; }
.hero .display span { display: block; }
.hero-sub { max-width: 640px; margin-top: clamp(24px, 4vh, 44px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: clamp(48px, 8vh, 90px); }
.hero-meta .stat .n { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hero-meta .stat .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-top: 8px; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--muted-2), transparent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: scroll-x 30s linear infinite; }
.marquee-track span { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--muted-2); display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "—"; color: var(--line); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 3vw, 40px);
  background: var(--paper); transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card .num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 20px; }

/* ---------- Principles list ---------- */
.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 4vw, 60px);
  align-items: baseline; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.principle:hover { padding-left: 12px; }
.principle .p-n { font-size: 0.9rem; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.principle .p-t { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.principle .p-d { color: var(--muted); max-width: 360px; font-size: 0.98rem; }
@media (max-width: 780px) { .principle { grid-template-columns: auto 1fr; } .principle .p-d { grid-column: 2; max-width: none; } }

/* ---------- Curriculum ---------- */
.toc-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background 0.3s;
}
.toc-item:hover { background: var(--paper-2); }
.toc-item .c-n { font-size: 1.6rem; font-weight: 800; color: var(--muted-2); letter-spacing: -0.04em; }
.toc-item .c-t { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -0.02em; }
.toc-item .c-s { color: var(--muted); font-size: 0.92rem; margin-top: 3px; }
.toc-item .c-go { color: var(--muted-2); font-size: 1.3rem; transition: transform 0.4s var(--ease), color 0.3s; }
.toc-item:hover .c-go { transform: translateX(6px); color: var(--ink); }

/* ---------- Proof / results ---------- */
.proof-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--line); margin-top: clamp(34px, 5vw, 56px);
}
@media (max-width: 720px) { .proof-stats { grid-template-columns: 1fr 1fr; } }
.proof-stats .s {
  background: var(--paper); padding: clamp(22px, 3vw, 38px) clamp(16px, 2vw, 28px);
  transition: background 0.4s;
}
.proof-stats .s:hover { background: var(--paper-2); }
.proof-stats .s .n { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.proof-stats .s .l { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 12px; }
.proof-src { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin-top: 16px; letter-spacing: 0.02em; }

.proof-analytics { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-top: clamp(40px, 6vw, 70px); align-items: start; }
@media (max-width: 780px) { .proof-analytics { grid-template-columns: 1fr; } }
.proof-analytics figure { margin: 0; }
.proof-analytics .frame {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper);
  transition: transform 0.5s var(--ease), border-color 0.4s; box-shadow: 0 20px 50px -30px rgba(0,0,0,0.35);
}
.proof-analytics .frame:hover { transform: translateY(-5px); border-color: var(--ink); }
.proof-analytics figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 14px; font-weight: 600; }

.proof-shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.5vw, 16px); margin-top: clamp(40px, 6vw, 70px); }
@media (max-width: 900px) { .proof-shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .proof-shots { grid-template-columns: 1fr 1fr; } }
.proof-shots img {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.proof-shots img:hover { transform: translateY(-4px) scale(1.02); border-color: var(--ink); }
.proof-note { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin-top: 26px; }

/* ---------- Pricing ---------- */
.price-card {
  border: 1.5px solid var(--ink); border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  max-width: 560px; margin: 0 auto; text-align: center; background: var(--paper);
}
.price-card .price { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price-card .price .cur { font-size: 0.45em; vertical-align: super; font-weight: 700; }
.price-card .old { color: var(--muted-2); text-decoration: line-through; font-size: 1.3rem; margin-left: 10px; }
.price-list { list-style: none; padding: 0; margin: 32px 0; text-align: left; display: grid; gap: 14px; }
.price-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.price-list li .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--read); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; cursor: pointer; font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.02em; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .pm { flex: none; font-size: 1.5rem; font-weight: 400; transition: transform 0.3s var(--ease); }
details[open] .faq-q .pm { transform: rotate(45deg); }
.faq-a { padding: 0 0 28px; color: var(--muted); max-width: 620px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 60px 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer .big { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; max-width: 640px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 60px; color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   READER (guide.html)
   ========================================================= */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--ink); width: 0; z-index: 200; transition: width 0.1s linear; }

.reader { display: grid; grid-template-columns: 300px 1fr; max-width: 1320px; margin: 0 auto; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line); padding: 34px 28px;
}
.sidebar .s-brand { font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.sidebar .s-sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-2); margin-bottom: 30px; }
.toc-nav { list-style: none; padding: 0; margin: 0; counter-reset: ch; }
.toc-nav a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 0.9rem; color: var(--muted); font-weight: 600; line-height: 1.3; transition: background 0.25s, color 0.25s; }
.toc-nav a:hover { background: var(--paper-2); color: var(--ink); }
.toc-nav a.active { background: var(--ink); color: var(--paper); }
.toc-nav a .k { font-variant-numeric: tabular-nums; color: var(--muted-2); margin-right: 8px; }
.toc-nav a.active .k { color: var(--paper); opacity: 0.7; }
.sidebar-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

.reader-main { padding: clamp(40px, 7vw, 100px) clamp(20px, 6vw, 90px); min-width: 0; }
.article { max-width: var(--read); margin: 0 auto; }
.article h2 { scroll-margin-top: 30px; }
.chapter { padding: clamp(40px, 8vh, 90px) 0; border-bottom: 1px solid var(--line); }
.chapter:first-of-type { padding-top: 0; }
.chapter:last-of-type { border-bottom: 0; }
.ch-kicker { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 700; color: var(--muted-2); margin-bottom: 18px; }
.article p { color: var(--ink); }
.article .lead { margin-bottom: 1.6em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article li { margin-bottom: 0.6em; }
.article blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
}
.callout {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin: 2em 0; background: var(--paper-2);
}
.callout .c-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 1.4em 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.checklist li .box { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 6px; margin-top: 2px; }
.framework { display: grid; gap: 2px; margin: 2em 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.framework .row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 24px; background: var(--paper); }
.framework .row + .row { border-top: 1px solid var(--line); }
.framework .row .k { font-weight: 800; letter-spacing: -0.02em; }
.framework .row .v { color: var(--muted); }

/* In-chapter images */
.shot { margin: 2.4em 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 16px; display: block; box-shadow: 0 20px 50px -34px rgba(0,0,0,0.4); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.shot.narrow { max-width: 360px; margin-inline: auto; }
.shot-row { display: grid; gap: 12px; }
.shot-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.shot-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.shot-row img { box-shadow: none; border-radius: 12px; }
@media (max-width: 520px) { .shot-row.cols-3 { grid-template-columns: 1fr 1fr; } }
.beforeafter { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 2.4em 0; }
.beforeafter .ba-col { text-align: center; }
.beforeafter .ba-col img { width: 100%; border: 1px solid var(--line); border-radius: 14px; }
.beforeafter .ba-col .ba-tag { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: var(--muted); margin-top: 10px; }
.beforeafter .ba-arrow { font-size: 1.6rem; color: var(--muted-2); }
@media (max-width: 520px) { .beforeafter { grid-template-columns: 1fr; } .beforeafter .ba-arrow { transform: rotate(90deg); } }

/* Founders / "Wer wir sind" */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); margin: 2.2em 0; }
.founder { margin: 0; text-align: center; }
.founder img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.founder:hover img { transform: translateY(-4px); border-color: var(--ink); }
.founder .f-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; margin-top: 14px; }
.founder .f-role { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-top: 4px; }
@media (max-width: 620px) { .framework .row { grid-template-columns: 1fr; gap: 6px; } }

.chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; flex-wrap: wrap; }

.reader-footer {
  margin-top: clamp(50px, 8vh, 90px); padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 0.85rem;
}

.menu-btn { display: none; }
@media (max-width: 940px) {
  .reader { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 150; width: 300px; max-width: 82vw;
    background: var(--paper); transform: translateX(-100%); transition: transform 0.4s var(--ease);
    box-shadow: 0 0 60px rgba(0,0,0,0.12);
  }
  .sidebar.open { transform: none; }
  .menu-btn {
    display: inline-flex; position: fixed; top: 16px; left: 16px; z-index: 160;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer;
    backdrop-filter: blur(10px);
  }
  .reader-main { padding-top: 80px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 140; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
}

/* =========================================================
   ACCESS GATE (Sperrbildschirm für den bezahlten Kurs)
   ========================================================= */
.lock {
  position: fixed; inset: 0; z-index: 500; background: var(--paper);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lock[hidden] { display: none; }
.lock-card { max-width: 460px; width: 100%; text-align: center; }
.lock-badge {
  width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 20px; background: var(--ink);
  color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em;
}
.lock h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.4em; }
.lock p { color: var(--muted); margin-bottom: 1.6em; }
.lock form { display: flex; flex-direction: column; gap: 12px; }
.lock input {
  width: 100%; padding: 1em 1.2em; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1.05rem;
  text-align: center; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.3s;
}
.lock input:focus { outline: none; border-color: var(--ink); }
.lock .err { color: #c0341d; font-size: 0.9rem; min-height: 1.2em; margin: 0; letter-spacing: 0; text-transform: none; }
:root[data-theme="dark"] .lock .err { color: #ff6a4d; }
.lock .buy-row { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.lock .buy-row p { margin-bottom: 0.9em; font-size: 0.95rem; }

/* =========================================================
   PAYWALL — Gratis-Vorschau (Intro + Kap. 1), Rest gesperrt
   ========================================================= */
.locked-zone { display: none; }
body.vb-unlocked .locked-zone { display: block; }
body.vb-unlocked .paywall { display: none; }

.paywall { position: relative; padding: 44px 0 24px; border-bottom: 0; }
/* sanfter Verlauf über dem Ende von Kapitel 1 – deutet an: es geht weiter */
.paywall::before {
  content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--paper));
  pointer-events: none;
}
:root[data-theme="dark"] .paywall::before {
  background: linear-gradient(to bottom, rgba(10,10,10,0), var(--paper));
}
.paywall-card {
  max-width: 480px; margin: 0 auto; text-align: center;
  border: 1.5px solid var(--line); border-radius: 26px; background: var(--paper);
  padding: clamp(30px, 5vw, 46px) clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.25);
}
.paywall-badge {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em;
}
.pw-kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.pw-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.4em; letter-spacing: -0.03em; line-height: 1.02; }
.pw-sub { color: var(--muted); margin-bottom: 1.5em; }
.paywall form { display: flex; flex-direction: column; gap: 12px; }
.paywall input {
  width: 100%; padding: 1em 1.2em; border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; background: var(--paper-2); color: var(--ink); text-align: center;
}
.paywall input:focus { outline: none; border-color: var(--ink); }
.paywall .err { color: #c0341d; font-size: 0.9rem; min-height: 1.2em; margin: 0; letter-spacing: 0; text-transform: none; }
:root[data-theme="dark"] .paywall .err { color: #ff6a4d; }
.paywall .buy-row { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.paywall .buy-row p { margin-bottom: 0.9em; font-size: 0.95rem; color: var(--muted); }

/* gesperrte Kapitel im Inhaltsverzeichnis */
.toc-locked::after { content: "🔒"; margin-left: 7px; font-size: 0.72rem; opacity: 0.55; }
body.vb-unlocked .toc-locked::after { content: none; }
/* "Schon gekauft?"-Link nur solange gesperrt */
.unlock-link { font-size: 0.85rem; color: var(--ink); font-weight: 700; display: block; margin-bottom: 12px; }
body.vb-unlocked .unlock-link { display: none; }

/* =========================================================
   MOBILE-FEINSCHLIFF — mehr Luft im Reader, nicht „reingequetscht"
   ========================================================= */
@media (max-width: 640px) {
  .reader-main { padding: 84px 24px 60px; }
  .article { font-size: 17px; }
  .article p, .article li { line-height: 1.72; }
  .article p { margin-bottom: 1.25em; }
  .chapter { padding: 46px 0; }
  .article blockquote { padding-left: 20px; margin: 1.6em 0; }
  .callout, .framework .row { padding-left: 20px; padding-right: 20px; }
  .paywall-card { box-shadow: none; }
}

/* Install-as-app hint */
.install-hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(150%);
  z-index: 180; background: var(--ink); color: var(--paper); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; max-width: 92vw;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5); transition: transform 0.5s var(--ease);
  font-size: 0.9rem;
}
.install-hint.show { transform: translateX(-50%) translateY(0); }
.install-hint button {
  background: var(--paper); color: var(--ink); border: 0; border-radius: 100px;
  padding: 0.5em 1.1em; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; white-space: nowrap;
}
.install-hint .x { background: transparent; color: var(--paper); font-size: 1.2rem; padding: 0 4px; }

/* =========================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ========================================================= */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 120px clamp(20px, 5vw, 40px) 100px; }
.legal-wrap .back { font-size: 0.9rem; font-weight: 600; color: var(--muted); display: inline-block; margin-bottom: 40px; }
.legal-wrap .back:hover { color: var(--ink); }
.legal-wrap h1 { margin-bottom: 0.6em; }
.legal-wrap h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 1.8em 0 0.5em; }
.legal-wrap p, .legal-wrap li { color: var(--ink); line-height: 1.7; }
.legal-wrap .muted { color: var(--muted); }
.legal-wrap address { font-style: normal; line-height: 1.8; }
.fill {
  background: var(--paper-2); border: 1px dashed var(--muted-2); border-radius: 8px;
  padding: 2px 8px; color: var(--ink); font-weight: 600; display: inline-block;
}
.legal-note {
  border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 12px;
  padding: 20px 24px; margin: 24px 0; background: var(--paper-2);
}
.legal-note .c-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.legal-note p:last-child { margin-bottom: 0; }
.footer-legal { margin-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-2); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Print ---------- */
@media print {
  .nav, .sidebar, .menu-btn, .progress, .scroll-hint, .marquee, .chapter-nav, .theme-toggle { display: none !important; }
  .reader { display: block; }
  .reader-main { padding: 0; }
  .chapter { page-break-inside: avoid; border: 0; }
  body { font-size: 12pt; }
  a { text-decoration: none; }
}
