/* =========================================================
   PEPP — Landing Page Styles
   Warm Editorial: Fraunces (headlines) + DM Sans (body)
   Palette: coral #EB7556 · cream #FFF1AB · charcoal #2B2929 · white

   Token architecture (3 layers):
     1. Brand primitives  — what colors/fonts look like ("coral", "cream")
     2. Semantic tokens   — what they mean for the UI ("primary", "text")
     3. Component styles  — use only semantic tokens, never primitives
   To rebrand: change layer 1. Layers 2 + 3 update automatically.
   ========================================================= */

:root {
  /* ============ 1. BRAND PRIMITIVES ============ */
  /* Colors as they appear in the brand kit */
  --coral:      #EB7556;
  --coral-tint: #F4B6A6;
  --coral-mute: #FAD9D1;
  --coral-soft: #FFF1EC;
  --coral-deep: #e1623f;   /* hover state of coral */

  --cream:      #FFF1AB;
  --cream-soft: #FFFBE0;

  --ink:        #2B2929;
  --ink-soft:   #5c5856;
  --ink-faint:  #8a8584;
  --ink-deep:   #1f1d1d;
  --ink-darkest:#1a1818;   /* footer bg */

  --white:      #ffffff;
  --line:       #ece8e5;

  /* Functional primitives */
  --red:        #dc3545;
  --red-soft:   rgba(220, 53, 69, 0.12);
  --green:      #28a745;
  --green-soft: #d4edda;

  /* Fonts */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ============ 2. SEMANTIC TOKENS ============ */
  /* Colors by role — what they mean in the UI */

  /* Surfaces (backgrounds) */
  --color-bg:            var(--white);
  --color-surface:       var(--white);
  --color-surface-alt:   var(--cream-soft);   /* alternating section bg */
  --color-surface-tint:  var(--coral-soft);   /* subtle warm bg */
  --color-overlay-dark:  linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);

  /* Text */
  --color-text:            var(--ink);
  --color-text-muted:      var(--ink-soft);
  --color-text-faint:      var(--ink-faint);
  --color-text-on-dark:    rgba(255, 255, 255, 0.78);
  --color-text-on-primary: var(--white);

  /* Brand / interaction */
  --color-primary:       var(--coral);
  --color-primary-hover: var(--coral-deep);
  --color-primary-soft:  var(--coral-soft);
  --color-accent:        var(--coral);   /* eyebrows, highlights */
  --color-highlight:     var(--coral);   /* inline highlighted words */

  /* Borders, lines */
  --color-border:       var(--line);
  --color-border-hover: var(--coral-tint);

  /* Status */
  --color-success:      var(--green);
  --color-success-soft: var(--green-soft);
  --color-error:        var(--red);
  --color-error-soft:   var(--red-soft);
  --color-focus-ring:   rgba(235, 117, 86, 0.15);

  /* ============ SPACING SCALE (4px base) ============ */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ============ TYPE SCALE ============ */
  --text-hero:    clamp(2.5rem, 6vw, 4.5rem);
  --text-h2:      clamp(1.9rem, 4.2vw, 2.9rem);
  --text-h3:      1.25rem;
  --text-lead:    clamp(1.15rem, 2.2vw, 1.4rem);
  --text-body:    1.0625rem;
  --text-sub:     1.1rem;
  --text-small:   0.9rem;
  --text-xs:      0.82rem;
  --text-eyebrow: 0.8rem;

  /* ============ LAYOUT ============ */
  --maxw:        1100px;
  --maxw-narrow: 720px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* ============ SHADOWS ============ */
  --shadow-sm:       0 2px 8px rgba(43, 41, 41, 0.04);
  --shadow-md:       0 10px 30px rgba(43, 41, 41, 0.08);
  --shadow-lg:       0 20px 50px rgba(43, 41, 41, 0.12);
  --shadow-primary:  0 6px 18px rgba(235, 117, 86, 0.32);

  /* ============ MOTION ============ */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.15s;
  --dur:      0.22s;
  --dur-slow: 0.6s;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* offset for sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p { margin: 0 0 var(--space-4); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Coral highlight used inline in headings */
.hl {
  color: var(--color-highlight);
  font-style: italic;
  font-weight: 500;
}

/* Eyebrow label above section titles */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-4);
}
.eyebrow-light { color: var(--color-primary-soft); }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container.narrow { max-width: var(--maxw-narrow); }

