/* ============================================================
   LifeFolder — Komponenten (getokt, wiederverwendbar)
   Basis .btn / .btn--primary / .btn--icon liegen in 03_app_shell.css.
   ============================================================ */

/* ---------------- Buttons (weitere Varianten) ---------------- */
.btn--secondary { background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-line-soft); }
.btn--ghost { background: transparent; color: var(--color-selected); }
.btn--ghost:hover { background: var(--color-selected-soft); }
.btn--danger { background: var(--status-urgent-bg); color: var(--status-urgent-fg); }
.btn--danger:hover { filter: brightness(.97); }
.btn--danger-outline {
  background: var(--color-surface); color: var(--status-urgent-fg);
  border: 1px solid color-mix(in srgb, var(--status-urgent-fg) 30%, var(--color-surface));
}
.btn--danger-outline:hover { background: var(--status-urgent-bg); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- Pills (Status & Kategorie) ---------------- */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.pill--valid  { background: var(--status-valid-bg);  color: var(--status-valid-fg); }
.pill--review { background: var(--status-review-bg); color: var(--status-review-fg); }
.pill--urgent { background: var(--status-urgent-bg); color: var(--status-urgent-fg); }
.pill--category { background: var(--status-valid-bg); color: var(--color-ink); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------------- Badges ---------------- */
.badge--new { background: var(--status-valid-bg); color: var(--status-valid-fg); }

/* ---------------- Karten ---------------- */
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.card__title { font-size: 17px; font-weight: 700; font-family: var(--font-head); }

/* ---------------- Tabelle -> Karten (responsive) ---------------- */
.data-table { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; }
.data-row { display: grid; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--color-line-soft); align-items: center; }
.data-row:last-child { border-bottom: none; }
.data-row--head { background: var(--color-line-soft); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; font-weight: 700; color: var(--color-muted-2); padding: 11px 20px; }
.data-cell__label { display: none; }
@media (max-width: 900px) {
  .data-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
  .data-row--head { display: none; }
  .data-cell { display: flex; gap: 6px; align-items: baseline; }
  .data-cell__label { display: inline; color: var(--color-muted-2); font-size: 12px; }
}

/* ---------------- Leerer Zustand ---------------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 20px; }
.empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 22px; background: var(--color-selected-soft); color: var(--color-selected); margin-bottom: 18px; }
.empty__title { font-size: 20px; font-weight: 800; font-family: var(--font-head); }
.empty__text { margin: 8px 0 0; color: var(--color-muted); max-width: 420px; }
.empty__cta { margin-top: 18px; }

/* ---------------- Styleguide (nur Vorschau) ---------------- */
.sg-section { margin-bottom: 36px; }
.sg-section > h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted-2); margin: 0 0 14px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.sg-swatch { width: 130px; }
.sg-swatch__chip { height: 50px; border-radius: 10px; border: 1px solid var(--color-line); }
.sg-swatch__name { font-size: 12px; color: var(--color-muted); margin-top: 6px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* Drop-Ziele: aktiver Schwebe-Zustand */
.person-card.is-dragover, .doc-preview.is-dragover, .person-form__actions.is-dragover .btn--primary { outline: 2px dashed var(--color-action); outline-offset: 3px; }

/* Personen-Name als dezenter Link (Dokumente → Profil) */
.person-link { color: var(--color-selected); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-line); text-underline-offset: 3px; }
.person-link:hover { text-decoration-color: var(--color-selected); }

/* ---------------- Dokument-„Gesicht" (Bild-Thumbnail oder farbiges Kategorie-Icon) ---------------- */
.doc-glyph { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; vertical-align: middle; }
.doc-glyph--img { background: var(--color-line-soft); }
/* object-position:top → zeigt den Dokument-Kopf (Titel/Wappen) statt der oft weißen Mitte */
.doc-glyph__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
