/* HANDY-APP (einfache Ansicht am iPhone, seit der Übernahme am 14.11.2026; vorher Testversion "Handy-Variante 2 · Frei"):
   schwebende Leiste mit ＋ in der Mitte, Zoom durch die Zeit (Heute · Geld · Kalender · Zukunft), Umschalter oben je Reiter.
   Präfixe: h2- Seiten, bl- Fenster von unten, br- Liste hinter dem Zahnrad, ls- Leiste. Die Varianten
   (Handy 1, PC A/B/C) liegen in App\archiv\web_Varianten_bis_2026-11-14. */

/* =====================================================================================================
   HANDY GEMEINSAM (14.11.2026): Fenster von unten (bl-), Zahnrad-Liste (br-)
   ===================================================================================================== */
/* Fenster von unten */
.bl-hinter { position: fixed; inset: 0; z-index: 60; background: rgba(8, 13, 20, 0); transition: background .25s; }
.bl-hinter.auf { background: rgba(8, 13, 20, .45); }
.bl-blatt { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 86vh; padding: 6px 18px calc(env(safe-area-inset-bottom) + 18px);
  border-radius: 24px 24px 0 0; background: var(--bg); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); transform: translateY(100%); transition: transform .28s cubic-bezier(.22, .8, .24, 1); }
.bl-hinter.auf .bl-blatt { transform: none; }
.bl-griff { width: 40px; height: 5px; margin: 4px auto 8px; border-radius: 3px; background: var(--grid); }
.bl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bl-kopf h2 { margin: 0; font-size: 19px; }
.bl-zu { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--spur); color: var(--ink); font-size: 20px; cursor: pointer; }
/* flex: 1 + min-height: 0 - sonst wächst der Inhalt über das Fenster hinaus und lässt sich nicht rollen (15.11.2026) */
.bl-inhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 6px; overscroll-behavior: contain; }
.bl-liste { list-style: none; margin: 4px 0 0; padding: 0; }
.bl-liste li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--grid); font-size: 14.5px; }
.bl-liste li:not(:has(> i)) { grid-template-columns: minmax(0, 1fr) auto; }
.bl-liste li > i { width: 10px; height: 10px; border-radius: 3px; }
.bl-liste small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.bl-liste b small { text-align: right; }
.bl-liste a { color: inherit; text-decoration: none; font-weight: 600; }
.bl-zw { display: flex; justify-content: space-between; margin: 16px 0 2px; font-size: 15px; }
.bl-gross { font: 760 30px var(--schrift-titel); letter-spacing: -.6px; }
.bl-gross small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.bl-unter { margin: 6px 0; color: var(--muted); font-size: 13.5px; }
.bl-weiter { display: block; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--spur); color: var(--primary); font-weight: 650; text-align: center; text-decoration: none; }
.bl-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }

/* Liste hinter dem Zahnrad (bereiche.js) */
.br-liste { list-style: none; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.br-liste li + li { border-top: 1px solid var(--grid); }
.br-liste a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; color: inherit; text-decoration: none; }
.br-bild { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--f) 16%, var(--card)); color: var(--f); font: 700 15px var(--schrift); }
.br-text { display: grid; min-width: 0; }
.br-text b { font-size: 15px; }
.br-text small { font-size: 12.5px; color: var(--muted); }
.br-pfeil { color: var(--muted); font-size: 18px; }
.br-marke { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--gold-bg2); color: var(--gold-ink); font: 700 12px/22px var(--schrift); text-align: center; }
.br-marke.dringend { background: var(--warn); color: #fff; }

/* =====================================================================================================
   HANDY · LEISTE MIT FÜNF PLÄTZEN (Varianten 1 und 2, 14.11.2026 spätabends): Erfassen erhöht in der Mitte
   ===================================================================================================== */
.leiste button.leiste-plus { flex: 1; display: grid; place-items: center; height: var(--leiste-h); padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
@media (max-width: 759px) {
  html.ansicht-einfach .leiste a { font-size: 10.5px; }
}

/* =====================================================================================================
   HANDY 2 · FREI (h2-): schwebende Leiste, Schnellwahl, große Sätze, weiche Flächen, Bilder statt Tabellen
   ===================================================================================================== */
@media (max-width: 759px) {
  html.ansicht-einfach .leiste { left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 0 4px; border-radius: 30px;
    border: 1px solid color-mix(in srgb, var(--grid) 80%, transparent); background: color-mix(in srgb, var(--card) 74%, transparent);
    backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
  html.ansicht-einfach .leiste a svg { width: 40px; height: 26px; padding: 2px 8px; border-radius: 13px; transition: background .2s; }
  html.ansicht-einfach .leiste a.aktiv svg { background: color-mix(in srgb, var(--primary) 20%, transparent); }
  html.ansicht-einfach .plus-rund { width: 62px; height: 62px; margin-top: -34px; font-size: 32px; background: linear-gradient(140deg, var(--accent), var(--primary));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 85%, transparent), 0 12px 26px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
  html .leiste-plus[aria-expanded="true"] .plus-rund { transform: rotate(45deg); }
  html.ansicht-einfach main#inhalt { padding-bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom) + 40px); }
  /* Kopf mit drei Knöpfen (Lupe, Auge, ⚙): Knöpfe etwas schmaler, der Titel bleibt einzeilig (lange Namen mit …) */
  html.ansicht-einfach .kopf-text { min-width: 0; flex: 1; }
  html.ansicht-einfach .kopf h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 19px; }
  html.ansicht-einfach .kopf .auge { width: 34px; height: 32px; }
  html.ansicht-einfach #stand { gap: 6px; }
}
/* Schnellwahl: im Bogen über dem ＋ */
.h2-sw { position: fixed; inset: 0; z-index: 9; }
.h2-sw-hinter { position: absolute; inset: 0; background: rgba(6, 10, 16, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .22s; }
.h2-sw.auf .h2-sw-hinter { opacity: 1; }
.h2-sw-knopf { position: absolute; left: 50%; bottom: calc(var(--leiste-h) + max(10px, env(safe-area-inset-bottom)) + 18px); width: 84px; margin-left: -42px;
  display: grid; justify-items: center; gap: 6px; color: #fff; text-decoration: none; font: 650 12.5px/1.2 var(--schrift); text-align: center;
  opacity: 0; transform: translate(0, 50px) scale(.4); transition: transform .32s cubic-bezier(.2, 1.3, .4, 1), opacity .18s; transition-delay: calc(var(--i) * 28ms); }
.h2-sw.auf .h2-sw-knopf { opacity: 1; transform: translate(var(--x), var(--y)); }
.h2-sw-knopf span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--f); font-size: 23px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .h2-sw-knopf { transition: opacity .1s; } }
/* Zoom zwischen den Reitern (app.js zoomRichtung): hinaus = mehr Zeit im Blick (die alte Seite wird kleiner, die neue kommt
   aus der Nähe), hinein = näher heran. "Weniger Bewegung" schaltet es ab (app.css) */
html[data-zoom="raus"]::view-transition-old(root) { animation: 170ms ease-in both h2-zoom-klein-weg; }
html[data-zoom="raus"]::view-transition-new(root) { animation: 300ms cubic-bezier(.2, .8, .2, 1) both h2-zoom-gross-her; }
html[data-zoom="rein"]::view-transition-old(root) { animation: 170ms ease-in both h2-zoom-gross-weg; }
html[data-zoom="rein"]::view-transition-new(root) { animation: 300ms cubic-bezier(.2, .8, .2, 1) both h2-zoom-klein-her; }
@keyframes h2-zoom-klein-weg { to { opacity: 0; transform: scale(.92); } }
@keyframes h2-zoom-gross-her { from { opacity: 0; transform: scale(1.06); } }
@keyframes h2-zoom-gross-weg { to { opacity: 0; transform: scale(1.06); } }
@keyframes h2-zoom-klein-her { from { opacity: 0; transform: scale(.92); } }

/* Seiten */
.h2-seite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.h2-block { padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.h2-block h3, .h2-monat h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 760 19px/1.2 var(--schrift-titel); letter-spacing: -.2px; }
.h2-block h3 small { font: 600 12.5px var(--schrift); color: var(--muted); letter-spacing: 0; }
.h2-ohne-rahmen { padding: 0; background: none; border: 0; }
.h2-ohne-rahmen h3 { margin-left: 4px; }
.h2-satz { margin: 0; font-size: 16px; line-height: 1.45; }
.h2-satz.klein { font-size: 14.5px; color: var(--muted); }
.h2-satz.klein b { color: var(--ink); }
.h2-satz b.plus, .h2-satz.klein b.plus { color: var(--accent); }
.h2-satz b.minus, .h2-satz.klein b.minus { color: var(--warn); }
.h2-gold, .h2-satz.klein b.h2-gold { color: var(--gold); }
.h2-weiter { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--grid); color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; }
.h2-weiter span { color: var(--primary); }
button.h2-weiter { width: 100%; border: 0; border-top: 1px solid var(--grid); padding: 10px 0 0; background: none; font: 600 14px var(--schrift); text-align: left; cursor: pointer; }
.h2-wege { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-wege a { padding: 8px 14px; border-radius: 999px; background: var(--spur); color: var(--primary); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.h2-wege a::after { content: ' ›'; }
.h2-warn { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 18px; background: var(--fehler-bg); color: var(--fehler-ink); text-decoration: none; font-size: 14px; }
/* ein Hinweis zum Erledigen (Reisekosten abrechnen) - gold, kein Fehler */

/* eine Aufgabe auf Heute (Reisekasse des Einsatzes in Montage-Farbe, Monatsabschluss): Text links, rechts ein ＋ */
.h2-aufgabe { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 18px; border-left: 4px solid var(--f);
  background: color-mix(in srgb, var(--f) 12%, var(--card)); font-size: 14px; }
.h2-aufgabe > a:first-child { display: grid; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.h2-aufgabe small { font-size: 12.5px; color: var(--muted); }
.h2-aufgabe-plus { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--f); color: var(--s); font-size: 13px; font-weight: 700; text-decoration: none; }
/* die vier Zeilen der Checkliste als Punkte: erledigt grün, offen als Ring, Achtung rot, Hinweis grau */
.h2-ab-punkte { display: inline-flex; gap: 3px; margin-right: 4px; vertical-align: 0; }
.h2-ab-punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.h2-ab-punkte i.s0 { background: var(--accent); }
.h2-ab-punkte i.s1 { background: none; box-shadow: inset 0 0 0 1.5px var(--primary); }
.h2-ab-punkte i.s2 { background: var(--warn); }

.h2-fuss .h-status { text-align: center; }
.h2-pfeil { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--spur); color: var(--ink); text-decoration: none; font-size: 20px; padding-bottom: 2px; }
.h2-pfeil.aus { opacity: .35; }
.h2-heute { padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.h2-m-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.h2-m-kopf h3 { flex: 1; justify-content: center; margin: 0; }

/* Heute: die Tageskarte in der Farbe des Tages */
.h2-tag { position: relative; overflow: hidden; padding: 16px 18px 14px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--f) 40%, var(--grid));
  background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--f) 42%, transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--f) 20%, var(--card)), var(--card) 75%); }
