.img-art {
   width: 100%;
   height: 400px;
   object-fit: cover;
   object-position: center top;
}
.img-cat {
   width: 100%;
   height: 150px;
   object-fit: cover;
}
.card-2 {
   height: 315px;
}
.news-card {
   position: relative;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   height: 100%;
   background: var(--nx-component-card-bg, var(--nx-color-card-bg, var(--bs-card-bg)));
   border: 1px solid var(--nx-component-border, var(--nx-color-card-border, var(--bs-border-color)));
   border-radius: var(--nx-component-radius, var(--bs-border-radius, .375rem));
   box-shadow: var(--nx-component-shadow, var(--nx-shadow-card, none));
   color: var(--nx-color-on-surface, var(--bs-body-color));
   transition: transform 0.2s;
   /*cursor: pointer;*/
}
.news-card h5 {
   padding: 5px 1.5px;
}
.news-card .border-top {
   border-top: 1px solid var(--nx-component-border, var(--nx-color-card-border, var(--bs-border-color))) !important;
}
.news-img-container {
   position: relative;
   overflow: hidden;
}
.news-img-container img {
   width: 100%;
   height: 140px;
   object-fit: cover;
   transition: transform 0.5s ease, filter 0.5s ease;
   filter: grayscale(100%) saturate(1);
   border-radius: 0 !important;
   display: block;
}
.category-badge {
   position: absolute;
   top: 10px;
   left: 10px;
   padding: 4px 10px;
   font-size: 0.75rem;
   font-weight: 500;
   border-radius: var(--nx-theme-radius-sm, var(--bs-border-radius-sm, .25rem));
   text-transform: uppercase;
   opacity: 0.8;
   z-index: 1;
}
.news-card:hover .news-img-container img {
   transform: scale(1.1);
}
.news-img-container img {
   width: 100%;
   height: 140px;
   object-fit: cover;
   transition: transform 0.5s ease, filter 0.5s ease;
   filter: grayscale(100%) saturate(1);
   border-radius: 0 !important;
}
.news-card:hover .news-img-container img {
   transform: scale(1.1);
   filter: grayscale(0%) saturate(1.6);
}
.news-card .btn {
   opacity: 1;
   transition: opacity 0.3s ease;
}
.news-card:hover .btn {
   opacity: 0.8;
}
.news-full-card {
   background: var(--nx-component-card-bg, var(--nx-color-card-bg, var(--bs-card-bg)));
   border-color: var(--nx-component-border, var(--nx-color-card-border, var(--bs-border-color)));
   border-radius: var(--nx-component-radius, var(--bs-border-radius, .375rem));
   box-shadow: var(--nx-component-shadow, var(--nx-shadow-card, none));
   color: var(--nx-color-on-surface, var(--bs-body-color));
}
.news-full-card-body {
   padding: 1rem;
}
.stretched-link {
  z-index: 0;
}

/* Nexpell Orange für aktive List-Group-Items */
.list-group-item-action.active {
    background-color: var(--nx-color-primary, var(--bs-primary));
    border-color: var(--nx-color-primary, var(--bs-primary));
    color: var(--nx-color-button-text, var(--nx-on-inverse-text, #fff));
}

/* Optional: Hover-Effekt */
.list-group-item-action:hover {
    background-color: color-mix(in srgb, var(--nx-color-primary, var(--bs-primary)) 18%, var(--nx-color-card-bg, var(--bs-card-bg)));
    color: var(--nx-color-on-surface, var(--bs-body-color));
}



.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1100;
}
.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
}
.lb-thumb.active {
    border: 2px solid #fff;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lb-thumb {
    opacity: 0.7;
    transition: opacity 0.2s, border 0.2s;
}
.lb-thumb:hover { opacity: 0.9; }
.lb-thumb.active { 
    border: 3px solid var(--nx-color-primary, var(--bs-primary)); 
    opacity: 1; 
}
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next { font-size: 36px; }
    .lightbox-close { font-size: 30px; right: 20px; }
    .lb-thumb { max-height:50px; }
}



.wiki-reference__toc-link{
    display:flex;
    align-items:flex-start;
    gap:.65rem;

    font-size:.95rem;
    line-height:1.45;

    color:var(--bs-body-color);
    text-decoration:none;

    padding:.45rem .25rem;
    border-radius:.5rem;
}

.wiki-reference__toc-link i{
    width:18px;
    flex-shrink:0;
    margin-top:2px;
    font-size:.9rem;
}

.wiki-reference__toc-link span{
    flex:1;
}

.wiki-reference__toc-link.is-sub{
    padding-left:1.5rem;
    font-size:.9rem;
}

.wiki-reference__toc-link:hover{
    background:#f6f7f9;
}
