/* ============================================================
   SALSA CLUB BAMBERG - FINALES PREMIUM GRID (ROT/ORANGE)
   ============================================================ */

/* 1. GRUNDGERÜST */
.nwi_grid_container {
    display: block;
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 10px;
    clear: both;
}

/* 2. DESKTOP GRID (4 Spalten) */
@media screen and (min-width: 1100px) {
    .nwi_grid_container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
        align-items: stretch;
    }
}

/* Mittlere Ansicht (2 Spalten für Tablets) */
@media screen and (min-width: 769px) and (max-width: 1099px) {
    .nwi_grid_container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* 3. EVENT-KARTE */
.mod_nwi_group {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    border-bottom: 5px solid #990000 !important;
    height: 100% !important;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.mod_nwi_group:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

/* 4. PLAKAT-DARSTELLUNG MIT GLOW-EFFEKT */
.mod_nwi_teaserpic {
    width: 100% !important;
    height: auto !important;
    max-height: 450px !important;
    background: #fff; 
    overflow: hidden !important;
    position: relative;
}

.mod_nwi_teaserpic img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.6s ease, filter 0.3s ease;
}

/* Subtiler Aufhell-Effekt beim Hover */
.mod_nwi_group:hover .mod_nwi_teaserpic img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* 5. TEXT-BEREICH */
.mod_nwi_teasertext {
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.event-tags {
    color: #aaa;
    font-weight: 700;
    font-size: 8px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1.2px;
}

/* DAS DATUM (H3) - ROTER BADGE */
.mod_nwi_teasertext h3 {
    color: #ffffff !important;
    margin: 0 0 14px 0;
    font-size: 1.2rem !important;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    background: #990000;
    padding: 9px 14px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(153, 0, 0, 0.2);
}

/* DER TITEL (H4) */
.event-title-link {
    text-decoration: none !important;
}

.mod_nwi_teasertext h4 {
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-size: 1.05rem !important;
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.2s;
}

.mod_nwi_group:hover h4 {
    color: #990000;
}

.mod_nwi_shorttext {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* 6. BUTTONS IN DER LISTE */
.mod_nwi_readmore {
    margin-top: auto;
}

.tanz-btn {
    display: block !important;
    text-align: center;
    background: #ff8800;
    color: #ffffff !important;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tanz-btn:hover {
    background: #990000 !important;
    transform: scale(1.02);
}

/* 7. NAVIGATION BUTTONS (TABELLE) */
.mod_nwi_table td a, 
.mod_nwi_post_navigation a, 
.nwi_backlink a {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #990000 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
    border: none !important;
}

.mod_nwi_table td a:hover {
    background: #333 !important;
}

/* 8. MOBILE ANPASSUNG (OPTIMIERT) */
@media screen and (max-width: 768px) {
    .nwi_grid_container {
        padding: 0 15px;
    }
    
    .mod_nwi_group {
        margin-bottom: 30px;
    }

    .mod_nwi_teaserpic {
        max-height: none !important; /* Volle Plakathöhe am Handy */
    }

    .mod_nwi_teasertext h3 {
        font-size: 1.4rem !important;
        width: 100%;
        text-align: center;
    }
}