.h2-tag-oben { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; color: var(--muted); }
.h2-rb { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 3px; border: 0; border-radius: 50%; cursor: pointer; background: var(--grid); }
.h2-rb.frisch { background: conic-gradient(var(--gold), var(--warn), var(--primary), var(--accent), var(--gold)); }
.h2-rb span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--card); color: var(--ink); font: 700 12px var(--schrift); box-shadow: 0 0 0 2px var(--card); }
.h2-satz-gross { margin: 8px 0 2px; font: 780 27px/1.15 var(--schrift-titel); letter-spacing: -.6px; }
.h2-unter { margin: 0; font-size: 15px; color: var(--muted); }

/* die Tageskarte geht beim Wischen mit dem Finger mit; Geld des Tages als kurze Zeilen */
.h2-tag { touch-action: pan-y; }
.h2-tag-oben .h2-heute { flex: none; }

.h2-strahl { position: relative; height: 10px; margin: 14px 0 4px; border-radius: 5px; background: var(--spur); }
.h2-strahl > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in srgb, var(--primary) 30%, transparent); box-shadow: 2px 0 0 var(--ink); }
.h2-strahl > i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); }
.h2-strahl > i.vorbei { opacity: .4; }
.h2-strahl-skala { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
/* Als Nächstes: Karten zum Wischen */
.h2-stapel { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.h2-stapel::-webkit-scrollbar { display: none; }
/* Trenner vor der ersten Karte jeder Woche */
.h2-k-kw { flex: 0 0 50px; display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; border-left: 2px solid var(--grid); padding-left: 6px;
  scroll-snap-align: start; }
.h2-stapel > .h2-k-kw:first-child { border-left: 0; padding-left: 0; }
.h2-k-kw b { font-size: 13px; font-weight: 750; color: var(--primary); }
.h2-k-kw small { font-size: 11px; line-height: 1.2; color: var(--muted); }
.h2-k { flex: 0 0 152px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 12px 13px; border-radius: 20px; scroll-snap-align: start; color: var(--ink); text-decoration: none;
  background: linear-gradient(170deg, color-mix(in srgb, var(--f) 22%, var(--card)), var(--card) 70%); border: 1px solid color-mix(in srgb, var(--f) 35%, var(--grid)); }
.h2-k-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.h2-k-datum { display: grid; line-height: 1; }
.h2-k-datum b { font: 780 26px var(--schrift-titel); }
.h2-k-datum small { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.h2-k-kopf em { font-style: normal; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--f) 22%, transparent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.h2-k-was { font-size: 14px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h2-k-fuss { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: auto; }
.h2-k-fuss small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.h2-k-fuss b { font-size: 15px; white-space: nowrap; }
.h2-k-fuss b.plus { color: var(--accent); }
.h2-k-mehr { flex-basis: 100px; justify-content: center; align-items: center; text-align: center; background: var(--spur); border-color: var(--grid); }
.h2-k-mehr b { font: 780 24px var(--schrift-titel); color: var(--primary); }

/* Geld: oben das Vermögen, wo es liegt */
.h2-geld { padding: 4px 4px 0; text-align: center; }
.h2-geld > small { font-size: 13px; font-weight: 650; color: var(--muted); }
.h2-geld-summe { margin: 2px 0; font: 780 38px/1.1 var(--schrift-titel); letter-spacing: -1.2px; }
.h2-delta { padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 13.5px var(--schrift); cursor: pointer; }
.h2-delta em { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--spur); color: var(--primary); font-style: normal; font-size: 12px; font-weight: 700; }

.h2-w-liste { list-style: none; margin: 8px 0; padding: 0; }
.h2-w-liste li + li { border-top: 1px solid var(--grid); }
.h2-w-liste a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; color: inherit; text-decoration: none; font-size: 14px; }
.h2-w-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.h2-w-name i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.h2-w-bahn { position: relative; height: 10px; }
.h2-w-bahn::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--grid); }
.h2-w-bahn i { position: absolute; top: 0; bottom: 0; left: 50%; border-radius: 0 4px 4px 0; background: var(--accent); }
.h2-w-bahn i.minus { left: auto; right: 50%; border-radius: 4px 0 0 4px; background: var(--warn); }
/* Geld: der Monat */
.h2-monat { overflow: hidden; touch-action: pan-y; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.h2-monat h4, .h2-weg h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h2-toepfe h4 { display: flex; justify-content: space-between; margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h2-toepfe h4 small { font-weight: 600; letter-spacing: 0; text-transform: none; }
/* die zwölf Monate als Leiste über dem Monat: Gespart zusammen je Monat, der gewählte kräftig */
.h2-jl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 2px 0 14px; }
.h2-jl-m { display: grid; grid-template-rows: 34px auto; justify-items: center; align-items: end; gap: 3px; color: var(--muted); text-decoration: none; }
.h2-jl-m i { width: 100%; max-width: 18px; border-radius: 4px 4px 1px 1px; background: var(--gold); opacity: .4; }
.h2-jl-m i.minus { background: var(--warn); }
.h2-jl-m small { font-size: 10.5px; font-weight: 700; }
.h2-jl-m.gewaehlt i { opacity: 1; }
.h2-jl-m.gewaehlt small { color: var(--ink); }
.h2-jl-m.jetzt small { text-decoration: underline; text-underline-offset: 2px; }
.h2-jl-m.leer { opacity: .3; }
.h2-jl-text { grid-column: 1 / -1; justify-self: end; margin-top: -2px; padding: 4px 0; border: 0; background: none; color: var(--primary);
  font: 600 12px var(--schrift); cursor: pointer; }
/* der Weg des Gehalts: ein Strom, der bei jedem Abgang schmaler wird */
.h2-weg { --gruen: var(--accent); }
.h2-w-start, .h2-w-ast, .h2-w-ende { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; min-height: 46px; }
.h2-w-quelle { justify-self: start; margin-left: 4px; width: var(--b); height: 30px; border-radius: 10px 10px 2px 2px; background: var(--gruen); align-self: end; }
.h2-w-start > span:last-child { display: grid; padding-bottom: 4px; }
.h2-w-start b { font-size: 17px; }
.h2-w-start small, .h2-w-ziel small { font-size: 12px; color: var(--muted); }
.h2-w-stamm { position: absolute; left: 4px; top: 0; bottom: 0; width: var(--b); background: linear-gradient(to bottom, var(--gruen) 50%, transparent 50%); }
.h2-w-ast .h2-w-stamm::after { content: ""; position: absolute; left: 0; top: 50%; bottom: 0; width: var(--b2); background: var(--gruen); }
/* der Abgang tritt rechts aus dem Strom aus - dort, wo er nach dem Abgang schmaler ist */
.h2-w-zweig { position: absolute; left: calc(4px + var(--b2)); top: 50%; width: calc(54px - var(--b2)); height: var(--a); transform: translateY(-50%); border-radius: 0 6px 6px 0; background: var(--f); }
.h2-w-ziel { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 12px;
  border-left: 4px solid var(--f); background: color-mix(in srgb, var(--f) 10%, var(--card)); color: var(--ink); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.h2-w-ziel > span { display: grid; min-width: 0; }
.h2-w-ziel b i { margin-left: 8px; font-style: normal; font-weight: 500; color: var(--muted); }
/* ein Abgang von unten: dieser Monat neben dem Monat davor (Einmaliges nur in seinem Monat und so benannt, unten für sich) */
.h2-vgl { width: 100%; margin: 4px 0 12px; border-collapse: collapse; font-size: 14px; }
.h2-vgl th { padding: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }
.h2-vgl th:first-child { text-align: left; font-weight: 600; }
.h2-vgl td { padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--grid) 60%, transparent); vertical-align: baseline; }
.h2-vgl td:first-child { padding-right: 8px; }
.h2-vgl th:last-child, .h2-vgl td:last-child { padding-right: 4px; }
.h2-vgl td a { color: var(--ink); text-decoration: none; }
.h2-vgl td small { display: block; font-size: 11.5px; color: var(--muted); }
.h2-vgl td.zahl { width: 62px; text-align: right; font-weight: 650; white-space: nowrap; }
.h2-vgl td.vor { color: var(--muted); font-weight: 500; }
.h2-vgl tr.einm td small { color: var(--einmal); font-weight: 650; }
.h2-vgl tbody tr:not(.einm) + tr.einm td { border-top: 1px dashed var(--muted); }
.h2-vgl tfoot td { border-top: 2px solid var(--grid); font-weight: 750; }
/* das Jahr im Geld: fünf Spalten, Planmonate blasser */
.h2-jt th { font-size: 10.5px; line-height: 1.2; vertical-align: bottom; hyphens: manual; }
.h2-jt td { font-size: 13px; padding: 6px 0; }
.h2-jt td.zahl { width: 58px; }
.h2-jt td a { font-weight: 700; }
.h2-jt td.gold { color: var(--gold); }
.h2-jt td.minus { color: var(--warn); }
.h2-jt tr.plan td { opacity: .62; }
.h2-vgl tr.gewaehlt td { background: color-mix(in srgb, var(--primary) 12%, transparent); font-weight: 750; }
.h2-vgl tr.gewaehlt td:first-child { box-shadow: inset 3px 0 0 var(--primary); padding-left: 8px; }
/* Gehalt und Montage: unter "herein" der Weg zur Erklärung; im offenen Monat des Kalenders die Folge fürs Gehalt */

