/* ============================================================
   LifeFolder — Checklisten (Drei-Zustand: an / aus / neutral)
   ============================================================ */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.check-card__head { display: flex; align-items: center; gap: 13px; }
/* Grip-Griff zum Sortieren — nur er ist ziehbar (Karten enthalten Formulare) */
.check-card__grip { flex: none; display: inline-flex; align-items: center; color: var(--color-muted-2); cursor: grab; margin: -4px 0 -4px -4px; padding: 4px; }
.check-card__grip:active { cursor: grabbing; }
.check-card.is-dragging { opacity: .5; }
.check-card__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--status-valid-bg); color: var(--color-muted); display: flex; align-items: center; justify-content: center; }
.check-card__titles { flex: 1; min-width: 0; }
.check-card__name { display: block; font-size: 16px; font-weight: 700; font-family: var(--font-head); }
.check-card__meta { display: block; font-size: 12.5px; color: var(--color-muted-2); margin-top: 2px; }
.check-card__pct { flex: none; font-size: 13px; font-weight: 700; color: var(--color-muted); }
.check-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--color-muted-2); background: var(--color-line-soft); padding: 2px 8px; border-radius: 999px; }
.check-card--soon { opacity: .9; }
.check-teaser { margin: 12px 0 0; color: var(--color-muted); font-size: 13.5px; }

.check-bar { display: block; height: 7px; border-radius: 999px; background: var(--color-line-soft); overflow: hidden; margin: 14px 0 4px; }
.check-bar > span { display: block; height: 100%; background: var(--color-selected); border-radius: 999px; transition: width .25s; }

.check-items { list-style: none; margin: 8px 0 0; padding: 0; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-line-soft); }
.check-item:last-child { border-bottom: none; }

/* Status-Punkt = Button (zyklt aus -> an -> neutral) */
.check-status__form { margin: 0; flex: none; }
.check-status { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; padding: 0; transition: background .12s; }
.check-status--open    { background: var(--color-line-soft);   color: var(--color-muted-2); }
.check-status--ready   { background: var(--color-selected-soft); color: var(--color-selected); }
.check-status--skipped { background: var(--color-line-soft);   color: var(--color-muted-2); }
.check-status--review  { background: var(--status-review-bg);  color: var(--status-review-fg); }
.check-status:hover { filter: brightness(.97); }

.check-item__body { flex: 1; min-width: 0; }
.check-item__label { display: block; font-size: 14px; font-weight: 600; color: var(--color-ink); }
.check-item.is-open .check-item__label { color: var(--color-muted); font-weight: 500; }
.check-item.is-skipped .check-item__label { color: var(--color-muted-2); text-decoration: line-through; }
.check-item__doc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--color-muted-2); margin-top: 2px; }

.check-note { margin-top: 5px; }
.check-note__input { width: 100%; height: 32px; border: 1px solid var(--color-line); border-radius: 8px; padding: 0 10px; font-size: 13px; font-family: inherit; background: var(--color-surface); color: var(--color-ink); outline: none; }
.check-note__input:focus { border-color: var(--color-selected); }

.check-item__add { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--color-selected); }
.check-item__add:hover { text-decoration: underline; }
.check-item__state { flex: none; font-size: 12px; font-weight: 700; }
.check-item__state--ready   { color: var(--color-selected); }
.check-item__state--review  { color: var(--status-review-fg); }
.check-item__state--skipped { color: var(--color-muted-2); }
.check-item__state--open    { color: var(--color-muted-2); }

.check-more { margin-top: 4px; }
.check-more__summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--color-muted); list-style: none; padding: 8px 0; }
.check-more__summary::-webkit-details-marker { display: none; }
.check-more__summary::marker { content: ""; }
.check-more__summary svg { transition: transform .2s; }
.check-more[open] .check-more__summary svg { transform: rotate(90deg); }

