/* Song-Ordner — iPhone-Notizen-artig, baut auf style.css auf. */
/* Startseite nutzt ein 2-Spalten-Grid für main — hier eine Spalte, sonst drückt ein langer Titel die Seite breit. */
.nz-main { display: block; max-width: 720px; margin: 0 auto; padding: 8px 16px 60px; }
.nz-main > section { min-width: 0; }

.nz-neu { flex-direction: row; gap: 8px; margin-bottom: 14px; }
.nz-neu input { flex: 1; min-width: 0; }
.nz-neu button { flex: none; }

/* ---- Ordner-Liste ---- */
.nz-ordner {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 8px; color: var(--text); font-weight: 500;
}
.nz-ordner:active { border-color: var(--accent); }
.nz-ordner .name { flex: 1; min-width: 0; font-size: 1.02rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-ordner .zahlen { color: var(--muted); font-size: .8rem; text-align: right; flex: none; }
.nz-balken { height: 4px; border-radius: 2px; background: var(--panel2); margin-top: 5px; overflow: hidden; display: flex; width: 90px; }
.nz-balken i { display: block; height: 100%; }
.nz-balken .b-gedreht { background: var(--accent2); }
.nz-balken .b-fertig { background: #6fc98a; }
.nz-leer { color: var(--muted); text-align: center; padding: 40px 10px; }

/* ---- Ideen-Ansicht ---- */
.nz-leiste { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.nz-filter { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.nz-filter button {
  min-height: 36px; padding: 6px 12px; font-size: .82rem; border-radius: 999px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line); font-weight: 500;
}
.nz-filter button.on { color: var(--text); border-color: var(--accent); }

.nz-idee {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start;
}
.nz-idee .inhalt { flex: 1; min-width: 0; cursor: pointer; }
.nz-idee .titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-idee .vorschau {
  color: var(--muted); font-size: .86rem; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nz-idee.st-fertig .titel { text-decoration: line-through; opacity: .55; }
.nz-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.nz-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }

/* Status-Knopf: tippen schaltet offen → gedreht → fertig */
.nz-status {
  flex: none; min-height: 36px; padding: 6px 10px; border-radius: 999px; font-size: .78rem;
  font-weight: 600; background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
}
.nz-status.st-gedreht { color: var(--accent2); border-color: var(--accent2); }
.nz-status.st-fertig { color: #6fc98a; border-color: #6fc98a; }

.nz-ordner-aktionen { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
button.gefahr { color: #e07a6f; }
button.gefahr-voll { background: #c9584c; color: #fff; }

/* ---- Overlays ---- */
.nz-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.nz-overlay[hidden] { display: none; }
.nz-sheet {
  background: var(--panel); width: 100%; max-width: 720px; max-height: 94vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.nz-sheet-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nz-gespeichert { color: var(--muted); font-size: .78rem; }
.nz-sheet textarea { min-height: 40vh; font-size: 17px; }

.nz-segment { display: flex; background: var(--panel2); border-radius: 10px; padding: 3px; gap: 3px; }
.nz-segment button {
  flex: 1; min-height: 38px; background: transparent; color: var(--muted); font-weight: 500;
  font-size: .86rem; border-radius: 8px; padding: 6px;
}
.nz-segment button.on { background: var(--panel); color: var(--text); font-weight: 600; }

.nz-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.nz-bilder:empty { display: none; }
.nz-bild { position: relative; aspect-ratio: 1; }
.nz-bild img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.nz-bild button {
  position: absolute; top: 4px; right: 4px; min-height: 0; width: 28px; height: 28px; padding: 0;
  border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: .9rem;
}
.nz-bild-knopf {
  flex-direction: row; justify-content: center; align-items: center; min-height: 46px;
  border: 1px dashed var(--line); border-radius: 10px; color: var(--text); font-size: .95rem; cursor: pointer;
}

.nz-lightbox { align-items: center; background: rgba(0, 0, 0, .92); }
.nz-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

.nz-frage { border-radius: 16px; margin: auto 16px; max-width: 420px; }
.nz-frage-knoepfe { display: flex; gap: 8px; justify-content: flex-end; }