.h2-w-ast { padding: 3px 0; }   /* Abstand innen, damit der Strom ohne Lücke durchläuft */
.h2-w-ende { min-height: 40px; font-size: 14px; color: var(--muted); }
.h2-w-ende .h2-w-stamm { bottom: 50%; background: var(--gruen); border-radius: 0 0 6px 6px; }
.h2-w-ende > span:last-child { grid-column: 2; }
.h2-w-ende b { color: var(--ink); }
.h2-w-um { color: var(--primary); font-weight: 650; text-decoration: none; }
/* die Töpfe: je Topf eine Zeile, ein Tipp klappt die Teile auf */
.h2-topf { margin-top: 8px; padding: 10px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--k) 30%, var(--grid));
  background: color-mix(in srgb, var(--k) 8%, var(--card)); }
.h2-t-zeile { display: grid; gap: 7px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.h2-t-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.h2-t-kopf > span:first-child { display: grid; min-width: 0; }
.h2-t-kopf small { font-size: 12.5px; color: var(--muted); }
.h2-t-wert { font: 760 18px var(--schrift-titel); letter-spacing: -.2px; white-space: nowrap; }
.h2-t-wert i { display: inline-block; margin-left: 8px; font-style: normal; font-weight: 500; color: var(--muted); transition: transform .2s; }
.h2-t-zeile[aria-expanded="true"] .h2-t-wert i { transform: rotate(90deg); }
.h2-t-mehr { display: grid; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid color-mix(in srgb, var(--k) 25%, var(--grid)); }
.h2-t-mehr[hidden] { display: none; }
.h2-t-link { justify-self: start; color: var(--primary); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.h2-t-bahn { position: relative; display: flex; height: 8px; }
.h2-t-bahn::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--grid); }
.h2-t-bahn i { position: absolute; top: 0; bottom: 0; }
.h2-t-bahn i.raus { right: 50%; border-radius: 4px 0 0 4px; background: var(--warn); }
.h2-t-bahn i.rein { left: 50%; border-radius: 0 4px 4px 0; background: var(--accent); }
.h2-t-teile { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.h2-t-teile span:not(.minus) { color: var(--ink); }
.h2-t-zeile2 { font-size: 12px; color: var(--muted); }
.h2-gespart { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--gold-bg2, var(--spur)); font-size: 15px; font-weight: 650; }
.h2-gespart b { font: 780 22px var(--schrift-titel); color: var(--gold); }
.h2-gespart b.minus { color: var(--warn); }
.h2-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent);
  border-left: 4px solid var(--f); border-radius: 18px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.h2-zeile > span { display: grid; }
.h2-zeile small { font-size: 12.5px; color: var(--muted); }
.h2-zeile b small { font-weight: 600; }

/* Kalender: das Jahr */

/* Halten und Ziehen: die gewählten Tage bekommen einen kräftigen Rahmen; kein Kontextmenü beim langen Drücken */

/* der Einsatz steht über seiner Woche (KW · Name) */

/* Brückentage: gestrichelt im Raster und im offenen Monat; je Vorschlag ein Streifen seiner Tage */

/* der Tag von unten */

