/* stundenklar – Thema und Hero-Motiv. Gerüst: /shared/app-page.css */
@font-face { font-family: "Schibsted Grotesk"; src: url("/stundenklar/fonts/SchibstedGrotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/stundenklar/fonts/InstrumentSans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --bg: #f7f6f2; --surface: #fffffd; --sunken: #eeece6;
  --ink: #1c2033; --ink-soft: #5a6075; --ink-faint: #8a8fa3; --line: #e5e3dc;
  --accent: #2f3e9e; --on-accent: #ffffff; --accent-strong: #1f2a6e;
  --panel: #1f2a6e; --panel-ink: #f4f3ee; --panel-ink-soft: #c6ccec; --panel-line: #33408a;
  --good: #3e8e6b; --signal: #c8372d; --soon: #c98a00; --credit: #2f3e9e;
  --apricot: #f08a4b; --mist: #e4e7f6;
  --display: "Schibsted Grotesk", system-ui, sans-serif; --ui: "Instrument Sans", system-ui, sans-serif;
  --display-weight: 650; --display-tracking: -0.015em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12131a; --surface: #1b1d27; --sunken: #15161e;
    --ink: #e8e9f0; --ink-soft: #a9adc0; --ink-faint: #6f7388; --line: #2b2e3c;
    --accent: #aeb8f2; --on-accent: #12131a; --accent-strong: #aeb8f2;
    --panel: #1d2560; --panel-line: #2c3880; --mist: #262b48; --signal: #ef7350; --soon: #e0a72a;
  }
}
h1, h2, h3 { letter-spacing: -0.02em; }

/* Monats-Karte – dieselbe wie in der App */
.meter {
  margin: 22px 0 8px; max-width: 420px; padding: 20px 22px 18px; border-radius: 26px;
  background: linear-gradient(135deg, #3445ad, #1f2a6e); color: #fff;
  box-shadow: 0 22px 44px -26px rgba(31, 42, 110, 0.7);
  transform: rotate(-1deg); animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.meter p { margin: 0; }
.meter-label { font-size: 15px; color: #d7dbf5; font-weight: 600; }
.meter-amt { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.1; margin: 4px 0 6px !important; font-variant-numeric: lining-nums; }
.meter-sub { font-size: 15px; color: #e9ebfa; }
.meter .bar { display: block; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.22); overflow: hidden; margin: 16px 0 10px; }
.meter .bar i { display: block; height: 100%; border-radius: 9px; background: #fff; width: var(--used); animation: fill 1.1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.meter-foot { display: flex; justify-content: space-between; font-size: 13px; color: #d7dbf5; }
@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(31, 42, 110, 0.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

/* Grenzen-Tabelle */
.limits { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 20px; max-width: 520px; }
.limit { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.limit:last-child { border-bottom: 0; }
.limit span { color: var(--ink-soft); font-weight: 600; }
.limit b { font-family: var(--display); font-weight: 650; font-size: 22px; color: var(--ink); }
.limit em { font-style: normal; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.limit.now span { color: var(--apricot); }
.limit.now b { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .meter, .meter .bar i { animation: none; } }

/* Datentabelle auf schmalen Displays seitlich scrollbar statt die Seite zu verbreitern */
@media (max-width: 560px) { main table { display: block; overflow-x: auto; max-width: 100%; } main td, main th { min-width: 110px; } }
