/* ruhestandklar – Thema und Hero-Motiv. Gerüst: /shared/app-page.css */
@font-face { font-family: "Newsreader"; src: url("/ruhestandklar/fonts/Newsreader.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/ruhestandklar/fonts/Lexend.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f6f2; --surface: #fffffd; --sunken: #eeece5;
  --ink: #1b2230; --ink-soft: #586173; --ink-faint: #8b93a3; --line: #e5e3dc;
  --accent: #34507e; --on-accent: #ffffff; --accent-strong: #22365a;
  --panel: #22365a; --panel-ink: #f4f1ea; --panel-ink-soft: #c9d5ea; --panel-line: #2e4a78;
  --good: #3e8e6b; --signal: #c8372d; --soon: #c27c26; --credit: #34507e;
  --sage: #e3e9f4; --home: #c27c26; --home-soft: #fbefe1;
  --display: "Newsreader", Georgia, serif; --ui: "Lexend", system-ui, sans-serif;
  --display-weight: 600; --display-tracking: -0.015em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --surface: #1b2029; --sunken: #15181f;
    --ink: #e7ebf2; --ink-soft: #a9b2c2; --ink-faint: #6f7889; --line: #2a303c;
    --accent: #a9c0ea; --on-accent: #12151b; --accent-strong: #a9c0ea;
    --panel: #1f2d45; --panel-line: #2e3f5c; --sage: #26344d; --home: #e6a65a; --home-soft: #3a2c1c;
  }
}
h1, h2, h3 { font-variation-settings: "opsz" 72; }
body { font-size: 18px; line-height: 1.55; }

/* Gestapelte Töpfe – dieselben Karten wie in der App */
.pots { display: grid; gap: 14px; margin: 22px 0 8px; max-width: 420px; }
.pot {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 16px;
  box-shadow: 0 18px 40px -26px rgba(34, 54, 90, 0.45);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pot:nth-child(1) { transform: rotate(-1.2deg); }
.pot:nth-child(2) { transform: rotate(0.8deg) translateX(18px); animation-delay: 0.08s; }
.pot:nth-child(3) { transform: rotate(-0.4deg) translateX(6px); animation-delay: 0.16s; }
.pot .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--sage); display: grid; place-items: center; color: var(--accent-strong); }
.pot .ico svg { width: 22px; height: 22px; }
.pot b { font-family: var(--ui); font-weight: 600; color: var(--ink); font-size: 15px; display: block; }
.pot small { color: var(--ink-soft); font-size: 13px; }
.pot .amt { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; }
.pot .bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--sage); overflow: hidden; }
.pot .bar i { display: block; height: 100%; border-radius: 8px; background: var(--accent); width: var(--used); animation: fill 1.1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fill { from { width: 0; } }

/* Handy mit Screenshot */
.phone { width: min(340px, 100%); margin: 0 auto; padding: 10px; border-radius: 44px; background: var(--panel); border: 1px solid var(--panel-line); box-shadow: 0 30px 60px -28px rgba(34, 54, 90, 0.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

/* Fristen-Liste */
.deadlines { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px 20px; max-width: 520px; }
.deadline { display: grid; grid-template-columns: 5px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.deadline:last-child { border-bottom: 0; }
.deadline::before { content: ""; width: 5px; height: 38px; border-radius: 3px; background: var(--c); }
.deadline span { display: block; color: var(--c); font-weight: 650; font-size: 13px; }
.deadline b { font-weight: 600; color: var(--ink); }
.deadline em { font-style: normal; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.draft { display: inline-block; padding: 2px 9px; border-radius: 8px; background: rgba(138, 92, 184, 0.12); color: #8a5cb8; font-size: 13px; font-weight: 650; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) { .pot, .pot .bar i { animation: none; } }
@media (max-width: 760px) { .pot:nth-child(2) { transform: rotate(0.8deg) translateX(8px); } }

/* Zeitstrahl bis zum Rentenbeginn */
.steps { list-style: none; padding: 0; margin: 18px 0 6px; max-width: 440px; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.steps li b { font-family: var(--display); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps li.goal { background: var(--sage); }
