/* ---------- Navigation N3 (03.11.2026): keine Kopfleiste, alles links ----------
   Suche oben in der Leiste, Start/Daten/Aufgaben/Zu prüfen/Fristen, Favoriten, aufklappbare Bereiche (einer offen),
   unten Profil, Mitteilungen, Drucken, Einstellungen. Wird nach design.css geladen. */
@media (min-width: 901px) {
  .layout.v2 { grid-template-rows: minmax(0, 1fr); }
  .v2 > .topbar.n3-mob { display: none; }
  .v2 > .sidebar { grid-row: 1; }
  .v2 > .main, .v2 > .detail { grid-row: 1; }
}
.v2 > .sidebar.n3 { min-width: 0; }
.topbar.n3-mob { gap: 8px; }
.topbar.n3-mob .side-logo { display: flex; align-items: center; border: 0; background: none; padding: 0 6px; height: 52px; cursor: pointer; }
.topbar.n3-mob .side-logo img { height: 20px; width: auto; }
:root[data-theme="dark"] .topbar.n3-mob .side-logo img { filter: brightness(0) invert(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar.n3-mob .side-logo img { filter: brightness(0) invert(.92); } }

/* Suche */
.sidebar .n3-qs { flex: none; max-width: none; margin: 0 12px 8px; }
.sidebar .n3-qs input { height: 32px; font-size: 13px; padding: 0 44px 0 32px; }
.sidebar .n3-qs .qs-ic { left: 10px; top: 8px; width: 15px; height: 15px; }
.sidebar .n3-qs .qs-ic svg { width: 15px; height: 15px; display: block; }
.sidebar .n3-qs kbd { top: 7px; right: 8px; }
.sidebar .n3-qs .qs-pop { top: 38px; left: 0; right: auto; width: min(460px, calc(100vw - 24px)); z-index: 90; }
.n3-qsmini { flex: none; display: flex; justify-content: center; padding: 0 0 6px; }

/* Abschnitte */
.v2 .side-scroll { padding-top: 2px; }
.n3-sec { margin-top: 2px; }
.n3-sec + .n3-sec { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.n3-h { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 8px 6px 10px; font: 500 var(--fs-label, 10.5px)/1.2 var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.n3-h > span { flex: 1; min-width: 0; text-align: left; }
button.n3-h { border: 0; background: none; cursor: pointer; border-radius: 6px; }
button.n3-h:hover { color: var(--text); background: var(--hover); }
.n3-h svg { width: 10px; height: 10px; flex: none; transition: transform .15s; }
.n3-area.open > .n3-h svg { transform: rotate(90deg); }
.n3-area.open > .n3-h { color: var(--muted); }
.n3-h.cur { color: var(--text); }
.n3-h.cur > span::after { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-left: 7px; vertical-align: 2px; }
.n3-area .nav-items { padding-bottom: 2px; }

/* Zeilen mit Stern und Filter */
.v2 .nrow.n3r { position: relative; }
.n3-star, .n3-ic { flex: none; width: 24px; height: 24px; border: 0; background: none; padding: 0; border-radius: 5px; display: grid; place-items: center; color: var(--faint); cursor: pointer; }
.n3-star svg, .n3-ic svg { width: 14px; height: 14px; }
.n3-star:hover, .n3-ic:hover { color: var(--blue-dark); background: var(--hover); }
.n3-star { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); opacity: 0; }
.nrow.n3r:hover .n3-star, .n3-star:focus-visible { opacity: 1; }
.nrow.n3r:hover > .nav-item .count, .nrow.n3r:hover > .nav-item .soon { visibility: hidden; }
.n3-star.on { color: var(--blue); }
.n3-favs .n3-star.on { opacity: 0; }
.n3-favs .nrow.n3r:hover .n3-star.on { opacity: 1; }
.nrow.n3r > .n3-ic { margin-left: 2px; margin-right: 22px; }
.nrow.n3r:hover > .n3-ic { color: var(--muted); }
.n3-empty { margin: 2px 10px 4px; font-size: 12px; line-height: 1.45; color: var(--faint); }
.n3-empty svg { width: 12px; height: 12px; vertical-align: -1px; }
.n3-favs [draggable="true"] { cursor: grab; }
.n3-favs [draggable="true"].dragging { opacity: .45; }
.n3-favs [draggable="true"].over { box-shadow: inset 0 2px 0 var(--blue); }

/* Projekte unter „Projekte“ */
.v2 .nrow.l2.n3r { padding-left: 26px; }
.v2 .nrow.l2 .nav-item.sub .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--line2); margin-right: 2px; }
.v2 .nrow.l2 .nav-item.sub .dot.bau { background: var(--blue); }
.v2 .nrow.l2 .nav-item.sub .dot.projektierung { background: var(--blue-mid); }
.v2 .nrow.l2 .nav-item.sub .dot.vorbereitung { background: var(--line2); }
.v2 .nrow.l2 .nav-item.sub .dot.fertig { background: var(--faint); }
.n3-pl { padding: 6px 10px 2px 36px; font: 500 10px var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }

