/* ==========================================================================
   Haushaltsbuch — Stylesheet
   --------------------------------------------------------------------------
   Gliederung:
     1. Grundlayout und Formularelemente
     2. Buttons
     3. Listen, Verlauf und Statistik
     4. Modale Dialoge
     5. Favoriten
     6. Kategorienverwaltung
     7. Betrag-Rechner
     8. Kopfzeile, Monatsnavigation, Tabs
     9. Serien und Fixkosten
    10. Toasts, Offline-Hinweise
    11. Wiederholungs-Menü und kompakte Formularaktionen
   ========================================================================== */


/* ── 1. Grundlayout und Formularelemente ─────────────────────────────────── */

body {
    padding: 0;
    margin: 0;
    background: #f4f4f9;
    font-family: Arial, sans-serif;
    color: #333;
}

input, select, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.status { text-align: center; color: #777; font-size: 0.9em; margin-top: 10px; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Betragszeile: Eingabefeld und Rechner-Button liegen NEBENEINANDER.
   Der Button überlagert das Feld nicht mehr, damit der Betrag auch
   direkt per Tastatur eingegeben werden kann (Desktop). */
.betrag-zeile {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.betrag-zeile input {
    flex: 1;
    min-width: 0;
}
.btn-rechner {
    flex: 0 0 48px;
    width: 48px;
    margin: 8px 0;
    padding: 0;
    background: #ebf5fb;
    color: #2980b9;
    border: 1px solid #d4e6f5;
    border-radius: 6px;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-rechner:hover { background: #d4e6f5; border-color: #aed6f1; }
.btn-rechner:active { transform: scale(.95); }

/* Suchfeld */
.suchfeld-container { margin-bottom: 15px; position: relative; }
.suchfeld-input { padding-left: 35px; background-color: #fff; border: 1px solid #ced6e0; font-size: 0.95em; }
.suchfeld-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #a4b0be; pointer-events: none; }


/* ── 2. Buttons ──────────────────────────────────────────────────────────── */

button {
    background-color: #2ecc71;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

/* Hover-Effekte nur auf Geräten mit echtem Zeiger.
   Auf Touchgeräten bleibt der Hover-Zustand nach dem Antippen kleben,
   bis woanders hingetippt wird — ein angetippter Knopf sähe sonst
   dauerhaft "aktiv" aus. */
@media (hover: hover) {
    button:hover { background-color: #27ae60; }
}

/* Knöpfe mit eigener Grundfarbe brauchen eine eigene Hover-Regel.
   `button:hover` oben ist spezifischer als eine einfache Klassenregel
   und würde ihnen sonst die grüne Grundfarbe aufzwingen.

   Die durchsichtigen Knöpfe bekommen zusätzlich :focus und :active
   abgedeckt: nach einem Klick behält ein Button den Fokus, und ein
   übersehener Zustand würde sofort wieder grün durchschlagen. */

/* Durchsichtige Knöpfe: Reload, Abmelden, Schließen-Kreuze, Tableiste */
button.btn-reload,
button.btn-reload:hover,
button.btn-reload:focus,
button.btn-reload:active,
button.btn-logout,
button.btn-logout:hover,
button.btn-logout:focus,
button.btn-logout:active,
button.tab-item,
button.tab-item:hover,
button.tab-item:focus,
button.tab-item:active,
button.serien-suche-loeschen,
button.serien-suche-loeschen:hover,
button.serien-suche-loeschen:focus,
button.serien-suche-loeschen:active,
#serienToast-schliessen,
#serienToast-schliessen:hover,
#serienToast-schliessen:focus,
.fehlerToast-kopf button,
.fehlerToast-kopf button:hover,
.fehlerToast-kopf button:focus {
    background-color: transparent;
}
/* Ausnahmen: aktiver Tab bleibt blau, Reload nur beim Überfahren hellgrau */
button.tab-item.aktiv,
button.tab-item.aktiv:hover,
button.tab-item.aktiv:focus { background-color: #3498db; }

@media (hover: hover) {
    button.btn-reload:hover { background-color: #f8f9fa; }
}

/* Rechnertasten behalten ihre Farbe */
button.rechner-btn:hover      { background-color: #f0f1f5; }
button.rechner-btn.op:hover   { background-color: #eaf1fd; }
button.rechner-btn.gleich:hover      { background-color: #2f8fd0; }
button.rechner-btn.uebernehmen:hover { background-color: #29b765; }
button.rechner-btn.abbrechen:hover   { background-color: #d8483a; }

/* Monats- und Jahresauswahl im Zeitraum-Dialog */
.monat-picker-jahre button:hover,
.monat-picker-modus button:hover { background-color: #e4e6ec; }
.monat-picker-monate button:hover { background-color: #eef0f2; }
.monat-picker-jahre button.aktiv-jahr:hover,
.monat-picker-modus button.aktiv:hover,
.monat-picker-monate button.aktiv-monat:hover { background-color: #ebf5fb; }

button.picker-schliessen:hover { background-color: #7f8c8d; }
.fehlerToast-fuss button:hover { background-color: #c0392b; }

.btn-sekundaer { background-color: #34495e; }
.btn-sekundaer:hover { background-color: #2c3e50; }
.btn-schliessen { background-color: #95a5a6; }
.btn-schliessen:hover { background-color: #7f8c8d; }
.btn-danger { background-color: #e74c3c; }
.btn-danger:hover { background-color: #c0392b; }
.btn-modal-danger { background-color: #e74c3c; }
.btn-modal-danger:hover { background-color: #c0392b; }

.btn-logout {
    background: none; border: none; color: #bdc3c7;
    width: auto; padding: 4px 6px; font-size: .8em; margin: 0; cursor: pointer;
}
.btn-logout:hover { color: #e74c3c; }

.popup-aktions-gruppe {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 15px; border-top: 1px solid #eee; padding-top: 15px;
}

.grup-btn {
    width: auto; padding: 5px 10px; margin: 0; font-size: .75em;
    background: #f1f2f6; color: #555; border-radius: 6px; font-weight: bold;
}
.grup-btn:hover { background: #dfe4ea; color: #333; }
.aktiv-grup { background: #3498db !important; color: #fff !important; }

.btn-icon { width: auto; padding: 7px 11px; margin: 0; font-size: 0.85em; border-radius: 6px; line-height: 1; }
.btn-edit { background-color: #3498db; }
.btn-edit:hover { background-color: #2980b9; }
.btn-save { background-color: #2ecc71; }
.btn-save:hover { background-color: #27ae60; }
.btn-cancel { background-color: #95a5a6; }
.btn-cancel:hover { background-color: #7f8c8d; }
.btn-del { background-color: #e74c3c; }
.btn-del:hover { background-color: #c0392b; }
.btn-merge { background-color: #e67e22; }
.btn-merge:hover { background-color: #d35400; }

/* Inline-SVG-Icons in Überschriften und Buttons */
.icon {
    width: 14px; height: 14px;
    display: inline-block; vertical-align: middle;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon-klein { width: 10px; height: 10px; stroke-width: 1.8; }


/* ── 3. Listen, Verlauf und Statistik ────────────────────────────────────── */

.chart-container { position: relative; margin: 20px auto; height: 220px; width: 220px; }

/* Der Kreisring der Startseite: quadratisch über die Breite, aber
   gedeckelt, damit er auf breiten Displays nicht ins Absurde wächst.
   Eingeklappt ist er komplett aus dem Fluss — Chart.js kann eine Fläche
   ohne Größe nicht zeichnen, deshalb `display: none` statt Höhe 0. */
.chart-ring {
    display: none;
    width: min(100%, 240px);
    aspect-ratio: 1;
    height: auto;
    margin: 4px auto 0;
}
.chart-ring.offen { display: block; }

/* Gesamtsumme: das Erste, was auf der Startseite zu sehen sein soll */
.summe-kopf { text-align: center; padding: 2px 0 12px; }
.summe-label {
    display: none;
    font-size: .78em; color: #95a5a6; margin-bottom: 1px;
}
.summe-label.sichtbar { display: block; }
.summe-wert {
    font-size: 1.9em; font-weight: bold; color: #222;
    white-space: nowrap; line-height: 1.1;
}

/* Aufklapper für das Diagramm — dieselbe Sprache wie „Termine anzeigen"
   im Wiederholungs-Menü */
.diagramm-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin: 10px 0 0; padding: 7px 10px;
    font-size: .8em; font-weight: bold;
    background: #fff; color: #3498db;
    border: 1px dashed #aed6f1; border-radius: 8px;
}
.diagramm-toggle:hover { background: #ebf5fb; }
.diagramm-toggle .dg-chevron { font-size: .8em; transition: transform .2s; }
.diagramm-toggle .dg-chevron.offen { transform: rotate(180deg); }

.betrag-rot { color: #e74c3c; font-weight: bold; text-align: right; white-space: nowrap; }

.stats-zeile {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 4px; border-bottom: 1px dashed #eee;
    cursor: pointer; border-radius: 6px; transition: background .15s;
}
.stats-zeile:hover { background: #f1f2f6; }
.stats-zeile-chevron { font-size: .7em; color: #bdc3c7; margin-left: 4px; transition: transform .2s; }
.stats-zeile-chevron.offen { transform: rotate(180deg); }
.stats-eintraege-liste { display: none; background: #f8f9fa; border-radius: 0 0 8px 8px; margin: 0 -4px 4px; overflow: hidden; }
.stats-eintraege-liste.offen { display: block; }

.stats-kategorie-links { display: flex; align-items: center; gap: 8px; }
.farb-indikator { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.stats-kategorie { font-weight: bold; }
.stats-kategorie-meta { font-size: 0.8em; color: #95a5a6; font-weight: normal; margin-left: 4px; }
.stats-zeile-betrag { color: #222; font-weight: bold; }
.stats-zeile-rechts { display: flex; align-items: center; gap: 4px; }

/* Die Gesamtsumme der Startseite steht seit dem Umbau IM Kreisring und
   wird dort auf das Canvas gezeichnet (ringMitteZeichner in app.js) —
   hier gibt es dafür keine Regel mehr. */

/* Verlauf: Flex-Zeilen statt Tabelle — verhindert unerwünschte Umbrüche */
.verlauf-zeile {
    display: flex; align-items: baseline; padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0; cursor: pointer;
    transition: background .15s; gap: 6px;
}
.verlauf-zeile:hover { background: #f1f2f6; }
.verlauf-zeile:last-child { border-bottom: none; }
.verlauf-zeile.zukunft { opacity: .38; }
.verlauf-zeile-links { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.verlauf-zeile-datum { color: #aaa; font-size: .78em; flex-shrink: 0; }
.verlauf-zeile-haupt { font-size: .88em; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.verlauf-zeile-kommentar { font-size: .78em; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 2; min-width: 0; }
.verlauf-zeile-betrag { font-size: .88em; font-weight: bold; white-space: nowrap; flex-shrink: 0; color: #222; }
.verlauf-zeile-betrag.zukunft { color: #aaa; }
.verlauf-zeile-icon { flex-shrink: 0; opacity: .5; }

.verlauf-gruppe-kopf {
    display: flex; justify-content: space-between; align-items: center;
    background: #f8f9fa; padding: 6px 10px; font-size: .85em; font-weight: bold; color: #555;
}
.verlauf-gruppe-kopf-betrag { color: #222; }
.verlauf-gruppe-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

.leer-hinweis { text-align: center; color: #999; padding: 20px; font-size: .9em; }

.sub-text { font-size: 0.82em; color: #aaa; display: inline; font-style: normal; }
.abo-tag { color: #0288d1; font-size: 0.78em; font-style: normal; }
.user-tag { color: #aaa; font-size: 0.78em; font-style: normal; }

.pagination-footer {
    text-align: center; padding: 12px; color: #3498db;
    font-size: .85em; cursor: pointer; font-weight: bold;
}


/* ── 4. Modale Dialoge ───────────────────────────────────────────────────── */

.modal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); overflow-y: auto; padding-top: 50px;
}
.modal-content {
    background-color: white; margin: 0 auto 50px auto; padding: 25px;
    border-radius: 12px; max-width: 450px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); position: relative; box-sizing: border-box;
}
.modal-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.bearbeitungs-modus { border: 3px solid #3498db; }

.feld-label { font-size: 0.9em; color: #666; display: block; }
.feld-label-links { font-size: 0.9em; color: #666; text-align: left; display: block; margin-bottom: 4px; }

/* Checkbox-Zeilen in Formularen (überschreibt die globale Button-/Input-Breite) */
.check-zeile {
    display: flex; align-items: center; gap: 8px; font-size: 0.9em;
    cursor: pointer; width: auto; margin: 0 0 10px 0;
    border: none; padding: 0; background: none; color: #333;
}
.check-zeile input[type="checkbox"] { width: auto; margin: 0; cursor: pointer; }
.check-zeile.fett { font-weight: bold; margin-bottom: 8px; }

/* Beschriftungszeile mit Nebenaktion rechts (z. B. "Aufteilen") */
.feld-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.btn-aufteilen {
    width: auto; margin: 0; padding: 2px 9px;
    font-size: .75em; font-weight: bold;
    background: #f1f2f6; color: #555;
    border: none; border-radius: 10px; white-space: nowrap;
}
.btn-aufteilen.aktiv { background: #3498db; color: #fff; }

/* Aufteilung eines Betrags auf mehrere Kategorien */
.aufteilen-box {
    display: none;
    background: #f8f9fa; border-radius: 8px;
    padding: 10px; margin: 4px 0 8px;
}
.aufteilen-box.sichtbar { display: block; }

.aufteil-zeile { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.aufteil-zeile input.aufteil-betrag {
    flex: 0 0 90px; width: 90px; margin: 0; padding: 8px;
    font-size: .9em; text-align: right;
}
.aufteil-zeile select.aufteil-kat {
    flex: 1; min-width: 0; margin: 0; padding: 8px; font-size: .9em;
}
.aufteil-zeile button.aufteil-weg {
    flex: 0 0 32px; width: 32px; margin: 0; padding: 0;
    height: 34px; line-height: 1;
    background: none; color: #bbb; border: none; font-size: 1.1em;
}
.aufteil-zeile button.aufteil-weg:hover { color: #e74c3c; background: none; }

.aufteilen-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.aufteilen-add {
    width: auto; margin: 0; padding: 5px 12px; font-size: .8em;
    background: #fff; color: #3498db; border: 1px dashed #aed6f1; border-radius: 6px;
}
.aufteilen-add:hover { background: #ebf5fb; color: #2980b9; }
.aufteilen-rest { font-size: .8em; font-weight: bold; color: #7f8c8d; text-align: right; }
.aufteilen-rest.offen { color: #e67e22; }
.aufteilen-rest.passt { color: #27ae60; }
.aufteilen-rest.zuviel { color: #e74c3c; }

/* Kategorie-Vorschlag aus früheren Kommentaren.
   Zurückhaltend gestaltet: er soll erklären, nicht ablenken. */
.kat-vorschlag {
    display: none;
    align-items: center; gap: 8px;
    font-size: .8em; color: #2980b9;
    background: #ebf5fb; border-radius: 6px;
    padding: 6px 10px; margin: 2px 0 4px;
}
.kat-vorschlag.sichtbar { display: flex; }
.kat-vorschlag span { flex: 1; min-width: 0; }
.kat-vorschlag button {
    width: auto; margin: 0; padding: 3px 10px;
    font-size: .95em; background: #3498db; color: #fff;
    border: none; border-radius: 5px; white-space: nowrap;
}
/* Wurde die Kategorie automatisch gesetzt, gibt es nichts zu übernehmen —
   dann bleibt nur der erklärende Text stehen */
.kat-vorschlag.automatisch { background: #eafaf1; color: #27ae60; }
.kat-vorschlag.automatisch button { display: none; }

.serien-ende-box { display: none; background: #f8f9fa; border-radius: 8px; padding: 12px; margin-top: 4px; }
.serien-anzahl-info {
    display: none; margin-top: 8px; font-size: .82em; color: #3498db;
    background: #ebf5fb; border-radius: 6px; padding: 6px 10px;
}

.lade-spinner {
    width: 14px; height: 14px; border: 2px solid #e0e0e0;
    border-top-color: #3498db; border-radius: 50%;
    animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lade-text { font-size: .72em; color: #7f8c8d; white-space: nowrap; }


/* ── 5. Favoriten ────────────────────────────────────────────────────────── */

.favoriten-liste { display: flex; gap: 8px; flex-wrap: wrap; }

.favorit-btn {
    flex: 1; min-width: 80px; max-width: 140px;
    background: #fff; border: 2px solid #e0e0e0;
    border-radius: 10px; padding: 10px 8px 8px;
    cursor: pointer; text-align: center;
    transition: border-color .2s, box-shadow .2s;
    position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.favorit-btn:active { transform: scale(.96); }
.favorit-btn:hover { border-color: #3498db; box-shadow: 0 2px 8px rgba(52,152,219,.15); }
.favorit-btn .fav-name { font-size: .8em; font-weight: bold; color: #333; display: block; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorit-btn .fav-betrag { font-size: 1em; font-weight: bold; color: #222; display: block; }
.favorit-btn .fav-kat { font-size: .72em; color: #999; display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorit-btn .fav-edit { position: absolute; top: 4px; right: 5px; font-size: .7em; color: #ccc; cursor: pointer; padding: 2px 4px; line-height: 1; }
.favorit-btn .fav-edit:hover { color: #3498db; }

.favorit-neu {
    flex: 0 0 44px; width: 44px; height: 44px; min-width: unset; max-width: unset;
    background: #f8f9fa; border: 2px dashed #ccc;
    border-radius: 10px; padding: 0;
    cursor: pointer; font-size: 1.4em; color: #bbb;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, color .2s;
}
.favorit-neu:hover { border-color: #3498db; color: #3498db; }


/* ── 6. Kategorienverwaltung ─────────────────────────────────────────────── */

.kategorie-liste { list-style: none; padding: 0; margin: 0 0 15px 0; }
.kategorie-zeile { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.kategorie-zeile:last-child { border-bottom: none; }
.farb-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.kategorie-name-text { flex: 1; font-weight: bold; font-size: 0.95em; }
.kategorie-anzahl { font-size: 0.8em; color: #95a5a6; white-space: nowrap; }
.kategorie-edit-input { flex: 1; padding: 6px 10px; font-size: 0.95em; margin: 0; border: 2px solid #3498db; border-radius: 6px; }
.kategorie-merge-label { font-size: .85em; color: #e67e22; flex: 1; }
.kategorie-merge-select { font-size: .8em; margin: 0; padding: 4px; flex: 1; }

.neu-anlegen-zeile { display: flex; gap: 8px; margin-top: 5px; }
.neu-anlegen-zeile input { margin: 0; flex: 1; }
.neu-anlegen-zeile button { width: auto; white-space: nowrap; padding: 12px 16px; margin: 0; }


/* ── 7. Betrag-Rechner ───────────────────────────────────────────────────── */

.rechner-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 2000; align-items: flex-end; justify-content: center;
}
.rechner-overlay.aktiv { display: flex; }
.rechner-panel {
    background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px 24px;
    width: 100%; max-width: 400px; box-shadow: 0 -4px 24px rgba(0,0,0,.15);
}
.rechner-display {
    background: #f5f6fa; border-radius: 12px; padding: 10px 14px;
    font-size: 1.6em; font-weight: bold; text-align: right;
    margin-bottom: 12px; min-height: 48px; word-break: break-all;
    color: #222; border: 1.5px solid #e0e0e0;
}
.rechner-display .rechner-op { font-size: .65em; color: #999; margin-left: 6px; }
.rechner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rechner-btn {
    padding: 14px 0; font-size: 1.1em; font-weight: 600;
    border: none; border-radius: 12px; cursor: pointer;
    background: #f0f1f5; color: #222; transition: background .1s;
    margin: 0;
}
.rechner-btn:active { background: #d0d3de; }
.rechner-btn.op { background: #eaf1fd; color: #2980b9; }
.rechner-btn.op:active { background: #c5d9f5; }
.rechner-btn.gleich { background: #3498db; color: #fff; }
.rechner-btn.gleich:active { background: #217dbb; }
.rechner-btn.uebernehmen { background: #2ecc71; color: #fff; }
.rechner-btn.uebernehmen:active { background: #27ae60; }
.rechner-btn.abbrechen { background: #e74c3c; color: #fff; }
.rechner-btn.abbrechen:active { background: #c0392b; }
.rechner-btn.doppelt { grid-column: span 2; }


/* ── 8. Kopfzeile, Monatsnavigation, Tabs ────────────────────────────────── */

/* iOS Safe Area: Notch, Dynamic Island, Home-Indikator */
.app-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1);
    max-width: 100%; padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
    max-width: 450px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 16px;
}
.header-links { display: flex; align-items: center; gap: 6px; }
.header-rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; position: relative; }
.header-title { font-size: 1em; font-weight: bold; color: #333; }

.btn-reload {
    background: none; border: 1px solid #e0e0e0; border-radius: 10px;
    color: #7f8c8d; font-size: .75em; padding: 2px 7px; width: auto; margin: 0;
    cursor: pointer; line-height: 1.6;
    display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.lade-status { font-size: .75em; color: #bdc3c7; white-space: nowrap; }
.user-anzeige { font-size: .78em; color: #7f8c8d; font-weight: bold; cursor: pointer; }
.abmelden-dropdown {
    display: none; position: absolute; right: 0; top: 110%;
    background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.15);
    padding: 4px 0; z-index: 200; min-width: 110px;
}
.abmelden-dropdown button { width: 100%; text-align: left; padding: 8px 14px; color: #e74c3c; }

.monat-nav {
    background: #3498db; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 450px; margin: 0 auto;
    padding: 8px 12px; box-sizing: border-box; width: 100%;
}
.monat-nav.gedimmt { opacity: .4; }
.monat-nav-btn {
    background: rgba(255,255,255,.2); border: none; color: #fff;
    width: 38px; height: 38px; border-radius: 50%; font-size: 1.2em;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 0; margin: 0; transition: background .15s;
}
.monat-nav-btn:hover { background: rgba(255,255,255,.35); }
.monat-nav-heute { width: auto; padding: 0 10px; font-size: .7em; border-radius: 12px; margin-right: 4px; }
.monat-nav-mitte { flex: 1; text-align: center; cursor: pointer; user-select: none; }
.monat-nav-mitte .nav-label { font-size: 1.05em; font-weight: bold; display: block; }
.monat-nav-mitte .nav-sub { font-size: .75em; opacity: .8; display: block; margin-top: 1px; }

.monat-picker-overlay {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.4); align-items: flex-start; justify-content: center;
    padding-top: 60px;
}
.monat-picker-overlay.aktiv { display: flex; }
.monat-picker-box {
    background: #fff; border-radius: 14px; padding: 20px;
    max-width: 340px; width: 90%; box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.monat-picker-box h4 { margin: 0 0 12px; text-align: center; font-size: 1em; color: #555; }
.monat-picker-jahre { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.monat-picker-jahre button {
    width: auto; padding: 6px 14px; margin: 0; font-size: .85em;
    background: #f1f2f6; color: #333; border-radius: 20px; border: 2px solid transparent;
}
.monat-picker-jahre button.aktiv-jahr { border-color: #3498db; background: #ebf5fb; color: #3498db; }
.monat-picker-monate { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.monat-picker-monate button {
    width: 100%; padding: 9px 4px; margin: 0; font-size: .8em;
    background: #f8f9fa; color: #333; border-radius: 8px; border: 2px solid transparent;
}
.monat-picker-monate button.aktiv-monat { border-color: #3498db; background: #ebf5fb; color: #3498db; font-weight: bold; }
.monat-picker-modus { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.monat-picker-modus button {
    width: auto; padding: 6px 16px; margin: 0; font-size: .85em;
    background: #f1f2f6; color: #333; border-radius: 20px; border: 2px solid transparent;
}
.monat-picker-modus button.aktiv { border-color: #3498db; background: #ebf5fb; color: #3498db; }
.picker-schliessen { margin-top: 12px; background: #95a5a6; }

.tab-seite { display: none; }
.tab-seite.aktiv { display: block; }
.tab-seite-inner { max-width: 450px; margin: 0 auto; padding: 12px 12px 0; }

#appSection { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

.tab-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: #fff; border-top: 1px solid #e0e0e0;
    display: flex; justify-content: space-around; align-items: stretch;
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
}
.tab-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; padding: 6px 0 4px;
    color: #aaa; transition: color .15s, background .15s;
    border: none; background: none; font-family: inherit; margin: 0;
}
.tab-item.aktiv { color: #fff; background: #3498db; }
.tab-item .tab-icon { font-size: 1.3em; line-height: 1; }
.tab-item .tab-icon svg {
    width: 22px; height: 22px; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block;
}
.tab-item .tab-label { font-size: .58em; font-weight: bold; margin-top: 3px; }

/* Karten */
.card, .liste-card, .stats-card {
    background: white; padding: 16px; border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.07); margin-bottom: 12px;
}
.login-card {
    background: white; padding: 20px; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1); max-width: 450px; margin: 0 auto 20px auto;
}
.login-card-aussen { margin-top: 80px; margin-left: 16px; margin-right: 16px; }

/* Ausklappbare Karten im Mehr-Tab */
.karte-kopf {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none; margin: -2px 0 0;
}
.karte-kopf h2 { margin: 0; font-size: 1em; }
.karte-chevron { font-size: .7em; color: #aaa; transition: transform .2s; }
.karte-chevron.offen { transform: rotate(180deg); }
.karte-inhalt { overflow: hidden; padding-top: 10px; }
.karte-inhalt.geschlossen { display: none; }
.karte-hinweis { font-size: .85em; color: #777; margin: 0 0 12px; }

.einstellung-zeile { display: flex; align-items: center; gap: 8px; }
.einstellung-zeile span { font-size: .9em; color: #555; flex: 1; }

/* Statistik im Mehr-Tab */
.statistik-bereich { font-size: .9em; color: #555; line-height: 2; }
.statistik-zeile { display: flex; justify-content: space-between; }
.statistik-zeile.abschnitt { border-top: 1px solid #eee; padding-top: 6px; margin-top: 4px; }

/* FAB */
.fab {
    position: fixed; right: 16px; z-index: 190;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: 56px; height: 56px; border-radius: 50%;
    background: #3498db; color: #fff; font-size: 1.6em; font-weight: bold;
    border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(52,152,219,.45);
    display: flex; align-items: center; justify-content: center;
    padding: 0; margin: 0; transition: transform .1s, box-shadow .1s;
}
.fab:active { transform: scale(.93); box-shadow: 0 2px 8px rgba(52,152,219,.3); }
.fab:hover { background: #2980b9; }


/* ── 9. Serien und Fixkosten ─────────────────────────────────────────────── */

.serien-daten-liste {
    display: none; overflow: hidden;
    background: #f8f9fa; border-radius: 0 0 8px 8px;
    padding: 0 14px; margin-top: -2px;
}
.serien-daten-liste.offen { display: block; }
.serien-datum-zeile {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 1px solid #eee; font-size: .8em; cursor: pointer;
}
.serien-datum-zeile:last-child { border-bottom: none; }
.serien-datum-zeile .sd-datum { color: #555; }
.serien-datum-zeile .sd-betrag { color: #222; font-weight: bold; }
.serien-datum-zeile.sd-zukunft { opacity: .45; }

/* Bewusst gelöschter Termin: er lief einmal in der Planung, ist aber
   entfernt worden. Durchgestrichen statt weggelassen — eine Lücke im
   Datumsraster sähe sonst wie ein Fehler aus. */
.serien-datum-zeile.sd-ausgelassen { cursor: default; }
.serien-datum-zeile.sd-ausgelassen .sd-datum {
    text-decoration: line-through; text-decoration-color: #d8d8d8; color: #aaa;
}
.serien-datum-zeile.sd-ausgelassen .sd-betrag {
    color: #bbb; font-weight: normal; font-size: .95em; font-style: italic;
}

.serien-wrapper { border-bottom: 1px solid #f0f0f0; }
.serien-chevron { font-size: .7em; color: #aaa; margin-left: 4px; transition: transform .2s; }
.serien-chevron.offen { transform: rotate(180deg); }
.serien-eintrag { display: flex; align-items: center; padding: 9px 0; gap: 8px; cursor: pointer; border-bottom: none; }
.serien-eintrag:active { background: #f8f9fa; }
.serien-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.serien-info { flex: 1; min-width: 0; }
.serien-name { font-size: .88em; font-weight: bold; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serien-meta { font-size: .75em; color: #aaa; margin-top: 1px; }
.serien-betrag { font-size: .88em; font-weight: bold; color: #222; text-align: right; flex-shrink: 0; }
.serien-status { font-size: .7em; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }
.serien-status.aktiv { background: #d5f5e3; color: #27ae60; }
.serien-status.abgelaufen { background: #fdebd0; color: #e67e22; }
.serien-suche-zeile { position: relative; margin-bottom: 10px; }
.serien-suche-zeile input { width: 100%; box-sizing: border-box; padding-right: 30px; }
.serien-suche-loeschen {
    display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #aaa; cursor: pointer;
    padding: 0; width: 20px; font-size: 1em; margin: 0;
}

.fixkosten-gesamt {
    background: #3498db; color: #fff; border-radius: 10px;
    padding: 12px 16px; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.fixkosten-gesamt .fg-label { font-size: .85em; opacity: .85; }
.fixkosten-gesamt .fg-betrag { font-size: 1.2em; font-weight: bold; }
.fixkosten-gesamt .fg-sub { font-size: .78em; opacity: .75; }
.fixkosten-gesamt-rechts { text-align: right; }

.fixkosten-kat { margin-bottom: 10px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden; }
.fixkosten-kat-kopf { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f8f9fa; cursor: pointer; }
.fixkosten-kat-name { font-weight: bold; font-size: .9em; color: #333; display: flex; align-items: center; gap: 6px; }
.fixkosten-kat-punkt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.fixkosten-kat-summe { font-size: .85em; color: #555; text-align: right; }
.fixkosten-kat-summe .fk-monat { font-weight: bold; color: #222; display: block; }
.fixkosten-kat-summe .fk-jahr { font-size: .78em; color: #999; display: block; }
.fixkosten-eintrag { display: flex; align-items: center; padding: 9px 14px; border-top: 1px solid #f0f0f0; cursor: pointer; gap: 8px; }
.fixkosten-eintrag:hover { background: #f8f9fa; }
.fk-name { flex: 1; font-size: .88em; color: #333; }
.fk-name .fk-kommentar { font-size: .78em; color: #aaa; display: block; }
.fk-intervall { font-size: .72em; color: #aaa; white-space: nowrap; background: #f1f2f6; padding: 2px 6px; border-radius: 10px; }
.fk-betraege { text-align: right; flex-shrink: 0; }
.fk-betraege .fk-faellig { font-weight: bold; font-size: .88em; color: #222; display: block; }
.fk-betraege .fk-faellig.inaktiv { color: #bbb; }
.fk-betraege .fk-avg { font-size: .72em; color: #aaa; display: block; }
.fk-faellig-badge { font-size: .7em; background: #e74c3c; color: #fff; border-radius: 8px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
/* Legende über dem Fixkosten-Diagramm: trennt angefallene von
   geplanten Monaten, damit die Vorschau nicht als Ist-Wert gelesen wird */
.fk-legende { font-size: .7em; color: #999; white-space: nowrap; }
.fk-legende-punkt {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin: 0 3px 0 8px; vertical-align: middle;
}

.fixkosten-leer { text-align: center; color: #aaa; font-size: .9em; padding: 30px 16px; }
.fixkosten-leer small { color: #bbb; }


/* ── 10. Toasts, Offline-Hinweise ────────────────────────────────────────── */

.offline-banner {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 998;
    background: #e67e22; color: #fff; text-align: center;
    font-size: .8em; font-weight: bold; padding: 4px 8px;
    padding-top: calc(4px + env(safe-area-inset-top, 0px));
}
.offline-banner.sichtbar { display: block; }

.update-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: #2ecc71; color: #fff; text-align: center;
    font-size: .85em; font-weight: bold; padding: 8px 16px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px)); cursor: pointer;
}

.ausstehend-badge {
    display: none; position: absolute; top: -4px; right: -4px;
    background: #e67e22; color: #fff; border-radius: 50%;
    width: 18px; height: 18px; font-size: .65em; font-weight: bold;
    align-items: center; justify-content: center;
}
.ausstehend-badge.sichtbar { display: flex; }

.offline-karte { border-left: 4px solid #e67e22; }
.offline-karte-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.offline-karte-kopf h2 { margin: 0; font-size: 1em; }
.offline-anzahl-badge { background: #e67e22; color: #fff; border-radius: 12px; padding: 2px 8px; font-size: .75em; font-weight: bold; }
.offline-eintrag { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.offline-eintrag-titel { font-weight: bold; color: #333; }
.offline-eintrag-meta { color: #aaa; font-size: .8em; }
.offline-eintrag-betrag { font-weight: bold; color: #e67e22; }

/* Serien-Verlängerungs-Toast */
#serienToast {
    position: fixed; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 12px; z-index: 400;
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    padding: 0; min-width: 260px; max-width: 320px;
    font-size: .85em; overflow: hidden;
    transform: translateY(20px); opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
#serienToast.sichtbar { opacity: 1; transform: translateY(0); pointer-events: auto; }
#serienToast-kopf {
    display: flex; justify-content: space-between; align-items: center;
    background: #e67e22; color: #fff; padding: 8px 12px; font-weight: bold; font-size: .9em;
}
#serienToast-schliessen {
    cursor: pointer; font-size: 1.1em; line-height: 1;
    background: none; border: none; color: #fff; padding: 0 0 0 8px; width: auto; margin: 0;
}
#serienToast-liste { padding: 8px 0; max-height: 260px; overflow-y: auto; }

.serienToast-zeile {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 5px 12px; gap: 8px; border-bottom: 1px solid #f0f0f0;
}
.serienToast-zeile:last-child { border-bottom: none; }
.serienToast-zeile-links { flex: 1; min-width: 0; }
.serienToast-zeile-kat { font-weight: bold; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serienToast-zeile-datum { font-size: .8em; color: #999; }
.serienToast-zeile-betrag { white-space: nowrap; color: #e74c3c; font-weight: bold; flex-shrink: 0; }

/* Fehler-Toast bei fehlgeschlagener Serienverlängerung */
#serienFehlerToast {
    position: fixed; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); left: 12px; z-index: 401;
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    min-width: 240px; max-width: 300px;
    font-size: .85em; overflow: hidden;
    transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
}
#serienFehlerToast.sichtbar { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fehlerToast-kopf {
    display: flex; justify-content: space-between; align-items: center;
    background: #e74c3c; color: #fff; padding: 8px 12px; font-weight: bold; font-size: .9em;
}
.fehlerToast-kopf button { background: none; border: none; color: #fff; font-size: 1.1em; cursor: pointer; padding: 0 0 0 8px; width: auto; margin: 0; }
.fehlerToast-body { padding: 10px 12px 6px; color: #555; }
.fehlerToast-body div { padding: 3px 0; }
.fehlerToast-fuss { padding: 6px 12px 10px; }
.fehlerToast-fuss button { width: 100%; padding: 7px; background: #e74c3c; color: #fff; border: none; border-radius: 7px; font-size: .85em; font-weight: bold; cursor: pointer; margin: 0; }

/* Kurzer Hinweis unten links (Realtime, Sync, Bereinigung) */
#realtimeHinweis {
    position: fixed; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); left: 12px; z-index: 300;
    background: rgba(46,204,113,.92); color: #fff;
    border-radius: 20px; padding: 5px 12px;
    font-size: .75em; font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    pointer-events: none; opacity: 0; transition: opacity .3s;
}
#realtimeHinweis.sichtbar { opacity: 1; }

/* Bereinigungsdialog */
.bereinigung-box { max-width: 340px; }
.bereinigung-box h3 { margin: 0 0 8px; font-size: .95em; color: #e74c3c; }
.bereinigung-box p { font-size: .85em; color: #555; margin: 0 0 10px; }
.bereinigung-liste { max-height: 220px; overflow-y: auto; border: 1px solid #eee; border-radius: 8px; margin-bottom: 14px; }


/* ── 11. Wiederholungs-Menü und kompakte Formularaktionen ────────────────── */

/* Zusammenfassungszeile im Formular; öffnet das Wiederholungs-Menü.
   Statt Dropdown plus ausklappbarer Box steht hier nur eine Zeile —
   "monatlich · 12 Termine · bis 01.09.2027". */
.btn-wiederholung {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; margin: 8px 0; padding: 11px 12px;
    background: #f8f9fa; color: #555; font-weight: normal;
    text-align: left; font-size: .9em;
    border: 1px solid #ccc; border-radius: 6px;
}
.btn-wiederholung:hover { background: #f1f2f6; }
.btn-wiederholung.aktiv {
    background: #ebf5fb; border-color: #aed6f1; color: #2980b9; font-weight: bold;
}
.btn-wiederholung #wiederholungAnzeige {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-wiederholung .bw-chevron { flex-shrink: 0; color: #bbb; font-size: 1.2em; line-height: 1; }

/* Das Menü selbst — von unten einfahrendes Panel wie der Rechner */
.wiederholung-overlay {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.45);
    align-items: flex-end; justify-content: center;
}
.wiederholung-overlay.aktiv { display: flex; }
.wiederholung-panel {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 420px; box-sizing: border-box;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
    max-height: 88vh; overflow-y: auto;
}
.wiederholung-panel h3 { margin: 0 0 12px; font-size: 1em; color: #333; text-align: center; }
.wiederholung-aktionen { display: flex; gap: 8px; margin-top: 14px; }
.wiederholung-aktionen button { flex: 1; margin: 0; }

/* Dauer: Anzahl / Enddatum / Kein Ende */
.serien-modus { display: flex; gap: 6px; margin-bottom: 10px; }
.serien-modus button {
    flex: 1; width: auto; margin: 0; padding: 8px 4px; font-size: .8em;
    background: #f1f2f6; color: #555;
    border: 2px solid transparent; border-radius: 8px;
}
.serien-modus button:hover { background: #e4e6ec; color: #333; }
.serien-modus button.aktiv,
.serien-modus button.aktiv:hover {
    background: #ebf5fb; border-color: #3498db; color: #2980b9;
}

.serien-feld-zeile { display: flex; align-items: center; gap: 8px; }
.serien-feld-zeile input { flex: 1; min-width: 0; margin: 0; text-align: right; }
.serien-feld-einheit { font-size: .85em; color: #777; flex-shrink: 0; }

/* Berechnete Termine zum Aufklappen */
.serien-termine-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; margin: 10px 0 0; padding: 8px 10px; font-size: .82em;
    background: #fff; color: #3498db; font-weight: bold;
    border: 1px dashed #aed6f1; border-radius: 8px;
}
.serien-termine-toggle:hover { background: #ebf5fb; }
.serien-termine-toggle .st-chevron { font-size: .8em; transition: transform .2s; }
.serien-termine-toggle .st-chevron.offen { transform: rotate(180deg); }

.serien-termine-liste {
    display: none; margin-top: 6px; max-height: 210px; overflow-y: auto;
    background: #fff; border: 1px solid #eee; border-radius: 8px;
}
.serien-termine-liste.offen { display: block; }
.serien-termin-zeile {
    display: flex; align-items: baseline; gap: 8px;
    padding: 6px 10px; border-bottom: 1px solid #f4f4f4; font-size: .82em;
}
.serien-termin-zeile:last-child { border-bottom: none; }
.serien-termin-zeile.st-zukunft { opacity: .55; }
.serien-termin-zeile .st-nr { flex: 0 0 26px; text-align: right; color: #bbb; }
.serien-termin-zeile .st-datum { flex: 1; color: #333; }
.serien-termin-zeile .st-betrag { color: #222; font-weight: bold; white-space: nowrap; }

/* Gelöschter Termin in der Vorschau — gleiche Sprache wie in der
   Serienübersicht, damit der Zustand überall gleich aussieht */
.serien-termin-zeile.st-ausgelassen .st-nr { color: #ddd; }
.serien-termin-zeile.st-ausgelassen .st-datum {
    text-decoration: line-through; text-decoration-color: #d8d8d8; color: #aaa;
}
.serien-termin-zeile.st-ausgelassen .st-betrag {
    color: #bbb; font-weight: normal; font-style: italic;
}

.serien-termin-summe {
    display: flex; justify-content: space-between;
    padding: 7px 10px; font-size: .82em; font-weight: bold;
    background: #f8f9fa; color: #222; border-top: 1px solid #eee;
    position: sticky; bottom: 0;
}

/* Aktionen des Ausgabenformulars in einer Zeile statt übereinander */
.formular-aktionen { display: flex; gap: 8px; margin-top: 14px; }
.formular-aktionen button { margin: 0; }
.formular-aktionen .btn-abbrechen { flex: 0 0 auto; width: auto; padding: 12px 16px; }
.formular-aktionen #btnSpeichern { flex: 1; }
.formular-aktionen .popup-aktions-gruppe {
    flex: 1; gap: 8px; margin-top: 0; padding-top: 0; border-top: none;
}


/* ── 12. Beträge brechen nie um ──────────────────────────────────────────── */

/* Seit die Beträge deutsch formatiert sind ("1.234,56 €" statt "1234.56 €"),
   sind sie zwei Zeichen breiter — und auf schmalen Displays rutschte das
   €-Zeichen allein in die nächste Zeile. Ein Betrag ist eine Einheit und
   wird als Ganzes umbrochen oder gar nicht; Platz macht immer der Text
   daneben, der dafür Auslassungspunkte bekommt. */
.stats-zeile-betrag,
.verlauf-gruppe-kopf-betrag,
.serien-betrag,
.serien-datum-zeile .sd-betrag,
.serien-termin-zeile .st-betrag,
.serien-termin-summe span,
.fixkosten-gesamt .fg-betrag,
.fixkosten-gesamt .fg-sub,
.fixkosten-kat-summe .fk-monat,
.fixkosten-kat-summe .fk-jahr,
.fk-betraege .fk-faellig,
.fk-betraege .fk-avg,
.offline-eintrag-betrag,
.aufteilen-rest {
    white-space: nowrap;
}

/* Die Gegenstücke, die dafür schrumpfen dürfen */
.stats-zeile-betrag { flex-shrink: 0; }
.stats-kategorie-links { min-width: 0; }
.stats-kategorie { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-name { min-width: 0; overflow: hidden; }
.serien-info { overflow: hidden; }
