/* Kundenprojekte (js/projects.js): Projektdialog und Erinnerung an die Sicherung.
   Wird nach dem <style> in index.html geladen und nutzt dessen Variablen.
   Die Regeln für schmale Bildschirme stehen weiterhin im <style> von index.html. */

/* ---- Projekte ---- */
.projects-modal { max-width: 640px; }
.project-new { display: flex; gap: 8px; margin-bottom: 14px; }
.project-new .setting-text { flex: 1; min-width: 0; }
.project-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.project-row { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--ui-line); border-radius: 10px; }
.project-row.is-active { border-color: var(--ui-active); box-shadow: inset 0 0 0 1px var(--ui-active); }
.project-row__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; background: none; border: none; border-radius: 6px; text-align: left; font-family: inherit; color: var(--ui-ink); cursor: pointer; }
.project-thumb { flex-shrink: 0; width: 56px; height: 42px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #FFFFFF; border: 1px solid var(--ui-line); border-radius: 6px; }
.project-thumb img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.project-thumb i { flex: 1; height: 100%; }
.project-row__text { min-width: 0; }
.project-row__name { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-row__meta { display: block; font-size: 12.5px; color: var(--ui-muted); }
.project-row__actions { display: flex; flex-shrink: 0; }
.project-row .icon-btn { width: 34px; height: 34px; color: var(--ui-muted); }
.project-row .icon-btn:hover { background: var(--ui-soft); color: var(--ui-ink); }
.project-row__rename { flex: 1; min-width: 0; display: flex; gap: 6px; }
.project-row__rename input { flex: 1; min-width: 0; }
.project-row__confirm { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 4px; font-size: 13.5px; color: var(--ui-ink); }
.project-row__confirm span { flex: 1 1 180px; min-width: 0; }
.settings-btn--danger { background: #C62828; color: #FFFFFF; border: 1px solid #C62828; }
.settings-btn--danger:hover { background: #A81F1F; }
.projects-modal .modal-header h3 { color: var(--ui-ink); }
.projects-modal .setting-hint { color: var(--ui-muted); }

/* Erinnerung an die Sicherung der Projekte */
.backup-note { position: fixed; left: 24px; bottom: 24px; z-index: 190; max-width: 400px; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; background: #FFFFFF; color: #1B2230; border: 1px solid #E3E6EB; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.4; }
.backup-note[hidden] { display: none; }
.backup-note p { flex: 1 1 100%; margin: 0; }
@media (max-width: 1023px) { .backup-note { left: 16px; right: 16px; bottom: 80px; max-width: none; } }
