/* Gestaltung des Finanz-Tools.
 *
 * Grundgedanke: Die Oberfläche wird gelesen und bedient, nicht bewundert. Die
 * einzige kräftige Farbe ist das Petrol des Bedienelements; Rot und Grün sind
 * ausschließlich der Bedeutung „Ausgabe" und „Einnahme" vorbehalten und werden
 * nie zur Dekoration verwendet.
 *
 * Kategorienfarben: Jede Hauptkategorie hat einen festen Farbton, damit sie über
 * alle Ansichten hinweg wiedererkennbar bleibt. Unterkategorien sind Abstufungen
 * desselben Tons. Im Balkendiagramm trägt die Farbe keine Information — dort
 * steht der Name daneben —, sie dient nur der Wiedererkennung.
 * Die acht Farbtöne sind auf Farbfehlsichtigkeit geprüft (OKLab-Abstand ≥ 8 für
 * benachbarte Paare, in hell und dunkel).
 */

:root {
  --papier: #F4F6F7;
  --flaeche: #FFFFFF;
  --flaeche-2: #EDF0F2;
  --tinte: #12171B;
  --tinte-schwach: #57646E;
  --tinte-sehr-schwach: #8B98A1;
  --linie: #DDE3E7;
  --linie-stark: #C3CDD3;
  --akzent: #0F6B66;
  --akzent-hell: #E3F0EE;
  --akzent-schrift: #FFFFFF;

  /* Bedeutung, nicht Dekoration */
  --ausgabe: #A83E2C;
  --einnahme: #2C6E4B;
  --hinweis: #9C6B1E;
  --hinweis-flaeche: #FBF3E4;

  /* Kategorien, feste Reihenfolge */
  --kat-wohnen: #2a78d6;
  --kat-lebensmittel: #eb6834;
  --kat-mobilitaet: #1baf7a;
  --kat-freizeit: #eda100;
  --kat-shopping: #e87ba4;
  --kat-versicherung: #008300;
  --kat-kommunikation: #4a3aa7;
  --kat-gesundheit: #e34948;
  /* Seltenere Kategorien bleiben neutral: mehr als acht unterscheidbare
   * Farbtöne sind nicht verlässlich auseinanderzuhalten. */
  --kat-urlaub: #6E7B85;
  --kat-bildung: #8B98A1;
  --kat-finanzen: #57646E;
  --kat-sparen: #0F6B66;
  --kat-umbuchung: #A6B2BA;
  --kat-einnahme: #2C6E4B;
  --kat-unbekannt: #B7C2C9;

  --schatten: 0 1px 2px rgba(18, 23, 27, .06), 0 8px 24px -12px rgba(18, 23, 27, .18);
  --radius: 6px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #0E1317;
    --flaeche: #161D22;
    --flaeche-2: #1D262C;
    --tinte: #E7EDF0;
    --tinte-schwach: #9DAAB3;
    --tinte-sehr-schwach: #6B7880;
    --linie: #29343B;
    --linie-stark: #3A484F;
    --akzent: #4FB0A8;
    --akzent-hell: #17302F;
    --akzent-schrift: #08211F;
    --ausgabe: #E08A76;
    --einnahme: #6FBE91;
    --hinweis: #D3A45C;
    --hinweis-flaeche: #2A2317;
    --kat-wohnen: #3987e5;
    --kat-lebensmittel: #d95926;
    --kat-mobilitaet: #199e70;
    --kat-freizeit: #c98500;
    --kat-shopping: #d55181;
    --kat-versicherung: #008300;
    --kat-kommunikation: #9085e9;
    --kat-gesundheit: #e66767;
    --kat-urlaub: #7D8A94;
    --kat-bildung: #6B7880;
    --kat-finanzen: #9DAAB3;
    --kat-sparen: #4FB0A8;
    --kat-umbuchung: #4A575F;
    --kat-einnahme: #6FBE91;
    --kat-unbekannt: #4A575F;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  }
}

