/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: none; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; z-index: 30; }
.brand { display: flex; gap: 10px; align-items: center; padding: 6px 10px 18px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; image-rendering: auto; }
.brand-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.brand strong { display: block; font-size: var(--fs-base); } .brand small { color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; } /* lange Menüs scrollen, die Fußzeile der Seitenleiste bleibt sichtbar */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 12px; }
.nav-label { padding: 0 12px 4px; } /* Schrift: components.css „Kleine Überschriften“ */
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: var(--fw-medium); transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-text); }
.sidebar-foot { margin-top: auto; flex: none; border-top: 1px solid var(--border); padding-top: 10px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.page-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -.02em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); }
.me-text { display: flex; flex-direction: column; line-height: 1.15; } .me-text small { color: var(--muted); font-size: var(--fs-2xs); }
.content { padding: 24px 28px 48px; max-width: 1480px; width: 100%; }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 20px 16px 28px; color: var(--faint); font-size: var(--fs-xs); margin-top: auto; }
.site-foot a { color: var(--muted); } .site-foot a:hover { color: var(--text); text-decoration: underline; }
.only-mobile { display: none; }
.scrim { display: none; }

/* Kopfzeile auf schmalen Bildschirmen: nichts darf über den Rand ragen */
.page-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { min-width: 0; }
@media (max-width: 600px) {
  .topbar { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .topbar-right { gap: 6px; }
  .topbar .view-switch, .topbar .me { display: none; } /* Team-Bereich bleibt über das Menü erreichbar */
  .page-title { font-size: var(--fs-base); }
}
@media (max-width: 380px) { .crumb-pill .ic { display: none; } }
