/* ==========================================================
   ET-HOST · UNIFIED COMMUNITY UI V1 · 2026-10-07
   Final structural layer. Accessibility CSS is loaded afterwards.
   ========================================================== */

:root{
  --ui-radius:16px;
  --ui-radius-sm:11px;
  --ui-border:#e1e6e9;
  --ui-surface:#fff;
  --ui-soft:#f7f9fa;
  --ui-ink:#25323a;
  --ui-muted:#78848b;
  --ui-shadow:0 10px 28px rgba(24,37,44,.055);
}

/* -------- Profile + Community: one visual system -------- */
.profile-page .profile2-shell,
.profile-page .member2-shell{
  width:min(1120px,calc(100% - 28px))!important;
  margin:20px auto 28px!important;
}
.profile-page .profile2-topbar{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
  margin-bottom:14px!important;
  padding:10px!important;
  border:1px solid var(--ui-border)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:var(--ui-shadow)!important;
}
.profile-page .profile2-layout,
.profile-page .profile2-public-layout{
  grid-template-columns:260px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.profile-page .profile2-summary,
.profile-page .profile2-card,
.profile-page .profile2-hero,
.profile-page .member2-head,
.profile-page .member2-body{
  border:1px solid var(--ui-border)!important;
  border-radius:var(--ui-radius)!important;
  background:var(--ui-surface)!important;
  box-shadow:var(--ui-shadow)!important;
}
.profile-page .profile2-main,
.profile-page .profile2-public-main{
  min-width:0!important;
  display:grid!important;
  gap:14px!important;
}
.profile-page .profile2-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.profile-page .profile2-card-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.profile-page .profile2-actions,
.profile-page .button-row,
.profile-page .profile2-friend-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
.profile-page :is(.profile2-card,.profile2-summary,.member2-body) :is(.btn,button,input,select,textarea){
  max-width:100%!important;
}

/* Members directory */
.member2-shell{
  width:min(1120px,calc(100% - 28px))!important;
  margin:20px auto 28px!important;
}
.member2-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
.member2-grid > *{
  min-width:0!important;
  border:1px solid var(--ui-border)!important;
  border-radius:var(--ui-radius)!important;
  background:#fff!important;
  box-shadow:var(--ui-shadow)!important;
}
.member2-open{
  min-height:38px!important;
  border-radius:10px!important;
}

/* -------- Online list: compact software-style cards -------- */
.chat-page .user-panel{
  scrollbar-gutter:stable!important;
}
.chat-page #onlineUsers{
  display:grid!important;
  gap:6px!important;
  padding:8px!important;
}
.chat-page .online-user-card{
  position:relative!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  gap:10px!important;
  min-height:58px!important;
  padding:8px 9px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.58)!important;
  cursor:pointer!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
.chat-page .online-user-card:hover{
  background:#fff!important;
  border-color:#e1e6e9!important;
  transform:translateY(-1px)!important;
}
.chat-page .online-user-card[data-is-friend="1"]{
  background:linear-gradient(135deg,rgba(255,249,226,.9),rgba(255,255,255,.9))!important;
  border-color:#f0dfad!important;
}
.chat-page .online-user-card[data-birthday-today="1"]::after{
  content:"🎂";
  position:absolute;
  right:8px;
  top:7px;
  font-size:.78rem;
}
.chat-page .online-user-card.is-ignored-by-me{
  opacity:.62!important;
}
.chat-page .online-user-card > div{
  min-width:0!important;
  align-content:center!important;
}
.chat-page .online-user-card b{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.86rem!important;
}
.chat-page .online-status-label,
.chat-page .online-status-message,
.chat-page .online-friend-label,
.chat-page .online-birthday-label,
.chat-page .online-profile-label{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  margin:2px 4px 0 0!important;
  line-height:1.2!important;
}
.chat-page .online-status-label{
  padding:2px 6px!important;
  border-radius:999px!important;
  background:#eef3f4!important;
  color:#607078!important;
  font-size:.61rem!important;
  font-weight:800!important;
}
.chat-page .online-status-message{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#6c777d!important;
  font-size:.66rem!important;
}
.chat-page .online-friend-label{
  color:#806414!important;
  font-size:.63rem!important;
  font-weight:850!important;
}
.chat-page .online-birthday-label{
  color:#bd4775!important;
  font-size:.63rem!important;
  font-weight:850!important;
}

