/* ============================================================
   Glatzenkogel — der Look des Siefertmedia-Dashboards (Farbwelt „Weltall")
   ------------------------------------------------------------
   Vier Entscheidungen, aus dem Dashboard übernommen:
   1. Keine Platte: der Inhalt liegt direkt auf dem Grund.
   2. Haarlinien statt Kästen, Flächen nur eine Spur angehoben.
   3. Licht von oben links (Schimmer) statt Schatten.
   4. Eine Schrift (Archivo), Orange als einziger Farbakzent. Kein Grün.
   ============================================================ */
@font-face {
  font-family: 'Archivo';
  src: url(fonts/archivo-100-900.woff2) format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

:root {
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 28px; --fs-3xl: 40px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px; --r-sm: 14px;

  --surface: #ffffff; --surface-2: #f6f6f4; --bg-tint: #efefec;
  --text: #0e1520; --text-dim: #4b5768; --text-faint: #5c6878;
  --accent: #b8450a; --accent-2: #e06a1e;
  --accent-fill: #ff5a13; --accent-ink: #210900;
  --accent-soft: rgba(255, 90, 19, .08); --accent-line: rgba(255, 90, 19, .2);
  --solid: #0e1520; --solid-text: #f5f8fc;
  --page: #f3f3f1;
  --danger: #c2374f; --warn: #8a5e14;
  --border: rgba(14, 21, 32, .10); --border-soft: rgba(14, 21, 32, .06);
  --line-sm: rgba(14, 21, 32, .08); --line-stark: rgba(14, 21, 32, .16);
  --schimmer: radial-gradient(60% 120% at 20% 0%, rgba(255, 255, 255, .9), transparent 60%);
  --karte: var(--schimmer), rgba(255, 255, 255, .72);
  --abdunkeln: rgba(14, 21, 32, .22);
  --shadow: 0 4px 18px rgba(14, 21, 32, .06);
  --knopf-bg: rgba(255, 255, 255, .6);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --surface: #0f1217; --surface-2: #14171c; --bg-tint: #171c22;
  --text: #eef1f5; --text-dim: #a7b1c0; --text-faint: #8a94a3;
  --accent: #ff7a40; --accent-2: #ffa070;
  --accent-fill: #ff5a13; --accent-ink: #1b0802;
  --accent-soft: rgba(255, 90, 19, .10); --accent-line: rgba(255, 90, 19, .22);
  --solid: #eef1f5; --solid-text: #0b111a;
  --page: #080d14;
  --danger: #ff8aa0; --warn: #e7b35e;
  --border: rgba(255, 255, 255, .10); --border-soft: rgba(255, 255, 255, .06);
  --line-sm: rgba(255, 255, 255, .08); --line-stark: rgba(255, 255, 255, .14);
  --schimmer: radial-gradient(60% 120% at 20% 0%, rgba(255, 255, 255, .10), transparent 60%);
  --karte: var(--schimmer), rgba(255, 255, 255, .025);
  --abdunkeln: rgba(0, 0, 0, .38);
  --shadow: none;
  --knopf-bg: rgba(255, 255, 255, .02);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.45;
  color: var(--text); background: var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
/* Der langsam wandernde Farbhauch des Dashboards — zu blass, um Text zu berühren. */
body::before {
  content: ''; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 22% 24%, rgba(255, 90, 19, .055), transparent 70%),
    radial-gradient(36% 40% at 78% 72%, rgba(14, 21, 32, .035), transparent 70%),
    radial-gradient(30% 30% at 62% 18%, rgba(255, 140, 90, .03), transparent 70%);
  animation: hauch 90s ease-in-out infinite alternate;
}
:root[data-theme='dark'] body::before {
  background:
    radial-gradient(42% 38% at 22% 24%, rgba(255, 90, 19, .07), transparent 70%),
    radial-gradient(36% 40% at 78% 72%, rgba(120, 140, 200, .05), transparent 70%);
}
@keyframes hauch { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2.5%, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.display { font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer; border: 1px solid var(--line-sm); background: var(--knopf-bg);
  color: var(--text); border-radius: 999px; padding: 9px 16px; font-size: var(--fs-sm); font-weight: 600;
  transition: transform .16s cubic-bezier(.2, .7, .3, 1), box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
@media (hover: hover) { button:not(:disabled):hover { transform: translateY(-1px); border-color: var(--line-stark); } }
button:not(:disabled):active { transform: translateY(0) scale(.97); transition-duration: .06s; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
button.breit { width: 100%; padding: 12px 18px; font-size: var(--fs-md); }
button.gefahr { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.link-btn { border: 0; background: none; padding: 4px 6px; color: var(--text-dim); font-weight: 500; }
.link-btn:hover { color: var(--accent); transform: none !important; }
.icon-btn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; font-size: 18px; line-height: 1; }
input[type=text], input[type=password], input[type=date], input[type=number], textarea, select {
  width: 100%; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus-visible, textarea:focus-visible { border-color: var(--accent-fill); box-shadow: 0 0 0 3px var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:focus-visible, input:focus-visible { outline: none; }
button:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent-fill); }
.err-line { color: var(--danger); font-size: var(--fs-sm); }

/* ---------- Logo-Marke ---------- */
.logo-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--solid); position: relative; flex: none;
}
.logo-mark::before { content: ''; width: 14px; height: 14px; border: 2.5px solid var(--accent-fill); border-radius: 50%; }
.logo-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); }

