/* taxpunkt design system — the single source of truth for every shared control.

   Every page links this stylesheet BEFORE its own <style>, and page CSS must not
   restate anything defined here. tools/dead_check.py enforces that: a page declaring
   a skin property (color, background, border, radius, weight …) on a selector this
   file owns is reported as a problem. Sizing stays a page-family choice: a page may
   set font-size and padding on .btn / .btn.ghost, and layout (margins, flex) on any
   owned selector. Deliberate exceptions are whitelisted in the checker, with reasons.

   Why this file exists: the same controls drifted apart when each page carried its
   own copy — the review page's back pill shipped in ink/600 beside the site's
   plum/700, the gold hint box accumulated five recipes, and two near-identical reds
   grew for "danger". A recipe that lives once cannot drift. */

:root {
  --ground: #FAF6EF;
  --card: #FFFFFF;
  --ink: #362334;
  --muted: #77705F;
  --line: #EAE2D3;
  --plum: #5E2A57;
  --plum-deep: #4A2144;
  --plum-tint: #F3EAF2;
  --gold: #B08A1E;
  --gold-bg: #F6ECD2;
  --gold-line: #E8D9AE;
  --gold-ink: #6B5A23;
  --money: #1E6B4E;
  --warn-bg: #FBEFEA;
  --warn-line: #D9A08A;
  --warn-ink: #7A3A1E;
  /* the admin pages named the warn tones "danger" before the palettes were unified;
     same values, kept as aliases so both vocabularies resolve */
  --danger: #7A3A1E;
  --danger-bg: #FBEFEA;
  --danger-line: #D9A08A;
  --radius: 14px;
}

/* The wordmark. 20px everywhere; it is the brand, not a heading. */
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.035em; text-decoration: none; color: inherit; }
.logo .lt { color: var(--plum); }
.logo .lp { color: var(--ink); }
.logo .lsq { display: inline-block; width: 0.3em; height: 0.3em; background: var(--gold); border-radius: 2px; margin-left: 3px; }

/* The language switch: one white pill, the active language filled. */
.lang { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang a, .lang span, .lang button {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  border: none; background: none; border-radius: 99px; padding: 4px 12px;
  text-decoration: none; cursor: pointer;
}
.lang .on { background: var(--plum); color: #fff; }

/* Pills. Skin lives here; size is a page-family choice, so a page sets only
   font-size and padding on its .btn (marketing runs larger, the admin runs denser). */
.btn {
  font: inherit; font-weight: 700; border: none; border-radius: 99px;
  background: var(--plum); color: #fff; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--plum-deep); }
/* outlined pills draw their line with an inset shadow, which takes no space, so a
   ghost pill is the identical box to the solid pill beside it (a real border made
   every ghost 3px taller — the same bug the sample badge had) */
.btn.ghost { background: var(--card); color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn.small { font-size: 13px; padding: 7px 14px; }
.btn.danger { background: #8C2F1B; color: #fff; box-shadow: none; }
.btn.danger:hover { background: #6F2413; }
.btn[disabled] { opacity: .5; cursor: default; }

/* The way back: one per screen, below the content, right aligned (SCREENS.md).
   Fully self-contained so the page's own .btn sizing cannot leak in. */
.endnav {
  display: flex; justify-content: flex-end; margin: 26px 0 0;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.endnav .btn {
  background: var(--card); color: var(--plum); font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line); border: none; border-radius: 99px;
  font-size: 14px; padding: 9px 18px; text-decoration: none; display: inline-block;
}
.endnav .btn:hover { background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--plum); }

/* A content card. */
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* The gold callout. Structure (icons, flex, margins) stays with the page. */
.hint {
  background: var(--gold-bg); border: 1.5px solid var(--gold-line);
  border-radius: 12px; color: var(--gold-ink); font-size: 14px; padding: 12px 16px;
}

/* Feedback after an action: green for done, red for failed. */
.msg { border-radius: 10px; padding: 10px 13px; font-size: 13.5px; }
.msg.ok { background: #E7F3EC; border: 1.5px solid #BEDCC9; color: var(--money); }
.msg.bad { background: var(--warn-bg); border: 1.5px solid var(--warn-line); color: var(--warn-ink); }

/* One phone heading for every app and admin page (Ali, 9 Sep 2026): pages opt in with
   body.app; the marketing pages keep their fluid headlines. Stronger than a page's own
   plain h1 rule, weaker than a page's classed one, so the funnel's hero stays 31px. */
@media (max-width: 640px) {
  body.app h1 { font-size: 18px; line-height: 1.3; }
}

/* The support card (item 25, Ali picked W1 on 9 Sep 2026): the same three facts on the
   landing footer, the FAQ and the Impressum. Labels muted, values bold, address a link. */
.supcard { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; padding: 16px 20px; border: 1.5px solid var(--line);
           border-radius: 12px; background: var(--card); font-size: 14px; text-align: left; margin: 0 0 18px; }   /* as wide as the blocks under it, with the same gap (Ali, 9 Sep 2026) */
.supcard span:nth-child(odd) { color: var(--muted); }
.supcard span:nth-child(even) { font-weight: 600; color: var(--ink); }
.supcard a { color: var(--plum); }
footer .supcard { margin: 0 auto 14px; }
