.ba-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 10px;
}

/* Mobile */
@media (max-width: 900px) {
    .ba-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .ba-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 420px) {
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ───────────────────────────────────────────
   Türchen-Style
   ─────────────────────────────────────────── */

.ba-door {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Quadrat */
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(3px);
    transition: all .25s ease-in-out;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Bild im Hintergrund */
.ba-door img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    transition: opacity .25s;
}

/* Nummer zentriert */
.ba-door-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    z-index: 3;
}

/* Titel (hover only) */
.ba-door-title {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: .25s;
    z-index: 3;
}

/* Hover-Effekt (nur klickbare) */
.ba-door[data-viewok="1"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.ba-door[data-viewok="1"]:hover img {
    opacity: .8;
}
.ba-door[data-viewok="1"]:hover .ba-door-title {
    opacity: 1;
}

/* ───────────────────────────────────────────
   GESPERRTE / NICHT SICHTBARE TÜRCHEN
   ─────────────────────────────────────────── */

.ba-door.locked {
    cursor: not-allowed;
    filter: grayscale(100%) brightness(0.45);
    opacity: 0.5;
    transform: none !important;
}
.ba-door.locked img {
    opacity: .25;
}

/* ───────────────────────────────────────────
   ABGELAUFEN
   ─────────────────────────────────────────── */

.ba-door.expired {
    filter: grayscale(80%) brightness(.7);
}
.ba-door.expired .ba-door-number {
    color: #bbb;
}

/* ───────────────────────────────────────────
   GEÖFFNETE TÜRCHEN
   ─────────────────────────────────────────── */

.ba-door.opened {
    border-color: #6bd96b;
    box-shadow: inset 0 0 10px rgba(0,255,70,0.3);
}
.ba-door.opened .ba-door-number {
    color: #9aff9a;
}

/* Badges (optional) */
.ba-door-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 11px;
    color: #fff;
    z-index: 3;
    pointer-events: none;
}
.ba-badge-on {
    background: rgba(40,160,60,0.7);
    padding: 2px 6px;
    border-radius: 4px;
}
.ba-badge-exp {
    background: rgba(180,40,40,0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Overlay */
.ba-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Popup-Inhalt */
.ba-modal-inner {
    background: #111;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    color: #eee;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    position: relative;
}

/* Schließen */
.ba-modal-close {
    text-align: right;
    margin-bottom: 10px;
}

.ba-modal-close a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
}

.ba-modal-close a:hover {
    color: #fff;
}

/* Body */
#baModalBody {
    margin-top: 10px;
}