/* ---------- Anmeldung ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-karte {
  width: min(380px, 100%); padding: 32px 28px; border-radius: var(--r);
  background: var(--karte); border: 1px solid var(--line-sm);
  display: flex; flex-direction: column; gap: 12px; animation: rein .3s ease-out;
}
.login-karte h1 { font-size: var(--fs-2xl); margin-top: 8px; }
.login-karte .dim { margin-bottom: 10px; }
.login-feld { display: grid; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-faint); }
.login-feld input { font-size: var(--fs-lg); }

/* ---------- Gerüst ---------- */
.shell { max-width: 1200px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom)); min-height: 100dvh; }
@media (min-width: 900px) {
  .shell { max-width: none; display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 32px; padding: 24px 32px 80px; align-items: start; }
  .shell > * { grid-column: 2; min-width: 0; }
  .shell > .side-rail { grid-column: 1; grid-row: 1 / span 20; position: fixed; top: 24px; left: 24px; }
  .shell > .mobil-kopf, .shell > .tabs { display: none; }
  .inhalt { max-width: 980px; }
}

/* Seitenleiste: schwarz, fest, Licht hinter dem aktiven Eintrag */
.side-rail {
  display: none; flex-direction: column; gap: 18px;
  width: 240px; height: calc(100dvh - 48px); padding: 18px 12px; border-radius: 24px;
  background: var(--solid); color: color-mix(in srgb, var(--solid-text) 62%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2); z-index: 20;
}
@media (min-width: 900px) { .side-rail { display: flex; } }
.side-marke { display: flex; align-items: center; gap: 10px; padding: 4px 10px 0; }
.side-marke .logo-mark { background: color-mix(in srgb, var(--solid-text) 10%, transparent); }
.side-name { display: flex; flex-direction: column; line-height: 1.15; }
.side-name b { font-size: var(--fs-sm); font-weight: 600; color: var(--solid-text); }
.side-name small { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--solid-text) 50%, transparent); }
.side-nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.side-gruppe { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 12px 12px 4px; color: color-mix(in srgb, var(--solid-text) 40%, transparent); }
.side-eintrag {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: inherit; text-align: left; font-weight: 500; font-size: var(--fs-md); position: relative; z-index: 1; width: 100%;
}
.side-eintrag:hover { color: var(--solid-text); transform: none !important; }
.side-eintrag.an { color: var(--solid-text); }
.side-eintrag svg { width: 18px; height: 18px; flex: none; }
.side-eintrag .zahl { margin-left: auto; font-size: var(--fs-xs); color: var(--accent-fill); font-weight: 600; }
.side-licht { position: absolute; left: 0; right: 0; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--solid-text) 9%, transparent); transition: transform .32s cubic-bezier(.3, .8, .3, 1), opacity .2s; pointer-events: none; }
.side-licht::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent-fill); }
.side-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.side-fuss .side-eintrag { font-size: var(--fs-sm); padding: 8px 12px; }