/* Fuß: Profil, Mitteilungen, Drucken, Einstellungen */
.n3-foot { position: relative; flex: none; display: flex; align-items: center; gap: 2px; padding: 8px 10px 8px 12px; border-top: 1px solid var(--line); }
.n3-foot .tb-av { margin-left: 0; flex: none; }
.n3-foot .n3-me { flex: 1; min-width: 0; border: 0; background: none; padding: 0 0 0 8px; text-align: left; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.n3-foot .tb-btn { width: 30px; height: 30px; flex: none; }
.n3-foot .tb-btn svg { width: 17px; height: 17px; }
.n3-foot .pop.notif { top: auto; bottom: 48px; left: 10px; right: auto; z-index: 90; }

/* eingeklappt */
body.nav-mini .sidebar .n3-h { font-size: 0; padding: 0; height: 1px; margin: 6px 14px; background: var(--line); pointer-events: none; }
body.nav-mini .sidebar .n3-h svg { display: none; }
body.nav-mini .n3-sec + .n3-sec { border-top: 0; padding-top: 0; margin-top: 4px; }
body.nav-mini .n3-foot { flex-direction: column; gap: 4px; padding: 8px 0; }
body.nav-mini .n3-foot .n3-me { display: none; }

/* Reiter auf Seiten, deren Unterpunkte früher links standen */
.n3-tabs { display: flex; gap: 22px; padding: 0 32px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.n3-tabs button { border: 0; background: none; padding: 8px 0; font: 500 12px var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.n3-tabs button:hover { color: var(--text); }
.n3-tabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); }

/* Daten: Ordner in Spalten wie im Finder (Vorschau) */
.n3-note { font-size: 12.5px; color: var(--muted); background: var(--blue-soft); border-radius: 8px; padding: 9px 12px; margin: 0 0 14px; max-width: 900px; }
.n3-crumb { font-size: 12.5px; color: var(--faint); margin: 0 0 10px; }
.n3-crumb b { color: var(--text); font-weight: 600; }
.n3-cols { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; min-height: 420px; background: var(--panel); }
.n3-col { flex: none; width: 300px; border-right: 1px solid var(--line); padding: 4px; overflow-y: auto; max-height: 64vh; }
.n3-col.empty { display: grid; place-items: center; color: var(--faint); font-size: 12.5px; }
.n3-ci { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 8px; border: 0; background: none; border-radius: 6px; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.n3-ci:hover { background: var(--hover); }
.n3-ci.on { background: var(--blue-soft); color: var(--blue-dark); font-weight: 500; }
.n3-ci .fi { width: 16px; height: 16px; flex: none; color: var(--blue-dark); }
.n3-ci .fi svg { width: 16px; height: 16px; display: block; }
.n3-ci .fn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n3-ci .ar { color: var(--faint); }

/* Einstellungen › Meine Seitenleiste */
.n3-cbs { display: grid; gap: 6px; margin: 4px 0 6px; }
.n3-cb { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--text); cursor: pointer; line-height: 1.35; }
.n3-cb input { margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.n3-cb small { display: block; color: var(--faint); font-size: 11.5px; }
.n3-cb.pick { padding: 3px 0; }
.n3-cb.pick small { display: inline; margin-left: 6px; }
.n3-cb.auto { color: var(--muted); cursor: default; }
.n3-picks { max-width: 520px; }
.n3-pg { font: 500 10.5px var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 12px 0 4px; }
.n3-pfav svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.n3-pfav.on { color: var(--blue-dark); }

@media (max-width: 900px) {
  .n3-tabs { padding: 0 16px; }
  .n3-star { opacity: 1; }
  .n3-star:not(.on) { color: var(--line2); }
}
@media print {
  .n3-tabs, .n3-note { display: none !important; }
}
