/* HSG Konsolidierung 4A (24.10.2026): additive shell/navigation only.
   Loaded last on the authenticated and guest members pages.
   No changes to authorization, calendars, work hours, cashier, or notifications. */
.hsg-skip-link {position:absolute;z-index:2000;top:-100px;left:12px;padding:12px 16px;background:#fffdf7;border:2px solid #80602b;border-radius:10px;color:#3f2a12;text-decoration:none}
.hsg-skip-link:focus {top:10px}
.hsg-app .hsg-header {position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:14px;min-width:0;min-height:58px;margin:0 0 16px;padding:4px 0 15px;border-bottom:1px solid var(--border)}
.hsg-app.is-authenticated .hsg-header-brand {display:inline-flex}
.hsg-app .hsg-header-section {margin-right:auto;color:#69543a;font-size:.94rem;font-weight:680;min-width:0;overflow-wrap:anywhere}
.hsg-app .hsg-brand-short {display:none}
.hsg-app .hsg-account-menu {position:relative;z-index:1100;flex:0 0 auto;margin-left:auto}
.hsg-app .hsg-account-trigger {box-sizing:border-box;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;border-radius:11px;border:1px solid #d1b998;background:#fffdf8;color:#60431b;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-weight:700;font-size:.9rem;cursor:pointer;list-style:none;user-select:none}
.hsg-app .hsg-account-trigger::-webkit-details-marker {display:none}
.hsg-app .hsg-account-trigger .hsg-icon {width:18px;height:18px}
.hsg-app .hsg-account-menu[open] .hsg-account-trigger {border-color:#a18457;background:#f3e7d2}
.hsg-app .hsg-account-menu-panel {box-sizing:border-box;position:absolute;right:0;top:calc(100% + 8px);width:min(310px,calc(100vw - 28px));background:#fffdf8;border:1px solid #d8c7ac;border-radius:14px;box-shadow:0 16px 36px rgba(54,40,26,.16);padding:9px;display:flex;flex-direction:column;gap:3px}
.hsg-app .hsg-account-menu-identity {display:flex;flex-direction:column;gap:2px;margin:0 0 7px;padding:10px 10px 12px;border-bottom:1px solid var(--border);overflow-wrap:anywhere;line-height:1.4}
.hsg-app .hsg-account-menu-identity strong {font-size:.94rem;color:#3b2916}
.hsg-app .hsg-account-menu-identity span {font-size:.78rem;color:var(--muted)}
.hsg-app .hsg-account-menu-panel > a,.hsg-app .hsg-account-menu-logout button {box-sizing:border-box;display:flex;align-items:center;gap:9px;min-height:44px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#533a1d;text-decoration:none;text-align:left;font:inherit;font-size:.9rem;font-weight:630;cursor:pointer}
.hsg-app .hsg-account-menu-panel > a:hover,.hsg-app .hsg-account-menu-logout button:hover {background:#f4ebdb;filter:none}
.hsg-app .hsg-account-menu-logout {border-top:1px solid var(--border);padding-top:5px;margin:5px 0 0}
.hsg-app .hsg-account-menu-logout .hsg-icon {width:18px;height:18px}
.hsg-app .hsg-account-trigger:focus-visible,.hsg-app .hsg-account-menu-panel a:focus-visible,.hsg-app .hsg-account-menu-logout button:focus-visible {outline:3px solid #597036;outline-offset:2px}
.hsg-app .hsg-global-sidebar-bottom .hsg-sidebar-public {display:flex;align-items:center;min-height:44px;line-height:1.3;border-radius:9px;padding:10px 12px}
.hsg-app .hsg-global-sidebar-bottom .hsg-sidebar-public:hover {background:#ede2d0}
.hsg-app .hsg-global-actions {justify-content:flex-start;margin:0 0 15px}
.hsg-app .hsg-global-actions .hsg-global-back-button {min-height:44px}
.hsg-app .hsg-account-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 20px}
.hsg-app .hsg-account-facts > div {min-width:0;border:1px solid var(--border);background:#fff;border-radius:13px;padding:16px}
.hsg-app .hsg-account-facts dt {font-size:.82rem;color:var(--muted);margin:0 0 8px}
.hsg-app .hsg-account-facts dd {margin:0;color:var(--ink);font-size:1rem;font-weight:650;overflow-wrap:anywhere}
.hsg-app .hsg-account-page-actions {display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}
.hsg-app .hsg-panel a.hsg-account-action {display:inline-flex;align-items:center;justify-content:center;min-height:46px;background:#79541d;color:#fff;border:1px solid #79541d;border-radius:10px;padding:12px 16px;text-decoration:none;font-weight:700;font-size:.91rem}
.hsg-app .hsg-panel a.hsg-account-action:hover {background:#664317;color:#fff}
@media(max-width:900px) {
  .hsg-app.is-authenticated .hsg-header-brand {display:inline-flex;flex:1 1 auto;min-width:0}
  .hsg-app .hsg-header-section {display:none}
  .hsg-app .hsg-header {margin:0 0 12px;padding:3px 0 11px}
  .hsg-app .hsg-account-menu {margin-left:0}
  .hsg-app .hsg-mobile-nav.hsg-external-mobile-nav {grid-template-columns:minmax(0,220px);justify-content:center}
  .hsg-app .hsg-global-actions {margin:0 0 11px}
}
@media(max-width:640px) {
  .hsg-app .hsg-account-facts {grid-template-columns:1fr}
}
@media(max-width:520px) {
  .hsg-app .hsg-header {gap:7px}
  .hsg-app .hsg-brand-full {display:none}
  .hsg-app .hsg-brand-short {display:block}
  .hsg-app .hsg-header-brand.hsg-brand-with-logo {font-size:clamp(.87rem,3.1vw,1rem)}
  .hsg-app .hsg-account-trigger {padding:9px 10px;font-size:.8rem;gap:6px}
  .hsg-app .hsg-account-trigger .hsg-icon {width:16px;height:16px}
}
@media(max-width:360px) {
  .hsg-app .hsg-account-trigger {gap:4px;padding:8px}
  .hsg-app .hsg-header-brand.hsg-brand-with-logo {font-size:.83rem}
}

/* 4A hotfix 01: primary sign-out must be visible without opening account menu. */
.hsg-app .hsg-header-account-actions {display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto;margin-left:auto;min-width:0}
.hsg-app .hsg-header-account-actions .hsg-account-menu {margin-left:0}
.hsg-app .hsg-account-trigger::marker {content:"";font-size:0}
.hsg-app .hsg-header-logout {display:block;margin:0;flex:0 0 auto}
.hsg-app .hsg-header-logout-button {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:110px;padding:9px 12px;border:1px solid #cfb590;border-radius:11px;background:#fffdf8;color:#60431b;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-weight:700;font-size:.9rem;line-height:1.25;cursor:pointer}
.hsg-app .hsg-header-logout-button .hsg-icon {width:18px;height:18px;flex:0 0 auto}
.hsg-app .hsg-header-logout-button:hover {background:#f3e7d2;filter:none}
.hsg-app .hsg-header-logout-button:focus-visible {outline:3px solid #597036;outline-offset:2px}
@media(max-width:700px) {
  .hsg-app .hsg-header {flex-wrap:wrap;row-gap:8px}
  .hsg-app.is-authenticated .hsg-header-brand {flex:1 1 100%}
  .hsg-app .hsg-header-account-actions {flex:1 1 100%;margin-left:0;justify-content:flex-end}
}
@media(max-width:360px) {
  .hsg-app .hsg-header-account-actions {gap:6px}
  .hsg-app .hsg-header-logout-button {gap:5px;min-width:105px;padding:9px 10px;font-size:.8rem}
  .hsg-app .hsg-header-logout-button .hsg-icon {width:16px;height:16px}
}


/* HSG 4A alignment 02 (26.10.2026): member shell mirrors the public site's brand,
   sidebar, two-row header and action bar. No authorization or data changes. */
@media (min-width: 901px) {
  .hsg-app.is-authenticated {grid-template-columns:230px minmax(0,1fr)}
  .hsg-app.is-authenticated .hsg-content {padding:22px 26px}
}
.hsg-app.is-authenticated .hsg-sidebar .hsg-sidebar-brand.hsg-brand-with-logo {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:11px;padding:12px 6px 4px;text-align:center;
  font:700 15px/1.35 Georgia,"Times New Roman",serif;
}
.hsg-app.is-authenticated .hsg-sidebar-brand.hsg-brand-with-logo .hsg-wappen-sidebar {
  width:72px;height:82px;
}
.hsg-app.is-authenticated .hsg-sidebar-brand.hsg-brand-with-logo .hsg-brand-wordmark {
  display:block;max-width:190px;min-width:0;overflow-wrap:normal;
  word-break:normal;text-wrap:balance;
}
.hsg-app.is-authenticated .hsg-sidebar-brand.hsg-brand-with-logo small {
  display:block;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:.76rem;font-weight:500;letter-spacing:.025em;margin-top:7px;
}
.hsg-app.is-authenticated .hsg-header {
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;
  gap:12px;min-height:54px;margin:0 0 18px;padding:0;border:0;
}
.hsg-app.is-authenticated .hsg-header-brand.hsg-brand-with-logo {
  display:inline-flex;align-items:center;gap:9px;min-width:0;max-width:100%;
  font:700 19px/1.2 Georgia,"Times New Roman",serif;
  color:#60451e;text-decoration:none;
}
.hsg-app.is-authenticated .hsg-header-section {
  display:block;min-width:0;margin:0 0 0 auto;
  color:#6c5b45;font-size:14px;font-weight:650;text-align:right;
}
.hsg-app.is-authenticated .hsg-internal-toolbar {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:10px;min-height:44px;margin:0 0 12px;padding:0;
}
.hsg-app.is-authenticated .hsg-internal-toolbar .hsg-header-account-actions {
  margin-left:auto;display:flex;align-items:center;justify-content:flex-end;
  gap:9px;min-width:0;
}
@media (max-width:1100px) and (min-width:901px) {
  .hsg-app.is-authenticated .hsg-content {padding-inline:20px}
}
@media (max-width:900px) {
  .hsg-app.is-authenticated .hsg-header {margin:0 0 10px;min-height:50px}
  .hsg-app.is-authenticated .hsg-header-brand.hsg-brand-with-logo {
    display:inline-flex;flex:1 1 auto;min-width:0;font-size:17px;
  }
  .hsg-app.is-authenticated .hsg-header-section {display:block;font-size:13px}
  .hsg-app.is-authenticated .hsg-internal-toolbar {margin:0 0 10px}
  .hsg-app.is-authenticated .hsg-internal-toolbar .hsg-header-account-actions {margin-left:auto}
}
@media (max-width:700px) {
  .hsg-app.is-authenticated .hsg-header-brand.hsg-brand-with-logo {flex:1 1 100%}
  .hsg-app.is-authenticated .hsg-header-section {flex:1 1 100%;margin-left:0;text-align:left}
  .hsg-app.is-authenticated .hsg-internal-toolbar {row-gap:8px}
  .hsg-app.is-authenticated .hsg-internal-toolbar .hsg-header-account-actions {
    flex:0 1 auto;min-width:0;margin-left:auto;
  }
}
@media (max-width:420px) {
  .hsg-app.is-authenticated .hsg-header-brand.hsg-brand-with-logo {font-size:15px}
}
@media (max-width:360px) {
  .hsg-app.is-authenticated .hsg-internal-toolbar {gap:6px}
  .hsg-app.is-authenticated .hsg-internal-toolbar .hsg-header-account-actions {gap:6px}
}
