/* Billinski Steuer: what the stylesheet of Billinski Büro (buero.css, an unchanged copy of buero/internal/web/static/
   app.css) does not have. Colours only as its variables, so that light and dark follow without a second set. */

/* signing in */
.signin { min-height: 100vh; display: grid; place-content: center; padding: 2rem 16px; }
.signin-card { width: min(460px, calc(100vw - 32px)); padding: 2rem 2rem 1.6rem; display: grid; gap: 1rem; }
.signin-card h1 { font-size: 1.8rem; } .signin-form { display: grid; gap: .9rem; } .signin-form .btn { width: fit-content; } .small { font-size: .84rem; }

/* the result, on every page of a declaration */
.bilanz { position: sticky; top: 12px; z-index: 6; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.4rem; padding: .85rem 1.3rem; margin-bottom: 14px; }
.bilanz small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.bilanz b { display: block; font: 600 1.75rem/1.15 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bilanz.plus b { color: var(--ok); } .bilanz.minus b { color: var(--bad-text); } .bilanz.still b { color: var(--muted); }
.bilanz-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.bilanz-rechts .chip { text-decoration: none; } .bilanz-link { font-size: .88rem; font-weight: 600; color: var(--aqua-strong); }
.bilanz.neu b { animation: zahl .6s var(--ease); }
@keyframes zahl { from { transform: translateY(6px); opacity: .3; } to { transform: none; opacity: 1; } }
.menu a em.fund { background: var(--warn-soft); color: var(--warn); }
.scope { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }

/* a long title in the menu breaks into two lines instead of running into the next one */
@media (min-width: 981px) { .menu a { height: auto; min-height: 36px; padding-block: .4rem; line-height: 1.25; gap: .5rem; } .menu a em { flex: none; } }

/* the declarations of a person */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 14px; margin-bottom: 14px; }
.karte { display: grid; gap: .55rem; padding: 1.2rem 1.3rem 1.1rem; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.karte:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: .6rem; } .karte-kopf b { font: 600 2.1rem/1 var(--display); letter-spacing: -0.04em; }
.karte-namen { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.karte-zahl small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.karte-zahl b { font: 600 1.5rem var(--display); letter-spacing: -0.03em; } .karte-zahl.plus b { color: var(--ok); } .karte-zahl.minus b { color: var(--bad-text); }
.karte-fuss { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding-top: .6rem; border-top: 1px solid var(--line); } .karte-fuss small { color: var(--muted); font-size: .82rem; }
.row.jahr-zeile { grid-template-columns: minmax(0, 1fr) auto; } .row.jahr-zeile b { font: 600 1.25rem var(--display); }
.row .aktionen .btn { padding: .5rem 1.05rem; font-size: .9rem; }

/* lists of points, and the way through a declaration */
.punkte { margin: 0; padding-left: 2.5rem; display: grid; gap: .35rem; font-size: .95rem; } .pad .punkte { padding-left: 1.2rem; } ul.punkte.pad, ol.punkte.pad { padding-left: 2.5rem; }
.wegliste { list-style: none; margin: 0; padding: 0; }
.wegliste li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .85rem 1.3rem; border-top: 1px solid var(--line); }
.wegliste .nr { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-content: center; font: 600 .95rem var(--display); background: var(--soft); color: var(--muted); }
.wegliste li.fertig .nr { background: var(--ok-soft); color: var(--ok); }
.wegliste b { display: block; } .wegliste small { color: var(--muted); font-size: .9rem; } .wegliste .btn { padding: .5rem 1.05rem; font-size: .9rem; }

