/* Erstling — helles, warmes Design, mobile first.
 *
 * Bewusste Abweichung von den dunklen Anduril-Diensten (nalat.de): Diese
 * Seite ist für Eltern im Wochenbett gedacht, oft nachts am Handy, oft mit
 * einem Baby auf dem Arm. Deshalb heller Grundton, große Tipp-Flächen
 * (min. 44px), sehr hoher Kontrast und keine Animationen, die ablenken.
 */

:root {
  color-scheme: light;
  --page: #fdfaf6;
  --page-soft: #fdf1e3;
  --surface: #ffffff;
  --surface-muted: #fbf5ee;
  --line: #eadfd2;
  --line-strong: #d9c8b4;
  --ink: #2c2620;
  --ink-soft: #5c5349;
  --ink-muted: #857a6d;
  --brand: #d4803f;
  --brand-strong: #b3641f;
  --brand-soft: #fdefe0;
  --brand-ink: #52290a;
  --mint: #4f9d75;
  --mint-soft: #e7f4ed;
  --blue: #4b7fc4;
  --blue-soft: #e8f0fa;
  --rose: #c25a5c;
  --rose-soft: #fbeaea;
  --amber: #b98a2a;
  --amber-soft: #fbf1dc;
  --shadow-sm: 0 1px 2px rgb(90 62 35 / .06), 0 2px 8px rgb(90 62 35 / .05);
  --shadow-md: 0 4px 12px rgb(90 62 35 / .09), 0 12px 32px rgb(90 62 35 / .08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}

a { color: var(--brand-strong); }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------- Hero ---------------- */

.hero {
  width: 100%;
  background:
    radial-gradient(circle at 82% 8%, rgb(255 206 148 / .55), transparent 42%),
    radial-gradient(circle at 12% 92%, rgb(255 226 190 / .5), transparent 40%),
    linear-gradient(160deg, var(--page-soft), var(--page));
  border-bottom: 1px solid var(--line);
  padding: 40px 18px 30px;
  text-align: center;
}

.hero-inner { max-width: var(--max); margin: 0 auto; }

.hero-badge {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  font-size: 2.2rem;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.hero-sub {
  margin: 12px auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-nav a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hero-nav a.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------------- Blöcke ---------------- */

main { width: min(100%, var(--max)); margin: 0 auto; padding: 0 16px; }

.block { padding: 38px 0 8px; }

/* Letzter Block braucht Luft, weil die fixe Bottom-Nav (~72px) sonst den
   letzten Button überdeckt. body hat zusätzlich padding-bottom als Sicherheit. */
main > .block:last-child { padding-bottom: 76px; }

.block-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  letter-spacing: -.02em;
}

.block-sub {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.tag-muss, .tag-frist, .tag-muss-soft {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}
.tag-muss { background: var(--mint-soft); color: var(--mint); }
.tag-frist { background: var(--rose-soft); color: var(--rose); }
.tag-muss-soft { background: var(--blue-soft); color: var(--blue); }

/* ---------------- Fortschritt ---------------- */

.progress-card {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.progress-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 9px; }
#progress-label { font-size: .98rem; }
#progress-note { font-size: .82rem; color: var(--ink-muted); }

.progress-bar {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transition: width .3s ease;
}

.btn-ghost {
  margin-top: 10px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--surface-muted); color: var(--ink); }

/* ---------------- Checkliste ---------------- */

.acc {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.acc-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--acc-farbe, var(--brand)) 14%, #fff);
}

.acc-title { flex: 1; min-width: 0; }
.acc-title strong { display: block; font-size: 1.04rem; }
.acc-meta { display: block; font-size: .78rem; color: var(--ink-muted); margin-top: 2px; }

.acc-count {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: .76rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.acc-count.fertig { background: var(--mint-soft); color: var(--mint); }

.acc-chevron { flex-shrink: 0; color: var(--ink-muted); transition: transform .2s ease; }
.acc.open .acc-chevron { transform: rotate(180deg); }

.acc-body { display: none; padding: 0 16px 16px; }
.acc.open .acc-body { display: block; }

.acc-intro {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: .88rem;
}

.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li { border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 11px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.check-box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .8rem;
  color: transparent;
  transition: background .15s ease, border-color .15s ease;
}

.check-item.erledigt .check-box {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
}
.check-item.erledigt .check-text { color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.check-text { flex: 1; font-size: .95rem; }
.check-text .flag { margin-left: 4px; font-size: .9rem; }

.check-item.warnung .check-text { color: var(--ink-soft); }
.check-item.warnung .check-box { border-color: var(--rose); }

/* ---------------- Behörden ---------------- */

.amt-list { display: grid; gap: 12px; }

.amt {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.amt-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.amt-stripe {
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--amt-farbe, var(--brand));
}

.amt-title { flex: 1; min-width: 0; }
.amt-title strong { display: block; font-size: 1.02rem; line-height: 1.35; }
.amt-frist {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.amt-frist.pflicht { background: var(--rose-soft); color: var(--rose); }
.amt-frist.geld { background: var(--amber-soft); color: var(--amber); }
.amt-frist.wichtig { background: var(--blue-soft); color: var(--blue); }
.amt-frist.optional { background: var(--surface-muted); color: var(--ink-muted); }

.amt-body { display: none; padding: 0 16px 18px; }
.amt.open .amt-body { display: block; }

.amt-kurz { margin: 0 0 16px; font-size: .95rem; color: var(--ink-soft); }

.amt-section { margin-bottom: 16px; }
.amt-section:last-child { margin-bottom: 0; }

.amt-section h4 {
  margin: 0 0 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.amt-section ul { margin: 0; padding-left: 0; list-style: none; }

.amt-section li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.amt-section li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.amt-section.tipps li::before { background: var(--brand); }

.amt-wo {
  display: flex;
  gap: 8px;
  padding: 11px 13px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-size: .88rem;
  color: var(--ink-soft);
}

.amt-quelle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand-strong);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}
.amt-quelle:hover { background: var(--brand-soft); }

/* ---------------- Kauf ---------------- */

.kauf-acc {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.kauf-body { display: none; padding: 0 14px 16px; }
.kauf-acc.open .kauf-body { display: block; }

.kauf-hinweis {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: #6f5312;
  font-size: .88rem;
}

.prod {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.prod:first-child { border-top: 0; }

.prod-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.prod-name { font-size: .99rem; font-weight: 700; line-height: 1.35; }
.prod-preis {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}
.prod-why { font-size: .9rem; color: var(--ink-soft); }

.prod-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(180 100 30 / .22);
}
.prod-link:hover { background: var(--brand-strong); }

/* ---------------- Tipps ---------------- */

.tipp-grid { display: grid; gap: 12px; }

.tipp {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tipp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.tipp-head span { font-size: 1.3rem; }
.tipp-head strong { font-size: 1rem; }
.tipp p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------------- FAQ ---------------- */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-q .plus { flex-shrink: 0; margin-left: auto; color: var(--brand-strong); font-weight: 800; }
.faq-a { display: none; padding: 0 16px 16px; font-size: .93rem; color: var(--ink-soft); }
.faq.open .faq-a { display: block; }

/* ---------------- Bottom-Nav ---------------- */

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 -6px 20px rgb(90 62 35 / .07);
  backdrop-filter: blur(16px);
}

.bottom-nav > div {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.bottom-nav a {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 14px;
  color: var(--ink-muted);
  font-size: .68rem;
  font-weight: 700;
  text-decoration: none;
}
.bottom-nav a .nav-ico { font-size: 1.15rem; line-height: 1.1; }
.bottom-nav a.aktiv { background: var(--brand-soft); color: var(--brand-strong); }

/* ---------------- Footer ---------------- */

footer {
  width: min(100%, var(--max));
  margin: 30px auto 0;
  padding: 22px 16px 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: .84rem;
}
footer strong { color: var(--ink-soft); }
footer p { margin: 0 0 8px; }
.foot-note { font-size: .79rem; line-height: 1.55; }

/* ---------------- Responsive ---------------- */

@media (min-width: 620px) {
  .tipp-grid { grid-template-columns: 1fr 1fr; }
  .amt-list { grid-template-columns: 1fr 1fr; }
  .amt.open { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero { padding: 30px 14px 24px; }
  .hero-stats span { font-size: .75rem; }
  .progress-card { padding: 12px 13px; }
}

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

@media print {
  .bottom-nav, .progress-card .btn-ghost, .hero-nav, .skip-link { display: none !important; }
  body { padding-bottom: 0; }
  .acc-body, .amt-body, .kauf-body, .faq-a { display: block !important; }
}