section { padding-block: clamp(var(--space-16), 10vw, 110px); }

.section-title { font-size: var(--text-h2); margin-bottom: 0.4em; }
.section-title-light { color: var(--white); }
.section-sub { font-size: var(--text-sub); color: var(--color-text-muted); max-width: 56ch; }
.section-head { margin-bottom: clamp(var(--space-10), 6vw, var(--space-12)); }
.lead, .lede {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* =========================================================
   TYPOGRAPHIC BALANCE (prevents orphaned line-end words)
   Progressive enhancement — older browsers ignore gracefully.
   ========================================================= */
p, li, dd, blockquote { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6,
.eyebrow, .hero-sub, .section-sub, .cta-sub, .hero-note,
.feature-title, .step-title { text-wrap: balance; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85em 1.4em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-on-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg { font-size: var(--text-sub); padding: 1em 1.7em; }
.btn-block { width: 100%; justify-content: center; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--space-1);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 68px;
}

/* Logo (replaces CSS wordmark). Coral wordmark on transparent bg. */
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  line-height: 0;
}
.wordmark:hover { text-decoration: none; }
.logo {
  height: 30px;
  width: auto;
  max-width: 100%;
  display: block;
  /* Stabiles Seitenverhältnis verhindert Layout-Shift beim Laden. */
  aspect-ratio: 1692 / 438;
  object-fit: contain;
}
/* Footer logo sits on dark — coral still reads well, slight brightness bump */
.logo-footer {
  height: 32px;
  filter: brightness(1.05);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { font-size: 0.92rem; padding: 0.7em 1.2em; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 26px; height: 2.5px;
  background: var(--color-text);
  border-radius: var(--space-1);
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-2) var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-nav a {
  padding: 14px 0;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav .mobile-nav-cta {
  margin-top: var(--space-4);
  border-bottom: 0;
  justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, rgba(255, 251, 224, 0.2) 100%);
  padding-top: clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-10), 6vw, 72px);
  align-items: center;
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: 0.5em;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 38ch;
  margin-bottom: 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: var(--space-4);
}
.hero-note {
  font-size: var(--text-small);
  color: var(--color-text-faint);
  margin: 0;
}

/* ---- CSS Mock Schedule Card ---- */
.hero-visual { position: relative; }
.mock-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}
.mock-card:hover { transform: rotate(0deg) translateY(-4px); }
.mock-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}
.mock-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin-right: auto;
}
.mock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 0.35em 0.7em;
  border-radius: var(--radius-pill);
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.mock-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.mock-day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-1);
}
.chip {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5em 0.3em;
  border-radius: var(--space-1);
  line-height: 1.1;
}
.chip-coral { background: var(--color-primary); color: var(--color-text-on-primary); }
.chip-cream { background: var(--cream); color: var(--color-text); }
.chip-muted { background: var(--coral-mute); color: var(--color-primary); }
.mock-col-sat .chip-coral { background: var(--color-text); }
.mock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.mock-footer strong { color: var(--color-text); }
.mock-ok { color: var(--color-success); font-weight: 600; }

/* =========================================================
   PROBLEM
   ========================================================= */
.problem { text-align: center; }

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  background: linear-gradient(180deg, var(--color-surface-alt), var(--white) 90%);
}
.features .section-head { text-align: center; }
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
/* Inline SVG icon utility — Lucide style, 1.5px stroke, inherits currentColor */
.icon {
  width: 28px;
  height: 28px;
  display: block;
}
.feature-icon .icon { width: 26px; height: 26px; }
.success-icon .icon { width: 30px; height: 30px; }
.feature-title { font-size: var(--text-h3); margin-bottom: 0.35em; }
.feature-text {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how .section-head { text-align: center; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.step { position: relative; padding-top: var(--space-2); }
.step-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-4);
}
.step-title { font-size: 1.3rem; margin-bottom: 0.35em; }
.step-text { color: var(--color-text-muted); font-size: 0.98rem; margin: 0; }

/* =========================================================
   AUDIENCE
   ========================================================= */
.audience {
  background: var(--color-surface-alt);
  text-align: center;
}

/* =========================================================
   ABOUT + PORTRAIT
   ========================================================= */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(var(--space-10), 5vw, 60px);
  align-items: center;
}

/* Portrait image — circular, cover-fit, soft shadow.
   Displayed at 280px; source file is high-res so srcset 2x is served
   from the same file (browser picks by device pixel ratio). */
