.group-header {
  position: relative;
  overflow: visible;
  min-height:130px;
}


.group-header .group-header-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}


.group-header .group-header-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}


.group-header .group-header-content {
  display:flex;
  padding: 10px;
  position: relative;
  min-height: 146px;
  
}
@media (max-width: 768px) {
    .group-header .group-header-content{
        padding:10px 15px;
    }
}

.group-header .group-header-img{
  height:128px;
  width:auto;                 /* wichtig */
  flex:0 0 auto;              /* wichtig: keine fixe Basis */
  display:flex;
  align-items:center;
  justify-content:center;

  position:relative;
  z-index:10;
  margin:0 0 -20px 0;
  padding:0;

  border:2px solid var(--bs-body-bg);
  background:var(--bs-body-bg);
}
@media (max-width:991.98px){
    .group-header .group-header-img{
        margin:0 0 0 0;
    }
}
.group-avatar{
  height:128px;
  width:auto;
  display:inline-flex;     /* shrink-to-fit */
  align-items:center;
  justify-content:center;
}

.group-avatar img{
  height:128px;
  width:auto;              /* Breite dynamisch */
  max-width:100%;
  display:block;
  object-fit:contain;      /* keine Verzerrung, kein Crop */
}


.group-header .group-header-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column; /* falls Buttons + Statusblock übereinander */
  justify-content: center;
  align-items: flex-start; /* oder flex-end wenn rechtsbündig gewünscht */
  margin-left: 10px; /* Abstand zum Bild */
}



.group-header .group-header-img + .group-header-block {
  margin-left: 10px;
  
}


.forum-list>li:after,
.forum-list>li:before,
.threads-list:after,
.threads-list:before {
    content: '';
    display: table;
    clear: both
}


.forum-list {
    list-style-type: none;
    margin: 0;
    padding: 0
}


.forum-list>li {
    padding: .3rem .7rem
}

.forum-list>li+li,
.threads-list>li+li {
    border-top: 1px solid #EAE7E7
}
.nerofix-inverse .forum-list>li+li,
.nerofix-inverse .threads-list>li+li {
    border-top: 1px solid #363636
}

.forum-list>li .media {
    font-size: 1.5rem;
    float: left;
    width: 2.5rem;
    text-align: center;
    display: block;
    line-height: 1.5rem
}

.forum-list>li .media img {
    max-width: 100%;
    display: block
}

.forum-list>li .media .fa {
}


