/* Split — nach Apples Human Interface Guidelines, in derselben Bildsprache wie
   Pflanzenkatalog /v2 und Briefgenerator /v2 (Tokens von dort übernommen, Akzent
   Geldgrün). Lehren aus ../IOS-DESIGN.md gelten: Glas nur auf großen Flächen,
   Schleier ab dem Schließen ohne Tipps, Schalter mit fester Breite. */

:root {
  color-scheme: light dark;
  --grund:   #F2F2F7;
  --grund2:  #FFFFFF;
  --grund3:  #E5E5EA;
  --text:    #000000;
  --text2:   #6C6C70;           /* 5,2 : 1 auf Weiß */
  --text3:   #8E8E93;           /* nur Symbole */
  --linie:   rgba(60, 60, 67, .29);
  --tint:    #0B7A55;           /* 5,3 : 1 auf Weiß */
  --tintfl:  #0B7A55;
  --tintzart: rgba(11, 122, 85, .12);
  --plus:    #1E7A34;
  --rot:     #D70015;  --rotfl: #D70015;
  --blau:    #0040DD;
  --glas:    rgba(249, 249, 249, .78);
  --glaslinie: rgba(0, 0, 0, .12);
  --schatten: 0 8px 30px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .08);
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  --rand: max(16px, env(safe-area-inset-left, 0px));
  --kurve: cubic-bezier(.32, .72, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #000000; --grund2: #1C1C1E; --grund3: #2C2C2E;
    --text: #FFFFFF; --text2: #AEAEB2; --text3: #8E8E93;
    --linie: rgba(84, 84, 88, .6);
    --tint: #4CD9A0; --tintfl: #0E8A60; --tintzart: rgba(76, 217, 160, .16);
    --plus: #30D158; --rot: #FF6961; --rotfl: #D70015; --blau: #409CFF;
    --glas: rgba(30, 30, 30, .72); --glaslinie: rgba(255, 255, 255, .1);
    --schatten: 0 8px 30px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --grund: #000000; --grund2: #1C1C1E; --grund3: #2C2C2E;
  --text: #FFFFFF; --text2: #AEAEB2; --text3: #8E8E93;
  --linie: rgba(84, 84, 88, .6);
  --tint: #4CD9A0; --tintfl: #0E8A60; --tintzart: rgba(76, 217, 160, .16);
  --plus: #30D158; --rot: #FF6961; --rotfl: #D70015; --blau: #409CFF;
  --glas: rgba(30, 30, 30, .72); --glaslinie: rgba(255, 255, 255, .1);
  --schatten: 0 8px 30px rgba(0, 0, 0, .5);
}
@media (prefers-contrast: more) {
  :root { --linie: rgba(60, 60, 67, .6); --text2: #48484A; }
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--grund); color: var(--text);
  font: 17px/1.29 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.41px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overflow: hidden; overscroll-behavior: none;
}
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
svg { width: 1em; height: 1em; display: block; }
.sprite { position: absolute; }
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 70%, transparent); outline-offset: 2px; border-radius: 10px; }
#haptik { position: fixed; left: -100px; top: 0; opacity: 0; pointer-events: none; }
.zahlen, .betrag, .wert, .saldo { font-variant-numeric: tabular-nums; }

