/* ============================================================
   sidebar.css – Sidebar, Navigation, Uhr
   ============================================================ */

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--sidebar-border);
  height: 100vh;
  padding: 16px 0 12px;
  flex-shrink: 0;
}

/* Logo */
.sidebar__logo {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.sidebar__logo img {
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
  filter: invert(1);
  display: block;
}

/* Navigation */
.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 10px 4px;
  cursor: pointer;
  border: none;
  background: none;
  color: #fff;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  text-align: center;
  line-height: 1.2;
}
.nav-item:hover  { color: var(--nav-active-bg); }
.nav-item.active { background: var(--nav-active-bg); color: #fff; border-left-color: transparent; }

.nav-item__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav-item.active .nav-item__icon { opacity: 1; }

/* Uhr */
.sidebar__clock {
  padding: 10px 4px 0;
  text-align: center;
  border-top: 1px solid var(--sidebar-border);
  width: 100%;
}
.sidebar__clock-time {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: #c9d1d9;
  letter-spacing: 0.06em;
}
.sidebar__clock-date {
  font-size: 9px;
  color: #3d444d;
  margin-top: 2px;
}

/* ── Hauptinhalt ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
}

/* Panel-Umschaltung */
.panel { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.panel.active { display: flex; }
