/* ==========================================================================
   Seitenrahmen (Seitenleiste, Kopfleiste) in Atlas-Form.
   Form nach dem Gestaltungssystem von Atlas (Atlas-Controlling/atlas,
   docs/ui/UI-REGELN.md Abschnitt 5, HfM-Designfassung 2026-11-20); die Farben
   bleiben die von VR Agrar (Anthrazit, Oliv). Gilt für alle Seiten.
   Wird in base.html nach beta.css geladen und überschreibt nur dessen Optik:
   Aufklappen und Anheften der Leiste unter 1600 px, Menüpunkte, Symbole und
   Skripte bleiben, wie sie sind.
   Zurücknehmen: die zwei Zeilen in base.html entfernen (Schrift und diese Datei).
   ========================================================================== */

:root{ --rahmen-oliv-20:#e3e3dd; }                       /* Oliv 20 % deckend */
@media (min-width:1600px){ :root{ --bx-sidebar-w:256px; } }
html.bx-sb-pinned{ --bx-sidebar-w:256px; }

/* ---------- Seitenleiste ---------- */
html:root body.beta .bx-sidebar{
  background:linear-gradient(180deg, #393a3a 0%, #2f3030 38%, #262727 100%);
  box-shadow:none; border-right:1px solid rgba(255,255,255,.06);
  font-family:"Open Sans", Arial, sans-serif;
}
html:root.bx-sb-open body.beta .bx-sidebar{ width:256px; box-shadow:0 16px 42px rgba(0,0,0,.35); }
html:root body.beta .bx-nav{ gap:2px; }
html:root body.beta .bx-sidebar__foot{ gap:2px; border-top-color:rgba(255,255,255,.10); }
html:root body.beta .bx-nav__item{
  position:relative; min-height:44px; border-radius:7px;
  color:#cfd0cb; font-size:14px; line-height:20px; font-weight:400;
  transition:background-color .14s, color .14s, transform .14s, box-shadow .14s;
}
html:root body.beta a.bx-nav__item, html:root body.beta button.bx-nav__item{ padding-top:0; padding-bottom:0; }
html:root body.beta .bx-nav__item i{ font-size:16px; opacity:.85; }
html:root body.beta .bx-nav__label small{ font-size:12px; line-height:15px; opacity:.7; }
html:root body.beta .bx-nav__item:hover{ background:rgba(227,227,221,.14); color:#fff; }
html:root body.beta .bx-nav__item--locked:hover{ background:transparent; color:#cfd0cb; }
/* Gewählter Eintrag: erhabener heller Knopf mit Balken (Atlas: Gold 20 %, hier Oliv 20 %) */
html:root body.beta .bx-nav__item.is-active{
  background:var(--rahmen-oliv-20); color:var(--vr-anthrazit); font-weight:600;
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(47,48,48,.16), 0 3px 8px rgba(0,0,0,.35);
}
html:root body.beta .bx-nav__item.is-active::before{
  content:""; position:absolute; left:0; top:9px; bottom:9px; width:3px; border-radius:2px; background:var(--vr-olivgruen);
}
html:root body.beta .bx-nav__item.is-active i{ opacity:1; color:var(--vr-olivgruen); }
html:root body.beta .bx-nav__item:focus-visible{ outline:2px solid var(--rahmen-oliv-20); outline-offset:-2px; }

/* ---------- Kopfleiste ---------- */
html:root body.beta .bx-topbar{ padding:0 26px; font-family:"Open Sans", Arial, sans-serif; }
/* Brotkrumen als ruhiger Text statt Pfeilkette */
html:root body.beta .bx-breadcrumb{ align-items:center; font-size:14px; line-height:20px; }
html:root body.beta .bx-breadcrumb > a,
html:root body.beta .bx-breadcrumb > span{
  margin:0; padding:0; background:none; clip-path:none; border-radius:0; color:var(--bx-muted); font-weight:400;
}
html:root body.beta .bx-breadcrumb > a:hover{ background:none; color:var(--vr-anthrazit); text-decoration:underline; text-underline-offset:3px; }
html:root body.beta .bx-breadcrumb > * + *::before{ content:"/"; display:inline-block; margin:0 10px; color:var(--vr-hellgrau); font-weight:400; text-decoration:none; }
html:root body.beta .bx-breadcrumb > :last-child{ color:var(--vr-anthrazit); font-weight:600; }
html:root body.beta .bx-iconbtn{ border-radius:8px; }

/* ---------- Themen-Menü in der Kopfleiste ---------- */
html:root body.beta .bx-themen{ position:relative; display:inline-block; }
html:root body.beta .bx-themen__liste{ position:absolute; top:calc(100% + 8px); right:0; z-index:1200; min-width:180px; padding:8px;
  background:var(--vr-weiss, #fff); border:1px solid var(--bx-border); border-radius:8px; box-shadow:0 16px 42px rgba(47,48,48,.18);
  display:flex; flex-direction:column; gap:2px; font-family:"Open Sans", Arial, sans-serif; }
html:root body.beta .bx-themen__liste[hidden]{ display:none; }
html:root body.beta .bx-themen__titel{ padding:4px 12px 6px; color:var(--bx-muted); font-size:12px; line-height:17px; font-weight:600; }
html:root body.beta .bx-themen__liste button{ display:flex; align-items:center; gap:10px; min-height:34px; padding:0 12px; border:0; border-radius:5px;
  background:transparent; color:var(--vr-anthrazit); font:400 14px/20px inherit; font-family:inherit; text-align:left; cursor:pointer; }
html:root body.beta .bx-themen__liste button::before{ content:""; flex:none; width:8px; height:8px; border-radius:50%; border:1.5px solid var(--bx-muted); }
html:root body.beta .bx-themen__liste button[aria-checked="true"]{ font-weight:600; }
html:root body.beta .bx-themen__liste button[aria-checked="true"]::before{ background:var(--vr-olivgruen); border-color:var(--vr-olivgruen); }
html:root body.beta .bx-themen__liste button:hover{ background:rgba(113,115,87,.12); }
html:root body.beta .bx-themen__liste button:focus-visible{ outline:2px solid var(--vr-olivgruen); outline-offset:-2px; }

@media (prefers-reduced-motion:reduce){
  html:root body.beta .bx-nav__item{ transition:none; }
  html:root body.beta .bx-nav__item.is-active{ transform:none; }
}
@media print{ html:root body.beta .bx-nav__item.is-active{ box-shadow:none; } }