.about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  justify-self: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.about-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.about-bio {
  font-size: var(--text-sub);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.about-contact {
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

/* =========================================================
   CTA + FORM
   ========================================================= */
.cta {
  background: var(--color-overlay-dark);
  color: var(--white);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
}
.cta-sub {
  font-size: var(--text-sub);
  color: var(--color-text-on-dark);
  margin-bottom: 1.4rem;
}
.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cta-bullets li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.88);
}
.cta-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Form card */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.waitlist-form { display: flex; flex-direction: column; gap: var(--space-4); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
}
.field-hint {
  display: block;
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
}
.opt { font-weight: 400; color: var(--color-text-faint); font-size: var(--text-xs); }
.req { color: var(--color-primary); }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.8em 0.95em;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-soft);
}

.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 1em;
}

/* Consent row */
.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
}
.field-check input[type="checkbox"] {
  margin-top: var(--space-1);
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.check-label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.inline-link { color: var(--color-primary); font-weight: 600; }

/* Honeypot (hidden from humans) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Success state */
.form-success {
  text-align: center;
  padding: var(--space-5) var(--space-2);
}
.success-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
.form-success p { color: var(--color-text-muted); margin: 0; }

/* =========================================================
   PEPP-TALK CTA STRIP
   ========================================================= */
.talk-cta {
  background: var(--color-surface-tint);
  border-top: 1px solid var(--color-border);
}
.talk-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.talk-cta-inner .eyebrow { margin-bottom: var(--space-3); }
.talk-cta-inner .section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 0.3em; }
.talk-cta-sub {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0;
}
.talk-cta .btn { flex-shrink: 0; }

@media (max-width: 720px) {
  .talk-cta-inner { flex-direction: column; align-items: flex-start; }
  .talk-cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   BLOG (shared index + post styles)
   ========================================================= */
.blog-hero {
  background: var(--color-surface-alt);
  padding-top: clamp(var(--space-16), 8vw, var(--space-20));
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-12));
}
.blog-hero .container { max-width: var(--maxw-narrow); }
.blog-title {
  font-size: var(--text-hero);
  margin-bottom: 0.3em;
}
.blog-lead {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  max-width: 56ch;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.post-card {
  display: block;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.post-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.post-meta-sep { margin-inline: 0.5em; opacity: 0.6; }
.post-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.post-card-excerpt {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0 0 var(--space-3);
}
.post-card-readmore {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-small);
}

/* Single post page */
.post-page article {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--space-6);
}
.post-back:hover { color: var(--color-primary); }
.post-header { margin-bottom: var(--space-8); }
.post-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: var(--space-3);
}
.post-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
}
.post-body h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.post-body h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.post-body p { margin-bottom: 1.2em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.post-body li { margin-bottom: 0.5em; }
.post-body blockquote {
  margin: 1.6em 0;
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
  font-style: italic;
}
.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--color-surface-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.post-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.post-body img { border-radius: var(--radius); margin: 1.6em 0; }

/* =========================================================
   PULLED NEWSLETTER EMAIL (.nl-shell) — Single-Source HTML
   post.html injects a newsletter's table.nl-shell directly
   (dieselbe HTML-Datei wie in MailerLite). Alle Farben und
   Typography stehen inline in der Mail und gelten unverändert.
   Diese Rules ergänzen nur: (a) Zentrierung der 600px-Karte
   und (b) das responsive Verhalten — die @media-Regeln der
   Mail stehen in deren <head> und reisen nicht mit dem
   extrahierten Knoten mit, daher hier gespiegelt (scoped
   unter .post-body). Inline-Styles haben Vorrang; !important
   nur dort, wo die Mail es auf Handy ebenfalls überschreibt.
   ========================================================= */

/* Die 600px weiße Inhalts-Karte, zentriert in der Lese-Spalte */
.post-body .nl-shell {
  width: 100% !important;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 20px;
}
/* Mail-Bilder sind inline gestylt; die Blog-Defaults für
   .post-body img (margin + border-radius) hier neutralisieren.
   Wo die Mail inline Werte setzt (z. B. rundes Porträt), gewinnt das. */
.post-body .nl-shell img { margin: 0; border-radius: 0; }

/* Responsive — Spiegel der @media (max-width: 600px) aus der Mail */
@media (max-width: 600px) {
  .post-body .nl-shell { max-width: 100% !important; }
  /* Direkt-Kind-Zellen der Karte: Seiten-Padding 40px → 22px */
  .post-body table.nl-shell > tbody > tr > td {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .post-body .nl-h1 { font-size: 25px !important; line-height: 1.15 !important; }
  .post-body .nl-h2 { font-size: 21px !important; }
  /* Stat-Reihe: 3 Spalten → untereinander stapeln */
  .post-body .nl-stat-td {
    display: block !important;
    width: 100% !important;
    padding: 0 0 12px 0 !important;
  }
  .post-body .nl-stat-td:last-child { padding-bottom: 0 !important; }
  /* Porträt-Karte: Bild + Text → untereinander stapeln */
  .post-body .nl-portrait-img,
  .post-body .nl-portrait-txt {
    display: block !important;
    width: 100% !important;
  }
  .post-body .nl-portrait-img { padding: 20px 0 4px 0 !important; }
  .post-body .nl-portrait-txt { padding: 0 0 20px 0 !important; text-align: center !important; }
  .post-body .nl-portrait-txt p { text-align: center !important; }
  /* CTA-Button volle Breite */
  .post-body .nl-cta-btn { width: 100% !important; box-sizing: border-box !important; }
  .post-body .nl-cta-btn a { display: block !important; width: auto !important; }
}

/* =========================================================
   PEPP-TALK — RICH NEWSLETTER COMPONENTS (.nl-*)
   Token-driven brand components for the newsletter-style
   blog posts. Use only semantic tokens (Layer 2), never
   primitives directly — keeps the 3-layer rebrand path intact.
   ========================================================= */

/* Eyebrow inside post body needs a touch more breathing room */
.nl-eyebrow {
  display: inline-block;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
/* Suppress top margin when eyebrow is the very first child of body */
.post-body > .nl-eyebrow:first-child { margin-top: 0; }

/* Warm coral callout — the emotional core statement */
.nl-callout {
  background: var(--color-primary-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-10) 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--color-text);
  font-weight: 500;
}

/* Large editorial pull quote */
.nl-pullquote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
  border-left: none;
  background: none;
  margin: var(--space-12) auto;
  max-width: 28ch;
  text-align: center;
  position: relative;
  padding: var(--space-8) 0;
}
.nl-pullquote::before,
.nl-pullquote::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto;
  border-radius: var(--radius-pill);
}
.nl-pullquote::before { margin-bottom: var(--space-6); }
.nl-pullquote::after  { margin-top: var(--space-6); }