/* Buchungen (Handy-Variante 2): Suche, Knöpfe zum Rollen, Liste nach Stand mit farbigem Strich je Art */
.h2-b-kopf { display: grid; gap: 10px; }
.h2-b-suche { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--grid); border-radius: 14px; background: var(--card); color: var(--ink); font: 16px var(--schrift); }
.h2-b-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.h2-b-chips::-webkit-scrollbar { display: none; }
.h2-b-chips a { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--spur); color: var(--ink); font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.h2-b-chips a small { color: var(--muted); font-weight: 600; }
.h2-b-chips a.aktiv { background: var(--primary); color: #fff; }
.h2-b-chips a.aktiv small { color: rgba(255, 255, 255, .8); }
.h2-b-satz { margin: 0; font-size: 12.5px; color: var(--muted); }
.h2-b-gruppe h3 { margin: 6px 4px 8px; font: 750 17px var(--schrift-titel); }
.h2-b-gruppe h3 small, .h2-v-kat-zeile small { font: 600 12.5px var(--schrift); color: var(--muted); }
.h2-b-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h2-b-monat { margin: 8px 4px 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h2-b-zeile, .h2-v-posten a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border-left: 4px solid var(--f);
  background: var(--card); color: var(--ink); text-decoration: none; }
.h2-b-zeile > span:first-child, .h2-v-posten a > span:first-child { display: grid; min-width: 0; }
.h2-b-zeile b, .h2-v-posten b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.h2-b-zeile small, .h2-v-posten small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-b-betrag { display: grid; justify-items: end; flex: none; }
.h2-b-betrag b.plus { color: var(--accent); }
.h2-b-aus summary { padding: 10px 4px; font-weight: 650; color: var(--muted); cursor: pointer; }
.h2-b-fuss { margin: 4px 4px 0; font-size: 12px; color: var(--muted); }
/* Verträge & Abos (Handy-Variante 2) */
.h2-v-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.h2-v-kachel { display: grid; padding: 10px 12px; border-radius: 16px; border-top: 4px solid var(--f); background: var(--card); }
.h2-v-kachel small, .h2-v-kachel span { font-size: 12px; color: var(--muted); }
.h2-v-kachel b { font: 760 18px var(--schrift-titel); }
.h2-v-blick { display: grid; gap: 8px; }
.h2-v-karte { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; border-left: 4px solid var(--f); background: color-mix(in srgb, var(--f) 10%, var(--card)); color: var(--ink); text-decoration: none; }
.h2-v-marke { font-size: 13px; font-weight: 650; color: var(--f); }
.h2-v-karte small { font-size: 12px; color: var(--muted); }
.h2-v-saeulen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 120px; }
.h2-v-saeule { display: grid; grid-template-rows: 1fr auto; align-items: end; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.h2-v-stapel { display: flex; flex-direction: column; width: 100%; max-width: 20px; min-height: 2px; border-radius: 4px 4px 1px 1px; overflow: hidden; }
.h2-v-stapel i { display: block; min-height: 1px; }
.h2-v-stapel.ueber { position: relative; overflow: visible; border-top: 2px dashed var(--ink); }
.h2-v-stapel.ueber em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font: 700 10px var(--schrift); font-style: normal; color: var(--ink); white-space: nowrap; }
.h2-v-saeulen { padding-top: 16px; }
.h2-v-unter { display: block; margin-top: 2px; font: 600 12.5px var(--schrift); color: var(--muted); }
.h2-v-saeule small { font-size: 10px; font-weight: 700; }
.h2-v-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.h2-v-legende span { display: inline-flex; align-items: center; gap: 5px; }
.h2-v-legende i, .h2-v-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.h2-v-kat + .h2-v-kat { border-top: 1px solid color-mix(in srgb, var(--grid) 60%, transparent); }
.h2-v-kat-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; width: 100%; padding: 10px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.h2-v-kat-zeile > span:first-child { display: grid; }
.h2-v-kat-zeile b i { display: inline-block; margin-left: 8px; font-style: normal; font-weight: 500; color: var(--muted); transition: transform .2s; }
.h2-v-kat-zeile[aria-expanded="true"] b i { transform: rotate(90deg); }
.h2-v-anteil { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--spur); }
.h2-v-anteil span { display: block; height: 100%; border-radius: 3px; background: var(--f); }
.h2-v-posten { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.h2-v-posten[hidden] { display: none; }
.h2-v-posten a { background: var(--spur); }
.h2-v-posten em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--f); }
/* Monatsabschluss (Handy-Variante 2): Checkliste mit Punkten, je Konto eine Karte mit Feld, großer Speichern-Knopf */
.h2-ab-kopf small { font-size: 13px; font-weight: 650; color: var(--muted); }
.h2-ab-kopf .h2-satz-gross { margin: 2px 0 8px; }
.h2-ab-stich { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.h2-ab-stich input, .h2-ab-konto input, .h2-uk input, .h2-uk select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--grid); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: 16px var(--schrift); }
.h2-ab-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h2-ab-check li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.h2-ab-check i { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--f); }
.h2-ab-check a { display: inline-block; margin-top: 4px; padding: 5px 11px; border-radius: 999px; background: var(--spur); color: var(--primary); font-size: 13px; font-weight: 650; text-decoration: none; }
.h2-ab-konto { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--grid) 60%, transparent); }
.h2-ab-konto > div { display: grid; min-width: 0; }
.h2-ab-konto small { font-size: 12px; color: var(--muted); }
.h2-ab-konto small.plus { color: var(--accent); }
.h2-ab-konto input { width: 100%; text-align: right; }
.h2-ab-knoepfe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; z-index: 2; }
.h2-ab-knoepfe.fest { position: sticky; bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom) + 24px); }
.h2-ab-speichern { min-height: 48px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 750 16px var(--schrift); cursor: pointer; }
.h2-ab-knoepfe.fest .h2-ab-speichern { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.h2-ab-leer { min-height: 48px; padding: 0 16px; border: 1px solid var(--grid); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 14px var(--schrift); cursor: pointer; }
.h2-ab-leer.minus { color: var(--warn); }
/* Reisekosten (Handy-Variante 2): Karten je Einsatz, Einsatz von unten */

.h2-re-karten { display: grid; gap: 8px; }

.h2-re-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.h2-re-kopf em { font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--f); white-space: nowrap; }
.h2-re-kopf b.plus { color: var(--accent); }

.h2-re-bahn { display: flex; height: 7px; margin-top: 2px; border-radius: 4px; overflow: hidden; background: var(--spur); }

/* Ziele, Kredite, Immobilien (Handy-Variante 2): Karten mit farbigem Strich; die PC-Formulare im Fenster ohne Kartenrahmen */
.h2-zi { display: grid; gap: 0; border-radius: 14px; background: var(--card); border-left: 4px solid var(--f); overflow: hidden; }
.h2-zi-karte { display: grid; gap: 4px; padding: 11px 13px; color: var(--ink); text-decoration: none; }
.h2-zi-karte small { font-size: 12px; color: var(--muted); }
.h2-zi-karte em { font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--f); white-space: nowrap; }
.h2-zi-status { font-size: 13px; font-weight: 650; color: var(--f); }
.h2-zi-status.minus { color: var(--warn); }
.h2-zi-hebel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 13px 10px; border-top: 1px solid color-mix(in srgb, var(--grid) 60%, transparent); }
.h2-zi-hebel small { font-size: 12px; color: var(--muted); }
.h2-zi-hebel small.plus { color: var(--accent); font-weight: 650; }
.h2-zi-hebel button { padding: 5px 10px; border: 1px solid var(--grid); border-radius: 999px; background: var(--spur); color: var(--ink); font: 650 12.5px var(--schrift); cursor: pointer; }
.h2-zi-hebel button.an { background: var(--primary); border-color: var(--primary); color: #fff; }
/* ein Konto (Handy-Variante 2): der Auszug Zeile für Zeile */
.h2-kt-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.h2-kt-liste li > a, .h2-kt-liste li > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--grid) 55%, transparent); color: var(--ink); text-decoration: none; }
.h2-kt-liste li > a > span:first-child, .h2-kt-liste li > div > span:first-child { display: grid; min-width: 0; }
.h2-kt-liste b { font-size: 14px; }
.h2-kt-liste small { font-size: 12px; color: var(--muted); }
.h2-kt-liste b.plus { color: var(--accent); }
.h2-kt-liste li.blass { opacity: .6; }
.h2-kt-trenner { padding: 8px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h2-kt-stand { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--grid); }
.h2-kt-stand b { color: var(--ink); }
.h2-kt-name { display: block; font-size: 15px; }
/* Einstellungen und Anleitung (Handy-Variante 2) */
.h2-ei { border-radius: 14px; }
.h2-ei > span { min-width: 0; }
.h2-ei small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-al small { white-space: normal; }
.h2-al-liste { margin: 0; }
.h2-al-liste dt { font-weight: 700; }
.h2-al-liste > div:not([hidden]) ~ div { margin-top: 12px; }
.h2-al-seite [hidden] { display: none !important; }
.h2-al-liste dd { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.h2-al-begriffe { display: grid; margin-top: 10px; }
.h2-al-begriffe details { border-top: 1px solid color-mix(in srgb, var(--grid) 60%, transparent); }
.h2-al-begriffe summary { color: var(--ink); }
.h2-al-begriffe p { margin: 0 4px 8px; font-size: 14px; color: var(--muted); }
/* Daten & Abgleich, Notfall-Blatt: die Karten der PC-Seiten in der Gestaltung der Variante - eine Spalte, Blöcke wie auf den
   Reitern, kleine Schilder statt Bänder */
.h2-alt .raster, .h2-alt .raster.zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.h2-alt .karte { margin: 0; padding: 16px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); background: var(--card); box-shadow: none; }
.h2-alt .karte h2 { font: 750 19px var(--schrift-titel); margin: 0 0 8px; }
.h2-alt .band { display: inline-block; width: auto; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; }
.h2-alt .knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-alt input, .h2-alt select, .h2-alt textarea { font-size: 16px; }
@media print { .h2-alt > .h2-satz { display: none; } .h2-alt .karte { border: 0; padding: 0; } }
/* Urlaubskonto von unten: Felder untereinander, groß genug zum Tippen */
.h2-uk { display: grid; gap: 10px; }
.h2-uk label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.h2-uk input, .h2-uk select { min-height: 42px; font-size: 16px; }

