/* ===========================================================
   Calendar Butler — cb-dashboard-user-v2.css
   Redesign-Schicht NUR für das User-Dashboard (Preview). Wird nach cb-dashboard.css geladen,
   cb-dashboard.css selbst bleibt unverändert (Admin-Dashboard nutzt sie weiter).
   Regeln der Website: schwarze Schrift auf Orange, Eyebrows grau, Outline-Buttons mit
   Hover orange/schwarz, Orange nur als einzelnes Signal, dunkle Flächen wie section--navy.
   =========================================================== */

body { background: var(--off-white); }
.demo-banner { background: var(--off-white); }
.eyebrow { color: var(--pigeon-deep); }

/* ---------- Buttons: wie Website (alle klar, Hover orange mit schwarzer Schrift) ---------- */
.btn--primary:hover:not(:disabled), .btn--outline:hover:not(:disabled),
.icon-btn:hover:not(:disabled), .chip-btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--danger:hover:not(:disabled), .icon-btn--danger:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Kopfbereich ---------- */
.dash-head { padding: 48px 0 0; }
.dash-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); }

/* ---------- Karten ---------- */
.dash-grid { margin-top: 24px; }
.card { padding: 32px 32px 30px; }
.card__head h3 { font-size: 1.3rem; }

/* Butler-Adresse als Hauptdarsteller */
.copy-row { align-items: stretch; }
.copy-row .input { height: 46px; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-text); letter-spacing: 0; background: var(--off-white); color: var(--ink); border-color: #c9ccc7; }
.copy-row .btn { padding: 0 28px; }
/* Butler-Adresse ist nur lesbar: kein orange Fokus-Rahmen beim Klick (Text bleibt markierbar) */
.copy-row .input--readonly:focus, .copy-row .input--readonly:focus-visible { outline: none; border-color: #c9ccc7; }

/* ---------- Kalenderliste: eine ruhige Tabelle, kein Kasten-Look ---------- */
.card__head .count { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--pigeon-deep); margin-left: 4px; }
.cal-head, .cal-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) 96px; gap: 4px 20px; align-items: center; }
.cal-head { padding: 14px 0 10px; border-bottom: 1px solid var(--ink); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pigeon-deep); }
.cal-row { padding: 16px 0; border-bottom: 1px solid #e6e7e3; }
.cal-row__mail, .cal-row__sub, .cal-row__status, .cal-row__actions { grid-column: auto; grid-row: auto; align-self: center; }
.cal-row:last-child { border-bottom: 0; }
.cal-row .cal-row__mail::before, .cal-row--pending .cal-row__mail::before, .cal-row--verified .cal-row__mail::before { content: none; display: none; }
.cal-row__mail { padding: 0; font-weight: 600; color: var(--ink); overflow-wrap: break-word; word-break: normal; }
.cal-row__sub { padding-left: 0; color: var(--graphite); font-size: var(--fs-text); }
.cal-row__note { grid-column: 1 / -1; font-size: .84rem; color: var(--pigeon-deep); }
.cal-group__title { margin: 26px 0 0; font-size: 1.02rem; line-height: 1.2; }
.cal-group__title .count { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--pigeon-deep); margin-left: 2px; }
.cal-head + .cal-group .cal-group__title { margin-top: 20px; }
.cal-group:first-of-type .cal-row:first-child { padding-top: 12px; }
.cal-row__actions { justify-content: flex-end; }
.cal-row .icon-btn--danger, .cal-row .btn--icon-sm { width: 40px; height: 40px; border-color: #c9ccc7; background: var(--white); color: var(--ink); }
.cal-row .icon-btn--danger:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 719px) {
  .cal-head { display: none; }
  .cal-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; }
  .cal-row__mail, .cal-row__sub, .cal-row__note { grid-column: 1; }
  .cal-row__actions { grid-column: 2; grid-row: 1 / span 3; align-self: start; min-width: 0; flex-direction: column; align-items: flex-end; }
}

