/* pendelklar – Thema und Hero-Motiv. Gerüst: /shared/app-page.css */
@font-face { font-family: "Fraunces"; src: url("/pendelklar/fonts/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/pendelklar/fonts/DMSans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --bg: #f7f6f2; --surface: #fffffd; --sunken: #eeece5;
  --ink: #17262a; --ink-soft: #55666a; --ink-faint: #8a9294; --line: #e5e3dc;
  --accent: #1f6f63; --on-accent: #ffffff; --accent-strong: #134a42;
  --panel: #134a42; --panel-ink: #f4f1ea; --panel-ink-soft: #bedfd7; --panel-line: #24605a;
  --good: #3e8e6b; --signal: #c8372d; --soon: #d9862b; --credit: #1f6f63;
  --sage: #ddefea; --home: #d9862b; --home-soft: #fbefe1;
  --display: "Fraunces", Georgia, serif; --ui: "DM Sans", system-ui, sans-serif;
  --display-weight: 600; --display-tracking: -0.015em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111716; --surface: #1a2322; --sunken: #141b1a;
    --ink: #e6efed; --ink-soft: #a6b6b3; --ink-faint: #6f7c79; --line: #2a3634;
    --accent: #8fd3c4; --on-accent: #111716; --accent-strong: #8fd3c4;
    --panel: #163d37; --panel-line: #24504a; --sage: #1e3d38; --home: #e6a65a; --home-soft: #3a2c1c;
  }
}
h1, h2, h3 { font-variation-settings: "SOFT" 100, "opsz" 72; }

/* 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(19, 74, 66, 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(19, 74, 66, 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); } }

/* Wochenstreifen: Mo–Fr als Tagestypen */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 420px; margin: 18px 0 6px; }
.week div { border-radius: 14px; padding: 10px 6px; text-align: center; font-weight: 650; font-size: 14px; background: var(--sage); color: var(--accent-strong); }
.week div.h { background: var(--home-soft); color: var(--home); }
.week div small { display: block; font-weight: 500; color: var(--ink-soft); }