/* Zukunft: die Zeitreise */
.h2-zr { scroll-margin-top: calc(72px + var(--oben-frei)); padding: 18px 18px 12px; border-radius: 26px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #3d6fc7, transparent 60%), linear-gradient(150deg, #24407a, #13213d); }
.h2-zr-oben { display: flex; justify-content: space-between; align-items: baseline; }
.h2-zr-oben small { font-size: 13px; font-weight: 650; opacity: .8; }
.h2-zr-jahr { font: 800 44px/1 var(--schrift-titel); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.h2-zr-regler { position: relative; margin: 16px 0 4px; }
.h2-zr-punkte { position: absolute; left: 11px; right: 11px; top: -9px; height: 6px; }
.h2-zr-punkte i { position: absolute; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; box-shadow: 0 0 0 1.5px #13213d; }
.h2-zr input[type="range"] { width: 100%; margin: 0; accent-color: #fff; height: 28px; }
.h2-zr-skala { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .75; }
.h2-zr-annahmen { display: block; width: 100%; margin-top: 10px; padding: 8px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .18); background: none; color: #fff; opacity: .85;
  font: 12px/1.35 var(--schrift); text-align: left; cursor: pointer; }
.h2-zr-annahmen span { opacity: .7; }
.h2-zr-ww { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff;
  font: 650 13.5px var(--schrift); text-align: left; cursor: pointer; }
/* Was wäre, wenn? (Fenster aus Zukunft) */
.h2-ww { display: grid; gap: 12px; margin: 8px 0 14px; }
.h2-ww-regler { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; font-weight: 600; }
.h2-ww-regler output { font-weight: 750; color: var(--primary); }
.h2-ww-regler input { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; accent-color: var(--primary); }
.h2-ww-gross { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--spur); }
.h2-ww-gross small { font-size: 12.5px; color: var(--muted); }
.h2-ww-gross b.zahl { font: 780 26px var(--schrift-titel); }
.h2-ww-gross b.plus { color: var(--accent); }
.h2-ww-liste { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.h2-ww-liste li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.h2-ww-liste b.plus { color: var(--accent); }
.h2-z-netto { font: 780 32px/1.1 var(--schrift-titel); letter-spacing: -.8px; margin-bottom: 6px; }
.h2-z-bahn { display: flex; height: 12px; margin-top: 10px; border-radius: 6px; overflow: hidden; background: var(--spur); }
.h2-z-bahn i { transition: width .25s; }
/* Von heute bis dahin: Wasserfall - je Stufe Name und Betrag, darunter ihr Balken an seiner Stelle */
.h2-wf-titel { margin: 14px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h2-wf { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.h2-wf li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 10px; }
.h2-wf-name { display: grid; font-size: 14px; font-weight: 650; }
.h2-wf-name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.h2-wf b { font-size: 15px; }
.h2-wf-bahn { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 5px; background: var(--spur); }
.h2-wf-bahn i { position: absolute; top: 0; bottom: 0; border-radius: 5px; transition: left .25s, width .25s; }
.h2-wf-bahn i.basis { background: color-mix(in srgb, var(--ink) 38%, transparent); }
.h2-wf-bahn i.plus { background: var(--accent); }
.h2-wf-bahn i.minus { background: var(--warn); }
.h2-wf-ende { padding-top: 8px; border-top: 1px dashed var(--grid); }
.h2-wf-ende .h2-wf-bahn i.basis { background: var(--primary); }
.h2-z-zeit { list-style: none; margin: 4px 0 0; padding: 0; }
.h2-z-zeit li { position: relative; padding-left: 14px; }
.h2-z-zeit li > button { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; width: 100%; padding: 8px 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.h2-z-zeit li.jetzt .h2-z-wann { color: var(--ink); }
.h2-z-zeit li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--f); }
.h2-z-zeit li + li { border-top: 1px solid var(--grid); }
.h2-z-zeit li.spaeter { opacity: .45; }
.h2-z-wann { font-size: 13px; font-weight: 700; color: var(--muted); }
.h2-z-zeit b { display: block; font-size: 14.5px; }
.h2-z-zeit small { font-size: 12.5px; color: var(--muted); }

/* Handy-Variante 2 · Alle Konten (konten2.js, 14.11.2026 nachts) */
.h2-ko-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h2-ko-karte { display: grid; gap: 4px; padding: 11px 13px 9px; border-radius: 14px; border-left: 4px solid var(--f); background: var(--spur); color: var(--ink); text-decoration: none; }
.h2-ko-oben { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.h2-ko-oben b:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.h2-ko-oben b.zahl { font-size: 16px; white-space: nowrap; }
.h2-ko-mitte { display: flex; align-items: center; gap: 8px; min-width: 0; }
.h2-ko-mitte small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2-ko-mitte em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); white-space: nowrap; }
.h2-ko-linie { flex: 1 0 48px; height: 22px; margin-left: auto; max-width: 110px; }
.h2-ko-anteil { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--grid) 70%, transparent); overflow: hidden; }
.h2-ko-anteil i { display: block; height: 100%; border-radius: 2px; background: var(--f); }
.h2-ko-neu { display: block; padding: 12px; border: 1.5px dashed var(--grid); border-radius: 16px; text-align: center; color: var(--primary); font-weight: 700; text-decoration: none; }
/* Handy-Variante 2 · Montage (montage2.js, 14.11.2026 nachts) */

.h2-mo-legende i.r { background: color-mix(in srgb, var(--petrol) 35%, transparent); }
 .h2-mo-legende i.m { background: var(--gold); }

.h2-mo-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.h2-mo-legende i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.h2-mo-legende span:last-child { margin-left: auto; }

