/* =========================================================
   Frei und Privat – Editorial Redesign
   Ruhige, einladende Lese-Optik. Keine Marketing-Klischees.
   ========================================================= */

:root {
  /* Palette – warmer Sand + tiefes Petrol + dezenter Ocker */
  --bg:            #f6f1e7;   /* warmer Cremehintergrund */
  --bg-alt:        #efe7d6;   /* weicheres Beige */
  --paper:         #fbf7ee;   /* Karten / Papier */
  --ink:           #1f3a40;   /* tiefer Petrol-Text */
  --ink-soft:      #4f6b70;
  --ink-mute:      #7a8a8e;
  --teal:          #2f6b73;
  --teal-deep:     #1f4a51;
  --teal-soft:     rgba(47,107,115,.10);
  --ochre:         #b88a4a;
  --ochre-soft:    rgba(184,138,74,.14);
  --line:          rgba(31,58,64,.12);
  --line-strong:   rgba(31,58,64,.22);
  --shadow-1:      0 1px 2px rgba(31,58,64,.04), 0 8px 24px -12px rgba(31,58,64,.18);
  --shadow-2:      0 2px 6px rgba(31,58,64,.06), 0 18px 40px -18px rgba(31,58,64,.28);

  --radius:        14px;
  --radius-sm:     10px;
  --radius-lg:     22px;

  --font-serif:    "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max:           1120px;
  --max-narrow:    760px;

  --ease:          cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  /* dezente Papierstruktur */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(184,138,74,.06), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(47,107,115,.05), transparent 45%);
  z-index: 0;
}
main { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }

em { font-style: italic; color: var(--teal-deep); }
strong { font-weight: 600; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,241,231,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--teal) 0%, var(--teal-deep) 60%, #14333a 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.1);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  width: 140px; height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--ochre));
  border-radius: 999px;
  transition: width .6s var(--ease);
}
.progress-text {
  font-size: .85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 16px;
  font-weight: 600;
}
.hero-title {
  margin: 0 0 24px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 56ch;
}
.hero-lead-soft {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-meta {
  font-size: .9rem;
  color: var(--ink-mute);
  margin: 0;
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  transform: rotate(.4deg);
}
.hero-art::after {
  /* zarter Rahmenakzent */
  content: "";
  position: absolute;
  inset: -10px -10px auto auto;
  width: 38%;
  aspect-ratio: 1/1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Intro Band ---------- */
.intro-band {
  max-width: var(--max-narrow);
  margin: 24px auto 64px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow-1);
}
.intro-band p { margin: 0; }

/* ---------- Additional Landing Panels ---------- */
.content-panel {
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: 48px 24px 40px;
}
.content-panel-head {
  max-width: 68ch;
  margin: 0 auto 28px;
  text-align: center;
}
.content-panel-head .section-subtitle { max-width: 68ch; }
.quick-actions,
.personal-plan,
.relatives-guide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.quick-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
}
.quick-action-item:hover { border-color: var(--line-strong); background: #fff; }
.quick-action-item input { margin-top: 4px; accent-color: var(--teal); }
.quick-action-item span { display: grid; gap: 4px; }
.quick-action-item strong { font-family: var(--font-serif); font-size: 1.05rem; }
.quick-action-item small { color: var(--ink-soft); line-height: 1.4; }
.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.plan-stat {
  padding: 18px 12px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.plan-stat strong { display: block; color: var(--teal-deep); font-family: var(--font-serif); font-size: 2rem; }
.plan-stat span { color: var(--ink-soft); font-size: .9rem; }
.plan-next { padding: 18px 20px; background: var(--teal-soft); border-radius: var(--radius-sm); color: var(--teal-deep); font-weight: 600; }
.plan-date { margin: 14px 0 0; color: var(--ink-soft); text-align: center; font-size: .9rem; }
.relatives-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.relatives-grid article { padding: 20px; border-top: 3px solid var(--ochre); background: var(--bg-alt); }
.relatives-grid h3 { margin: 0 0 8px; font-family: var(--font-serif); }
.relatives-grid p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.relatives-note { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--ochre); background: rgba(190,145,70,.1); color: var(--ink-soft); }

/* ---------- Starter Guide ---------- */
.starter-guide {
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: 48px 24px 40px;
}
.starter-guide-head {
  text-align: center;
  margin-bottom: 28px;
}
.starter-guide-head .eyebrow {
  margin-bottom: 10px;
}
.starter-guide-head .section-subtitle {
  max-width: 62ch;
}
.starter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.starter-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 16px 18px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.starter-option:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}
.starter-option:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.starter-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.starter-option-content {
  display: grid;
  gap: 3px;
  flex: 1;
}
.starter-option-content strong {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 500;
}
.starter-option-content span {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.4;
}
.starter-option-arrow {
  color: var(--teal);
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.starter-option:hover .starter-option-arrow {
  transform: translateX(3px);
}

/* ---------- Chapters Overview ---------- */
.chapters-overview {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.chapters-head { text-align: center; margin-bottom: 40px; }
.section-title { margin: 0 0 12px; }
.section-subtitle {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.chapter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Chapter Card */
.chapter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.chapter-card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.chapter-card.completed {
  border-color: rgba(47,107,115,.35);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(47,107,115,.06) 100%);
}
.chapter-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.chapter-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.chapter-card:hover .chapter-card-image img {
  transform: scale(1.04);
}
.chapter-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.chapter-number {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 600;
  margin-bottom: 8px;
}
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
}
.chapter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}
.chapter-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--teal-deep);
}
.chapter-status.completed {
  color: var(--teal);
}
.chapter-status::before {
  content: "→";
  font-size: 1rem;
}
.chapter-status.completed::before {
  content: "✓";
}