/* Handy: Kopf oben, Reiter unten */
.mobil-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mobil-kopf .side-name b { font-size: var(--fs-lg); }
.mobil-kopf .icon-btn { margin-left: auto; }
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 22px;
  background: var(--solid); color: color-mix(in srgb, var(--solid-text) 62%, transparent); box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; border-radius: 16px; padding: 8px 4px; background: none; color: inherit; font-size: 10px; font-weight: 600; }
.tabs button svg { width: 20px; height: 20px; }
.tabs button.an { color: var(--solid-text); background: color-mix(in srgb, var(--solid-text) 10%, transparent); }
.tabs button:hover { transform: none !important; }

/* ---------- Seitenkopf & Karten ---------- */
.kopf { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kopf h1 { font-size: var(--fs-2xl); }
.kopf .dim { font-size: var(--fs-sm); }
.kopf .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card {
  background: var(--karte); border: 1px solid var(--line-sm); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--shadow); position: relative; min-width: 0;
  transition: border-color .2s;
}
.card:hover { border-color: var(--line-stark); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: var(--fs-xl); flex: 1; }
.card-head .icon { color: var(--accent-fill); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.card-head .icon svg { width: 18px; height: 18px; }
.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.raster-2 { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 760px) { .raster-2 { grid-template-columns: 1fr; } }

/* Die große Zahl: der optische Anker */
.stand-karte { padding: 28px 28px 24px; }
.stand-zahl { font-size: clamp(40px, 7vw, 64px); font-weight: 300; letter-spacing: -.03em; line-height: 1; margin: 10px 0 6px; font-stretch: 100%; }
.stand-zahl small { font-size: .4em; font-weight: 500; color: var(--text-dim); margin-left: 6px; letter-spacing: 0; }
.stand-zahl.negativ { color: var(--danger); }
.stand-rechnung { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-sm); width: fit-content; }
.stand-rechnung b { display: block; font-size: var(--fs-lg); font-weight: 600; }
.stand-rechnung span { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.stand-hinweis { margin-top: 12px; font-size: var(--fs-xs); color: var(--text-faint); }
.kennzahlen { display: grid; gap: 10px; }
.kz { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-sm); }
.kz:last-child { border-bottom: 0; }
.kz span { color: var(--text-dim); font-size: var(--fs-sm); }
.kz b { margin-left: auto; font-weight: 600; font-size: var(--fs-lg); white-space: nowrap; }
.kz b.plus { color: var(--accent); }
.kz small { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------- Buchungsliste ---------- */
.liste { display: flex; flex-direction: column; }
.zeile {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line-sm); border-radius: 12px; background: none; text-align: left; width: 100%; color: var(--text); font-weight: 400;
  animation: rein .25s ease-out both;
}
.zeile:last-child { border-bottom: 0; }
.zeile:hover { background: var(--bg-tint); transform: none !important; border-color: var(--line-sm); }
.zeile-sym { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-tint); color: var(--text-dim); border: 1px solid var(--line-sm); }
.zeile-sym svg { width: 18px; height: 18px; }
.zeile.ein .zeile-sym { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.zeile-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.zeile-text b { font-weight: 600; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-text span { font-size: var(--fs-xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-betrag { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.zeile-betrag b { font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; }
.zeile.ein .zeile-betrag b { color: var(--accent); }
.zeile-betrag small { font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }
.monat-kopf { display: flex; align-items: baseline; gap: 10px; padding: 18px 6px 6px; }
.monat-kopf:first-child { padding-top: 4px; }
.monat-kopf h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--text-dim); }
.monat-kopf b { margin-left: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--text-faint); }
.leer { padding: 36px 20px; text-align: center; color: var(--text-faint); font-size: var(--fs-sm); display: grid; gap: 8px; justify-items: center; }
.leer b { color: var(--text); font-size: var(--fs-lg); font-weight: 600; }
.summen { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.summe { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--karte); border: 1px solid var(--line-sm); min-width: 150px; }
.summe span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.summe b { font-size: var(--fs-xl); font-weight: 600; }

/* ---------- Plus-Knopf (Orbies Nachfolger) ---------- */
.plus-knopf {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent-fill); color: var(--accent-ink);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent-fill) 40%, transparent), 0 2px 6px rgba(0, 0, 0, .18);
  display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.plus-knopf:hover { background: var(--accent-fill); transform: translateY(-2px); border: 0; }
