/* ── Sidebar: Toggle-Button (in Topbar) ──────────────────────────────────── */
#burger-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger-icon, .burger-icon::before, .burger-icon::after {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 1px;
  transition: transform 0.2s;
}
.burger-icon { position: relative; }
.burger-icon::before { content: ''; position: absolute; top: -6px; }
.burger-icon::after  { content: ''; position: absolute; top:  6px; }

/* ── Sidebar: Backdrop ────────────────────────────────────────────────────── */
#burger-backdrop {
  display: none;
  position: fixed;
  top: calc(var(--app-titlebar) + env(safe-area-inset-top));
  left: 0; right: 0;
  bottom: calc(var(--app-tabbar) + var(--app-colorbar));
  z-index: 200;
  background: rgba(0,0,0,0.35);
}
#burger-backdrop.is-visible { display: block; }
@media (orientation: landscape) and (min-width: 600px) {
  #burger-backdrop { bottom: 0; }
}

/* ── Sidebar: Menü-Container ──────────────────────────────────────────────── */
#burger-menu {
  position: fixed;
  top: calc(var(--app-titlebar) + env(safe-area-inset-top));
  left: 0;
  bottom: calc(var(--app-tabbar) + var(--app-colorbar));
  width: max-content;
  max-width: 85vw;
  z-index: 201;
  background: var(--color-surface);
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
#burger-menu.is-open { transform: translateX(0); }
@media (orientation: landscape) and (min-width: 600px) {
  #burger-menu { bottom: 0; }
}

/* ── Sidebar: Header (Schließen / Zurück) ─────────────────────────────────── */
#burger-back-header {
  display: flex;
  flex-shrink: 0;
  height: 47px;
}
.btn.burger-back-btn {
  width: 100%; height: 100%; justify-content: flex-start;
  padding: 0 16px;
  font-size: 0.95rem; color: var(--color-primary);
}

/* ── Sidebar: Panel-System ────────────────────────────────────────────────── */
.burger-panels-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.burger-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  will-change: transform;
}
.burger-panel-sub {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
}
.burger-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Sidebar: Inhalts-Elemente ────────────────────────────────────────────── */
.burger-section-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-muted);
  padding: 12px 20px 4px;
  white-space: nowrap;
}
.burger-option {
  padding: 13px 20px;
  font-size: 0.95rem; color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}
.burger-option:active { background: var(--color-divider); }
.burger-option-nav {
  display: flex; align-items: center; justify-content: space-between;
}
.burger-option-nav::after {
  content: '›';
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-left: 8px;
}
.burger-option.selected { font-weight: 600; color: var(--color-primary); }
.burger-option-loc { display: flex; align-items: center; justify-content: space-between; }
.burger-nav-chevron { font-size: 1.1rem; color: var(--color-text-muted); margin-left: 8px; flex-shrink: 0; }
.burger-divider { height: 1px; flex-shrink: 0; background: var(--color-divider); margin: 4px 0; }


/* ── Sidebar: Unterbereich (Tab-Items + Abmelden) ─────────────────────────── */
.burger-bottom {
  flex-shrink: 0;
}
#burger-tab-section {
  flex-shrink: 0;
}
.sidebar-sep {
  height: 1px;
  flex-shrink: 0;
  background: var(--color-divider);
}
.burger-action {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 0.95rem; color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.burger-action:active { background: var(--color-divider); }
.burger-action-danger { color: var(--color-danger, #c00); }