/* Stat row — big coral numbers + muted label */
.nl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-10) 0;
  text-align: center;
}
.nl-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-3);
  box-shadow: var(--shadow-sm);
}
.nl-stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.nl-stat-label {
  display: block;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Numbered roadmap steps (01 / 02 / 03) */
.nl-roadmap {
  margin: var(--space-10) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.nl-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.nl-step-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}
.nl-step-title {
  font-size: 1.35rem;
  margin-bottom: 0.3em;
}
.nl-step-text { margin: 0; color: var(--color-text-muted); }

/* Portrait + bio card */
.nl-portrait-card {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-10) 0;
}
.nl-portrait-card img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  justify-self: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin: 0;
}
.nl-portrait-card .eyebrow { margin-top: 0; }
.nl-portrait-text p:last-child { margin-bottom: 0; }
.nl-portrait-text strong { color: var(--color-text); }

/* CTA block at the end */
.nl-cta {
  text-align: center;
  margin: var(--space-12) 0 var(--space-8);
  padding: var(--space-10) var(--space-4);
  background: var(--color-surface-tint);
  border-radius: var(--radius-lg);
}
.nl-cta-question {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.nl-cta-hint {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* =========================================================
   RESPONSIVE — newsletter components
   ========================================================= */
@media (max-width: 880px) {
  .nl-portrait-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .nl-callout { font-size: 1.2rem; padding: var(--space-5) var(--space-6); }
  .nl-stats { grid-template-columns: 1fr; }
  .nl-step { padding: var(--space-5) var(--space-6); }
  .nl-cta { padding: var(--space-8) var(--space-3); }
}

.post-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Loading + error states for client-side markdown render */
.render-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
}
.render-state.is-error { color: var(--color-error); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-darkest);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}
.wordmark-footer { margin: 0; }
.wordmark-footer:hover { opacity: 0.85; }
.footer-tagline { margin: 0; font-size: 0.95rem; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-size: 0.85rem;
  margin-top: var(--space-2);
}
.footer-meta a { color: rgba(255, 255, 255, 0.7); }
.footer-meta a:hover { color: var(--color-primary); }
.footer-made { color: rgba(255, 255, 255, 0.5); }
.footer-made .hl { color: var(--color-primary); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  /* Collapse nav to hamburger */
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[data-open="true"] {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
  }

  /* Hero stacks */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .hero-visual { order: 2; max-width: 460px; margin-inline: auto; width: 100%; }

  /* Features: 2 columns */
  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  /* Steps: stack vertically */
  .steps { grid-template-columns: 1fr; gap: var(--space-8); }
  .step-num { font-size: 2.2rem; display: inline-block; margin-bottom: 6px; }

  /* About: stack */
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin-inline: auto; }

  /* CTA: stack */
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  section { padding-block: clamp(var(--space-12), 14vw, var(--space-20)); }

  /* Features: single column */
  .feature-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .container { padding-inline: var(--space-5); }

  /* Mock card: tighten the grid */
  .mock-grid { gap: 5px; }
  .chip { font-size: 0.62rem; padding: 0.45em 0.2em; }
  .mock-day { font-size: 0.65rem; }

  .footer-meta { flex-direction: column; gap: 6px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mock-card { transform: none; }
}