.forum-list>li .info-container {
    margin-left: 2.8rem;
    line-height: 1.5;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

@media (max-width:1199.98px) {
    .forum-list>li .info-container {
        display: block;
    }
}

.forum-list>li .info-container .info {
    width: 50%;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1
}

@media (max-width:1199.98px) {
    .forum-list>li .info-container .info {
        width: auto
    }
}

.forum-list>li .info-container .info .title {
    font-size: .9rem;
    font-weight: 600;
    line-height: inherit;
    margin: 0
}

.forum-list.forum-detail-list .media img,
.forum-list>li .info-container .info .desc {
    margin-bottom: .625rem
}

@media (max-width:1199.98px) {
    .forum-list>li .info-container .info .desc {
        margin-bottom: 0
    }
}

.forum-list>li .info-container .total-count {
    width: 20%;
    text-align: center;
    color: #6c757d;
    font-size: .875rem;
    font-weight: 400
}

@media (max-width:1199.98px) {
    .forum-list>li .info-container .total-count {
        width: auto;
        text-align: left;
        margin: .3125rem 0
    }
}

.forum-list>li .info-container .total-count .total-post {
    font-weight: 600;
    color: #2d353c
}

.forum-list>li .info-container .total-count .divider {
    margin: 0 .3125rem
}

.forum-list>li .info-container .latest-post {
    width: 25%
}

@media (max-width:1199.98px) {
    .forum-list>li .info-container .latest-post {
        width: auto
    }
}

.forum-list>li .info-container .latest-post .title {
    font-size: .8125rem;
    line-height: inherit;
    margin: 0
}

.forum-list>li .info-container .latest-post .title a {
    color: #2d353c
}

.forum-list>li .info-container .latest-post .time {
    font-size: .8125rem;
    margin: 0
}

.forum-list.forum-topic-list .info-container {
    position: relative
}

.forum-list.forum-topic-list .info-start-end {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: .73125rem
}

.forum-list.forum-topic-list .date-replies {
    text-align: center;
    width: 5rem
}

@media (max-width:1199.98px) {
    .forum-list.forum-topic-list .date-replies {
        width: auto;
        text-align: left;
        line-height: 1.3;
        margin: .625rem 0 0
    }
}

.forum-list.forum-topic-list .date-replies .time {
    font-size: .73125rem;
    margin-bottom: .625rem;
    color: #6c757d
}

@media (max-width:1199.98px) {
    .forum-list.forum-topic-list .date-replies .time {
        display: inline-block;
        margin-bottom: 0
    }
    .forum-list.forum-topic-list .date-replies .time+.replies {
        padding-left: .8125rem;
        margin-left: .625rem;
        border-left: 1px solid #dee2e6
    }
}

.forum-list.forum-topic-list .date-replies .replies {
    background: #eff1f3;
    padding: .3125rem .625rem;
    -webkit-border-radius: 4px;
    border-radius: 4px
}

@media (max-width:1199.98px) {
    .forum-list.forum-topic-list .date-replies .replies {
        background: 0 0;
        padding: 0;
        display: inline-block;
        -webkit-border-radius: 0;
        border-radius: 0
    }
}

.forum-list.forum-topic-list .date-replies .replies .total {
    font-size: 1rem;
    font-weight: 600;
    color: #2d353c;
    margin: 0
}

@media (max-width:1199.98px) {
    .forum-list.forum-topic-list .date-replies .replies .total {
        display: inline;
        font-size: .73125rem
    }
}

.forum-list.forum-topic-list .date-replies .replies .text {
    font-size: .73125rem;
    font-weight: 600;
    color: #6c757d
}

@media (max-width:1199.98px) {
    .forum-list.forum-topic-list .date-replies .replies .text {
        display: inline
    }
}

.forum-list.forum-detail-list {
    border: 0;
    margin-bottom: 1.25rem
}

.forum-list.forum-detail-list>li {
    padding: 0
}

.forum-list.forum-detail-list>li+li {
    border: 0;
    margin-top: 1.25rem
}

.forum-list.forum-detail-list .media {
    display: block
}

.forum-list.forum-detail-list .media .badge {
    font-size: .73125rem;
    display: block;
    padding: .25rem .375rem;
    font-weight: 500;
    -webkit-border-radius: 2px;
    border-radius: 2px
}

.forum-list.forum-detail-list .info-container {
    border: 2px solid #dee2e6;
    padding: .5rem;
    position: relative;
    display: block;
    -webkit-border-radius: 6px;
    border-radius: 6px
}

.forum-list.forum-detail-list .info-container:after,
.forum-list.forum-detail-list .info-container:before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 1.25rem;
    border: 10px solid transparent;
    border-right-color: #dee2e6
}

.forum-list.forum-detail-list .info-container:after {
    left: -1.0625rem;
    border-right-color: #f8f9fa
}

.forum-list.forum-detail-list .info-container>div {
    float: none
}

.forum-list.forum-detail-list .info-container .post-user {
    font-size: .875rem;
    margin-bottom: .9375rem;
    background-color: #ECECEC;
    padding: .3rem .5rem;
}

.forum-list.forum-detail-list .info-container .post-user small {
    font-weight: 700;
    margin-left: .3125rem
}

.forum-list.forum-detail-list .info-container .post-content {
    line-height: 1.5;
    margin-bottom: 15px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.forum-list.forum-detail-list .info-container .post-content pre {
    background: #e9ecef;
    border: 0;
    margin-bottom: 1.25rem;
    padding: .9375rem;
    -webkit-border-radius: 4px;
    border-radius: 4px
}

.topic-game-text, .topic-game-textarea {
  display: block;
  width: 100%;
  resize: none; /* optional, für feste Größe */
  overflow: hidden;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  padding: .375rem .75rem;
  font-family: arial, monospace;
  border: 1px solid transparent;
}



.nf-member-edit-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.nf-member-edit-role-card {
  background: var(--bs-tertiary-bg, #f8f9fa);
}

.nf-member-edit-form .form-control,
.nf-member-edit-form .form-select {
  min-height: 44px;
}



/* Nerofix Groups Showcase */
.nf-groups-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.nf-group-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  background: var(--bs-body-bg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nf-group-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13);
  border-color: rgba(var(--bs-primary-rgb), .35);
}

.nf-group-showcase-card-main {
  grid-column: span 6;
}

.nf-group-showcase-card-small {
  grid-column: span 3;
}

.nf-group-showcase-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bs-tertiary-bg);
  text-decoration: none;
}