.plus-knopf:active { transform: scale(.92); transition: transform .1s ease-in; }
.plus-knopf.freut { animation: freut .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes freut { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-8deg); } 60% { transform: scale(.96) rotate(4deg); } 100% { transform: scale(1); } }
.plus-zeichen { position: relative; width: 22px; height: 22px; display: block; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.plus-zeichen i { position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.plus-zeichen i:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.plus-knopf.offen .plus-zeichen { transform: rotate(45deg); }
@media (max-width: 899px) { .plus-knopf { bottom: calc(86px + env(safe-area-inset-bottom)); right: 16px; } }

/* ---------- Anlegen in Schritten (der Ablauf aus dem Friedmann-Cockpit) ---------- */
.fl-schleier { position: fixed; inset: 0; z-index: 54; background: var(--abdunkeln); animation: schleier-ein .18s ease-out; }
@keyframes schleier-ein { from { opacity: 0; } }
.ab-schwebe { position: fixed; right: 26px; bottom: 100px; z-index: 56; width: min(440px, calc(100vw - 32px)); }
@media (max-width: 899px) { .ab-schwebe { left: 12px; right: 12px; width: auto; bottom: calc(160px + env(safe-area-inset-bottom)); } .ab-tipp { display: none; } }
.ab {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--accent-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3), 0 0 0 3px var(--accent-soft); min-width: 0; animation: auf .16s ease-out;
}
:root[data-theme='dark'] .ab { background: #11161d; }
@keyframes auf { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ab-kopfzeile { display: flex; align-items: center; gap: 8px; }
.ab-titel { font-size: 11px; color: var(--text-faint); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ab-punkte { display: flex; gap: 4px; margin-left: auto; }
.ab-punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background .2s, transform .2s; }
.ab-punkte i.ok { background: var(--accent-fill); }
.ab-punkte i.an { background: var(--accent-fill); transform: scale(1.5); }
.ab-marken { display: flex; flex-wrap: wrap; gap: 5px; }
.ab-marke { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--bg-tint); border: 1px solid var(--border-soft); color: var(--text); animation: ab-pop .22s cubic-bezier(.2, .9, .3, 1.3); }
.ab-marke:hover { border-color: var(--accent-line); color: var(--accent); transform: none !important; }
.ab-marke b { font-weight: 600; }
.ab-frage { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: 600; color: var(--text); animation: ab-rein .2s ease-out; }
.ab-unter { font-size: var(--fs-xs); color: var(--text-faint); margin-top: -6px; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 6px; outline: none; }
.ab-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 13px; border-radius: 11px; font-size: var(--fs-sm); font-weight: 500; background: var(--bg-tint); border: 1px solid var(--border-soft); color: var(--text); animation: ab-pop .22s cubic-bezier(.2, .9, .3, 1.3) both; }
.ab-chip small { font-size: 11px; color: var(--text-faint); }
.ab-chip.leise { color: var(--text-dim); background: none; border-style: dashed; }
.ab-chip.fokus { border-color: var(--accent-fill); box-shadow: 0 0 0 2px var(--accent-soft); transform: none; }
.ab-chip.gewaehlt { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.ab-chip.gewaehlt small { color: var(--accent-ink); opacity: .7; }
.ab-chip.gross { flex: 1 1 45%; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 14px 16px; border-radius: 14px; }
.ab-chip.gross b { font-size: var(--fs-md); font-weight: 600; }
.ab-chip.gross small { font-size: var(--fs-xs); }
.ab-chip.gross.gewaehlt small { color: var(--accent-ink); }
.ab-feld { width: 100%; }
.ab-betrag { position: relative; }
.ab-betrag input { font-size: 30px; font-weight: 300; letter-spacing: -.02em; padding: 10px 44px 10px 14px; text-align: right; }
.ab-betrag::after { content: '€'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--text-faint); font-weight: 300; }
.ab-eigen { width: auto !important; font-size: var(--fs-sm) !important; padding: 7px 10px !important; }
.ab-rechnung { font-size: var(--fs-xs); color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; }
.ab-rechnung b { color: var(--text); font-weight: 600; }
.ab-fehler { margin: 0; font-size: var(--fs-xs); color: var(--danger); }
.ab-fuss { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.ab-tipp { font-size: 11px; color: var(--text-faint); margin-right: auto; }
.ab-fuss .link-btn { font-size: var(--fs-xs); }
.ab-los, .ab-weiter { padding: 7px 14px; font-size: var(--fs-sm); white-space: nowrap; flex: none; }
.ab-loeschen { margin-right: auto; }
@keyframes ab-pop { from { opacity: 0; transform: scale(.85) translateY(4px); } }
@keyframes ab-rein { from { opacity: 0; transform: translateX(6px); } }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ab-chip, .ab-marke, .ab-frage, .zeile, .ab, .login-karte { animation: none; } }

/* ---------- Einstellungen ---------- */
.set-feld { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-sm); }
.set-feld:last-child { border-bottom: 0; }
.set-feld > b { font-size: var(--fs-md); }
.set-feld > p { font-size: var(--fs-sm); color: var(--text-dim); max-width: 60ch; }
.set-zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.set-zeile input { max-width: 260px; }
.wahl { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line-sm); }
.wahl button { border: 0; background: none; padding: 7px 14px; }
.wahl button.an { background: var(--solid); color: var(--solid-text); }
.wahl button:hover { transform: none !important; }