.h2-mo-orte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h2-mo-orte li { display: grid; gap: 4px; }
.h2-mo-orte small { font-size: 12px; color: var(--muted); }
.h2-mo-ort { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.h2-mo-ort b:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.h2-kt-liste small.plus { color: var(--accent); }
.h2-block .gb-legende { margin: 8px 0; color: var(--muted); }

/* Handy-Variante 2 · Notfall-Blatt (notfall2.js, 14.11.2026 nachts): am Bildschirm die Blöcke, auf dem Papier das Blatt der PC-Seite */
.h2-nf-schirm { display: grid; gap: 16px; }
.h2-nf-druck { display: none; }
@media print { .h2-nf-schirm { display: none !important; } .h2-nf-druck { display: block; } }
.h2-nf-text { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.h2-nf-aendern { margin-top: 12px; width: 100%; background: none; font: 700 14px var(--schrift); cursor: pointer; }
.h2-nf-gruppe { border-left: 4px solid var(--f); border-radius: 12px; background: var(--spur); padding: 0 12px; margin-top: 8px; }
.h2-nf-gruppe summary { display: grid; gap: 2px; padding: 10px 0; cursor: pointer; list-style: none; }
.h2-nf-gruppe summary::-webkit-details-marker { display: none; }
.h2-nf-gruppe summary small { font-size: 12.5px; color: var(--muted); }
.h2-nf-gruppe[open] summary { border-bottom: 1px solid var(--grid); }
.h2-nf-gruppe .h2-kt-liste { margin: 4px 0 8px; }
.h2-nf-gruppe .h2-kt-liste li > div > span:first-child small { display: block; }
/* Handy-Variante 2 · Umschalter oben je Reiter (umschalter2.js, 14.11.2026 nachts) */
.h2-us { display: flex; gap: 2px; margin: 0 0 14px; padding: 4px; border-radius: 999px; background: var(--spur); overflow-x: auto; scrollbar-width: none; }
.h2-us::-webkit-scrollbar { display: none; }
.h2-us a { position: relative; flex: 1 0 auto; padding: 8px 6px; border-radius: 999px; text-align: center; white-space: nowrap; color: var(--muted); font-size: 12.5px; letter-spacing: -.1px; font-weight: 650; text-decoration: none; }
.h2-us a.aktiv { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .18); }
/* was ansteht: ein Punkt oben rechts am Knopf (die Zahl steht im Titel) */
.h2-us a span { position: relative; }
.h2-us i { position: absolute; top: -3px; right: -8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.h2-us i.dringend { background: var(--warn); }
/* Handy-Variante 2 · Erfassen in der neuen Optik (erfassen2.js, 14.11.2026 nachts) */
.h2-erf { display: grid; gap: 12px; padding-top: 4px; }
.h2-erf [hidden] { display: none !important; }
.h2-erf-arten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.h2-erf-arten button { padding: 9px 0; border: 1.5px solid color-mix(in srgb, var(--f) 45%, transparent); border-radius: 14px; background: none; color: var(--ink); font: 700 12px var(--schrift); letter-spacing: -.25px; cursor: pointer; }
.h2-erf-arten button.aktiv { background: var(--f); border-color: var(--f); color: #fff; }
.h2-erf-betrag { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 10px 12px 12px; border-radius: 20px; background: color-mix(in srgb, var(--art) 12%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--art) 40%, transparent); }
.h2-erf-betrag input { width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); text-align: right; font: 780 40px/1.1 var(--schrift-titel); letter-spacing: -1px; outline: none; padding: 0; }
.h2-erf-betrag input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.h2-erf-betrag b { flex: none; width: 42%; font: 700 28px var(--schrift-titel); color: var(--muted); }
.h2-erf-betrag input.tippt { caret-color: var(--art); }
.h2-erf-vorlagen { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.h2-erf-vorlagen::-webkit-scrollbar { display: none; }
.h2-erf-vorlagen button { flex: none; padding: 7px 12px; border: 1px solid var(--grid); border-radius: 999px; background: var(--spur); color: var(--ink); font: 650 13px var(--schrift); cursor: pointer; }
.h2-erf-felder { display: grid; border-radius: 16px; background: var(--spur); padding: 0 12px; }
.h2-erf-zeile { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); font-size: 14px; }
.h2-erf-felder > :last-child, .h2-erf-felder > .h2-erf-zeile:has(+ [hidden]:last-child) { border-bottom: 0; }
.h2-erf-zeile > span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.h2-erf-zeile input, .h2-erf-zeile select { width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); font: 600 16px var(--schrift); text-align: right; padding: 10px 0; outline: none; appearance: none; -webkit-appearance: none; }
.h2-erf-zeile select { text-align-last: right; padding-right: 14px; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 4px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 center / 6px 6px no-repeat; }
.h2-erf-zeile input[type=date] { display: block; min-height: 22px; }
.h2-erf-zeile input.feldfehler, .h2-erf-zeile select.feldfehler { color: var(--warn); }
.h2-erf-tage { display: flex; gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.h2-erf-tage button { flex: 1; padding: 6px 4px; border: 1px solid var(--grid); border-radius: 999px; background: none; color: var(--ink); font: 650 12.5px var(--schrift); cursor: pointer; }
.h2-erf-tage button.aktiv { background: var(--art); border-color: var(--art); color: #fff; }
.h2-erf-hilfe { margin: -4px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.h2-erf-mehr { border-radius: 16px; }
.h2-erf-mehr > summary { padding: 10px 4px; font-weight: 650; color: var(--primary); cursor: pointer; }
.h2-erf-mehr[open] > summary { margin-bottom: 4px; }
.h2-erf-mehr > div { margin-top: 10px; }
.h2-erf-belege { display: grid; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--spur); }
.h2-erf-belege > span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.h2-erf-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-erf-knoepfe button { padding: 9px 14px; border: 1px solid var(--grid); border-radius: 999px; background: var(--card); color: var(--ink); font: 650 13.5px var(--schrift); cursor: pointer; }
.h2-erf-knoepfe button.gefahr { color: var(--warn); }
.h2-erf-std { margin-top: 10px !important; font-size: 12.5px !important; }
.h2-erf-fuss { position: sticky; bottom: calc(-1 * (env(safe-area-inset-bottom) + 16px)); display: grid; gap: 8px; margin: 0 -12px; padding: 10px 12px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(to bottom, transparent, var(--card) 14px); }
.h2-erf-fuss .h2-erf-knoepfe { flex-wrap: nowrap; }
.h2-erf-fuss .h2-erf-speichern { flex: 1; border: 0; background: var(--art); color: #fff; font: 750 16px var(--schrift); padding: 13px 14px; }
.h2-erf-wirkung { font-size: 13px; }
/* Kalender-Jahr als zwölf kleine Monatskalender (kalender2.js, 14.11.2026 spätnachts) */

/* Handy-Variante 2 · Finanz-Check als eigene Seite (finanzcheck2.js, 14.11.2026 spätnachts) */
.h2-fc-kopf { display: grid; justify-items: center; gap: 4px; text-align: center; }
.h2-fc-bild { position: relative; width: 190px; height: 190px; }
.h2-fc-ring { width: 100%; height: 100%; }
.h2-fc-mitte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.h2-fc-mitte b { font: 800 52px/1 var(--schrift-titel); letter-spacing: -1.5px; }
.h2-fc-mitte small { font-size: 13px; color: var(--muted); font-weight: 650; }
.h2-fc-urteil { margin-top: 6px; font: 760 20px var(--schrift-titel); }
.h2-fc-kopf > small { font-size: 12.5px; color: var(--muted); }
.h2-fc-liste { display: grid; gap: 10px; }
.h2-fc-karte { display: grid; gap: 6px; padding: 13px 14px; border-radius: 18px; border-left: 4px solid var(--f); background: var(--card); }
.h2-fc-k-kopf { display: flex; align-items: center; gap: 8px; }
.h2-fc-k-kopf b { font-size: 16px; }
.h2-fc-k-kopf em { font-style: normal; font-size: 11px; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--f) 24%, transparent); }
.h2-fc-k-kopf .zahl { margin-left: auto; font-weight: 800; font-size: 17px; }
.h2-fc-k-kopf .zahl small { font-size: 12px; color: var(--muted); font-weight: 650; }
.h2-fc-bahn { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--grid) 70%, transparent); overflow: hidden; }
.h2-fc-bahn i { display: block; height: 100%; border-radius: 3px; background: var(--f); }
.h2-fc-karte p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; }
.h2-fc-karte small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.h2-fc-karte a { justify-self: start; margin-top: 2px; font-size: 13.5px; font-weight: 700; color: var(--primary); text-decoration: none; }
/* Kalender: Jahr und Monat an derselben Stelle - hinein- und hinauszoomen (14.11.2026 spätnachts) */

@keyframes h2-zoom-rein { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes h2-zoom-raus { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }

/* Handy-Variante 2 · Formulare in den Fenstern (Konto, Kredit, Immobilie, Ziel, Einstellungen …) im Zeilen-Stil wie
   Erfassen (14.11.2026 spätnachts, Nutzer: "die Formulare im neuen Zeilen-Stil"): dieselben PC-Formulare, nur anders
   gezeigt - je Feld eine Zeile (Name links, Eingabe rechts), der Hinweis klein darunter, Speichern unten angeheftet */
.h2-pcform .raster, .h2-pcform .raster.zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.h2-pcform .karte { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.h2-pcform form.formular { display: block; padding: 0 12px; border-radius: 16px; background: var(--spur); }
.h2-pcform form.formular > h2, .h2-pcform form.formular > h3 { margin: 12px 0 4px; font-size: 15px; }
.h2-pcform form.formular > div:first-child:empty { display: none; }
.h2-pcform form.formular .meldung { margin: 10px 0; }
.h2-pcform form.formular label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 52%); align-items: center; gap: 2px 10px; min-height: 48px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--grid) 70%, transparent);
  font-size: 13.5px; font-weight: 600; color: var(--muted); }
.h2-pcform form.formular > label:first-of-type, .h2-pcform form.formular > div:first-child + label { border-top: 0; }
.h2-pcform form.formular label[hidden], .h2-pcform form.formular [hidden] { display: none !important; }
.h2-pcform form.formular label > .band { grid-column: 1; justify-self: start; margin: 0; padding: 0 6px; border-radius: 999px; font-size: 9.5px; line-height: 16px; }
.h2-pcform form.formular label > input:not([type=checkbox]):not([type=radio]), .h2-pcform form.formular label > select {
  grid-column: 2; grid-row: 1 / span 2; width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--ink); font: 600 16px var(--schrift); text-align: right; outline: none; appearance: none; -webkit-appearance: none; }