.nf-group-showcase-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.nf-group-showcase-card:hover .nf-group-showcase-cover img {
  transform: scale(1.035);
}

.nf-group-showcase-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .68),
    rgba(0, 0, 0, .24) 48%,
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

.nf-group-showcase-badge {
  position: absolute;
  left: .85rem;
  top: .85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #111827;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.nf-group-showcase-titlebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: .9rem 1rem;
  color: #fff;
  pointer-events: none;
}

.nf-group-showcase-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .38);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nf-group-showcase-card-main .nf-group-showcase-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.nf-group-showcase-card-small .nf-group-showcase-title {
  font-size: 1rem;
}

.nf-group-showcase-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
  min-width: 0;
  padding: 1rem;
}

.nf-group-showcase-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.1em;
  color: var(--bs-secondary-color);
  font-size: .925rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nf-group-showcase-card-main .nf-group-showcase-desc {
  -webkit-line-clamp: 2;
  min-height: 2.8em;
}

.nf-group-showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}

.nf-group-showcase-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: .35rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.nf-group-showcase-pill span {
  min-width: 0;
}

.nf-group-showcase-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .15rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .nf-group-showcase-card-main {
    grid-column: span 12;
  }

  .nf-group-showcase-card-small {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .nf-group-showcase-card-main,
  .nf-group-showcase-card-small {
    grid-column: span 12;
  }
}