.chapters-footer {
  text-align: center;
  margin-top: 56px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-deep);
  color: #f8f1e2;
  border: 1px solid var(--teal-deep);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -10px rgba(31,58,64,.6);
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-back::before { content: "←"; }
.btn-back:hover { background: var(--paper); }

/* ---------- Chapter Detail ---------- */
.chapter-details {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.chapter-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.chapter-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 32px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.chapter-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.chapter-header { margin-bottom: 28px; }
.chapter-header-number {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 600;
  margin-bottom: 10px;
}
.chapter-header-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.chapter-header-time {
  font-size: .95rem;
  color: var(--ink-soft);
}
.chapter-intro {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding: 24px 26px;
  border-left: 3px solid var(--ochre);
  border-radius: 4px var(--radius) var(--radius) 4px;
  margin: 0 0 40px;
}

.chapter-section { margin-bottom: 36px; }
.chapter-section h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-section h3::before {
  content: "";
  display: inline-block;
  width: 6px; height: 22px;
  background: var(--teal);
  border-radius: 3px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.why-list li {
  position: relative;
  padding: 10px 14px 10px 36px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.55;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 14px; top: 18px;
  width: 8px; height: 8px;
  background: var(--ochre);
  border-radius: 50%;
}

/* Steps */
.step-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.step-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.step-item.expanded { background: #fff; border-color: var(--teal-soft); }
.step-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}
.step-title .step-num {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
}
.step-title .step-text { flex: 1; }
.step-toggle {
  font-size: 1.3rem;
  color: var(--ink-mute);
  transition: transform .25s ease;
  line-height: 1;
}
.step-item.expanded .step-toggle { transform: rotate(45deg); color: var(--teal); }

.step-details {
  margin: 0;
  list-style: none;
  padding: 0 0 0 44px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), opacity .25s ease, padding-top .25s ease, padding-bottom .25s ease;
}
.step-item.expanded .step-details {
  max-height: 800px;
  opacity: 1;
  padding-top: 14px;
  padding-bottom: 4px;
}
.step-details li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.step-details li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 1px;
  background: var(--ink-mute);
}

/* Checklist */
.checklist-hint {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  user-select: none;
}
.checklist-item:hover { background: #fff; border-color: var(--line-strong); }
.checklist-item input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; cursor: pointer; }
.checklist-item input:checked + span { color: var(--ink-mute); text-decoration: line-through; }

/* Detail-Footer */
.chapter-actions {
  text-align: center;
  padding: 20px 0 0;
  margin-top: 24px;
}
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.chapter-nav .spacer { flex: 1; }

/* ---------- Celebration ---------- */
.celebration {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 80px 24px;
}
.celebration-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.celebration-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 8px 0 18px;
}
.celebration-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 52ch;
}
.celebration-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 36px;
  max-width: 480px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.celebration-list li {
  position: relative;
  padding: 10px 14px 10px 36px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.celebration-list li::before {
  content: "✓";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-size: .9rem;
  background: var(--bg-alt);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chapter-details, .celebration-card { animation: fadeUp .5s var(--ease) both; }
.chapter-card { animation: fadeUp .5s var(--ease) both; }
.chapter-card:nth-child(1) { animation-delay: .02s; }
.chapter-card:nth-child(2) { animation-delay: .06s; }
.chapter-card:nth-child(3) { animation-delay: .10s; }
.chapter-card:nth-child(4) { animation-delay: .14s; }
.chapter-card:nth-child(5) { animation-delay: .18s; }
.chapter-card:nth-child(6) { animation-delay: .22s; }
.chapter-card:nth-child(7) { animation-delay: .26s; }
.chapter-card:nth-child(8) { animation-delay: .30s; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 24px;
  }
  .hero-art { order: -1; }
  .hero-art img { transform: rotate(0); }
  .header-inner { padding: 12px 18px; }
  .progress-bar { width: 90px; }
  .brand-name { display: none; }
  .chapters-overview { padding: 32px 20px 64px; }
  .content-panel { margin-left: 16px; margin-right: 16px; padding: 32px 20px; }
  .quick-action-list, .relatives-grid { grid-template-columns: 1fr; }
  .starter-guide { padding: 32px 20px 24px; }
  .starter-options { grid-template-columns: 1fr; }
  .intro-band { margin: 0 16px 48px; padding: 22px 22px; font-size: 1.1rem; }
  .chapter-details { padding: 24px 18px 60px; }
  .chapter-intro { font-size: 1.1rem; padding: 20px; }
  .celebration-card { padding: 36px 22px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { justify-content: center; }
  .chapter-cards { grid-template-columns: 1fr; gap: 20px; }
  .content-panel { margin-left: 8px; margin-right: 8px; padding: 28px 16px; }
  .plan-summary { gap: 6px; }
  .plan-stat { padding: 14px 6px; }
  .plan-stat strong { font-size: 1.6rem; }
  .plan-stat span { font-size: .8rem; }
  .starter-guide { padding-left: 16px; padding-right: 16px; }
  .starter-option { align-items: flex-start; padding: 14px; }
  .starter-option-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .starter-option-content strong { font-size: 1rem; }
  .starter-option-content span { font-size: .86rem; }
  .step-details { padding-left: 12px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