/* Status-Chips ohne Kasten (nur noch in anderen Bereichen) */
.chip--ok { background: var(--white); border-color: var(--ink); color: var(--ink); }
.chip--ok::before { background: var(--orange); }

/* ---------- 30-Tage-Bericht: heller Balken-Vergleich (Gespart / Bezahlt, in Zeit) ---------- */
.report__lead { margin: 4px 0 22px; font-size: 1rem; color: var(--graphite); }
.report__lead strong { color: var(--ink); }
.rbars { display: flex; gap: 32px; justify-content: center; align-items: stretch; padding: 4px 0 0; }
.rbar { flex: 0 1 128px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rbar__val { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.rbar__track { height: 168px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--ink); }
.rbar__track i { display: block; width: 100%; min-height: 4px; background: var(--pigeon); transition: height .65s cubic-bezier(.2,.7,.2,1); }
.rbar--gain .rbar__track i { background: var(--orange); }
.rbar__lbl { font-size: .85rem; line-height: 1.3; color: var(--pigeon-deep); }
.report__note { margin: 20px 0 0; font-size: .84rem; color: var(--pigeon-deep); }
.report__note strong { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .rbar__track i { transition: none; } }

/* ---------- Abo-Daten: zwei Spalten, links Bezeichnung, rechts Wert ---------- */
.kv--grid { display: block; margin: 0 0 18px; }
.kv--grid .kv__item { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 12px; align-items: center; padding: 6px 0; }
.kv--grid .kv__item:first-child { padding-top: 2px; }
.kv--grid dt { margin: 0; }
.kv--grid dd { margin: 0; font-size: var(--fs-text); font-weight: 400; color: var(--graphite); display: flex; align-items: center; gap: 8px; min-height: 28px; overflow-wrap: anywhere; }
.icon-btn--edit { width: 28px; height: 28px; border-color: transparent; background: none; color: var(--pigeon-deep); flex-shrink: 0; }
.icon-btn--edit:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* ---------- Fließtext einheitlich: Graphit in --fs-text (wie Website-Body); Grau nur für Zusatzangaben ---------- */
.card__hint, .modal p, .report__lead { color: var(--graphite); font-size: var(--fs-text); }
.kv--grid dd { font-size: var(--fs-text); }
.report__lead strong { color: var(--ink); font-weight: 600; }

/* ---------- Gesamt-Einsparung: Satz + zwei Punkte ---------- */
.report__total { margin-top: 22px; padding-top: 18px; border-top: var(--line-soft); }
.report__total p { margin: 0 0 8px; color: var(--graphite); font-size: var(--fs-text); }
.report__total ul { margin: 0; padding-left: 20px; }
.report__total li { font-size: var(--fs-text); color: var(--ink); font-weight: 600; line-height: 1.6; }
.report__total li::marker { color: var(--ink); }

.report__lead a { text-decoration: underline; }
.report__lead a:hover { color: var(--ink); }

/* ---------- Quadratische Icon-Buttons (Kopieren, Kalender hinzufügen) ---------- */
.btn--icon { width: 46px; height: 46px; padding: 0; flex: none; }
.btn--icon-lg { width: 46px; height: 46px; }
.copy-row .btn--icon-lg { padding: 0; }

.btn--icon-sm { padding: 0; }

/* Lange Button-Texte dürfen umbrechen (Abo-Karte, schmale Bildschirme) */
.btn--block { white-space: normal; text-align: center; }

/* ---------- Standard-Footer (identisch zur Website, Vorlage _build/footer_*.html) ---------- */
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col a:hover { color: var(--orange-deep); }
.footer .copyright { margin-top: 24px; font-size: .74rem; opacity: .5; }
.footer__tagline { margin-top: 14px; max-width: 38ch; opacity: .7; }
@media (min-width: 800px) { .footer__cols { grid-template-columns: repeat(3, auto); gap: 28px 56px; } }

/* ---------- Euro-Wert unter dem Zeitwert der Balken ---------- */
.rbar__eur { margin-top: -6px; font-size: var(--fs-text); line-height: 1.2; color: var(--pigeon-deep); white-space: nowrap; }
