/* Seite „Cloud-Backup“ (konto/cloud.html): ergänzt konto.css, nutzt deren Tokens und Klassen.
   Ruhig wie die Speicher-Ansichten in Untitled UI: Nutzung mit Balken, darunter die gesicherten
   Rechnungen, unten drei kurze Punkte. Farbe nur im Balken und in den kleinen Symbolen. */

.c-raster { display: flex; flex-direction: column; gap: 16px; }
.c-raster > .k-karte + .k-karte { margin-top: 0; }
.c-email { min-width: 0; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text-3); }
.c-seitenkopf { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.c-seitenkopf .k-unter { max-width: 60ch; }

/* ---------- Nutzung: Symbol, Zahl, Tarif, Balken, eine Zeile ---------- */
.c-nutzung { gap: 12px; }
.c-nutzung-kopf { display: flex; align-items: center; gap: 14px; }
.c-zeichen, .c-punkt-zeichen {
  display: grid; place-items: center; flex: none; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
}
.c-zeichen { width: 44px; height: 44px; }
.c-zeichen .k-ikon { width: 20px; height: 20px; }
.c-nutzung-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-nutzung-titel { margin: 0; min-height: 26px; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.c-nutzung-gesamt { margin: 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.c-tarif { flex: none; align-self: flex-start; }
.c-tarif[hidden] { display: none; }

.c-balken { display: block; height: 8px; margin: 4px 0 0; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.c-balken-fuellung { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); }
.c-balken.ist-voll .c-balken-fuellung { background: color-mix(in srgb, var(--primary) 70%, var(--surface)); }
.c-nutzung-zeile { margin: 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--text-2); }
/* Upgrade erst ab 80 %: eine ruhige Zeile mit Link, kein Kasten, keine Farbe außer dem Link */
.c-upgrade { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--text-3); }
.c-upgrade[hidden] { display: none; }
.c-upgrade .k-link { margin-left: 4px; white-space: nowrap; }

.skelett-zeile.c-skelett--titel { display: block; --b: min(260px, 80%); height: 18px; margin: 4px 0; }
.skelett-zeile.c-skelett--kurz { display: block; --b: 150px; height: 14px; margin: 3px 0; }

/* ---------- Gesicherte Rechnungen: Nummer und Kunde, Datum, Betrag ---------- */
.c-liste-karte { gap: 12px; }
.c-karte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.c-karte-kopf .k-klein:empty { display: none; }
.c-liste { --c-rand: 32px; list-style: none; margin: 0 calc(-1 * var(--c-rand)) -16px; padding: 0; display: flex; flex-direction: column; }
.c-liste[hidden] { display: none; }
.c-liste > li { position: relative; }
.c-liste > li + li::before {
  content: ""; position: absolute; top: 0; left: var(--c-rand); right: var(--c-rand); height: 1px; background: var(--border);
}
.c-zeile {
  display: grid; align-items: center; column-gap: 24px; row-gap: 2px; min-height: 64px; padding: 12px var(--c-rand);
  grid-template-columns: minmax(0, 1fr) auto 128px 20px;
  grid-template-areas: "nummer datum betrag pfeil" "kunde datum betrag pfeil";
  color: var(--text); text-decoration: none;
}
@media (hover: hover) { a.c-zeile:hover { background: var(--surface-2); } }
a.c-zeile:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--primary); }
.c-zeile-nummer { grid-area: nummer; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-zeile-kunde { grid-area: kunde; min-width: 0; font-size: 14px; line-height: 20px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-zeile-datum { grid-area: datum; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-zeile-betrag { grid-area: betrag; justify-self: end; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-zeile-pfeil { grid-area: pfeil; display: grid; place-items: center; color: var(--text-3); }
.c-zeile-pfeil .k-ikon { width: 20px; height: 20px; }

.c-skelett-reihe { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 12px var(--c-rand); }
.skelett-zeile.c-skelett--zeile { display: block; --b: min(280px, 60%); }
.skelett-zeile.c-skelett--betrag { display: block; --b: 80px; }

.c-liste-karte .k-leer { margin: 8px 0; }
.c-mehr { display: flex; justify-content: center; padding-top: 20px; }
.c-mehr[hidden] { display: none; }

/* ---------- So funktioniert es: drei Punkte mit Symbol ---------- */
.c-info { gap: 16px; }
.c-punkte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.c-punkt { display: flex; align-items: flex-start; gap: 12px; }
.c-punkt-zeichen { width: 36px; height: 36px; }
.c-punkt-zeichen .k-ikon { width: 20px; height: 20px; }
.c-punkt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.c-punkt-text strong { font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .c-balken-fuellung { transition: width 400ms var(--kurve-raus); }
}

/* Schmaler: Datum unter den Betrag, Punkte untereinander */
@media (max-width: 719.98px) {
  .c-punkte { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .c-zeile {
    column-gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    grid-template-areas: "nummer betrag pfeil" "kunde datum pfeil";
  }
  .c-zeile-datum { justify-self: end; font-size: 13px; }
  .c-skelett-reihe { padding: 12px var(--c-rand); }
}
@media (max-width: 600px) { .c-liste { --c-rand: 20px; } }
@media (max-width: 360px) { .c-liste { --c-rand: 14px; } }
@media (max-width: 479.98px) {
  /* Platz für die Zahl: Symbol weg, Titel etwas kleiner */
  .c-zeichen { display: none; }
  .c-nutzung-titel { font-size: 16px; line-height: 24px; min-height: 24px; }
}
