/* HSG V4.5 / 6.20.4: Additive globale Navigation, keine Aenderung bestehender Menues. */
.hsg-app .hsg-global-sidebar-bottom {
  margin-top:auto; display:flex; flex-direction:column; gap:8px; min-width:0;
}
.hsg-app .hsg-global-sidebar-bottom .hsg-sidebar-public {
  margin-top:0;
}
.hsg-app .hsg-global-logout-form,
.hsg-app .hsg-global-mobile-logout { margin:0; }
.hsg-app .hsg-global-logout-form .hsg-global-logout-button {
  width:100%; justify-content:flex-start;
}
.hsg-app .hsg-global-actions {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin:0 0 12px; min-width:0;
}
.hsg-app .hsg-global-actions .hsg-global-back-button,
.hsg-app .hsg-global-logout-button {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:8px; min-height:44px; padding:9px 13px; border:1px solid #d4bea0;
  border-radius:10px; background:#fffdf9; color:#69491f; font:inherit;
  font-size:.88rem; font-weight:650; line-height:1.35; text-decoration:none;
  cursor:pointer;
}
.hsg-app .hsg-global-actions .hsg-global-back-button:hover,
.hsg-app .hsg-global-logout-button:hover { background:#f4eada; color:#553b19; }
.hsg-app .hsg-global-actions .hsg-global-back-button:focus-visible,
.hsg-app .hsg-global-logout-button:focus-visible { outline:3px solid #5b6c30; outline-offset:2px; }
.hsg-app .hsg-global-actions .hsg-icon,
.hsg-app .hsg-global-logout-button .hsg-icon { width:19px; height:19px; }
.hsg-app .hsg-global-mobile-logout { display:none; }
@media (max-width:900px) {
  .hsg-app .hsg-global-mobile-logout { display:block; }
  .hsg-app .hsg-global-actions { margin:1px 0 10px; }
}
@media (max-width:360px) {
  .hsg-app .hsg-global-actions .hsg-global-back-button,
  .hsg-app .hsg-global-logout-button { padding:9px 11px; }
}

/* Nachtrag 020: Angemeldetes Konto und Abmeldung auf JEDER internen Seite. */
.hsg-app .hsg-global-account-actions {
  margin-left:auto; display:flex; align-items:center; justify-content:flex-end;
  gap:12px; min-width:0;
}
.hsg-app .hsg-signed-in {
  display:flex; flex-direction:column; align-items:flex-end; min-width:0;
  max-width:min(42vw, 350px); font-size:.78rem; line-height:1.35;
  color:#5c4a36; overflow-wrap:anywhere;
}
.hsg-app .hsg-signed-in strong { color:#3d2b17; font-weight:750; }
.hsg-app .hsg-signed-in-detail { color:#706558; font-size:.73rem; }
.hsg-app .hsg-account-logout { margin:0; flex:none; }
@media(max-width:700px) {
  .hsg-app .hsg-global-actions { flex-wrap:wrap; }
  .hsg-app .hsg-global-account-actions { gap:7px; flex:1 1 auto; }
  .hsg-app .hsg-signed-in { max-width:calc(100vw - 202px); font-size:.72rem; }
  .hsg-app .hsg-signed-in-detail { font-size:.66rem; }
  .hsg-app .hsg-account-logout .hsg-global-logout-button { padding:8px 10px; }
}
@media(max-width:380px) {
  .hsg-app .hsg-global-account-actions { width:100%; flex:1 1 100%; justify-content:space-between; }
  .hsg-app .hsg-signed-in { max-width:calc(100vw - 145px); align-items:flex-start; }
}

/* Nachtrag 022: Kontofunktion konsequent bei der Benutzerinformation statt auf Dienstseiten. */
.hsg-app .hsg-signed-in .hsg-account-security-link {
  color:#67491e; text-decoration:underline; text-underline-offset:3px;
  font-size:.77rem; font-weight:650; margin-top:3px;
}
.hsg-app .hsg-signed-in .hsg-account-security-link:hover {color:#402a13;}
.hsg-app .hsg-signed-in .hsg-account-security-link:focus-visible {outline:3px solid #5b6c30;outline-offset:2px;}
@media(max-width:700px){.hsg-app .hsg-signed-in .hsg-account-security-link{font-size:.72rem}}
