/* Handicap@Netzwerk Messenger – Update 035 */
:root{--hn-bg:#eef2f5;--hn-panel:#fff;--hn-line:#d8dee6;--hn-text:#172033;--hn-muted:#64748b;--hn-accent:#0f4fd8;--hn-accent-soft:#e8efff;--hn-own:#d9fdd3;--hn-other:#fff;--hn-danger:#b42318;--hn-focus:#ffbf00;--hn-radius:16px}
html.dark-mode,body.dark-mode{--hn-bg:#0f172a;--hn-panel:#111827;--hn-line:#334155;--hn-text:#f8fafc;--hn-muted:#cbd5e1;--hn-accent:#6ea0ff;--hn-accent-soft:#1e3156;--hn-own:#124b33;--hn-other:#1f2937}
.handicap-page.is-community-started .handicap-mobile-community-entry{display:none!important}
.hn-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hn-messenger{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);height:clamp(620px,calc(100dvh - 250px),900px);min-height:620px;background:var(--hn-bg);border:1px solid var(--hn-line);border-radius:20px;overflow:hidden;color:var(--hn-text);font-family:Arial,Helvetica,sans-serif;box-shadow:0 16px 40px rgba(15,23,42,.12)}
.hn-sidebar{display:flex;flex-direction:column;min-width:0;background:var(--hn-panel);border-right:1px solid var(--hn-line)}
.hn-sidebar-head,.hn-chat-head,.hn-view-head{display:flex;align-items:center;gap:10px;min-height:66px;padding:10px 12px;background:var(--hn-panel);border-bottom:1px solid var(--hn-line)}
.hn-user{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.hn-user>div{display:flex;flex-direction:column;min-width:0}.hn-user strong,.hn-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hn-user small{color:var(--hn-muted);font-size:13px;margin-top:2px}
.hn-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#dfe7f2;color:#334155;font-size:21px;font-weight:800}.hn-avatar img,.hn-avatar.is-image{width:44px;height:44px;object-fit:cover;border-radius:50%}.hn-avatar-placeholder{background:#dbeafe}.hn-head-actions{display:flex;gap:4px}
.hn-icon-button,.hn-send{appearance:none;border:0;background:transparent;color:var(--hn-text);min-width:44px;min-height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:22px;cursor:pointer}.hn-icon-button:hover,.hn-icon-button:focus-visible,.hn-send:hover,.hn-send:focus-visible{background:var(--hn-accent-soft);outline:none}.hn-icon-button:focus-visible,.hn-send:focus-visible,.hn-tab:focus-visible,.hn-list-item:focus-visible,.hn-action:focus-visible,.hn-search:focus-visible,.hn-composer textarea:focus-visible{box-shadow:0 0 0 3px var(--hn-focus)}
.hn-search-wrap{padding:10px 12px 6px}.hn-search{width:100%;min-height:46px;border:1px solid var(--hn-line);border-radius:999px;background:var(--hn-bg);color:var(--hn-text);font:inherit;font-size:17px;padding:9px 16px;outline:none}
.hn-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:6px 10px 10px}.hn-tab{border:1px solid var(--hn-line);background:var(--hn-panel);color:var(--hn-text);border-radius:999px;padding:9px 8px;font-weight:800;cursor:pointer;min-height:42px}.hn-tab.is-active{background:var(--hn-accent);border-color:var(--hn-accent);color:#fff}
.hn-list{overflow:auto;overscroll-behavior:contain;flex:1;padding:3px 0 12px}.hn-list-section{padding:9px 13px 4px;color:var(--hn-muted);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.hn-list-item{width:100%;border:0;border-bottom:1px solid var(--hn-line);background:var(--hn-panel);color:var(--hn-text);display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:11px 13px;cursor:pointer;min-height:72px}.hn-list-item:hover,.hn-list-item.is-active{background:var(--hn-accent-soft)}.hn-list-item .hn-avatar{width:50px;height:50px;flex-basis:50px}.hn-list-copy{min-width:0}.hn-list-copy strong{display:block;font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hn-list-copy small{display:block;color:var(--hn-muted);font-size:14px;line-height:1.35;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hn-list-meta{font-size:12px;color:var(--hn-muted);align-self:start;padding-top:4px}.hn-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--hn-accent-soft);color:var(--hn-accent);padding:3px 8px;font-size:12px;font-weight:900}.hn-badge.pending{background:#fff4cc;color:#7c5700}.hn-badge.private{background:#f1e7ff;color:#6b21a8}
.hn-main{position:relative;min-width:0;display:flex;flex-direction:column;background:var(--hn-bg);overflow:hidden}.hn-empty{margin:auto;text-align:center;max-width:620px;padding:28px;color:var(--hn-text)}.hn-empty-logo{width:min(190px,38vw);height:auto;border-radius:28px}.hn-empty h1{font-size:clamp(28px,4vw,44px);margin:18px 0 8px}.hn-empty p{font-size:18px;line-height:1.5}.hn-a11y-hint{color:var(--hn-muted)}
.hn-chat-view,.hn-community-view,.hn-directory-view{position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;background:var(--hn-bg)}.hn-chat-view[hidden],.hn-community-view[hidden],.hn-directory-view[hidden]{display:none!important}.hn-chat-head{flex:0 0 auto}.hn-chat-title{min-width:0;flex:1;border:0;background:transparent;color:var(--hn-text);text-align:left;cursor:pointer;padding:4px 2px}.hn-chat-title strong,.hn-chat-title small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hn-chat-title strong{font-size:18px}.hn-chat-title small{color:var(--hn-muted);font-size:13px;margin-top:3px}.hn-mobile-back{display:none}
.hn-messages{flex:1;min-height:0;overflow:auto;padding:18px 5% 22px;scroll-behavior:smooth;overscroll-behavior:contain;background:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)),var(--hn-bg)}.hn-message-row{display:flex;margin:5px 0;align-items:flex-end;gap:7px}.hn-message-row.is-own{justify-content:flex-end}.hn-message-row.is-other{justify-content:flex-start}.hn-message-avatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;object-fit:cover;background:#dbeafe}.hn-message-bubble{position:relative;max-width:min(78%,720px);padding:8px 11px 7px;border-radius:12px;background:var(--hn-other);box-shadow:0 1px 1px rgba(15,23,42,.12);font-size:18px;line-height:1.42;overflow-wrap:anywhere}.hn-message-row.is-own .hn-message-bubble{background:var(--hn-own)}.hn-message-author{font-size:13px;font-weight:900;color:var(--hn-accent);margin-bottom:3px}.hn-message-body{white-space:pre-wrap}.hn-message-time{display:block;text-align:right;color:var(--hn-muted);font-size:11px;margin-top:4px}.hn-message-media img,.hn-message-media video{display:block;max-width:min(100%,520px);max-height:520px;border-radius:10px;object-fit:contain}.hn-message-media audio{width:min(100%,360px)}.hn-message-file{display:inline-flex;gap:8px;align-items:center;color:var(--hn-accent);font-weight:800}
.hn-composer{flex:0 0 auto;display:flex;align-items:flex-end;gap:6px;padding:9px 10px calc(9px + env(safe-area-inset-bottom));background:var(--hn-panel);border-top:1px solid var(--hn-line);z-index:20}.hn-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hn-compose-center{flex:1;min-width:0;border:1px solid var(--hn-line);border-radius:22px;background:var(--hn-panel);padding:3px 11px}.hn-composer textarea{display:block;width:100%;min-height:42px;max-height:150px;resize:none;border:0;background:transparent;color:var(--hn-text);font:inherit;font-size:19px;line-height:1.35;padding:8px 2px;outline:none}.hn-file-preview{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--hn-line);font-size:14px}.hn-file-preview span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hn-file-preview button{border:0;background:transparent;color:var(--hn-text);font-size:20px;cursor:pointer}.hn-send{background:var(--hn-accent);color:#fff;flex:0 0 48px;width:48px;height:48px}.hn-send:hover,.hn-send:focus-visible{background:var(--hn-accent)}
.hn-view-head{flex:0 0 auto}.hn-view-title{min-width:0;flex:1}.hn-view-title h2{margin:0;font-size:21px}.hn-view-title p{margin:3px 0 0;color:var(--hn-muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hn-community-content{overflow:auto;padding:20px;flex:1}.hn-community-hero{background:var(--hn-panel);border:1px solid var(--hn-line);border-radius:var(--hn-radius);padding:20px;margin-bottom:16px}.hn-community-hero h3{margin:0 0 8px;font-size:24px}.hn-community-hero p{font-size:17px;line-height:1.5}.hn-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.hn-action{border:0;border-radius:999px;padding:10px 16px;background:var(--hn-accent);color:#fff;font:inherit;font-weight:900;cursor:pointer;min-height:44px}.hn-action.secondary{background:var(--hn-panel);color:var(--hn-text);border:1px solid var(--hn-line)}.hn-action.danger{background:var(--hn-danger)}.hn-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.hn-group-card{border:1px solid var(--hn-line);border-radius:14px;background:var(--hn-panel);padding:14px;display:flex;gap:11px;align-items:center}.hn-group-card .hn-avatar{flex:0 0 44px}.hn-group-card-copy{min-width:0;flex:1}.hn-group-card-copy strong{display:block;font-size:17px}.hn-group-card-copy small{display:block;color:var(--hn-muted);margin-top:3px}.hn-info-box{border:2px solid var(--hn-accent);background:var(--hn-accent-soft);border-radius:14px;padding:16px;font-size:17px;line-height:1.5;margin-bottom:16px}
.hn-dialog-layer{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.58);display:flex;align-items:center;justify-content:center;padding:18px}.hn-dialog-layer[hidden]{display:none!important}.hn-dialog{width:min(680px,100%);max-height:min(86dvh,820px);overflow:auto;background:var(--hn-panel);color:var(--hn-text);border-radius:20px;border:1px solid var(--hn-line);box-shadow:0 24px 80px rgba(0,0,0,.3)}.hn-dialog>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;padding:13px 16px;background:var(--hn-panel);border-bottom:1px solid var(--hn-line)}.hn-dialog h2{margin:0;flex:1;font-size:22px}.hn-dialog-content{padding:18px}.hn-form{display:grid;gap:14px}.hn-form label{display:grid;gap:6px;font-weight:800}.hn-form input,.hn-form textarea,.hn-form select{width:100%;border:1px solid var(--hn-line);border-radius:12px;background:var(--hn-panel);color:var(--hn-text);font:inherit;font-size:17px;padding:11px 12px}.hn-form textarea{min-height:110px;resize:vertical}.hn-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hn-person-list{display:grid;gap:8px}.hn-person-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid var(--hn-line);border-radius:12px}.hn-person-row strong{font-size:16px}.hn-person-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.hn-small{border:1px solid var(--hn-line);border-radius:999px;background:var(--hn-panel);color:var(--hn-text);padding:7px 10px;font-weight:800;cursor:pointer}.hn-small.primary{background:var(--hn-accent);color:#fff;border-color:var(--hn-accent)}.hn-small.danger{color:#fff;background:var(--hn-danger);border-color:var(--hn-danger)}
.hn-keyboard-open .hn-messenger{height:var(--hn-visible-height,100dvh)!important;max-height:var(--hn-visible-height,100dvh)!important}.hn-keyboard-open .hn-chat-view{height:100%!important}.hn-recording [data-hn-record]{background:#dc2626;color:#fff;animation:hnPulse 1.2s infinite}@keyframes hnPulse{50%{transform:scale(1.08)}}
@media (max-width:900px){.hn-messenger{grid-template-columns:320px minmax(0,1fr);height:calc(100dvh - 175px);min-height:560px}.hn-message-bubble{max-width:84%}}
@media (max-width:720px){
  .handicap-page.is-community-started{padding:0!important;margin:0!important}.handicap-page.is-community-started .hn-messenger{border-radius:0;border-left:0;border-right:0}
  .hn-messenger{display:block;height:calc(var(--handicap-viewport-height,100dvh) - 102px);min-height:480px;position:relative;overflow:hidden}
  .hn-sidebar,.hn-main{position:absolute;inset:0;border:0}.hn-sidebar{z-index:2}.hn-main{z-index:3;transform:translateX(100%);transition:transform .18s ease}.hn-messenger.hn-mobile-detail .hn-main{transform:translateX(0)}.hn-messenger.hn-mobile-detail .hn-sidebar{visibility:hidden}.hn-mobile-back{display:inline-flex}.hn-sidebar-head,.hn-chat-head,.hn-view-head{min-height:62px}.hn-list-item{min-height:76px}.hn-messages{padding:13px 12px 20px}.hn-message-bubble{max-width:84%;font-size:18px}.hn-composer{gap:3px;padding-left:5px;padding-right:5px}.hn-icon-button{min-width:42px;min-height:42px}.hn-composer textarea{font-size:20px}.hn-community-content{padding:13px}.hn-group-grid{grid-template-columns:1fr}.hn-form-row{grid-template-columns:1fr}.hn-dialog-layer{align-items:flex-end;padding:0}.hn-dialog{width:100%;max-height:88dvh;border-radius:20px 20px 0 0}
}
@media (max-width:390px){.hn-tabs{gap:3px;padding-left:6px;padding-right:6px}.hn-tab{font-size:14px;padding-left:4px;padding-right:4px}.hn-head-actions .hn-icon-button{min-width:40px}.hn-message-bubble{max-width:88%}}
@media (prefers-reduced-motion:reduce){.hn-main,.hn-recording [data-hn-record]{transition:none!important;animation:none!important}.hn-messages{scroll-behavior:auto}}
@media (forced-colors:active){.hn-list-item,.hn-search,.hn-composer,.hn-dialog,.hn-group-card,.hn-community-hero{border:1px solid CanvasText}.hn-tab.is-active,.hn-action,.hn-send{forced-color-adjust:none}}

/* Update 036 – stabile Messenger-Aufteilung + Info Gruppe/Vorgruppe. */
@media (min-width:721px){
  .hn-messenger{
    display:flex!important;
    flex-direction:row!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .hn-sidebar{
    display:flex!important;
    visibility:visible!important;
    position:relative!important;
    inset:auto!important;
    flex:0 0 clamp(300px,28vw,370px)!important;
    width:clamp(300px,28vw,370px)!important;
    min-width:300px!important;
    max-width:370px!important;
    transform:none!important;
    overflow:hidden!important;
  }
  .hn-main{
    display:flex!important;
    position:relative!important;
    inset:auto!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    transform:none!important;
    overflow:hidden!important;
  }
  .hn-empty{
    width:min(100%,760px)!important;
    max-width:760px!important;
    min-width:0!important;
    margin:auto!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  .hn-empty h1,.hn-empty p{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
  }
}
.hn-global-info-intro{
  width:min(100%,860px);
  margin:0 auto 18px;
  padding:18px;
  border:2px solid var(--hn-accent);
  border-radius:16px;
  background:var(--hn-panel);
  color:var(--hn-text);
}
.hn-global-info-intro h3{margin:0 0 10px;font-size:22px;line-height:1.3}
.hn-global-info-intro p{margin:8px 0;font-size:17px;line-height:1.55}
.hn-global-info-image{display:block;width:min(100%,620px);height:auto;margin:14px auto 0;border-radius:12px}
.hn-load-error{margin:14px;padding:14px;border:2px solid #b42318;border-radius:12px;background:#fff2f0;color:#7a1710;font-weight:800;line-height:1.45}
html.dark-mode .hn-load-error,body.dark-mode .hn-load-error{background:#3a1717;color:#ffd9d5;border-color:#ff7a70}
@media (max-width:720px){
  .hn-sidebar{display:flex!important;visibility:visible!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .hn-messenger.hn-mobile-detail .hn-sidebar{visibility:hidden!important}
  .hn-global-info-intro{margin:0 0 14px;padding:14px}
}


/* Update 037 – Messenger-Start wie gewünscht: InfoGruppe zuerst,
   eigene Mitgliedschaften/Privatchats links; Suche und öffentliches
   Verzeichnis öffnen sich rechts. */
.hn-sidebar-tools{gap:8px!important}
.hn-user-compact{appearance:none;border:0;background:transparent;color:var(--hn-text);padding:0;cursor:pointer;text-align:left;min-width:0}
.hn-user-compact:hover,.hn-user-compact:focus-visible{outline:none;background:var(--hn-accent-soft);border-radius:12px}
.hn-user-compact .hn-avatar{width:40px;height:40px;flex-basis:40px}
.hn-user-label{display:flex;flex-direction:column;min-width:0}
.hn-user-label strong,.hn-user-label small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hn-list-empty{padding:18px;color:var(--hn-muted);line-height:1.45}
.hn-directory-view{position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;background:var(--hn-bg)}
.hn-directory-content{flex:1;min-height:0;overflow:auto;padding:18px}
.hn-directory-content>h3,[data-hn-search-results]>h3{margin:18px 0 10px;font-size:20px}
.hn-directory-content>h3:first-child{margin-top:0}
.hn-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.hn-directory-card{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid var(--hn-line);border-radius:14px;background:var(--hn-panel);padding:12px;min-width:0}
.hn-directory-copy{min-width:0}.hn-directory-copy strong{display:block;font-size:17px;line-height:1.3}.hn-directory-copy small{display:block;color:var(--hn-muted);margin-top:2px}.hn-directory-copy p{margin:6px 0 0;color:var(--hn-text);line-height:1.4}
.hn-directory-search{display:grid;gap:7px;margin-bottom:16px}.hn-directory-search label{font-weight:900}.hn-directory-search input{width:100%;min-height:48px;border:1px solid var(--hn-line);border-radius:999px;background:var(--hn-panel);color:var(--hn-text);font:inherit;font-size:18px;padding:10px 16px;outline:none}.hn-directory-search input:focus-visible{box-shadow:0 0 0 3px var(--hn-focus)}
.hn-settings-summary{display:flex;align-items:flex-start;gap:12px}.hn-settings-summary p{margin:5px 0 0;line-height:1.45}
@media(max-width:1050px) and (min-width:721px){
  .hn-user-label{display:none}
  .hn-sidebar .hn-head-actions{gap:2px}
}
@media(max-width:720px){
  .hn-directory-content{padding:13px}
  .hn-directory-grid{grid-template-columns:1fr}
  .hn-directory-card{grid-template-columns:48px minmax(0,1fr) auto}
  .hn-user-label{display:none}
  .hn-sidebar-tools .hn-head-actions{margin-left:auto}
}
@media(max-width:390px){
  .hn-sidebar-tools{padding-left:7px!important;padding-right:7px!important}
  .hn-sidebar-tools .hn-icon-button{min-width:40px;min-height:40px}
  .hn-directory-card{grid-template-columns:44px minmax(0,1fr)}
  .hn-directory-card>.hn-small{grid-column:2;justify-self:start}
}


/* Update 038 – neue Messenger-Sidebar darf von alten Handicap-Regeln
   niemals als fremdes <aside> ausgeblendet werden. */
body.handicap-member-area .hn-messenger > aside.hn-sidebar.handicap-sidebar{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
@media (min-width:721px){
  body.handicap-member-area .hn-messenger > aside.hn-sidebar.handicap-sidebar{
    position:relative!important;
    flex:0 0 clamp(300px,28vw,370px)!important;
    width:clamp(300px,28vw,370px)!important;
    min-width:300px!important;
    max-width:370px!important;
  }
}
@media (max-width:720px){
  body.handicap-member-area .hn-messenger > aside.hn-sidebar.handicap-sidebar{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body.handicap-member-area .hn-messenger.hn-mobile-detail > aside.hn-sidebar.handicap-sidebar{
    visibility:hidden!important;
  }
}

/* Update 039 – Community-Unteransicht, Zurück-Navigation und klare Verwaltungsbuttons. */
.hn-community-back[hidden],.hn-head-text-button[hidden]{display:none!important}
.hn-head-text-button{appearance:none;border:1px solid var(--hn-line);background:var(--hn-panel);color:var(--hn-text);border-radius:999px;min-height:38px;padding:7px 11px;font:inherit;font-size:13px;font-weight:900;cursor:pointer;white-space:nowrap}
.hn-head-text-button:hover,.hn-head-text-button:focus-visible{background:var(--hn-accent-soft);outline:none;box-shadow:0 0 0 3px var(--hn-focus)}
.hn-community-back{flex:0 0 auto}
.hn-list-section.hn-community-scope-title{font-size:14px;color:var(--hn-text);background:var(--hn-accent-soft);padding:10px 13px}
.hn-rules-preview{white-space:pre-wrap;line-height:1.5;padding:12px;border:1px solid var(--hn-line);border-radius:12px;background:var(--hn-bg)}
@media(max-width:980px){.hn-head-text-button{font-size:12px;padding:6px 9px}}
@media(max-width:720px){.hn-head-text-button{display:none!important}}

/* Symbolbedienung und Profilfenster */
.hn-icon-only-profile .hn-user-label{display:none!important}.hn-icon-only-profile{width:52px;min-width:52px;justify-content:center;padding:0}
[data-hn-symbol-action]{position:relative}.hn-icon-button[data-hn-show-label]::after{content:attr(data-hn-show-label);position:absolute;z-index:120;top:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 8px;border-radius:8px;background:var(--hn-text);color:var(--hn-panel);font-size:13px;font-weight:700;box-shadow:0 4px 18px rgba(0,0,0,.18);pointer-events:none}
.hn-symbol-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hn-dialog-symbol{border:1px solid var(--hn-line);background:var(--hn-panel);font-size:22px}.hn-save-symbol{font-size:24px}.hn-close-symbol{font-size:22px}
.hn-message-avatar-button,.hn-message-author-button{appearance:none;border:0;background:transparent;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer}.hn-message-avatar-button{align-self:flex-end;flex:0 0 auto;border-radius:50%}.hn-message-avatar-button:focus-visible,.hn-message-author-button:focus-visible{outline:3px solid var(--hn-focus);outline-offset:2px}.hn-message-author-button{text-align:left;font-weight:700}.hn-message-author-button:hover{text-decoration:underline}.hn-message-avatar-empty{width:38px;height:38px}
.hn-profile-frame-wrap{width:min(920px,90vw);height:min(78vh,760px);min-height:420px}.hn-profile-frame{width:100%;height:100%;border:0;border-radius:14px;background:#fff}
@media (max-width:680px){.hn-profile-frame-wrap{width:100%;height:72dvh;min-height:360px}}

/* Update 041 – Desktop-/Tablet-Gruppenkarten und echte Vollbildansicht auf Mobilgeräten. */
.hn-mobile-toolbar{display:none}
.hn-group-card{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  align-items:start;
  gap:10px 14px;
  min-height:190px;
  padding:16px;
}
.hn-group-card-title{
  grid-column:1/-1;
  display:block;
  font-size:18px;
  line-height:1.3;
}
.hn-group-card-media{
  grid-column:1;
  grid-row:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:0;
}
.hn-group-card .hn-group-card-avatar{
  width:78px;
  height:78px;
  flex:0 0 78px;
  border-radius:50%;
  overflow:hidden;
}
.hn-group-card .hn-group-card-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.hn-card-open-symbol{min-width:42px;min-height:42px;font-size:21px}
.hn-group-card-copy{
  grid-column:2;
  grid-row:2;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  min-height:126px;
}
.hn-group-card-copy small{
  margin:0;
  color:var(--hn-text);
  font-size:15px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}
.hn-group-open-desktop{
  display:block;
  width:min(190px,100%);
  min-height:42px;
  margin:auto auto 0;
  border:1px solid #d4aa00;
  border-radius:12px;
  background:#ffd51f;
  color:#111;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  padding:8px 18px;
}
.hn-group-open-desktop:hover,.hn-group-open-desktop:focus-visible{filter:brightness(1.04);outline:3px solid var(--hn-focus);outline-offset:2px}

@media (min-width:721px){
  .hn-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
}
@media (min-width:721px) and (max-width:1180px){
  .hn-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:720px){
  /* Geöffnete Community, Gruppe oder privater Chat liegt über der gesamten App-/Browserfläche. */
  .hn-messenger.hn-mobile-detail{
    position:fixed!important;
    inset:0!important;
    z-index:10000!important;
    width:100vw!important;
    max-width:none!important;
    height:100dvh!important;
    min-height:100dvh!important;
    border:0!important;
    border-radius:0!important;
    background:var(--hn-bg)!important;
  }
  .hn-messenger.hn-mobile-detail .hn-main{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    transform:none!important;
    background:var(--hn-bg)!important;
  }
  .hn-messenger.hn-mobile-detail .hn-sidebar{display:none!important;visibility:hidden!important}
  .hn-mobile-toolbar{
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    gap:18px;
    min-height:64px;
    padding:8px 12px;
    border-bottom:1px solid var(--hn-line);
    background:var(--hn-panel);
    z-index:20;
  }
  .hn-mobile-toolbar .hn-icon-button{width:46px;min-width:46px;height:46px;min-height:46px;border-radius:50%;font-size:23px}
  .hn-chat-view,.hn-community-view,.hn-directory-view{position:relative!important;inset:auto!important;flex:1 1 auto!important;min-height:0!important}
  .hn-chat-view{display:flex;flex-direction:column}
  .hn-chat-head{min-height:64px;padding:8px 12px}
  .hn-chat-head .hn-mobile-back,.hn-chat-head [data-hn-chat-members],.hn-chat-head [data-hn-chat-settings]{display:none!important}
  .hn-view-head .hn-mobile-back{display:none!important}
  .hn-group-card{grid-template-columns:76px minmax(0,1fr);min-height:150px;padding:13px;gap:8px 12px}
  .hn-group-card .hn-group-card-avatar{width:64px;height:64px;flex-basis:64px}
  .hn-group-card-title{font-size:18px}
  .hn-group-card-copy small{font-size:15px;line-height:1.4}
  .hn-group-open-desktop{display:none!important}
  .hn-card-open-symbol{display:inline-flex!important;margin-top:2px}
  .hn-group-join{font-size:0;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;align-items:center;justify-content:center}
  .hn-group-join::before{content:'＋';font-size:24px;line-height:1}
  .hn-community-hero .hn-action{font-size:0;width:46px;height:46px;min-width:46px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
  .hn-community-hero [data-community-apply]::before{content:'＋';font-size:24px}
  .hn-community-hero [data-community-info-room]::before{content:'↗';font-size:22px}
  .hn-dialog .hn-action,.hn-dialog .hn-small{min-height:44px}
}


/* HN-03 – Kennzeichnung offiziell / öffentlich / privat */
.hn-entity-name{font-weight:900}
.hn-name-community{color:#5f96ff}
.hn-name-group{color:#ffd52a}
.hn-name-private{color:#ff5b5b}
.hn-entity-status{color:var(--hn-text);font-size:.72em;font-weight:800;white-space:nowrap;margin-left:8px}
.hn-entity-separator{color:var(--hn-muted);font-weight:700}
.hn-official-star{appearance:none;border:0;background:transparent;color:#ffd52a;padding:0 1px;margin:0 0 0 5px;font:inherit;font-size:1em;line-height:1;vertical-align:baseline;cursor:pointer}
.hn-official-star:hover,.hn-official-star:focus-visible{transform:scale(1.08);outline:none;text-shadow:0 0 8px rgba(255,213,42,.45)}
.hn-official-star:focus-visible{box-shadow:0 0 0 2px var(--hn-focus);border-radius:4px}
.hn-community-scope-title{text-transform:none!important;letter-spacing:0!important;font-size:16px!important}
.hn-view-title h2 .hn-entity-name{font-size:inherit}
.hn-view-title h2 .hn-entity-status{font-size:13px;margin-left:10px}
.hn-community-actions-only{padding:16px 18px;margin-bottom:14px}
.hn-community-primary-actions{margin-top:0;align-items:center}
.hn-community-primary-actions>.hn-action,.hn-community-primary-actions>.hn-membership-state{box-sizing:border-box;width:220px;min-width:220px;height:46px;min-height:46px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1;font-weight:900}
.hn-membership-state{cursor:default}
.hn-group-card-title{grid-column:1/-1;display:block;min-width:0;font-size:17px}
.hn-group-card-title .hn-entity-status{font-size:12px}
.hn-list-copy strong .hn-entity-status{font-size:12px}
.hn-list-copy strong .hn-official-star{font-size:16px}
@media (max-width:720px){
 .hn-view-title h2 .hn-entity-status,.hn-group-card-title .hn-entity-status{font-size:11px}
 .hn-community-primary-actions>.hn-action,.hn-community-primary-actions>.hn-membership-state{width:46px;min-width:46px;height:46px;overflow:hidden;text-indent:-9999px;position:relative;padding:0}
 .hn-community-primary-actions>.hn-membership-state:before{content:"✓";text-indent:0;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px}
 .hn-community-primary-actions>[data-community-info-room]:before{content:"↗";text-indent:0;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px}
}

/* HN-04 – reduzierte Community-Liste, Vorgruppe nur für Anwärter/Admins und vollständige Post-Köpfe. */
.hn-community-scope-title .hn-entity-status,
.hn-community-scope-title .hn-entity-separator{display:none!important}
.hn-list-item .hn-list-copy small:empty{display:none!important}
.hn-list-item .hn-list-copy strong{display:flex;align-items:center;gap:6px;min-width:0}
.hn-list-item .hn-list-copy strong .hn-entity-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.hn-message-row{align-items:flex-end;gap:8px}
.hn-message-stack{display:flex;flex-direction:column;max-width:min(78%,720px);min-width:0}
.hn-message-row.is-own .hn-message-stack{align-items:flex-end}
.hn-message-row.is-other .hn-message-stack{align-items:flex-start}
.hn-message-meta{display:flex;align-items:baseline;gap:8px;width:100%;margin:0 2px 4px}
.hn-message-row.is-own .hn-message-meta{justify-content:flex-end}
.hn-message-row.is-other .hn-message-meta{justify-content:flex-start}
.hn-message-author{margin:0;font-size:13px;font-weight:900;color:var(--hn-accent)}
.hn-message-row.is-own .hn-message-author{color:var(--hn-text)}
.hn-message-time{display:inline-block;text-align:inherit;color:var(--hn-muted);font-size:11px;margin:0;white-space:nowrap}
.hn-message-stack .hn-message-bubble{max-width:100%;width:auto}
.hn-message-avatar-button{align-self:flex-end;margin-bottom:1px}
.hn-message-avatar-empty{display:inline-flex;align-items:center;justify-content:center}

@media(max-width:720px){
  .hn-message-stack{max-width:calc(100% - 48px)}
  .hn-message-avatar{width:34px;height:34px;flex-basis:34px}
  .hn-message-avatar-empty{width:34px;height:34px}
}

/* HN-06: Übersichtsnamen vollständig, Status ausschließlich in zweiter Zeile */
.hn-list-item .hn-list-copy strong{align-items:flex-start;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}
.hn-list-item .hn-list-copy strong .hn-entity-name{min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.hn-list-item .hn-list-copy small{white-space:normal;overflow:visible;text-overflow:clip}


/* HN-07 – öffentliche Übersicht und Community-Gruppenkarten vereinheitlicht. */
.hn-community-description:empty{display:none!important}

/* In beiden Ansichten: Name oben, Bild links, Text rechts, Öffnen mittig unten. */
.hn-group-card,
.hn-directory-group-card{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  grid-template-rows:auto 1fr!important;
  align-items:start!important;
  column-gap:14px!important;
  row-gap:10px!important;
  min-height:218px!important;
  padding:14px!important;
}
.hn-group-card-title{
  grid-column:1/-1!important;
  grid-row:1!important;
  display:block!important;
  min-width:0!important;
  margin:0!important;
}
.hn-group-card-media{
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:0!important;
}
.hn-group-card .hn-group-card-avatar,
.hn-directory-group-card .hn-group-card-avatar{
  width:72px!important;
  height:72px!important;
  flex:0 0 72px!important;
  border-radius:50%!important;
  overflow:hidden!important;
}
.hn-group-card .hn-group-card-avatar img,
.hn-directory-group-card .hn-group-card-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
  display:block!important;
}
.hn-group-card-copy{
  grid-column:2!important;
  grid-row:2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
  min-height:154px!important;
}
.hn-group-card-copy small{
  display:block!important;
  margin:0!important;
  color:var(--hn-text)!important;
  font-size:15px!important;
  line-height:1.45!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.hn-group-open-desktop,
.hn-directory-group-open{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  width:auto!important;
  min-width:112px!important;
  max-width:max-content!important;
  height:42px!important;
  min-height:42px!important;
  margin:auto auto 0!important;
  padding:0 18px!important;
  border:1px solid #d4aa00!important;
  border-radius:12px!important;
  background:#ffd51f!important;
  color:#111!important;
  font:inherit!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.hn-card-open-symbol{display:none!important}

/* Öffentliche Community-Liste: echtes rundes Logo und saubere Karte. */
.hn-directory-community-list{display:grid;gap:12px}
.hn-directory-community-card{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  border:1px solid var(--hn-line);
  border-radius:14px;
  background:var(--hn-panel);
  padding:14px;
  min-width:0;
  cursor:pointer;
}
.hn-directory-community-avatar{
  width:64px!important;
  height:64px!important;
  flex:0 0 64px!important;
  border-radius:50%!important;
  overflow:hidden!important;
}
.hn-directory-community-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
  display:block!important;
}
.hn-directory-community-card .hn-directory-copy strong{display:block;font-size:18px;line-height:1.3}
.hn-directory-community-card .hn-directory-copy p{margin:5px 0 0;line-height:1.4;color:var(--hn-text)}
.hn-directory-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  height:42px;
  padding:0 16px;
  border:1px solid var(--hn-accent);
  border-radius:999px;
  background:var(--hn-accent);
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.hn-directory-open:hover,.hn-directory-open:focus-visible,
.hn-group-open-desktop:hover,.hn-group-open-desktop:focus-visible{
  filter:brightness(1.04);
  outline:3px solid var(--hn-focus);
  outline-offset:2px;
}

/* Gruppen einer Community werden in der öffentlichen Übersicht nicht mit
   selbstständigen Gruppen vermischt. Beide Gruppendarstellungen verwenden
   exakt dasselbe Kartenraster. */
.hn-directory-community-groups,
.hn-directory-standalone-groups{
  align-items:stretch!important;
}

@media (min-width:721px){
  .hn-directory-community-groups,
  .hn-directory-standalone-groups{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (min-width:721px) and (max-width:1180px){
  .hn-directory-community-groups,
  .hn-directory-standalone-groups{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:720px){
  .hn-directory-community-card{
    grid-template-columns:58px minmax(0,1fr) auto;
    gap:10px;
    padding:12px;
  }
  .hn-directory-community-avatar{
    width:52px!important;
    height:52px!important;
    flex-basis:52px!important;
  }
  .hn-directory-community-card .hn-directory-copy p{display:none}
  .hn-directory-open{min-width:78px;height:40px;padding:0 13px;font-size:14px}
  .hn-group-card,
  .hn-directory-group-card{
    grid-template-columns:76px minmax(0,1fr)!important;
    min-height:196px!important;
    padding:13px!important;
    gap:8px 12px!important;
  }
  .hn-group-card .hn-group-card-avatar,
  .hn-directory-group-card .hn-group-card-avatar{
    width:64px!important;
    height:64px!important;
    flex-basis:64px!important;
  }
  .hn-group-card-copy{min-height:138px!important}
  .hn-group-open-desktop,
  .hn-directory-group-open{
    display:inline-flex!important;
    min-width:112px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 18px!important;
    font-size:15px!important;
  }
}


/* HN-08 – persönliche Einstellungen als kurze Ja/Nein-Schiebeschalter. */
.hn-personal-settings-compact{gap:8px}
.hn-toggle-row{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:54px;
  padding:6px 0;
  font-weight:900;
}
.hn-switch{display:inline-flex;align-items:center;gap:9px;position:relative}
.hn-switch input{
  position:absolute;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
}
.hn-switch-track{
  position:relative;
  width:54px;
  height:30px;
  flex:0 0 54px;
  border-radius:999px;
  background:#64748b;
  border:1px solid var(--hn-line);
  transition:background .16s ease;
}
.hn-switch-track::after{
  content:"";
  position:absolute;
  top:3px;left:3px;
  width:22px;height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.3);
  transition:transform .16s ease;
}
.hn-switch input:checked + .hn-switch-track{background:var(--hn-accent)}
.hn-switch input:checked + .hn-switch-track::after{transform:translateX(24px)}
.hn-switch input:focus-visible + .hn-switch-track{box-shadow:0 0 0 3px var(--hn-focus)}
.hn-switch-state{min-width:32px;text-align:left;font-weight:900}
[data-hn-current-user]{cursor:pointer}


/* HN-11 – Smartphone/App: immer genau eine Vollbreiten-Ansicht.
   Mitgliedschaften/Community-Gruppen = Liste über die ganze Breite.
   Chat/Info/Verzeichnis = Inhalt über die ganze Breite. */
@media (max-width:720px){
  .hn-messenger{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  .hn-sidebar,
  .hn-main{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    border-left:0!important;
    border-right:0!important;
  }

  /* Start-/Listenansicht: rechte Seite vollständig weg. */
  .hn-messenger.hn-mobile-list-mode .hn-sidebar{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    z-index:4!important;
  }
  .hn-messenger.hn-mobile-list-mode .hn-main{
    display:none!important;
    visibility:hidden!important;
    transform:none!important;
    pointer-events:none!important;
  }
  .hn-messenger.hn-mobile-list-mode .hn-list{
    width:100%!important;
    max-width:100%!important;
  }
  .hn-messenger.hn-mobile-list-mode .hn-list-item{
    width:100%!important;
    max-width:100%!important;
  }

  /* Geöffneter Chat, InfoGruppe und öffentliche Übersicht: volle Breite. */
  .hn-messenger.hn-mobile-detail .hn-sidebar{
    display:none!important;
    visibility:hidden!important;
  }
  .hn-messenger.hn-mobile-detail .hn-main{
    display:flex!important;
    visibility:visible!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    transform:none!important;
    z-index:5!important;
  }
  .hn-chat-view,
  .hn-community-view,
  .hn-directory-view,
  .hn-empty{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .hn-chat-view,
  .hn-directory-view{
    inset:0!important;
  }
  .hn-global-info-intro{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
}


/* ANBITA-REPAIR-13 – Symbolhinweise in Hell/Dunkel eindeutig lesbar. */
.hn-icon-button[data-hn-show-label]::after{
    background:#ffffff!important;
    color:#111111!important;
    -webkit-text-fill-color:#111111!important;
    border:1px solid rgba(17,17,17,.24)!important;
    box-shadow:0 4px 18px rgba(0,0,0,.22)!important;
}
html.dark-mode .hn-icon-button[data-hn-show-label]::after,
body.dark-mode .hn-icon-button[data-hn-show-label]::after,
html[data-theme="dark"] .hn-icon-button[data-hn-show-label]::after,
body[data-theme="dark"] .hn-icon-button[data-hn-show-label]::after{
    background:#111827!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    border-color:rgba(255,255,255,.35)!important;
    box-shadow:0 4px 18px rgba(0,0,0,.48)!important;
}


/* ANBITA-REPAIR-16 – Messenger Begrüßung rechts:
   nur PC/Tablet/Laptop im Browser, mittig unter dem Messenger-Logo. */
.hn-messenger-welcome{
    width:min(720px,92%)!important;
    max-width:720px!important;
    margin:auto!important;
    padding:28px 28px 34px!important;
    text-align:center!important;
}
.hn-messenger-welcome .hn-empty-logo{
    display:block!important;
    width:min(210px,34vw)!important;
    height:auto!important;
    margin:0 auto!important;
    object-fit:contain!important;
}
.hn-messenger-welcome h1{
    margin:18px 0 18px!important;
    text-align:center!important;
}
.hn-messenger-welcome-copy{
    max-width:680px!important;
    margin:0 auto!important;
    text-align:center!important;
}
.hn-messenger-welcome-copy p{
    margin:0 0 14px!important;
    font-size:18px!important;
    line-height:1.55!important;
    text-align:center!important;
}
.hn-messenger-welcome-copy p:last-child{
    margin-bottom:0!important;
}
/* Smartphone und installierte App: diese rechte Begrüßungsseite nicht anzeigen. */
@media (max-width:760px){
    .hn-messenger-welcome{
        display:none!important;
    }
}
body.anbita-app .hn-messenger-welcome,
html.anbita-app-mode .hn-messenger-welcome{
    display:none!important;
}


/* ANBITA-REPAIR-19 – sichtbare Messenger-Startseite nach Klick auf Messenger */
@media (min-width:761px){
    .hn-main > .hn-messenger-welcome[data-hn-empty]{
        display:flex!important;
        flex-direction:column!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
        max-width:none!important;
        min-height:100%!important;
        margin:0!important;
        padding:34px 42px!important;
        text-align:center!important;
        box-sizing:border-box!important;
    }
    .hn-main > .hn-messenger-welcome .hn-messenger-welcome-logo{
        display:block!important;
        width:240px!important;
        max-width:44%!important;
        height:auto!important;
        margin:0 auto 18px!important;
        object-fit:contain!important;
        object-position:center!important;
    }
    .hn-main > .hn-messenger-welcome h1{
        width:100%!important;
        margin:0 0 18px!important;
        text-align:center!important;
    }
    .hn-main > .hn-messenger-welcome .hn-messenger-welcome-copy{
        width:100%!important;
        max-width:760px!important;
        margin:0 auto!important;
        text-align:center!important;
    }
    .hn-main > .hn-messenger-welcome .hn-messenger-welcome-copy p{
        width:100%!important;
        margin:0 auto 15px!important;
        font-size:18px!important;
        line-height:1.55!important;
        text-align:center!important;
    }
    .hn-main > .hn-messenger-welcome .hn-messenger-welcome-copy p:last-child{
        margin-bottom:0!important;
    }
}
@media (max-width:760px){
    .hn-main > .hn-messenger-welcome[data-hn-empty]{
        display:none!important;
    }
}
body.anbita-app .hn-main > .hn-messenger-welcome[data-hn-empty]{
    display:none!important;
}


/* ANBITA-MESSENGER-KOMPLETT-03 – Vorschaukarten für Links/YouTube/Facebook */
.hn-link-preview{
  display:grid;
  grid-template-columns:minmax(0,180px) minmax(0,1fr);
  width:min(100%,560px);
  margin-top:9px;
  overflow:hidden;
  border:1px solid var(--hn-line);
  border-radius:12px;
  background:var(--hn-panel);
  color:var(--hn-text);
  text-decoration:none;
  box-shadow:0 4px 14px rgba(15,23,42,.14);
}
.hn-link-preview:hover,
.hn-link-preview:focus-visible{
  border-color:var(--hn-accent);
  text-decoration:none;
}
.hn-link-preview-image{
  display:block;
  width:100%;
  height:100%;
  min-height:118px;
  max-height:190px;
  object-fit:cover;
  background:#0f172a;
}
.hn-link-preview-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-width:0;
  padding:12px 14px;
}
.hn-link-preview-copy small{
  color:var(--hn-muted);
  font-size:12px;
  font-weight:800;
  text-transform:none;
}
.hn-link-preview-copy strong{
  color:var(--hn-text);
  font-size:16px;
  line-height:1.3;
}
.hn-link-preview-copy>span{
  color:var(--hn-muted);
  font-size:14px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hn-facebook-preview{
  width:min(100%,520px);
  margin-top:9px;
}
.hn-facebook-frame-wrap{
  position:relative;
  width:100%;
  min-height:300px;
  overflow:hidden;
  border:1px solid var(--hn-line);
  border-radius:12px;
  background:#fff;
}
.hn-facebook-frame{
  display:block;
  width:100%;
  min-height:480px;
  border:0;
  background:#fff;
}
.hn-preview-open{
  display:inline-flex;
  margin-top:7px;
  color:var(--hn-accent);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
.hn-preview-open:hover,
.hn-preview-open:focus-visible{
  text-decoration:underline;
}
@media(max-width:700px){
  .hn-message-bubble{
    max-width:min(88%,100%);
  }
  .hn-link-preview{
    grid-template-columns:1fr;
    width:100%;
  }
  .hn-link-preview-image{
    aspect-ratio:16/9;
    min-height:0;
    max-height:none;
  }
  .hn-facebook-preview{
    width:100%;
  }
  .hn-facebook-frame-wrap{
    min-height:260px;
  }
  .hn-facebook-frame{
    min-height:430px;
  }
}

/* ANBITA-MESSENGER-UPDATE-04 – eigenständige Smartphone-/Mobile-/App-Ansicht */
body.messenger-mobile-ui{
  margin:0!important;
  overflow:hidden!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  background:var(--hn-bg)!important;
}
body.messenger-mobile-ui .site-header,
body.messenger-mobile-ui .site-footer,
body.messenger-mobile-ui .skip-link,
body.messenger-mobile-ui .welcome-row,
body.messenger-mobile-ui .utility-bar{
  display:none!important;
}
body.messenger-mobile-ui .site-shell,
body.messenger-mobile-ui .layout-grid,
body.messenger-mobile-ui .main-panel,
body.messenger-mobile-ui .handicap-page,
body.messenger-mobile-ui .handicap-page.is-community-started{
  width:100vw!important;
  max-width:none!important;
  min-width:0!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
body.messenger-mobile-ui .handicap-mobile-community-entry,
body.messenger-mobile-ui .handicap-desktop-guest-entry{
  display:none!important;
}
body.messenger-mobile-ui .hn-messenger{
  position:fixed!important;
  inset:0!important;
  z-index:10000!important;
  display:block!important;
  width:100vw!important;
  max-width:none!important;
  min-width:0!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:none!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  background:var(--hn-bg)!important;
}
body.messenger-mobile-ui .hn-mobile-toolbar{
  position:absolute!important;
  inset:0 0 auto 0!important;
  z-index:80!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  height:62px!important;
  min-height:62px!important;
  padding:7px max(6px,env(safe-area-inset-right)) 7px max(6px,env(safe-area-inset-left))!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  background:var(--hn-panel)!important;
  border-bottom:1px solid var(--hn-line)!important;
  overscroll-behavior-x:contain!important;
}
body.messenger-mobile-ui .hn-mobile-toolbar::-webkit-scrollbar{display:none!important}
body.messenger-mobile-ui .hn-mobile-toolbar .hn-icon-button{
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  border-radius:50%!important;
  font-size:20px!important;
}
body.messenger-mobile-ui .hn-mobile-profile{
  padding:0!important;
  overflow:hidden!important;
}
body.messenger-mobile-ui .hn-mobile-profile .hn-avatar,
body.messenger-mobile-ui .hn-mobile-profile-avatar,
body.messenger-mobile-ui .hn-mobile-profile-avatar img{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  flex-basis:38px!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
body.messenger-mobile-ui .hn-sidebar,
body.messenger-mobile-ui .hn-main{
  position:absolute!important;
  top:62px!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  transform:none!important;
  background:var(--hn-bg)!important;
  overflow:hidden!important;
}
body.messenger-mobile-ui .hn-sidebar{
  z-index:20!important;
  display:flex!important;
  visibility:visible!important;
  flex-direction:column!important;
}
body.messenger-mobile-ui .hn-main{
  z-index:30!important;
  display:none!important;
}
body.messenger-mobile-ui .hn-messenger.hn-mobile-list-mode .hn-sidebar{
  display:flex!important;
  visibility:visible!important;
}
body.messenger-mobile-ui .hn-messenger.hn-mobile-list-mode .hn-main{
  display:none!important;
}
body.messenger-mobile-ui .hn-messenger.hn-mobile-detail .hn-sidebar{
  display:none!important;
  visibility:hidden!important;
}
body.messenger-mobile-ui .hn-messenger.hn-mobile-detail .hn-main{
  display:flex!important;
  visibility:visible!important;
  flex-direction:column!important;
}
body.messenger-mobile-ui .hn-sidebar-head{
  display:none!important;
}
body.messenger-mobile-ui .hn-list{
  flex:1 1 auto!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0 0 max(12px,env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;
  background:var(--hn-panel)!important;
}
body.messenger-mobile-ui .hn-list-item{
  width:100%!important;
  min-height:74px!important;
  padding:11px 13px!important;
}
body.messenger-mobile-ui .hn-chat-view,
body.messenger-mobile-ui .hn-community-view,
body.messenger-mobile-ui .hn-directory-view{
  position:absolute!important;
  inset:0!important;
  display:flex;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  flex-direction:column!important;
  background:var(--hn-bg)!important;
}
body.messenger-mobile-ui .hn-chat-view[hidden],
body.messenger-mobile-ui .hn-community-view[hidden],
body.messenger-mobile-ui .hn-directory-view[hidden]{display:none!important}
/* Auf Mobilgeräten ist oberhalb des Inhalts ausschließlich die feste Symbolleiste sichtbar. */
body.messenger-mobile-ui .hn-chat-head,
body.messenger-mobile-ui .hn-view-head{
  display:none!important;
}
body.messenger-mobile-ui .hn-directory-content,
body.messenger-mobile-ui .hn-community-content{
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  padding:14px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
body.messenger-mobile-ui .hn-directory-grid,
body.messenger-mobile-ui .hn-group-grid,
body.messenger-mobile-ui .hn-directory-community-list,
body.messenger-mobile-ui .hn-directory-standalone-groups{
  grid-template-columns:1fr!important;
  width:100%!important;
}
body.messenger-mobile-ui .hn-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  padding:12px 10px 18px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
body.messenger-mobile-ui .hn-message-bubble{
  max-width:88%!important;
  font-size:17px!important;
}
body.messenger-mobile-ui .hn-composer{
  position:relative!important;
  bottom:auto!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-height:58px!important;
  gap:3px!important;
  padding:6px max(5px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))!important;
  background:var(--hn-panel)!important;
  border-top:1px solid var(--hn-line)!important;
  z-index:45!important;
}
body.messenger-mobile-ui .hn-compose-center{
  min-width:0!important;
  flex:1 1 auto!important;
}
body.messenger-mobile-ui .hn-composer textarea{
  width:100%!important;
  min-height:42px!important;
  max-height:min(150px,28dvh)!important;
  overflow-y:auto!important;
  font-size:18px!important;
  line-height:1.35!important;
  resize:none!important;
}
body.messenger-mobile-ui .hn-composer .hn-icon-button,
body.messenger-mobile-ui .hn-composer .hn-send,
body.messenger-mobile-ui .hn-composer .hn-attach{
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
}
body.messenger-mobile-ui .hn-global-info-mode .hn-composer{
  display:none!important;
}
body.messenger-mobile-ui .hn-global-info-mode .hn-messages{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px 14px max(24px,env(safe-area-inset-bottom))!important;
}
body.messenger-mobile-ui .hn-global-info-intro{
  width:100%!important;
  max-width:760px!important;
  margin:auto!important;
  padding:20px 16px!important;
  border-radius:18px!important;
  text-align:center!important;
}
body.messenger-mobile-ui .hn-global-info-intro h3,
body.messenger-mobile-ui .hn-global-info-intro p{
  text-align:center!important;
}
body.messenger-mobile-ui .hn-info-overview-action{
  display:flex!important;
  justify-content:center!important;
  margin-top:28px!important;
}
body.messenger-mobile-ui .hn-info-overview-action .hn-action{
  min-width:180px!important;
  min-height:48px!important;
}
body.messenger-mobile-ui .hn-join-request{
  margin-top:10px!important;
  padding:10px!important;
  border:1px solid var(--hn-line)!important;
  border-radius:12px!important;
  background:var(--hn-accent-soft)!important;
}
body.messenger-mobile-ui .hn-join-request-actions{
  display:flex!important;
  gap:10px!important;
  margin-top:9px!important;
  flex-wrap:wrap!important;
}
body.messenger-mobile-ui .hn-join-request-actions .hn-small{
  min-width:88px!important;
  min-height:42px!important;
}
/* Virtuelle Tastatur: Schreibzeile bleibt sichtbar und wächst bei mehreren Zeilen nach oben. */
body.messenger-mobile-ui.hn-keyboard-open .hn-messenger{
  top:0!important;
  bottom:auto!important;
  height:var(--hn-visible-height,100dvh)!important;
  min-height:0!important;
  max-height:var(--hn-visible-height,100dvh)!important;
}
body.messenger-mobile-ui.hn-keyboard-open .hn-chat-view{
  height:100%!important;
  min-height:0!important;
}
body.messenger-mobile-ui.hn-keyboard-open .hn-composer{
  position:relative!important;
  flex:0 0 auto!important;
}
@media (max-width:390px){
  body.messenger-mobile-ui .hn-mobile-toolbar{gap:2px!important;padding-left:4px!important;padding-right:4px!important}
  body.messenger-mobile-ui .hn-mobile-toolbar .hn-icon-button{flex-basis:40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;font-size:18px!important}
  body.messenger-mobile-ui .hn-composer .hn-icon-button,
  body.messenger-mobile-ui .hn-composer .hn-send,
  body.messenger-mobile-ui .hn-composer .hn-attach{flex-basis:38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important}
  body.messenger-mobile-ui .hn-composer textarea{font-size:17px!important}
}
@media (max-width:360px){
  body.messenger-mobile-ui .hn-mobile-toolbar .hn-icon-button{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;font-size:16px!important}
  body.messenger-mobile-ui .hn-mobile-toolbar{gap:1px!important;padding-left:3px!important;padding-right:3px!important}
  body.messenger-mobile-ui .hn-mobile-profile .hn-avatar,
  body.messenger-mobile-ui .hn-mobile-profile-avatar,
  body.messenger-mobile-ui .hn-mobile-profile-avatar img{width:33px!important;height:33px!important;min-width:33px!important;flex-basis:33px!important}
}