/* Quick card */
.online-quick-card{
  border-color:#dce3e7!important;
  border-radius:16px!important;
  box-shadow:0 24px 70px rgba(18,31,38,.24)!important;
}
.online-quick-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.online-quick-actions :is(a,button){
  min-height:40px!important;
  border-radius:10px!important;
}

/* -------- Community center -------- */
.user-center-dialog{
  border-radius:20px!important;
}
.user-center-pane section{
  border:1px solid #e5e9eb!important;
  border-radius:14px!important;
  padding:12px!important;
  background:#fff!important;
}
.user-center-people{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
  gap:8px!important;
}
.user-center-person{
  min-height:54px!important;
  padding:8px!important;
  border:1px solid #e6eaec!important;
  border-radius:11px!important;
  background:#fafcfc!important;
}
.user-center-birthday-card{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
}
.user-center-birthday-card > button{
  align-self:center!important;
  min-height:34px!important;
  padding:0 10px!important;
  border:1px solid #ead2dc!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#a03f66!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.user-center-ignore-row{
  border-color:#e3e8eb!important;
}
.user-center-ignore-row::before{
  content:"Ausgeblendet";
  margin-right:2px;
  padding:3px 6px;
  border-radius:999px;
  background:#eef2f3;
  color:#718087;
  font-size:.6rem;
  font-weight:800;
}

/* Ignore/friend action feedback */
.comfort-toast{
  position:fixed!important;
  left:50%!important;
  bottom:22px!important;
  z-index:2147483600!important;
  max-width:min(520px,calc(100vw - 24px))!important;
  transform:translate(-50%,18px)!important;
  padding:11px 14px!important;
  border:1px solid #cfe3d6!important;
  border-radius:12px!important;
  background:#f3fbf6!important;
  color:#28543a!important;
  box-shadow:0 14px 40px rgba(20,40,30,.18)!important;
  font-size:.78rem!important;
  font-weight:800!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:.18s ease!important;
}
.comfort-toast[data-type="error"]{
  border-color:#f0c8c8!important;
  background:#fff4f4!important;
  color:#9a3636!important;
}
.comfort-toast.is-visible{
  opacity:1!important;
  transform:translate(-50%,0)!important;
}

/* -------- Unified error pages -------- */
.ethost-error-page{
  min-height:100dvh!important;
  display:grid!important;
  place-items:center!important;
  padding:24px!important;
  background:linear-gradient(180deg,#f5f7f8,#fff)!important;
}
.ethost-error-card{
  width:min(620px,100%)!important;
  padding:26px!important;
  border:1px solid var(--ui-border)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 20px 60px rgba(25,37,43,.09)!important;
  text-align:center!important;
}
.ethost-error-card img{
  width:110px!important;
  max-height:120px!important;
  object-fit:contain!important;
  margin:0 auto 10px!important;
}
.ethost-error-card .error-code{
  display:inline-flex!important;
  margin-bottom:8px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#f0f3f4!important;
  color:#6c777d!important;
  font-size:.68rem!important;
  font-weight:850!important;
}
.ethost-error-card h1{
  margin:4px 0 8px!important;
  font-size:clamp(1.45rem,4vw,2rem)!important;
}
.ethost-error-card p{
  color:#6f7a80!important;
  line-height:1.55!important;
}
.ethost-error-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  gap:8px!important;
  margin-top:16px!important;
}