/* -- Ansicht ------------------------------------------------------------- */
.ansicht { position: fixed; inset: 0; background: var(--grund); display: flex; flex-direction: column; }
.rollbar {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(44px + var(--oben)) 0 calc(110px + var(--unten)); overscroll-behavior-y: contain;
}
#inhalt { max-width: 720px; margin: 0 auto; }
.leiste {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  height: calc(44px + var(--oben)); padding: var(--oben) 8px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background-color .2s, box-shadow .2s;
}
.leiste.fest {
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--glaslinie);
}
.leiste-titel {
  font-weight: 600; text-align: center; max-width: 56vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.leiste.fest .leiste-titel { opacity: 1; transform: none; }
.leiste-links { justify-self: start; display: flex; }
.leiste-rechts { justify-self: end; display: flex; gap: 2px; }
.rundknopf { width: 44px; height: 44px; display: grid; place-items: center; color: var(--tint); font-size: 24px; border-radius: 22px; }
.rundknopf.voll i { width: 32px; height: 32px; border-radius: 16px; background: var(--tintfl); color: #fff; display: grid; place-items: center; font-size: 18px; }
.rundknopf:active, .textknopf:active, .zurueck:active { opacity: .35; transition: none; }
.textknopf { color: var(--tint); min-height: 44px; padding: 0 8px; }
.textknopf.fett { font-weight: 600; }
.zurueck { display: flex; align-items: center; gap: 2px; color: var(--tint); min-height: 44px; padding-right: 8px; max-width: 40vw; }
.zurueck svg { font-size: 24px; margin-left: -2px; }
.zurueck span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grosstitel { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .37px; margin: 2px var(--rand) 0; overflow-wrap: anywhere; }
.grosstitel.lang { font-size: 28px; line-height: 34px; }
.untertitel { margin: 0 var(--rand) 18px; color: var(--text2); font-size: 15px; letter-spacing: -.24px; }

/* -- Gruppierte Listen ------------------------------------------------------ */
.gruppe { margin: 0 var(--rand) 28px; }
.gruppe > h2 {
  margin: 0 16px 7px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--text2);
  text-transform: uppercase; letter-spacing: -.08px; display: flex; justify-content: space-between; gap: 8px;
}
.gruppe > h2 .zahlen { text-transform: none; }
.gruppe > .fuss { margin: 7px 16px 0; font-size: 13px; line-height: 18px; color: var(--text2); letter-spacing: -.08px; }
.karte { background: var(--grund2); border-radius: 26px; overflow: hidden; position: relative; }
.zeile {
  --einzug: 16px; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px;
  padding: 11px 16px; text-align: left; position: relative; background: var(--grund2); color: var(--text);
}
button.zeile:active, a.zeile:active { background: var(--grund3); transition: none; }
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: var(--einzug); right: 0; border-top: .5px solid var(--linie); }
.zeile.mitsymbol { --einzug: 60px; }
.zeile .haupt { flex: 1; min-width: 0; }
.zeile .titel { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .unter { display: block; font-size: 15px; color: var(--text2); letter-spacing: -.24px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .wert { color: var(--text2); text-align: right; flex: none; max-width: 55%; }
.zeile .wert.stark { color: var(--text); font-weight: 500; }
.zeile .wert small { display: block; font-size: 13px; color: var(--text2); font-weight: 400; }
.zeile .pfeil { color: var(--text3); font-size: 14px; flex: none; margin-right: -4px; opacity: .7; }
.zeile.tint { color: var(--tint); }
.zeile.rot { color: var(--rot); justify-content: center; }
.symbol {
  width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-size: 18px; background: var(--farbe, var(--grund3)); color: #fff;
}
.symbol.emoji { background: color-mix(in srgb, var(--farbe) 18%, var(--grund2)); font-size: 19px; }
.symbol.rund { border-radius: 16px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.k-essen { --farbe: #E8590C; } .k-einkauf { --farbe: #2F9E44; } .k-unterkunft { --farbe: #5F3DC4; }
.k-transport { --farbe: #1971C2; } .k-aktivitaet { --farbe: #C2255C; } .k-sonstiges { --farbe: #868E96; }
.k-zahlung { --farbe: var(--tintfl); }
.plus { color: var(--plus) !important; }
.minus { color: var(--rot) !important; }
.leer { text-align: center; padding: 40px 32px; color: var(--text2); }
.leer svg { font-size: 54px; margin: 0 auto 12px; color: var(--tint); }
.leer b { display: block; color: var(--text); font-size: 20px; font-weight: 600; margin-bottom: 4px; letter-spacing: .38px; }
.leer .knopfgross { margin-top: 20px; }
.marke { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: var(--grund3); color: var(--text2); letter-spacing: 0; vertical-align: 1px; }

/* -- Saldo-Karte oben -------------------------------------------------------- */
.ichkarte { padding: 16px; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.ichkarte:active { background: var(--grund3); transition: none; }
.ichkarte .haupt { flex: 1; min-width: 0; }
.ichkarte .klein { font-size: 13px; color: var(--text2); letter-spacing: -.08px; }
.ichkarte .saldo { font-size: 28px; font-weight: 700; letter-spacing: .36px; line-height: 34px; }
.ichkarte .erkl { font-size: 15px; color: var(--text2); letter-spacing: -.24px; }

/* -- Balken (Statistik, Salden) ---------------------------------------------- */
.balken { display: block; height: 6px; border-radius: 3px; background: var(--grund3); margin-top: 6px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--farbe, var(--tintfl)); }
.saldobalken { display: grid; grid-template-columns: 1fr 1fr; height: 8px; margin-top: 7px; gap: 2px; }
.saldobalken > span { position: relative; background: var(--grund3); border-radius: 4px; overflow: hidden; }
.saldobalken > span i { position: absolute; top: 0; bottom: 0; width: 0; border-radius: 4px; }
.saldobalken > span:first-child i { right: 0; background: var(--rotfl); }
.saldobalken > span:last-child i { left: 0; background: var(--plus); }
.grosszahl { padding: 16px; }
.grosszahl .klein { font-size: 13px; color: var(--text2); }
.grosszahl b { display: block; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .37px; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid var(--linie); }
.kacheln > div { padding: 12px 16px; }
.kacheln > div + div { border-left: .5px solid var(--linie); }
.kacheln .klein { font-size: 13px; color: var(--text2); }
.kacheln b { display: block; font-size: 20px; font-weight: 600; }

/* -- Abrechnung ----------------------------------------------------------------- */
.ueberweisung .haupt .titel { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ueberweisung .haupt .titel svg { color: var(--text3); font-size: 15px; flex: none; }
.ueberweisung .haupt .titel span { overflow: hidden; text-overflow: ellipsis; }
.pille { flex: none; min-height: 32px; padding: 0 14px; border-radius: 16px; background: var(--tintzart); color: var(--tint); font-size: 15px; font-weight: 600; letter-spacing: -.24px; }
.pille:active { filter: brightness(.85); transition: none; }
.ueberweisung.erledigt .titel span, .ueberweisung.erledigt .unter { text-decoration: line-through; color: var(--text2); }
.rueck { flex: none; width: 52px; min-height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--tint); font-size: 11px; }
.rueck svg { font-size: 18px; transform: scaleX(-1) rotate(-30deg); }
.haken { width: 22px; height: 22px; border-radius: 11px; background: var(--plus); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }

/* -- Sheet -------------------------------------------------------------------- */
.sheetschleier { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .3); transition: background .35s; }
.sheetschleier.zu { background: rgba(0, 0, 0, 0); pointer-events: none; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 720px;
  height: calc(100% - var(--oben) - 10px); background: var(--grund);
  border-radius: 12px 12px 0 0; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .45s var(--kurve); box-shadow: var(--schatten);
}
.sheet.mittel { height: auto; max-height: calc(100% - var(--oben) - 10px); }
.sheetschleier.zu .sheet { transform: translateY(100%); }
.greifer { position: absolute; top: 5px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--text3); opacity: .5; }
.sheetkopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 6px 8px 0; flex: none; }
.sheetkopf h2 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.sheetkopf .l { justify-self: start; } .sheetkopf .r { justify-self: end; }
.sheetrolle { flex: 1; overflow-y: auto; padding: 8px 0 calc(24px + var(--unten)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheetrolle .gruppe { margin-bottom: 24px; }

.feld { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; background: var(--grund2); position: relative; }
.feld + .feld::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--linie); }
.feld > span { flex: none; min-width: 32%; max-width: 45%; }
.feld input:not([type=checkbox]):not([type=file]), .feld select, .feld textarea {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; letter-spacing: inherit;
  text-align: right; padding: 11px 0; -webkit-appearance: none; appearance: none;
}
.feld select { color: var(--text2); direction: rtl; padding-right: 2px; }
.feld select option { direction: ltr; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--text3); }
.feld.lang { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
.feld.lang > span { font-size: 13px; color: var(--text2); max-width: none; letter-spacing: -.08px; }
.feld.lang textarea, .feld.lang input { text-align: left !important; resize: none; padding: 4px 0 11px !important; }
.feld.lang textarea { min-height: 3.2em; field-sizing: content; }
.feld input[type=date] { text-align: right; min-height: 22px; }
.feld.links input { text-align: left !important; }
.feld .hilfe { color: var(--text2); font-size: 15px; flex: none; }

.betragfeld { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 18px 16px 14px; background: var(--grund2); }
.betragfeld input {
  width: 100%; min-width: 0; flex: 1; border: 0; background: none; color: var(--text); text-align: right;
  font-family: inherit; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: .3px; padding: 0; font-variant-numeric: tabular-nums;
}
.betragfeld input::placeholder { color: var(--text3); }
.betragfeld select {
  flex: none; border: 0; border-radius: 10px; background: var(--grund3); color: var(--text); font-family: inherit; font-size: 17px; font-weight: 600;
  padding: 8px 10px; -webkit-appearance: none; appearance: none;
}
.umrechnung { padding: 0 16px 12px; background: var(--grund2); text-align: center; font-size: 15px; color: var(--text2); }

.segment { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; background: var(--grund3); border-radius: 9px; padding: 2px; margin: 0 0 8px; }
.segment button { font-size: 13px; font-weight: 500; border-radius: 7px; min-height: 30px; letter-spacing: -.08px; }
.segment button[aria-selected="true"] { background: var(--grund2); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segment button[aria-selected="true"] { background: #636366; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--rand) 4px; margin: 0 calc(-1 * var(--rand)); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px;
  border-radius: 18px; background: var(--grund2); font-size: 15px; letter-spacing: -.24px;
}
.chip[aria-pressed="true"] { background: var(--tintfl); color: #fff; }

.kreis { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.kreis i { width: 24px; height: 24px; border-radius: 12px; border: 1.5px solid var(--text3); display: grid; place-items: center; color: #fff; font-size: 14px; transition: background .15s, border-color .15s; }
.kreis i svg { opacity: 0; }
.kreis.an i { background: var(--tintfl); border-color: var(--tintfl); }
.kreis.an i svg { opacity: 1; }
.teilzeile input { width: 96px; flex: none !important; text-align: right; border: 0; border-radius: 8px; background: var(--grund3) !important; padding: 6px 8px !important; font-variant-numeric: tabular-nums; }
.teilzeile .wert { min-width: 76px; }

.belegvorschau { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; background: var(--grund3); }
.belegvorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dateiwahl { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

.knopfgross {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 14px;
  background: var(--tintfl); color: #fff; font-size: 17px; font-weight: 600;
}
.knopfgross.zart { background: var(--tintzart); color: var(--tint); }
.knopfgross:active { filter: brightness(.88); transition: none; }
.leer .knopfgross { width: auto; padding: 0 22px; margin-left: auto; margin-right: auto; }
.qr { background: #fff; border-radius: 20px; padding: 16px; width: min(260px, 70vw); margin: 0 auto 16px; }
.qr img { width: 100%; display: block; image-rendering: pixelated; }
.linktext { font-size: 13px; color: var(--text2); word-break: break-all; text-align: center; margin: 0 24px 16px; }
.info { font-size: 13px; color: var(--text2); margin: 8px 32px 0; text-align: center; line-height: 18px; }

/* -- Aktionsblatt ------------------------------------------------------------- */
.aktionsschleier { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .25); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 8px calc(8px + var(--unten)); }
.aktionsschleier.zu { pointer-events: none; background: transparent; }
.aktionsschleier.zu .aktionsblatt { transform: translateY(110%); transition: transform .3s var(--kurve); }
.aktionsblatt { width: 100%; max-width: 420px; margin: 0 auto; animation: hoch .4s var(--kurve); }
@keyframes hoch { from { transform: translateY(110%); } }
.ab-gruppe { background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); border-radius: 14px; overflow: hidden; margin-bottom: 8px; box-shadow: var(--schatten); }
.ab-gruppe .ab-titel { padding: 14px 16px; font-size: 13px; color: var(--text2); text-align: center; letter-spacing: -.08px; }
.ab-gruppe button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; font-size: 20px; color: var(--blau); border-top: .5px solid var(--linie); letter-spacing: .38px; }
.ab-gruppe .ab-titel + button, .ab-gruppe button:first-child { border-top: 0; }
.ab-gruppe button.rot { color: var(--rot); }
.ab-gruppe button.fett { font-weight: 600; }
.ab-gruppe button:active { background: rgba(127, 127, 127, .2); transition: none; }

/* -- Tab-Leiste ---------------------------------------------------------------- */
.tableiste {
  position: fixed; z-index: 30; left: 50%; bottom: calc(10px + var(--unten)); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border-radius: 32px;
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--schatten), inset 0 0 0 .5px var(--glaslinie);
}
.tableiste button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 92px; min-height: 54px; border-radius: 28px; color: var(--text2); font-size: 10px; font-weight: 500; letter-spacing: .1px;
}
.tableiste button svg { font-size: 25px; }
.tableiste button[aria-selected="true"] { color: var(--tint); background: rgba(127, 127, 127, .14); }
.tableiste button:active { transform: scale(.94); transition: transform .1s; }

/* -- Hinweis und Vollbild ------------------------------------------------------- */
.hinweis {
  position: fixed; z-index: 70; left: 50%; bottom: calc(84px + var(--unten)); transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 4px; max-width: calc(100% - 32px); min-height: 44px; padding: 4px 6px 4px 18px; border-radius: 22px;
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--schatten); font-size: 15px; letter-spacing: -.24px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--kurve);
}
.hinweis.zeig { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hinweis:not(:has(button)) { padding-right: 18px; }
.hinweis button { color: var(--tint); font-weight: 600; min-height: 36px; padding: 0 10px; }
.vollbild { position: fixed; inset: 0; z-index: 80; background: #000; display: grid; place-items: center; }
.vollbild img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .leiste.fest, .tableiste, .ab-gruppe, .hinweis { background: var(--grund2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (min-width: 760px) {
  .sheet { border-radius: 14px; bottom: 20px; height: calc(100% - 60px); }
}
.abstand { height: 10px; }
a { color: inherit; text-decoration: none; }
.ichkarte .klein, .ichkarte .saldo, .ichkarte .erkl, .ichkarte .titel { display: block; }
.zeile .unter.umbruch { white-space: normal; }
/* Textfelder in Listen: kein Fokusrahmen, nur der Cursor (wie iOS). Der Rahmen bleibt
   für Knöpfe und Tastaturbedienung. Lehre 13 in ../IOS-DESIGN.md. */
:is(.feld, .betragfeld, .teilzeile, .karte) :is(input, textarea, select):focus-visible { outline: none; }
.teilzeile input:focus { box-shadow: inset 0 0 0 1.5px var(--tint); }
.gruppe > h2 { align-items: flex-end; }
.gruppe > h2 .textknopf { min-height: 0; padding: 0; font-size: 15px; text-transform: none; letter-spacing: -.24px; }
/* Kategorien als festes Raster 3 × 2 statt einer seitlich scrollenden Zeile: alle immer
   sichtbar, und kein Wischen, das auf dem iPhone den folgenden Tipp verschluckt (2026-10-27). */
.kacheln-kat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kacheln-kat .chip {
  flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 4px;
  border-radius: 16px; font-size: 13px; letter-spacing: -.08px; text-align: center; line-height: 1.15;
  touch-action: manipulation;
}
.kacheln-kat .chip .em { font-size: 24px; line-height: 1; }
.kacheln-kat .chip:active { filter: brightness(.9); transition: none; }
/* Eigene Kategorien (2026-10-27) */
.k-eigen { --farbe: #0B7285; }
.kacheln-kat .chip.neu { background: transparent; border: 1.5px dashed var(--linie); color: var(--tint); }
.katneu { margin-top: 8px; }
.emojifeld { flex: none !important; width: 44px; text-align: center !important; font-size: 22px !important; border-radius: 10px !important; background: var(--grund3) !important; padding: 6px 0 !important; }
.feld.katzeile input:not(.emojifeld) { text-align: left; }