:root[data-theme="dark"] {
  --papier: #0E1317;
  --flaeche: #161D22;
  --flaeche-2: #1D262C;
  --tinte: #E7EDF0;
  --tinte-schwach: #9DAAB3;
  --tinte-sehr-schwach: #6B7880;
  --linie: #29343B;
  --linie-stark: #3A484F;
  --akzent: #4FB0A8;
  --akzent-hell: #17302F;
  --akzent-schrift: #08211F;
  --ausgabe: #E08A76;
  --einnahme: #6FBE91;
  --hinweis: #D3A45C;
  --hinweis-flaeche: #2A2317;
  --kat-wohnen: #3987e5;
  --kat-lebensmittel: #d95926;
  --kat-mobilitaet: #199e70;
  --kat-freizeit: #c98500;
  --kat-shopping: #d55181;
  --kat-versicherung: #008300;
  --kat-kommunikation: #9085e9;
  --kat-gesundheit: #e66767;
  --kat-urlaub: #7D8A94;
  --kat-bildung: #6B7880;
  --kat-finanzen: #9DAAB3;
  --kat-sparen: #4FB0A8;
  --kat-umbuchung: #4A575F;
  --kat-einnahme: #6FBE91;
  --kat-unbekannt: #4A575F;
  --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Rahmen und Navigation --------------------------------------------- */

.kopfleiste {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  z-index: 10;
}
.kopfleiste-inhalt {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  flex-wrap: wrap;
}
.marke {
  font-family: var(--serif);
  font-size: 19px;
  text-decoration: none;
  color: var(--tinte);
  white-space: nowrap;
}
.navigation { display: flex; gap: 4px; flex-wrap: wrap; }
.navigation a {
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--tinte-schwach);
  font-size: 14.5px;
  white-space: nowrap;
}
.navigation a:hover { background: var(--flaeche-2); color: var(--tinte); }
.navigation a[aria-current="page"] {
  background: var(--akzent-hell);
  color: var(--akzent);
  font-weight: 600;
}
.navigation .zaehler {
  display: inline-block;
  margin-left: 6px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--hinweis);
  color: var(--flaeche);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 18px;
}
.abmelden { margin-left: auto; font-size: 14px; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }

h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tinte-schwach);
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.unterzeile { color: var(--tinte-schwach); margin: 0 0 24px; font-size: 15px; }