/* -------- Mobile chat navigation audit -------- */
@media(max-width:760px){
  .chat-page .tenant-shell{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  .chat-page .tenant-head{
    position:sticky!important;
    top:0!important;
    z-index:90!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:7px!important;
    min-height:0!important;
    height:auto!important;
    padding:7px 8px!important;
  }
  .chat-page .tenant-brand{
    min-width:0!important;
    padding-right:2px!important;
  }
  .chat-page .tenant-brand img{
    width:44px!important;
    max-height:40px!important;
  }
  .chat-page .tenant-actions{
    grid-row:auto!important;
    grid-column:auto!important;
    width:100%!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    gap:6px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2px 1px 4px!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .chat-page .tenant-actions::-webkit-scrollbar{display:none!important}
  .chat-page .tenant-actions > :is(a,button,form){
    flex:0 0 auto!important;
  }
  .chat-page .tenant-actions :is(a,button){
    min-height:36px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 9px!important;
    border-radius:10px!important;
    font-size:.69rem!important;
    white-space:nowrap!important;
  }
  .chat-page .radio-player{
    grid-row:auto!important;
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    grid-template-columns:38px minmax(0,1fr) 82px!important;
    padding:6px 8px!important;
  }
  .chat-page .chat-layout{
    flex:1 1 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:6px!important;
    gap:6px!important;
  }
  .chat-page .chat-panel{
    border-radius:13px!important;
  }
  .chat-page .room-tabs{
    padding:7px!important;
    gap:6px!important;
    scrollbar-width:none!important;
  }
  .chat-page .room-tabs::-webkit-scrollbar{display:none!important}
  .chat-page .room-tabs :is(a,button){
    min-height:34px!important;
    padding:0 10px!important;
  }
  .chat-page .composer-toolbar{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .chat-page .composer-toolbar::-webkit-scrollbar{display:none!important}
  .chat-page .composer-input-row{
    grid-template-columns:minmax(0,1fr) 44px!important;
    gap:7px!important;
  }
  .chat-page .user-panel{
    top:max(8px,env(safe-area-inset-top))!important;
    right:8px!important;
    bottom:8px!important;
    width:min(330px,calc(100vw - 16px))!important;
    max-height:none!important;
    border-radius:16px!important;
    z-index:220!important;
  }
  .online-quick-card{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    width:auto!important;
    max-height:min(72dvh,540px)!important;
    overflow:auto!important;
  }
  .online-quick-actions{
    grid-template-columns:1fr 1fr!important;
  }
}

@media(max-width:520px){
  .profile-page .profile2-shell,
  .profile-page .member2-shell,
  .member2-shell{
    width:calc(100% - 16px)!important;
    margin:8px auto 18px!important;
  }
  .profile-page .profile2-layout,
  .profile-page .profile2-public-layout{
    grid-template-columns:1fr!important;
  }
  .profile-page .profile2-summary{
    position:static!important;
  }
  .member2-grid{
    grid-template-columns:1fr!important;
  }
  .profile-page .profile2-topbar{
    padding:8px!important;
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    scrollbar-width:none!important;
  }
  .profile-page .profile2-topbar::-webkit-scrollbar{display:none!important}
  .profile-page .profile2-topbar .btn{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
  .user-center-birthday-card{
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  .user-center-birthday-card > button{
    grid-column:1/-1!important;
    width:100%!important;
  }
}

/* Friends online: profile + direct PN */
.user-center-friend-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}
.user-center-friend-card > .user-center-person{
  min-width:0!important;
}
.user-center-friend-card > a:last-child{
  min-width:42px!important;
  min-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 10px!important;
  border:1px solid #dfe5e8!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#33434b!important;
  font-size:.7rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}


/* ==========================================================
   ET-HOST · COPYRIGHT COMPACT PROTECTION · 2026-10-08
   Unterseiten behalten Copyright ohne den großen Tenant-Footer.
   ========================================================== */
.tenant-copyright-compact[data-ethost-copyright]{
  width:100%!important;
  min-height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:6px 12px!important;
  margin:0!important;
  border-top:1px solid #dfe5e8!important;
  background:#ffffff!important;
  color:#1f2933!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  position:relative!important;
  z-index:5!important;
  font-size:max(.72rem,12px)!important;
  line-height:1.3!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.tenant-copyright-compact[data-ethost-copyright] :is(a,strong,span){
  color:#1f2933!important;
  -webkit-text-fill-color:#1f2933!important;
  opacity:1!important;
  visibility:visible!important;
}
.tenant-copyright-compact[data-ethost-copyright] a{
  text-decoration:none!important;
}
