/* =====================================================
   Exhibitions Layout
   ===================================================== */

.exh-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
}

/* --- Navigation --- */
.exh-nav {
    flex: 0 0 140px;
    position: sticky;
    top: 100px;
}

.exh-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exh-nav ul li {
    margin-bottom: 10px;
}

.exh-nav ul li a {
    display: block;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.exh-nav ul li a:hover {
    color: #000;
}

.exh-nav ul li.active a {
    color: #000;
    font-weight: 600;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

/* --- 2 explizite Spalten --- */
.exh-grid {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.exh-col {
    flex: 1;
    min-width: 0;
}

/* Zweite Spalte um 80px versetzt – wie im Customizer */
.exh-col-2 {
    margin-top: 80px;
}

.exh-item {
    margin-bottom: 40px;
}

.exh-item-link {
    display: block;
    text-decoration: none;
}

.exh-img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* Beitragsinhalt */
.exh-info {
    margin-top: 12px;
    font-size: 13px;
}

.exh-info .teaser-datum,
.exh-info .teaser-titel,
.exh-info .teaser-ort {
    text-transform: uppercase;
    display: block;
}

.exh-info .teaser-titel {
    font-style: italic;
    font-weight: 600;
}

/* Unerwünschte Elemente ausblenden */
.exh-info .more-link,
.exh-info a.more-link,
.exh-info .only-in-teaser,
.exh-info .avia-arrow,
.exh-info .read-more-link,
.exh-grid .more-link {
    display: none !important;
}

/* Enfold image-overlay ausblenden */
.exh-item-link .image-overlay {
    display: none !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .exh-layout {
        flex-direction: column;
        gap: 24px;
    }

    .exh-nav {
        flex: 0 0 auto;
        position: static;
    }

    .exh-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .exh-nav ul li {
        margin-bottom: 0;
    }

    .exh-nav ul li a {
        padding: 4px 12px;
        border: 1px solid #ddd;
        border-radius: 20px;
    }

    .exh-grid {
        flex-direction: column;
    }

    .exh-col-2 {
        margin-top: 0;
    }
}


/* Flex-Layout erzwingen gegen Enfold overflow */
#main .exh-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 40px !important;
}

#main .exh-nav {
    flex: 0 0 140px !important;
    width: 140px !important;
    max-width: 140px !important;
}

#main .exh-grid {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

#main .exh-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