/* --- Kacheln ------------------------------------------------------------ */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.kachel {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 15px 17px;
}
.kachel-label {
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tinte-sehr-schwach);
  margin-bottom: 7px;
}
.kachel-wert {
  font-family: var(--mono);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.kachel-fuss {
  font-size: 12.5px;
  color: var(--tinte-schwach);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.geld-aus { color: var(--ausgabe); }
.geld-ein { color: var(--einnahme); }

/* --- Balken nach Kategorie ---------------------------------------------- */

.balkenliste { display: flex; flex-direction: column; gap: 8px; }
.balken-zeile {
  display: grid;
  grid-template-columns: 190px 1fr 96px 52px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 3px 4px;
  border-radius: 4px;
}
a.balken-zeile:hover { background: var(--flaeche-2); }
.balken-name {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.balken-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Der Punkt trägt die Kategoriefarbe, damit dieselbe Kategorie in jeder
 * Ansicht wiedererkennbar ist — der Balken selbst bleibt einfarbig. */
.punkt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--kat-unbekannt);
}
.balken-spur {
  display: block;
  height: 20px;
  background: var(--flaeche-2);
  border-radius: 3px;
  overflow: hidden;
}
.balken-fuellung {
  display: block;
  height: 100%;
  background: var(--akzent);
  border-radius: 3px;
}
.balken-wert {
  font-family: var(--mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.balken-anteil {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--tinte-sehr-schwach);
}

/* Kategorienfarben als Klasse, damit Vorlagen sie ohne Inline-Stil setzen
 * können — die Sicherheitsrichtlinie der Seite verbietet Inline-Styles. */
.kat-wohnen        { background: var(--kat-wohnen); }
.kat-lebensmittel  { background: var(--kat-lebensmittel); }
.kat-mobilitaet    { background: var(--kat-mobilitaet); }
.kat-freizeit      { background: var(--kat-freizeit); }
.kat-shopping      { background: var(--kat-shopping); }
.kat-versicherung  { background: var(--kat-versicherung); }
.kat-kommunikation { background: var(--kat-kommunikation); }
.kat-gesundheit    { background: var(--kat-gesundheit); }
.kat-urlaub        { background: var(--kat-urlaub); }
.kat-bildung       { background: var(--kat-bildung); }
.kat-finanzen      { background: var(--kat-finanzen); }
.kat-sparen        { background: var(--kat-sparen); }
.kat-umbuchung     { background: var(--kat-umbuchung); }
.kat-einnahme      { background: var(--kat-einnahme); }
.kat-unbekannt     { background: var(--kat-unbekannt); }

/* --- Tabellen ----------------------------------------------------------- */

.tabellenrahmen { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tinte-sehr-schwach);
  font-weight: 500;
  padding: 0 14px 8px 0;
  border-bottom: 1px solid var(--linie);
  white-space: nowrap;
}
td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
td.zahl, th.zahl {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
td:last-child, th:last-child { padding-right: 0; }
tbody tr:hover { background: var(--flaeche-2); }
.zeile-neutral td { color: var(--tinte-sehr-schwach); }

/* --- Bedienelemente ----------------------------------------------------- */

.knopf, button, input[type="submit"] {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--akzent);
  color: var(--akzent-schrift);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.knopf:hover, button:hover { filter: brightness(1.08); }
.knopf-leise {
  background: var(--flaeche);
  color: var(--tinte);
  border-color: var(--linie-stark);
}
.knopf-klein { padding: 4px 10px; font-size: 13px; font-weight: 500; }

input[type="text"], input[type="password"], input[type="search"],
input[type="file"], input[type="number"], select {
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  background: var(--flaeche);
  color: var(--tinte);
  max-width: 100%;
}

.filterzeile {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.zeitraum { display: flex; gap: 2px; background: var(--flaeche-2); border-radius: var(--radius); padding: 3px; }
.zeitraum a {
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 4px;
  color: var(--tinte-schwach);
  text-decoration: none;
  white-space: nowrap;
}
.zeitraum a[aria-current="page"] {
  background: var(--flaeche);
  color: var(--tinte);
  font-weight: 600;
}

/* --- Meldungen ---------------------------------------------------------- */

.meldung {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}
.meldung-hinweis { background: var(--hinweis-flaeche); border-color: var(--hinweis); }
.meldung-hinweis b { color: var(--hinweis); }
.meldung-fehler { background: var(--flaeche); border-color: var(--ausgabe); }
.meldung-fehler b { color: var(--ausgabe); }
.meldung-erfolg { border-color: var(--einnahme); }
.meldung-erfolg b { color: var(--einnahme); }
.meldung .knopf { margin-left: auto; }

.pille {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--flaeche-2);
  color: var(--tinte-schwach);
  white-space: nowrap;
}
.pille-pruefen { background: var(--hinweis-flaeche); color: var(--hinweis); }
.pille-sicher { background: var(--akzent-hell); color: var(--akzent); }

.leer {
  text-align: center;
  padding: 48px 20px;
  color: var(--tinte-schwach);
  background: var(--flaeche);
  border: 1px dashed var(--linie-stark);
  border-radius: var(--radius);
}
.leer p { margin: 0 0 16px; }

/* --- Prüfliste ---------------------------------------------------------- */

.karten { display: flex; flex-direction: column; gap: 12px; }
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.karte-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.karte-haendler { font-weight: 600; font-size: 15px; }
.karte-betrag {
  font-family: var(--mono);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.karte-zweck {
  font-size: 13px;
  color: var(--tinte-schwach);
  margin: 0 0 12px;
  word-break: break-word;
}
.karte-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.merken {
  font-size: 12.5px;
  color: var(--tinte-schwach);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- Anmeldung ---------------------------------------------------------- */

.anmeldung {
  max-width: 380px;
  margin: 12vh auto 0;
  padding: 32px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 10px;
  box-shadow: var(--schatten);
}
.anmeldung h1 { font-size: 22px; margin-bottom: 20px; }
.feld { margin-bottom: 16px; }
.feld label {
  display: block;
  font-size: 13px;
  color: var(--tinte-schwach);
  margin-bottom: 5px;
}
.feld input { width: 100%; }
.anmeldung button { width: 100%; padding: 10px; }

/* --- Geldfluss ---------------------------------------------------------- */

.fluss { overflow-x: auto; }
.fluss svg { min-width: 640px; }
.fluss-band { opacity: .32; }
.fluss-band:hover { opacity: .55; }
.fluss-beschriftung { font-size: 13px; fill: var(--tinte); }
.fluss-betrag {
  font-size: 12px;
  fill: var(--tinte-schwach);
  font-family: var(--mono);
}

@media (max-width: 720px) {
  .balken-zeile { grid-template-columns: 118px 1fr 84px; }
  .balken-anteil { display: none; }
  h1 { font-size: 24px; }
  main { padding: 20px 14px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Balkenbreiten als Klassen statt Inline-Stil: die Sicherheitsrichtlinie
 * der Seite (style-src 'self') verbietet style-Attribute, und dafuer eine
 * Ausnahme zu oeffnen waere ein schlechter Tausch fuer eine Balkenbreite. */
.breite-0 { width: 0%; }
.breite-1 { width: 1%; }
.breite-2 { width: 2%; }
.breite-3 { width: 3%; }
.breite-4 { width: 4%; }
.breite-5 { width: 5%; }
.breite-6 { width: 6%; }
.breite-7 { width: 7%; }
.breite-8 { width: 8%; }
.breite-9 { width: 9%; }
.breite-10 { width: 10%; }
.breite-11 { width: 11%; }
.breite-12 { width: 12%; }
.breite-13 { width: 13%; }
.breite-14 { width: 14%; }
.breite-15 { width: 15%; }
.breite-16 { width: 16%; }
.breite-17 { width: 17%; }
.breite-18 { width: 18%; }
.breite-19 { width: 19%; }
.breite-20 { width: 20%; }
.breite-21 { width: 21%; }
.breite-22 { width: 22%; }
.breite-23 { width: 23%; }
.breite-24 { width: 24%; }
.breite-25 { width: 25%; }
.breite-26 { width: 26%; }
.breite-27 { width: 27%; }
.breite-28 { width: 28%; }
.breite-29 { width: 29%; }
.breite-30 { width: 30%; }
.breite-31 { width: 31%; }
.breite-32 { width: 32%; }
.breite-33 { width: 33%; }
.breite-34 { width: 34%; }
.breite-35 { width: 35%; }
.breite-36 { width: 36%; }
.breite-37 { width: 37%; }
.breite-38 { width: 38%; }
.breite-39 { width: 39%; }
.breite-40 { width: 40%; }
.breite-41 { width: 41%; }
.breite-42 { width: 42%; }
.breite-43 { width: 43%; }
.breite-44 { width: 44%; }
.breite-45 { width: 45%; }
.breite-46 { width: 46%; }
.breite-47 { width: 47%; }
.breite-48 { width: 48%; }
.breite-49 { width: 49%; }
.breite-50 { width: 50%; }
.breite-51 { width: 51%; }
.breite-52 { width: 52%; }
.breite-53 { width: 53%; }
.breite-54 { width: 54%; }
.breite-55 { width: 55%; }
.breite-56 { width: 56%; }
.breite-57 { width: 57%; }
.breite-58 { width: 58%; }
.breite-59 { width: 59%; }
.breite-60 { width: 60%; }
.breite-61 { width: 61%; }
.breite-62 { width: 62%; }
.breite-63 { width: 63%; }
.breite-64 { width: 64%; }
.breite-65 { width: 65%; }
.breite-66 { width: 66%; }
.breite-67 { width: 67%; }
.breite-68 { width: 68%; }
.breite-69 { width: 69%; }
.breite-70 { width: 70%; }
.breite-71 { width: 71%; }
.breite-72 { width: 72%; }
.breite-73 { width: 73%; }
.breite-74 { width: 74%; }
.breite-75 { width: 75%; }
.breite-76 { width: 76%; }
.breite-77 { width: 77%; }
.breite-78 { width: 78%; }
.breite-79 { width: 79%; }
.breite-80 { width: 80%; }
.breite-81 { width: 81%; }
.breite-82 { width: 82%; }
.breite-83 { width: 83%; }
.breite-84 { width: 84%; }
.breite-85 { width: 85%; }
.breite-86 { width: 86%; }
.breite-87 { width: 87%; }
.breite-88 { width: 88%; }
.breite-89 { width: 89%; }
.breite-90 { width: 90%; }
.breite-91 { width: 91%; }
.breite-92 { width: 92%; }
.breite-93 { width: 93%; }
.breite-94 { width: 94%; }
.breite-95 { width: 95%; }
.breite-96 { width: 96%; }
.breite-97 { width: 97%; }
.breite-98 { width: 98%; }
.breite-99 { width: 99%; }
.breite-100 { width: 100%; }

/* --- Monatsvergleich ----------------------------------------------------- */

/* Balken-Töne der Monate: eine Helligkeitsreihe desselben Blaus. Der jüngste
 * Monat ist der kräftigste; bei mehr als vier Monaten wiederholt sich die
 * Reihe — der Monatsname steht ohnehin an jedem Balken. */
:root {
  --ton-0: #7FA8D9;
  --ton-1: #4E85C8;
  --ton-2: #2a78d6;
  --ton-3: #17529B;
}
:root[data-theme="dark"], :root:not([data-theme="light"]) {
  --ton-0: #3A5A80;
  --ton-1: #3E71AC;
  --ton-2: #3987e5;
  --ton-3: #74ABF0;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ton-0: #7FA8D9;
    --ton-1: #4E85C8;
    --ton-2: #2a78d6;
    --ton-3: #17529B;
  }
}
.ton-0 { background: var(--ton-0); }
.ton-1 { background: var(--ton-1); }
.ton-2 { background: var(--ton-2); }
.ton-3 { background: var(--ton-3); }

.monatswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
}
.monat-kaestchen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid var(--linie-stark);
  border-radius: 100px;
  cursor: pointer;
  background: var(--flaeche);
  white-space: nowrap;
}
.monat-kaestchen:has(input:checked) {
  background: var(--akzent-hell);
  border-color: var(--akzent);
  color: var(--akzent);
  font-weight: 600;
}
.monat-kaestchen input { accent-color: var(--akzent); margin: 0; }

.vergleich-legende {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--tinte-schwach);
}
.legende-eintrag { display: inline-flex; align-items: center; gap: 6px; }
.legende-farbe {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.vergleich-liste { display: flex; flex-direction: column; gap: 20px; }
.vergleich-block {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.vergleich-titel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
}
.vergleich-titel a { color: inherit; text-decoration: none; }
.vergleich-titel a:hover { color: var(--akzent); }
.vergleich-balken { display: flex; flex-direction: column; gap: 5px; }
.vergleich-zeile {
  display: grid;
  grid-template-columns: 64px 1fr 96px;
  align-items: center;
  gap: 12px;
}
.vergleich-monat {
  font-size: 12px;
  color: var(--tinte-schwach);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vergleich-zeile .balken-spur { height: 16px; }

@media (max-width: 640px) {
  .vergleich-zeile { grid-template-columns: 52px 1fr 82px; gap: 8px; }
}