.h2-pcform form.formular label > select { text-align-last: right; padding-right: 14px;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 4px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 center / 6px 6px no-repeat; }
.h2-pcform form.formular label > input[type=date] { display: block; min-height: 40px; }
.h2-pcform form.formular label > input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); font-weight: 500; }
.h2-pcform form.formular label > input[type=checkbox] { grid-column: 2; grid-row: 1 / span 2; justify-self: end; width: 22px; height: 22px; accent-color: var(--primary); }
.h2-pcform form.formular label > textarea { grid-column: 1 / -1; min-height: 96px; margin: 2px 0 6px; padding: 10px; border: 1px solid var(--grid); border-radius: 12px; background: var(--card); color: var(--ink); font: 500 15px var(--schrift); }
.h2-pcform form.formular .feldfehler { color: var(--warn) !important; box-shadow: none !important; }
.h2-pcform form.formular label:has(.feldfehler) { box-shadow: inset 3px 0 0 var(--warn); padding-left: 8px; }
.h2-pcform form.formular input.tippt { box-shadow: none !important; color: var(--primary); }
.h2-pcform form.formular p.hinweis { margin: -4px 0 8px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.h2-pcform form.formular .zwei-felder { display: block; }
.h2-pcform form.formular details { margin: 4px 0; border-top: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.h2-pcform form.formular details > summary { padding: 12px 0; font-weight: 650; color: var(--primary); cursor: pointer; }
.h2-pcform form.formular .knopfreihe { position: sticky; bottom: calc(-1 * (env(safe-area-inset-bottom) + 16px)); z-index: 2; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px -12px 0; padding: 10px 12px calc(env(safe-area-inset-bottom) + 16px); border-radius: 0 0 16px 16px; background: linear-gradient(to bottom, transparent, var(--card) 14px); }
.h2-pcform .knopfreihe .knopf { flex: 1 1 auto; min-height: 46px; padding: 0 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.h2-pcform .knopfreihe .knopf.haupt { flex-grow: 3; font-size: 15.5px; font-weight: 750; }
.h2-pcform .so-gerechnet { padding: 0 4px; font-size: 13.5px; color: var(--muted); }
.h2-fc-hebel { display: grid; gap: 2px; margin-top: 4px; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--f) 12%, transparent); font-size: 13.5px; line-height: 1.4; }
.h2-fc-hebel b { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.h2-fc-hebel.voll { background: none; padding: 0; }
.h2-fc-hebel.voll b { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 13px; }
/* Handy-Variante 2 · Stand melden direkt am Konto (konto2.js, 14.11.2026 spätnachts) */
.h2-erf-zeile > b { justify-self: end; text-align: right; color: var(--ink); font-size: 14.5px; }
.h2-kt-wirkung { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, transparent); font-size: 14px; }
.h2-kt-wirkung small { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.h2-kt-wirkung b.plus { color: var(--accent); } .h2-kt-wirkung b.minus { color: var(--warn); }

/* Fenster von unten (blatt.js): angeheftete Fußzeilen ohne den Ausgleich für den Rand des Erfassen-Fensters */
.bl-inhalt .h2-erf-fuss { bottom: 0; margin: 0; padding: 10px 0 4px; }
.bl-inhalt .h2-pcform form.formular .knopfreihe { bottom: 0; padding-bottom: 10px; }
/* Titel über einem großen Betrag (Kredit: Restschuld, Immobilie: Wert) */
.h2-erf-titel { margin: 0 0 -6px 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
/* Kredite und Immobilien (objekte2.js, 15.11.2026) */
.h2-ob-saeulen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; }
.h2-ob-saeulen button { display: grid; grid-template-rows: 16px 110px 16px; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.h2-ob-saeulen button b { font-size: 10.5px; text-align: center; white-space: nowrap; }
.h2-ob-saeulen button span { position: relative; border-radius: 6px; background: color-mix(in srgb, var(--grid) 40%, transparent); }
.h2-ob-saeulen i { position: absolute; left: 0; right: 0; border-radius: 6px; }
.h2-ob-saeulen i.rest { bottom: 0; background: var(--primary); }
.h2-ob-saeulen i.ab { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.h2-ob-saeulen button small { font-size: 11px; color: var(--muted); text-align: center; }
.h2-ob-bahn { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--grid) 60%, transparent); }
.h2-ob-bahn.gross { height: 14px; border-radius: 7px; margin: 6px 0 2px; }
.h2-ob-bahn i { display: block; height: 100%; background: var(--primary); }
.h2-ob-bahn i.zins { background: var(--warn); }
.h2-ob-bahn i.eigen { background: var(--accent); }
.h2-ob-plan .h2-mo-ort b { color: var(--primary); }
.h2-mo-legende i { vertical-align: 0; }
[hidden].h2-erf-zeile { display: none !important; }/* große Beträge (Restschuld, Hauswert): etwas kleiner, das € direkt daneben */
:is([data-kredit], [data-immo]) .h2-erf-betrag input { font-size: 32px; }
:is([data-kredit], [data-immo]) .h2-erf-betrag b { width: auto; font-size: 24px; }/* lange Namen kürzen statt die Karte über den Rand zu schieben */
.h2-ko-liste > li, .h2-ko-karte { min-width: 0; }
.h2-ko-karte { grid-template-columns: minmax(0, 1fr); }
a.h2-zeile { color: inherit; text-decoration: none; }

/* Ein Stil für Knöpfe auf den Seiten (15.11.2026, eine Designsprache): h2-knopf = die Aktion der Seite (kräftig),
   .leise = Nebenaktion; "+ Neu …" am Ende einer Liste immer gestrichelt (h2-ko-neu); h2-wege nur noch für Wege woandershin */
.h2-aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.h2-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--primary); color: #fff;
  font: 700 14px var(--schrift); text-decoration: none; cursor: pointer; }