/* ---------- Kurzhinweis & Konfetti ---------- */
.kurz-hinweis { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 70; padding: 10px 18px; border-radius: 999px; background: var(--solid); color: var(--solid-text); font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow); animation: kurz-hinweis 2.6s ease forwards; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
@keyframes kurz-hinweis { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 899px) { .kurz-hinweis { bottom: calc(96px + env(safe-area-inset-bottom)); } }
#konfetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100%; height: 100%; }
.zaehlt { transition: color .3s; }

/* Handy-Kopf liegt auf der Seite, nicht auf der schwarzen Leiste — Textfarben der Seite. */
.mobil-kopf .side-name b { color: var(--text); }
.mobil-kopf .side-name small { color: var(--text-faint); }
/* Die drei Nebenzahlen dürfen umbrechen, statt rechts aus der Karte zu laufen. */
.stand-rechnung { display: flex; flex-wrap: wrap; gap: 10px 26px; width: auto; }


/* ---------- Anmeldung mit eigenem Hintergrundbild (static/login-bg.jpg, optional) ---------- */
/* Kein `fixed`: zusammen mit dem Weichzeichner der Karte malt Chrome die Karte sonst gar nicht. */
body.mit-bild .login { background: var(--login-bild) center / cover no-repeat; }
/* Kein backdrop-filter: zusammen mit der halbdurchsichtigen Mischfarbe malte Chrome die Karte gar nicht. */
body.mit-bild .login-karte { background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: rgba(255, 255, 255, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