/* Nerofix Groups Showcase - Polish */
.nf-groups-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nf-groups-section-kicker {
  color: var(--bs-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nf-groups-section-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

.nf-groups-section-subtitle {
  margin: .25rem 0 0;
  color: var(--bs-secondary-color);
}

.nf-groups-section-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nf-group-showcase-card-small {
  grid-column: span 3;
}

.nf-group-showcase-card-small .nf-group-showcase-body {
  padding: .9rem;
}

.nf-group-showcase-card-small .nf-group-showcase-desc {
  min-height: 3.95em;
  -webkit-line-clamp: 3;
}

.nf-group-showcase-meta {
  min-width: 0;
}

.nf-group-showcase-pill {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nf-group-showcase-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-group-showcase-action {
  margin-top: auto;
  padding-top: .35rem;
  justify-content: space-between;
  font-size: .95rem;
}

.nf-group-showcase-action i {
  margin-left: auto;
  font-size: 1.2rem;
}

@media (max-width: 1399.98px) {
  .nf-group-showcase-card-small {
    grid-column: span 4;
  }

  .nf-group-showcase-card-main {
    grid-column: span 8;
  }
}

@media (max-width: 991.98px) {
  .nf-group-showcase-card-main,
  .nf-group-showcase-card-small {
    grid-column: span 6;
  }
}

@media (max-width: 767.98px) {
  .nf-groups-section-head {
    display: block;
  }

  .nf-groups-section-action {
    margin-top: .75rem;
  }

  .nf-group-showcase-card-main,
  .nf-group-showcase-card-small {
    grid-column: span 12;
  }
}



/* =========================================================
   Nerofix Group Topic List
   ========================================================= */

.nf-topic-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.nf-topic-item {
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  overflow: hidden;
}

.nf-topic-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: start;
  padding: .75rem;
}

.nf-topic-iconcol {
  width: 2.2rem;
  text-align: center;
  color: var(--bs-secondary-color);
  padding-top: .1rem;
}

.nf-topic-main {
  min-width: 0;
}

.nf-topic-title {
  min-width: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
}

.nf-topic-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.nf-topic-title a:hover {
  color: var(--bs-primary);
}

.nf-topic-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin-top: .35rem;
  color: var(--bs-secondary-color);
  font-size: .82rem;
  line-height: 1.35;
}

.nf-topic-created {
  margin-top: .25rem;
  color: var(--bs-secondary-color);
  font-size: .82rem;
  line-height: 1.35;
}

.nf-topic-lastpost {
  width: max-content;
  max-width: 180px;
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.nf-topic-lastpost-btn {
  max-width: 100%;
  margin-bottom: .35rem;
}

.nf-topic-lastpost-date {
  max-width: 100%;
  color: var(--bs-secondary-color);
  font-size: .78rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-topic-lastpost-user {
  max-width: 100%;
  margin-top: .2rem;
  color: var(--bs-secondary-color);
  font-size: .82rem;
  overflow: hidden;
}

.nf-topic-userline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.nf-topic-userline a,
.nf-topic-userline span {
  min-width: 0;
}

.nf-topic-userline a {
  text-decoration: none;
}

.nf-topic-user-placeholder {
  width: 22px;
  height: 22px;
}




/* =========================================================
   Nerofix Group Posts – Professional Discussion Layout
   ========================================================= */

.nf-group-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nf-group-post-item {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.nf-group-post-card {
  overflow: visible;
  margin: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-body-bg);
}

.nf-group-post-item,
.nf-group-post-shell,
.nf-group-post-author-col,
.nf-group-post-author-card,
.nf-group-post-author-visual,
.nf-group-post-avatar-dropdown {
  overflow: visible;
}

.nf-group-post-avatar-dropdown {
  position: relative;
  z-index: 40;
}

.nf-group-post-avatar-dropdown .dropdown-menu {
  z-index: 1080;
}

/* Topicbar */

.nf-group-post-topicbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem .55rem;
  border-bottom: 1px solid var(--bs-border-color);
  background-color: rgba(var(--bs-primary-rgb), .08);
  background:
    linear-gradient(180deg, rgba(var(--bs-primary-rgb), .045), transparent),
    var(--bs-tertiary-bg);
}

.nf-group-post-topic-title {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  min-width: 0;
  margin: 0;
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 600;
}

.nf-group-post-topic-label {
  flex: 0 0 auto;
  color: var(--bs-primary);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nf-group-post-topic-subject {
  min-width: 0;
  overflow: hidden;
  color: var(--bs-body-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-group-post-topicbar {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.nf-group-post-author-col {
  border-bottom-left-radius: 1rem;
}

.nf-group-post-main {
  border-bottom-right-radius: 1rem;  
}

/* Post action menu */

.nf-group-post-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.nf-group-post-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  line-height: 1;
  box-shadow: none;
}

.nf-group-post-tool:hover,
.nf-group-post-tool:focus {
  border-color: rgba(var(--bs-primary-rgb), .45);
  background: rgba(var(--bs-primary-rgb), .08);
  color: var(--bs-primary);
}

.nf-group-post-menu-toggle::after {
  display: none;
}

.nf-group-post-menu {
  min-width: 13rem;
}

.nf-group-post-menu .dropdown-item {
  display: flex;
  align-items: center;
  font-size: .86rem;
}

.nf-group-post-menu .dropdown-item i {
  width: 1.1rem;
  text-align: center;
}

/* Layout shell */

.nf-group-post-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.nf-group-post-main {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bs-body-bg);
}

/* Post head */

.nf-group-post-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .45rem .65rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.nf-group-post-head-author {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nf-group-post-head-avatar {
  display: none;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  overflow: visible;
  border-radius: .65rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.nf-group-post-head-avatar img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: .65rem;
}

.nf-group-post-head-avatar-muted img {
  filter: grayscale(1);
  opacity: .78;
}

.nf-group-post-head-avatar-former {
  font-size: .95rem;
}

.nf-group-post-head-author-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.nf-group-post-head-author-line {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.nf-group-post-head-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: .90rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.nf-group-post-head-name:hover,
.nf-group-post-head-name:focus {
  color: var(--bs-primary);
}

.nf-group-post-head-username {
  display: none;
  max-width: 100%;
  overflow: hidden;
  color: var(--bs-secondary-color);
  font-size: .76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.nf-group-post-head-username:hover,
.nf-group-post-head-username:focus {
  color: var(--bs-primary);
}

.nf-group-post-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
  color: var(--bs-secondary-color);
  font-size: .78rem;
}

.nf-group-post-date {
  max-width: 100%;
  overflow: hidden;
  color: var(--bs-secondary-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-group-post-date i {
  opacity: .75;
}

/* Content */

.nf-group-post-content {
  padding: .75rem 1rem 1.25rem;
}

.nf-group-post-body {
  max-width: 100%;
  color: var(--bs-body-color);
  overflow-wrap: anywhere;
}

.nf-group-post-body p:last-child,
.nf-group-post-body blockquote:last-child,
.nf-group-post-body ul:last-child,
.nf-group-post-body ol:last-child {
  margin-bottom: 0;
}



.nf-group-post-body blockquote {
  background: rgba(var(--bs-primary-rgb), .055);
  color: var(--bs-body-color);
}

.nf-group-post-body pre {
  max-width: 100%;
  overflow: auto;
  padding: .9rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-tertiary-bg);
  font-size: .86rem;
}

.nf-group-post-body code {
  padding: .1rem .28rem;
  border-radius: .35rem;
  background: var(--bs-tertiary-bg);
}

.nf-group-post-content.topic-game {
  padding: .75rem;
  background: var(--bs-body-bg);
}

.nf-group-post-content .topic-game-text {
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-tertiary-bg);
}

.nf-group-post-content .fa-exclamation-triangle {
  color: var(--bs-warning);
}

.nf-group-post-content em {
  color: var(--bs-secondary-color);
}

/* Edit form */

.nf-group-post-content textarea.form-control {
  min-height: 3rem;
  line-height: 1.55;
}

.nf-group-post-content .nf-hidden-div {
  padding-top: .35rem;
}

/* Last edit */

.nf-group-post-main > .text-end.f-s-12 {
  padding: 0 1rem .75rem;
  color: var(--bs-secondary-color);
}

/* Desktop author column */

.nf-group-post-author-col {
  flex: 0 0 90px;
  width: 90px;
  min-width: 90px;
  margin: 0;
  padding: 0 !important;
  border-right: 1px solid var(--bs-border-color);
  background-color: rgba(var(--bs-primary-rgb), .08);
  background:
    linear-gradient(180deg, rgba(var(--bs-primary-rgb), .035), transparent 70%),
    var(--bs-tertiary-bg);
}

.nf-group-post-author-card {
  position: sticky;
  top: calc(var(--nf-header-height, 50px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  width: 100%;
  min-width: 0;
}

.nf-group-post-author-visual {
  width: 100%;
  max-width: none;
}

/* Avatar base */

.nf-group-post-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  overflow: visible;
  border-radius: 10px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  text-decoration: none;
  box-shadow: 0 .35rem .85rem rgba(15, 23, 42, .08);
}

.nf-group-post-avatar img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 15px;
}

.nf-group-post-avatar:hover {
  border-color: rgba(var(--bs-primary-rgb), .45);
}

.nf-group-post-avatar-muted img {
  filter: grayscale(1);
  opacity: .78;
}

.nf-group-post-avatar-former {
  color: var(--bs-secondary-color);
  background:
    linear-gradient(135deg, rgba(var(--bs-secondary-rgb), .10), rgba(var(--bs-secondary-rgb), .03));
}

.nf-group-post-avatar-former i {
  font-size: 1.45rem;
}

/* Author cover */

.nf-group-post-author-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  overflow: hidden;
  border-radius: 0;
  background-color: var(--bs-body-bg);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.nf-group-post-author-cover:hover,
.nf-group-post-author-cover:focus {
  border-color: rgba(var(--bs-primary-rgb), .45);
}

.nf-group-post-author-cover.dropdown-toggle::after {
  display: none;
}

.nf-group-post-author-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Avatar sits above badges and creates the visual inset */

.nf-group-post-avatar-on-cover {
  position: relative;
  z-index: 8;
  width: 62px;
  height: 62px;
  border: 2px solid var(--bs-body-bg);
  border-radius: 10px;
  background: var(--bs-body-bg);
}

.nf-group-post-avatar-on-cover img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

/* Cover edge badges */

.nf-group-post-avatar-indicator {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.3rem;
  padding: 0 .38rem;
  overflow: hidden;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 .12rem .35rem rgba(0, 0, 0, .16);
  color: var(--bs-secondary-color);
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.nf-group-post-avatar-indicator i {
  width: auto;
  min-width: .8rem;
  text-align: center;
  font-size: .72rem;
  line-height: 1;
}

/* Top-left badge: fixed to cover corner, rounded only inward */

.nf-group-post-avatar-indicator.is-cover-top-left {
  top: 0;
  left: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: .55rem;
}

.nf-group-post-avatar-indicator.is-cover-top-right {
  top: 0;
  right: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: .55rem;
}

/* Bottom-left badge: fixed to cover corner, rounded only inward */

.nf-group-post-avatar-indicator.is-cover-bottom-left {
  left: 0;
  bottom: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-right-radius: .55rem;
}

/* Bottom-right badge: fixed to cover corner, rounded only inward */

.nf-group-post-avatar-indicator.is-cover-bottom-right {
  right: 0;
  bottom: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: .55rem;
}

/* Variants */

.nf-group-post-avatar-indicator.is-danger {
  border-color: rgba(var(--bs-danger-rgb), .7);
  color: var(--bs-danger);
}

.nf-group-post-avatar-indicator.is-warning {
  border-color: rgba(var(--bs-warning-rgb), .7);
  color: var(--bs-warning);
}

.nf-group-post-avatar-indicator.is-success {
  border-color: rgba(var(--bs-success-rgb), .55);
  color: var(--bs-success);
}

.nf-group-post-avatar-indicator.is-contact {
  color: var(--bs-secondary-color);
}

.nf-group-post-avatar-indicator.is-rank {
  color: var(--bs-secondary-color);
}

.nf-group-post-author-cover .online-indicator {
  z-index: 9;
}

/* Desktop author username */

.nf-group-post-author-username {
  width: 100%;
  max-width: 82px;
  padding: 0 .45rem;
  text-align: center;
  color: var(--bs-primary);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.nf-group-post-author-username span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-group-post-author-former-label {
  max-width: 82px;
  padding: .5rem .45rem;
  color: var(--bs-secondary-color);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Author dropdown */

.nf-group-post-author-menu {
  min-width: 13.5rem;
}

.nf-group-post-author-menu .dropdown-item,
.nf-group-post-author-menu .dropdown-item-text {
  display: flex;
  align-items: center;
  font-size: .86rem;
}

.nf-group-post-author-menu .dropdown-item i,
.nf-group-post-author-menu .dropdown-item-text i {
  width: 1.1rem;
  text-align: center;
}

.nf-group-post-author-menu-heading {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  margin: -.25rem 0 .25rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: rgba(var(--bs-primary-rgb), .06);
  color: var(--bs-body-color);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.nf-group-post-author-menu-heading:hover,
.nf-group-post-author-menu-heading:focus {
  background: rgba(var(--bs-primary-rgb), .10);
  color: var(--bs-primary);
}

.nf-group-post-author-menu-heading-static {
  cursor: default;
}

.nf-group-post-author-menu-heading-static:hover {
  color: var(--bs-body-color);
}

.nf-group-post-author-menu-heading-icon {
  flex: 0 0 auto;
  width: 1.15rem;
  text-align: center;
}

.nf-group-post-author-menu-heading-text {
  flex: 1 1 auto;
  min-width: 0;
}

.nf-group-post-author-menu-heading-action {
  flex: 0 0 auto;
  color: var(--bs-secondary-color);
  font-size: .8rem;
}

/* Tablet */

@media (max-width: 991.98px) {
  .nf-group-post-topicbar {
    padding: .65rem .85rem;
  }

  

  .nf-group-post-content {
    padding: .9rem;
  }
}

/* Mobile */

@media (max-width: 575.98px) {
  .nf-group-post-list {
    gap: .85rem;
  }

  .nf-group-post-card {
    border-radius: .9rem;
  }

  .nf-group-post-topicbar {
    align-items: flex-start;
    padding: .7rem .75rem;
  }

  .nf-group-post-topic-title {
    display: block;
    min-width: 0;
  }

  .nf-group-post-topic-label {
    display: block;
    margin-bottom: .1rem;
    font-size: .68rem;
  }

  .nf-group-post-topic-subject {
    display: block;
    font-size: .86rem;
  }

  .nf-group-post-tool {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .6rem;
  }

  .nf-group-post-shell {
    display: block;
  }

  .nf-group-post-head {
    align-items: flex-start;
    gap: .55rem;
    padding: .75rem;
  }

  .nf-group-post-head-avatar {
    display: inline-flex;
  }

  .nf-group-post-head-author {
    align-items: flex-start;
    gap: .55rem;
  }

  .nf-group-post-head-author-text {
    padding-top: .05rem;
  }

  .nf-group-post-head-author-line {
    max-width: 100%;
  }

  .nf-group-post-head-name {
    font-size: .92rem;
  }

  .nf-group-post-head-username {
    display: block;
    margin-top: .12rem;
  }

  .nf-group-post-meta {
    flex: 0 0 auto;
    max-width: 42%;
    padding-top: .12rem;
    font-size: .72rem;
  }

  .nf-group-post-date {
    text-align: right;
  }

  .nf-group-post-content {
    padding: .8rem .75rem .9rem;
  }

  .nf-group-post-body {
    font-size: .94rem;
    line-height: 1.6;
  }

  .nf-group-post-body blockquote {
    padding: .65rem .75rem;
  }

  .nf-group-post-content .btn {
    min-height: 2rem;
  }
}


/* =========================================================
   Group post dropdown stacking
   Keeps author/tool dropdowns above post media and following posts
   ========================================================= */

.nf-group-post-list {
  position: relative;
  isolation: isolate;
}

.nf-group-post-item {
  z-index: 1;
}

.nf-group-post-card {
  z-index: 1;
}

/* Spalten-Layer */
.nf-group-post-author-col {
  position: relative;
  z-index: 20;
}

.nf-group-post-main {
  position: relative;
  z-index: 10;
}

/* Offener Beitrag über Folgebeiträgen */
.nf-group-post-item:has(.dropdown-menu.show),
.nf-group-post-item.is-dropdown-open {
  z-index: 3000;
}

.nf-group-post-item:has(.dropdown-menu.show) .nf-group-post-card,
.nf-group-post-item.is-dropdown-open .nf-group-post-card {
  z-index: 3000;
}

/* Nur die Spalte und Dropdown-Wrapper hochziehen, NICHT die sticky Author-Card */
.nf-group-post-author-col:has(.dropdown-menu.show),
.nf-group-post-author-col.is-dropdown-open,
.nf-group-post-author-visual:has(.dropdown-menu.show),
.nf-group-post-avatar-dropdown:has(.dropdown-menu.show) {
  z-index: 3001;
}

/* Dropdown selbst */
.nf-group-post-item .dropdown-menu.show {
  z-index: 3010;
}

/* Medien unter Dropdown-Layer halten */
.nf-group-post-body .imgmediawrapper,
.nf-group-post-body .nf-img-preview,
.nf-group-post-body .nf-img-preview-link,
.nf-group-post-body .nf-img-preview-img,
.nf-group-post-body video,
.nf-group-post-body .nerofix-iframe-wrapper {
  position: relative;
  z-index: 1;
}

.nf-group-post-body .nf-embedded-image-copy-btn {
  z-index: 2;
}

.nf-group-post-body .card {
  position: static !important;
}

/* =========================================================
   Group reply composer – mirrors final post layout
   ========================================================= */

.nf-group-reply-card {
  overflow: visible;
}

.nf-group-reply-author-col {
  flex: 0 0 90px;
  width: 90px;
  min-width: 90px;
}

.nf-group-reply-author-card {
  position: static;
  top: auto;
}

.nf-group-reply-author-cover {
  cursor: default;
}

.nf-group-reply-main {
  min-width: 0;
}

.nf-group-reply-head {
  min-height: 2.75rem;
}

.nf-group-reply-content {
  padding: .75rem 1rem 0.4rem;
}

.nf-group-reply-textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0;
  margin: 0;
  resize: none;
  background: transparent;
  color: var(--bs-body-color);
  font: inherit;
  line-height: 1.6;
  text-align: left;
  text-align-last: auto;
  word-spacing: normal;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  border-radius: 0;
  box-shadow: none !important;
}

.nf-group-reply-textarea:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none !important;
  outline: 0;
}

.nf-group-reply-textarea::placeholder {
  color: var(--bs-secondary-color);
  opacity: .75;
}

.nf-group-reply-toolbar {
  padding: .75rem 1rem;
  border-top: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.nf-group-reply-toolbar .dropdown-menu {
  z-index: 3010;
}

.nf-group-reply-item.is-dropdown-open,
.nf-group-reply-item:has(.dropdown-menu.show) {
  z-index: 3000;
}

.nf-group-reply-item.is-dropdown-open .nf-group-reply-card,
.nf-group-reply-item:has(.dropdown-menu.show) .nf-group-reply-card {
  z-index: 3000;
}

@media (max-width: 575.98px) {
  .nf-group-reply-content {
    padding: .8rem .75rem .9rem;
  }

  .nf-group-reply-textarea {
    min-height: 3rem;
    font-size: .94rem;
    line-height: 1.6;
  }

  .nf-group-reply-toolbar {
    padding: .7rem .75rem;
  }
}


.nf-group-reply-content {
  position: relative;
  z-index: 1;
  border-radius: 0;
  background-color: var(--bs-body-bg);
  transition:
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.nf-group-reply-content:focus-within {
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(var(--bs-primary-rgb), .45),
    0 0 0 .18rem rgba(var(--bs-primary-rgb), .13),
    0 .25rem .75rem rgba(0, 0, 0, .07);
}

/* =========================================================
   Group post inline edit composer
   Mirrors reply composer focus behavior
   ========================================================= */

.nf-group-edit-wrap {
  margin-top: .75rem;
}

.nf-group-edit-content {
  position: relative;
  z-index: 1;
  padding: .75rem 1rem .4rem;
  border-radius: 0;
  background-color: var(--bs-body-bg);
  transition:
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.nf-group-edit-content:focus-within {
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(var(--bs-primary-rgb), .45),
    0 0 0 .18rem rgba(var(--bs-primary-rgb), .13),
    0 .25rem .75rem rgba(0, 0, 0, .07);
}

.nf-group-edit-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: .45rem;
  color: var(--bs-secondary-color);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nf-group-edit-textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0;
  margin: 0;
  resize: none;
  background: transparent;
  color: var(--bs-body-color);
  font: inherit;
  line-height: 1.6;
  text-align: left;
  text-align-last: auto;
  word-spacing: normal;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  border-radius: 0;
  box-shadow: none !important;
}

.nf-group-edit-textarea:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none !important;
  outline: 0;
}

.nf-group-edit-toolbar {
  padding: .75rem 1rem;
  border-top: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.nf-group-edit-toolbar .dropdown-menu {
  z-index: 3010;
}

@media (max-width: 575.98px) {
  .nf-group-edit-content {
    padding: .8rem .75rem .9rem;
  }

  .nf-group-edit-textarea {
    min-height: 3rem;
    line-height: 1.6;
  }

  .nf-group-edit-toolbar {
    padding: .7rem .75rem;
  }
}

/* A normal inline editor uses the same single composer layer as a new reply:
   the outer post inset is replaced by the edit-content inset. */
.nf-group-post-content.is-inline-editing:not(.topic-game) {
  padding: 0;
}

/* The edit shell supplies the same inset as the rendered game-text block.
   Its textarea keeps the base zero padding. */
.nf-group-post-content.topic-game .nf-group-edit-content {
  padding: .75rem;
}

.nf-group-reply-textarea.topic-game-textarea,
.nf-group-edit-textarea.topic-game-textarea {
  font-family: arial, monospace;
  line-height: 1.6;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

/* The reply composer does not have the inline edit shell and retains its own inset. */
.nf-group-reply-textarea.topic-game-textarea {
  padding: .75rem;
}



/* Protected / blocked group posts */

.nf-group-post-protected-message {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: .35rem 0;
  padding: .85rem 1rem;
  border: 1px solid rgba(var(--bs-warning-rgb), .32);
  border-radius: .85rem;
  background:
    linear-gradient(180deg, rgba(var(--bs-warning-rgb), .08), rgba(var(--bs-warning-rgb), .035)),
    var(--bs-body-bg);
  color: var(--bs-secondary-color);
  line-height: 1.45;
  
}

.nf-group-post-protected-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(var(--bs-warning-rgb), .12);
  color: var(--bs-warning);
}

.nf-group-post-protected-text {
  min-width: 0;
  padding-top: .08rem;
  font-style: italic;
}

.nf-group-post-avatar-muted {
  box-shadow: none;
}

.nf-group-post-avatar-muted img {
  filter: grayscale(1);
  opacity: .55;
}

/* Protected author card */

.nf-group-post-author-protected {
  width: 100%;
}

.nf-group-post-author-cover-protected {
  cursor: default;
  filter: grayscale(1);
}

.nf-group-post-author-cover-protected .nf-group-post-avatar-muted img {
  opacity: .62;
}


/* Reply/Edit textarea emoji rendering */

.nf-group-reply-textarea,
.nf-group-edit-textarea {
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial,
    'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji',
    sans-serif;
}

/* Game/Sudoku textareas keep monospace feel, but still support system emoji glyphs */

.nf-group-reply-textarea.topic-game-textarea,
.nf-group-edit-textarea.topic-game-textarea {
  font-family:
    Arial,
    monospace,
    'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji',
    sans-serif;
}