.h2-knopf.leise { background: var(--spur); color: var(--ink); }
.h2-block .h2-knopf{ margin-top: 10px; }.h2-geld-von { font-size: 20px; letter-spacing: 0; color: var(--muted); }
/* das Erfassen-Fenster (schublade.js) sieht aus wie jedes andere Fenster von unten (bl-) */
@media (max-width: 759px) {
  .schublade.h2-erf-blatt { border-radius: 24px 24px 0 0; }
  .h2-erf-blatt .schublade-griff { width: 40px; margin: 10px auto 4px; }
  .h2-erf-blatt .schublade-kopf { padding: 0 18px 4px; }
  .h2-erf-blatt .schublade-kopf h2 { font-size: 19px; }
  .h2-erf-blatt .schublade-zu { width: 32px; height: 32px; }
  .h2-erf-blatt .schublade-inhalt { padding-left: 18px; padding-right: 18px; }
  .h2-erf-blatt .h2-erf-fuss { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
}
/* Blättern (sanft.js, blaettern.js): was zur Seite hinaus- oder hereingleitet, macht die Seite nicht breiter */
html.ansicht-einfach main#inhalt { overflow-x: clip; }
/* =====================================================================================================
   HANDY-PLANER (15.11.2026): Budget auf Heute und unter Geld, die Einrichtungshilfe (ew-)
   ===================================================================================================== */
/* Heute: die Monatskarte mit Budget-Balken */
.h2-hb-titel { display: block; margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--muted); }
.h2-hb-bahn { display: block; height: 10px; margin: 10px 0 8px; border-radius: 5px; background: color-mix(in srgb, var(--f) 16%, var(--grid)); overflow: hidden; }
.h2-hb-bahn i { display: block; height: 100%; border-radius: 5px; background: var(--f); }
/* Geld: Budget je Kategorie */
.h2-bu { margin: 4px 0 14px; }
.h2-bu h4 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font: 720 16px var(--schrift-titel); }
.h2-bu h4 small { font: 600 12.5px var(--schrift); color: var(--muted); }
.h2-bu-liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.h2-bu-liste li { display: grid; gap: 4px; }
.h2-bu-liste small { font-size: 12px; color: var(--muted); }
.h2-bu-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.h2-bu-kopf .zahl { color: var(--accent); font-weight: 650; }
.h2-bu-bahn { display: block; height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.h2-bu-bahn i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.h2-bu-liste li.ueber .h2-bu-kopf .zahl { color: var(--warn); }
.h2-bu-liste li.ueber .h2-bu-bahn i { background: var(--warn); }

/* Einrichtungshilfe: ohne Leiste unten, ein Schritt je Bildschirm */
html.ohne-leiste .leiste, html.ohne-leiste .leiste-plus { display: none !important; }
html.ohne-leiste main#inhalt { padding-bottom: calc(env(safe-area-inset-bottom) + 24px) !important; }
.ew { max-width: 520px; margin: 0 auto; }
.ew-schritt { display: grid; gap: 14px; }
.ew-schritt.vor { animation: ew-vor .32s cubic-bezier(.2, .8, .2, 1) both; }
.ew-schritt.zurueck { animation: ew-zurueck .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ew-vor { from { opacity: 0; transform: translateX(28px); } }
@keyframes ew-zurueck { from { opacity: 0; transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .ew-schritt.vor, .ew-schritt.zurueck { animation: none; } }
.ew h2 { margin: 2px 0 0; font: 780 26px/1.15 var(--schrift-titel); letter-spacing: -.5px; }
.ew-satz { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.ew-klein { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ew-hinweis { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--info-bg); color: var(--info-ink); font-size: 14px; line-height: 1.45; }
.ew-textknopf { border: 0; padding: 0; background: none; color: var(--primary); font: 650 14px var(--schrift); text-decoration: underline; cursor: pointer; }
.ew-fort { display: grid; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.ew-fort div { display: grid; grid-auto-flow: column; gap: 5px; }
.ew-fort i { height: 5px; border-radius: 3px; background: var(--grid); transition: background .3s; }
.ew-fort i.an { background: linear-gradient(90deg, var(--accent), var(--primary)); }
/* Begrüßung und Fertig */
.ew-hallo { display: grid; justify-items: center; gap: 12px; padding: 18px 4px 4px; text-align: center; }
.ew-hallo h1 { margin: 4px 0 0; font: 800 29px/1.15 var(--schrift-titel); letter-spacing: -.7px; }
.ew-hallo > p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.ew-hallo .ew-feld { width: 100%; text-align: left; margin-top: 6px; }
.ew-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 35%, transparent); }
.ew-haken { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #fff; font: 800 42px var(--schrift);
  background: linear-gradient(140deg, var(--accent), var(--primary)); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent); animation: ew-plopp .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes ew-plopp { from { transform: scale(.3); opacity: 0; } }
.ew-link { justify-self: center; padding: 6px; text-align: center; color: var(--primary); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.ew-zw { margin: 8px 0 -4px; font: 720 15px var(--schrift-titel); color: var(--muted); }
.ew-weiter { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); color: inherit; text-decoration: none; }
.ew-weiter span { display: grid; gap: 2px; }
.ew-weiter small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ew-weiter i { font-style: normal; font-size: 22px; color: var(--muted); }
/* Felder */
.ew-feld { display: grid; gap: 5px; min-width: 0; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.ew-feld > span:first-child { padding-left: 2px; }
.ew input, .ew select { width: 100%; min-width: 0; box-sizing: border-box; height: 46px; padding: 0 12px; border-radius: 13px; border: 1px solid var(--grid);
  background: var(--bg); color: var(--ink); font: 500 16px var(--schrift); }
.ew input:focus, .ew select:focus { outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 0; border-color: transparent; }
.ew-euro { position: relative; display: block; }
.ew-euro input { padding-right: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.ew-euro i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 15px; pointer-events: none; }
.ew-reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.ew-reihe:has(.ew-feld.gross) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ew .ew-reihe:has(> .ew-weg) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 36px; }
.ew-reihe.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-karte { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.ew-weg { width: 36px; height: 46px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.ew-weg:active { background: var(--grid); }
/* Budget: Kategorie links, Betrag rechts */
.ew-budget { gap: 8px; }
.ew-kat { font-size: 15px; font-weight: 600; }
.ew-budget select[data-neu-budget] { color: var(--primary); font-weight: 600; border-style: dashed; background: none; }
/* Notfallreserve */
.ew-notfall { grid-template-columns: minmax(0, 1fr); }
.ew-notfall b { display: block; font-size: 16px; }
.ew-notfall small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.4; }
/* Vorschläge und Wahl-Karten */
.ew-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ew-chips button { padding: 9px 14px; border-radius: 20px; border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--grid)); background: none; color: var(--primary);
  font: 650 14px var(--schrift); cursor: pointer; }
.ew-chips.klein button { padding: 7px 13px; border-style: solid; border-color: var(--grid); color: var(--ink); }
.ew-chips.klein button.an { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.ew-wahlen { display: grid; gap: 10px; }
.ew-wahl { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--grid); background: var(--card);
  color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.ew-wahl i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--grid); transition: border .2s; }
.ew-wahl span { display: grid; gap: 3px; }
.ew-wahl b { font-size: 15.5px; }
.ew-wahl small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.ew-wahl.an { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--card)); }
.ew-wahl.an i { border: 6px solid var(--primary); }
.ew-da { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.ew-da span { padding: 4px 10px; border-radius: 12px; background: var(--grid); color: var(--ink); font-weight: 600; }
.ew-summe { margin: 0; text-align: right; font-size: 14px; color: var(--muted); }
.ew-summe b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* So sieht dein Monat aus */
.ew-monat { display: grid; gap: 6px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); }
.ew-monat > b { font: 720 16px var(--schrift-titel); margin-bottom: 2px; }
.ew-monat p { display: flex; justify-content: space-between; margin: 0; font-size: 14.5px; }
.ew-monat p b { font-variant-numeric: tabular-nums; }
.ew-monat .plus { color: var(--accent); }
.ew-monat .minus { color: var(--warn); }
.ew-monat .ew-rest { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--grid); font-size: 16px; font-weight: 700; }
.ew-monat small { font-size: 12.5px; color: var(--muted); }
.ew-fehler { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--fehler-bg); color: var(--fehler-ink); border: 1px solid var(--fehler-rand); font-size: 14px; }
/* unten: zurück, überspringen, weiter - bleibt beim Rollen sichtbar */
.ew-unten { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 10px); z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px;
  border-radius: 24px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--grid) 70%, transparent); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.ew-haupt { flex: 1; display: grid; place-items: center; height: 50px; border: 0; border-radius: 18px; color: #fff; text-decoration: none; cursor: pointer;
  font: 720 16.5px var(--schrift); background: linear-gradient(140deg, var(--accent), var(--primary)); }
.ew-haupt:disabled { opacity: .6; }
.ew-leise { height: 50px; padding: 0 12px; border: 0; border-radius: 18px; background: none; color: var(--muted); font: 600 14.5px var(--schrift); cursor: pointer; }
.ew-zurueck { flex: none; width: 50px; height: 50px; border: 0; border-radius: 18px; background: var(--grid); color: var(--ink); font: 600 26px/1 var(--schrift); cursor: pointer; }
.ew-hallo + .ew-unten { margin-top: 18px; }/* Karten der Einrichtung: drei Spalten (Feld · Feld · ×), auch in Reihen ohne × - so stehen die Felder untereinander bündig */
.ew .ew-karte > .ew-reihe { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 36px; }
.ew .ew-karte > .ew-reihe:not(:has(> .ew-weg)) > :last-child:not(:only-child) { grid-column: span 2; }
.ew .ew-karte > .ew-reihe > :only-child { grid-column: 1 / -1; }
.ew .ew-karte.ew-budget > .ew-reihe { grid-template-columns: minmax(0, 1fr) 120px 36px; align-items: center; }
.ew .ew-karte.ew-budget > .ew-reihe:last-child:has(select) { grid-template-columns: minmax(0, 1fr); }
/* Konten: "davon liquide" in eigener Zeile unter der Veränderung */
.h2-geld .h2-delta + small { display: block; margin-top: 2px; }

/* Kontoauszug einlesen (auszug2.js, 17.11.2026): je Umsatz eine Zeile - Haken, Name (antippen = ändern), Datum und Grund,
   Kategorie (nur wenn er übernommen wird), Betrag; nicht gewählte blasser */
.h2-au-schritte { margin: 8px 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.h2-au-schritte li + li { margin-top: 4px; }
.h2-au-zeile { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  border-left: 4px solid var(--f); background: var(--card); }
.h2-au-zeile:not(.an) > :not(.h2-au-haken) { opacity: .65; }
.h2-au-haken { width: 28px; height: 28px; padding: 0; border: 1.5px solid var(--grid); border-radius: 50%; background: transparent; color: #fff; font: 800 15px var(--schrift); cursor: pointer; }
.h2-au-zeile.an .h2-au-haken { border-color: var(--primary); background: var(--primary); }
.h2-au-mitte { display: grid; gap: 2px; min-width: 0; }
.h2-au-name { all: unset; overflow: hidden; font-size: 14.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.h2-au-name:focus-visible { outline: 2px solid var(--primary); border-radius: 4px; }
.h2-au-mitte small { overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.h2-au-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.h2-au-wahl select { max-width: 100%; padding: 4px 8px; border: 1px solid var(--grid); border-radius: 999px; background: var(--spur);
  color: var(--ink); font: 600 12.5px var(--schrift); }
.h2-au-zeile:not(.an) .h2-au-wahl { display: none; }
.h2-au-betrag { font-size: 14.5px; white-space: nowrap; }
.h2-au-betrag.plus { color: var(--accent); }
.h2-au-gruppe summary small { margin-left: 4px; font-size: 12px; font-weight: 500; }
.h2-au-gruppe .h2-b-liste { margin-bottom: 8px; }
.h2-au .h2-ab-knoepfe { margin-top: 12px; }
.h2-au .h2-ab-speichern:disabled { opacity: .5; cursor: default; }
.h2-au-summe { margin-top: 6px !important; text-align: center; }
.h2-au .meldung { margin-top: 10px; }