/* the choice of themes */
.row.wahl-zeile, .row.haken-zeile { grid-template-columns: minmax(0, 1fr) auto; }
.haken { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.haken label, .jn label { position: relative; display: inline-flex; cursor: pointer; }
.haken input, .jn input[type="radio"] { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.haken span, .jn label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--field-line); background: var(--field); font-size: .9rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.haken input:checked + span, .jn input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.haken input:focus-visible + span, .jn input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.haken input:disabled + span, .jn input:disabled + span { opacity: .6; cursor: default; }
.haken input:checked + span::before { content: "✓"; margin-right: .4rem; }
.haken-zeile input[type="checkbox"], .haken-allein input { width: 1.3rem; height: 1.3rem; accent-color: var(--aqua-strong); }
.haken-allein { display: flex; gap: .6rem; align-items: center; font-weight: 600; }

/* a theme: sections with their questions */
.abschnitt { border: 0; margin: 0; padding: .2rem 1.3rem 1.3rem; min-width: 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.card > .abschnitt:first-child { padding-top: 1.3rem; }
.abschnitt legend { padding: 0; font: 600 1.05rem var(--display); float: left; width: 100%; margin-bottom: .3rem; } .abschnitt legend + * { clear: both; }
.abschnitt > .why { margin-bottom: .7rem; max-width: 60rem; }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.feld { grid-column: auto; align-content: start; } .feld[hidden] { display: none; }
.feld label, .feld .lab { font-size: .92rem; line-height: 1.35; }
.eingabe { display: flex; align-items: center; gap: .5rem; } .eingabe input, .eingabe select { flex: 1 1 auto; min-width: 0; }
.einheit { flex: none; min-width: 1.6rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.f input.num { text-align: right; font-variant-numeric: tabular-nums; }
.jn { display: flex; flex-wrap: wrap; gap: .4rem; }
.beleg { justify-self: start; font-size: .76rem; font-weight: 600; color: var(--aqua-strong); background: var(--aqua-soft); border-radius: 999px; padding: .1rem .6rem; }
.herkunft { justify-self: start; }
.woher { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.stelle { font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 999px; padding: .1rem .6rem; }
.feld .err:empty, .feld .fundtext:empty { display: none; }
.feld .fundtext { font-size: .84rem; color: var(--warn); font-weight: 500; }
.feld.fund input, .feld.fund select { border-color: var(--warn); }
.feld:target { scroll-margin-top: 7rem; } .feld:target label, .feld:target .lab { color: var(--aqua-strong); }
.actions.unten { align-self: end; padding-bottom: .1rem; }

/* the calculation: a line with its way, and its parts below it */
.rechnung .zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1.2rem; padding: .8rem 1.3rem; border-top: 1px solid var(--line); }
.rechnung .zeile b { font-weight: 600; } .rechnung .zeile small { display: block; color: var(--muted); font-size: .86rem; max-width: 62rem; overflow-wrap: anywhere; }
.rechnung .zeile small i { font-style: normal; font-weight: 600; color: var(--subtle); }
.rechnung .zeile > .r { font-weight: 600; white-space: nowrap; }
.rechnung .teilzeilen { grid-column: 1 / -1; margin: .5rem 0 .1rem; border-radius: .9rem; background: var(--warm); border: 1px solid var(--line); }
.rechnung .teilzeilen .zeile { padding: .55rem .9rem; font-size: .93rem; } .rechnung .teilzeilen .zeile:first-child { border-top: 0; }
.rechnung .teilzeilen .zeile b, .rechnung .teilzeilen .zeile > .r { font-weight: 500; }
.rechnung .teilzeilen .teilzeilen { background: var(--paper); }
.rechnung > .zeile:last-child { background: var(--soft); border-radius: 0 0 var(--r-lg) var(--r-lg); } .rechnung > .zeile:last-child b, .rechnung > .zeile:last-child > .r { font: 600 1.15rem var(--display); }

/* two or four columns of numbers side by side */
.vgl { overflow: hidden; }
.vgl-zeile { display: grid; grid-template-columns: minmax(9rem, 1.6fr) repeat(4, minmax(0, 1fr)); gap: .8rem; padding: .7rem 1.3rem; border-top: 1px solid var(--line); align-items: baseline; }
.vgl.drei .vgl-zeile { grid-template-columns: minmax(9rem, 1.6fr) repeat(3, minmax(0, 1fr)); }
.vgl-zeile.kopf { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); background: var(--warm); }
.vgl-zeile.stark { background: var(--soft); font-weight: 600; } .vgl-zeile.anders span:last-child { color: var(--warn); font-weight: 600; }
.vgl-zeile span { min-width: 0; overflow-wrap: anywhere; }

/* forms view, receipts, the log */
.row.fund-zeile { grid-template-columns: minmax(0, 1fr) auto; }
.row.vd-zeile { grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: baseline; } .row.vd-zeile b { font-weight: 600; }
.vd-nr { font: 600 1rem var(--display); color: var(--aqua-strong); }
.beleg-karte .ph h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
.row.wandel s { color: var(--muted); }
.mailtext { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.frist-kpis .kpi b.klein { font-size: 1.2rem; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-pop); animation: enter .4s var(--ease) both; }
.toast.bad { background: var(--bad); }

/* the summary for printing */
.druck { max-width: 50rem; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.druck header { margin: 1rem 0 1.6rem; } .druck h1 { font-size: 1.7rem; margin: .8rem 0 .4rem; } .druck header p, .druck footer p { color: var(--muted); font-size: .92rem; }
.druck section { margin-bottom: 1.4rem; break-inside: avoid-page; } .druck h2 { font-size: 1.15rem; padding-bottom: .3rem; border-bottom: 2px solid var(--ink); margin-bottom: .4rem; }
.druck h3 { font: 600 .95rem var(--sans); margin: .8rem 0 .2rem; color: var(--muted); }
.druck table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .92rem; } .druck td { padding: .32rem 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; } .druck td.r { width: 42%; padding-left: 1rem; font-weight: 600; }
.druck td small { color: var(--muted); } .druck td.nr { width: 2.6rem; font-weight: 600; color: var(--muted); } .druck-hinweis { font-size: .88rem; color: var(--muted); } .druck ul { padding-left: 1.2rem; font-size: .9rem; color: var(--muted); }
.druck-knoepfe { display: flex; gap: .6rem; flex-wrap: wrap; }
@media print {
  .druck-knoepfe, .glowbg, .skip { display: none !important; }
  body { background: #fff; } .druck { max-width: none; padding: 0; }
}

@media (max-width: 980px) {
  .bilanz { position: static; }
  .felder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bilanz b { font-size: 1.45rem; } .bilanz { padding: .8rem 1rem; }
  .abschnitt { padding-inline: 1rem; }
  .wegliste li { grid-template-columns: 2.2rem minmax(0, 1fr); padding-inline: 1rem; } .wegliste .btn { grid-column: 2; justify-self: start; }
  .row.wahl-zeile, .row.jahr-zeile { grid-template-columns: minmax(0, 1fr); } .haken, .row .aktionen { justify-content: flex-start; }
  .vgl-zeile, .vgl.drei .vgl-zeile { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .8rem; padding-inline: 1rem; }
  .vgl-zeile.kopf { display: none; } .vgl-zeile [role="rowheader"] { grid-column: 1 / -1; font-weight: 600; }
  .vgl-zeile [role="cell"] { display: contents; } .vgl-zeile [role="cell"]::before { content: attr(data-l); color: var(--muted); font-size: .86rem; text-align: left; }
  .rechnung .zeile { padding-inline: 1rem; } .rechnung .teilzeilen .zeile { padding-inline: .7rem; }
  .signin-card { padding: 1.5rem 1.2rem 1.2rem; }
}

/* what the script hides stays hidden, whatever a class says about display */
[hidden] { display: none !important; }

/* ---- forms inside a card: the six columns of .grid, which .pad of Büro's sheet (one column) would take away ---- */
.grid.pad { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
.grid > .note { grid-column: 1 / -1; }
/* a paragraph with a link in it is text, not a grid of its pieces */
p.pad { display: block; }
.frist-kpis + .why { margin: .1rem 0 1rem; }
/* The rows of the menu take the height of their entry. Without this a menu longer than its column keeps every row at
   the least height of an entry (36px), and a title of two lines runs into its neighbours. */
@media (min-width: 981px) { .menu { grid-auto-rows: max-content; } }
/* "Einkommensteuer 2025 · abgegeben" is said whole */
.side .firma-fest { white-space: normal; }
/* a button beside fields stands on the line of the fields, not under their hints */
@media (min-width: 641px) { .grid .f.unten { align-self: start; padding-top: 1.5rem; } }

/* ---- the demo: its badge under the menu and the way back to billinski.de (as in Billinski Marketing) ---- */
.demo-badge { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .2rem .65rem; margin-bottom: .45rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: .74rem; font-weight: 600; }
.druck-knoepfe { align-items: center; } .druck-knoepfe .demo-badge { margin: 0; } .druck-knoepfe .demo-home { font-size: .82rem; color: var(--muted); }
.who .demo-home { display: inline-block; margin-top: .45rem; font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.who .demo-home:hover { color: var(--ink); }

/* the accesses for an assistant on the page of the account (scope ST11): the way to withdraw one stands beside it */
.ki-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; }
/* the address an assistant asks, on the page of the account (scope ST11) */
.ki-adresse { margin: .4rem 0 .6rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--field); font: .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre; }
/* the price of a declaration before its handing in to ELSTER (zahlung.go) */
.preis-band { margin: .9rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--soft); }
.preis-band p:first-child { margin-top: 0; }
.preis-band .actions small { display: block; flex-basis: 100%; color: var(--muted); }
/* the electronic withdrawal function of § 356a BGB: on every page of a paid declaration during its withdrawal period */
.widerruf-knopf { padding: .35rem .8rem; font-size: .85rem; }