.check-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.check-card__foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--color-line-soft); display: flex; align-items: center; justify-content: space-between; }
.check-hide__form { margin: 0; }
.check-hide { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; color: var(--color-muted-2); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.check-hide:hover { color: var(--status-urgent-fg); }

/* Onboarding-Personalisierung — „Mach sie zu deinen" */
.check-personalize { margin-bottom: 20px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); padding: 14px 16px; }
.check-personalize[open] { border-color: var(--color-selected); }
.check-personalize__summary { display: flex; flex-direction: column; gap: 3px; cursor: pointer; list-style: none; }
.check-personalize__summary::-webkit-details-marker { display: none; }
.check-personalize__summary::marker { content: ""; }
.check-personalize__title { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--color-ink); }
.check-personalize__title svg { color: var(--color-selected); }
.check-personalize__hint { font-size: 13px; color: var(--color-muted); }
.check-personalize__form { margin-top: 14px; }
.check-personalize__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-bg); color: var(--color-ink); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.check-chip input { accent-color: var(--color-selected); width: 15px; height: 15px; cursor: pointer; margin: 0; }
.check-chip:hover { border-color: var(--color-selected); }
.check-chip:has(input:checked) { border-color: var(--color-selected); background: var(--color-selected-soft); }
.check-personalize__submit { margin: 0; }

/* „Add checklist" — nicht sichtbare Karten zuschaltbar */
.check-addlist { margin-top: 22px; }
.check-addlist__title { font-size: 15px; font-weight: 700; font-family: var(--font-head); color: var(--color-muted); margin: 0 0 12px; }
.check-addlist__items { display: flex; flex-wrap: wrap; gap: 10px; }
.check-addlist__form { margin: 0; }
.check-addlist__btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); color: var(--color-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.check-addlist__btn:hover { border-color: var(--color-selected); background: var(--color-selected-soft); }
.check-addlist__icon { display: inline-flex; color: var(--color-muted); }
.check-addlist__cta { display: inline-flex; align-items: center; gap: 4px; color: var(--color-selected); font-weight: 700; font-size: 12.5px; }
.check-print { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--color-muted); }
.check-print:hover { color: var(--color-selected); }

/* Rechte Item-Spalte: Zuweisen / Status / Entfernen */
.check-item__right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.check-assign { margin: 0; }
.check-assign__select { max-width: 160px; height: 30px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); color: var(--color-ink); font-size: 12px; padding: 0 6px; font-family: inherit; outline: none; }
.check-assign__select:focus { border-color: var(--color-selected); }
.check-item__remove-form { margin: 0; }
.check-item__remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; background: transparent; color: var(--color-muted-2); border-radius: 6px; cursor: pointer; }
.check-item__remove:hover { background: var(--status-urgent-bg); color: var(--status-urgent-fg); }

/* „+ Add item" */
.check-add { margin-top: 8px; }
.check-add__summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--color-selected); list-style: none; padding: 6px 0; }
.check-add__summary::-webkit-details-marker { display: none; }
.check-add__summary::marker { content: ""; }
.check-add__form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.check-add__input { flex: 1; min-width: 140px; height: 34px; border: 1px solid var(--color-line); border-radius: 8px; padding: 0 10px; font-size: 13px; font-family: inherit; background: var(--color-surface); color: var(--color-ink); }
.check-add__input:focus { border-color: var(--color-selected); outline: none; }
.check-add__kind { height: 34px; border: 1px solid var(--color-line); border-radius: 8px; padding: 0 8px; font-size: 13px; background: var(--color-surface); color: var(--color-ink); font-family: inherit; }

@media (max-width: 820px) { .check-grid { grid-template-columns: 1fr; } }

/* Datei aufs Item droppen: Schwebe- und Upload-Zustand */
.check-item.is-dragover { outline: 2px dashed var(--color-action); outline-offset: 2px; border-radius: 10px; }
.check-item.is-uploading { opacity: .55; pointer-events: none; }