/* =========================================================
   MAILERLITE EMBED — PEPP-BRANDING OVERRIDES
   =========================================================
   Das von MailerLite gerenderte Formular kommt mit eigenem Styling
   (Open Sans, graue Boxen, schwarzer Button). Wir überschreiben
   gezielt auf die PEPP-Marke (Fraunces + DM Sans, Coral, Cream,
   runde Felder, Pill-Button). !important ist nötig, weil MailerLites
   eigene Regeln hochspezifisch sind (#mlb2-… .ml-form-…).
   ========================================================= */

/* Wrapper-Hintergrund transparent → die .form-card (weiß) scheint durch */
.ml-form-embedContainer .ml-form-embedWrapper {
  background-color: transparent !important;
  border: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.ml-form-embedBody { padding: 0 !important; }

/* Optionaler Intro-Text („Trag Dich ein…") im PEPP-Look */
.ml-form-embedContent h4,
.ml-form-successContent h4 {
  font-family: var(--font-head) !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
  letter-spacing: -0.01em !important;
}
.ml-form-embedContent p,
.ml-form-successContent p {
  font-family: var(--font-body) !important;
  color: var(--color-text-muted) !important;
}

/* Feld-Labels */
.ml-block-form .ml-field-group label,
.ml-block-form .ml-form-fieldRow label {
  font-family: var(--font-body) !important;
  color: var(--color-text) !important;
  font-weight: 600 !important;
  font-size: var(--text-small) !important;
}

/* Inputs + Textareas */
.ml-block-form .ml-form-fieldRow input[type="text"],
.ml-block-form .ml-form-fieldRow input[type="email"],
.ml-block-form .ml-form-fieldRow textarea {
  font-family: var(--font-body) !important;
  color: var(--color-text) !important;
  background-color: var(--color-surface) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 10px !important;
  padding: 0.8em 0.95em !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease) !important;
}
.ml-block-form .ml-form-fieldRow input:focus,
.ml-block-form .ml-form-fieldRow textarea:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px var(--color-focus-ring) !important;
}

/* Consent-Checkbox-Text */
.ml-block-form .ml-form-checkboxRow .label-description,
.ml-block-form .ml-form-checkboxRow label {
  font-family: var(--font-body) !important;
  color: var(--color-text-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}
.ml-block-form .ml-form-checkboxRow label a { color: var(--color-primary) !important; }

/* Submit-Button → PEPP Pill-Button (coral) */
.ml-block-form .ml-form-embedSubmit button {
  background-color: var(--color-primary) !important;
  color: var(--color-text-on-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: 2px solid transparent !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.85em 1.4em !important;
  box-shadow: var(--shadow-primary) !important;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease) !important;
  cursor: pointer !important;
}
.ml-block-form .ml-form-embedSubmit button:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-2px) !important;
}

/* Success-Message nach dem Submit */
.ml-form-successBody {
  text-align: center !important;
}
.ml-form-successContent h4 {
  font-size: 1.4rem !important;
}
