/* --- Flex-Accordion --- */
.image-acc-item {
    transition: flex 0.5s ease;
    flex: 1;
    display: flex;
}

.image-acc-item.active {
    flex: 3;
}
/* Wrapper: Abstand + Radius + Positionierung */
.acc-wrapper {
    margin: 0 6px;               /* ~12px Gap gesamt */
    border-radius: 30px;
    overflow: hidden;
    height: 512px;
    display: flex;
    position: relative;
}

/* Bild */
.acc-img {
    width: 100%;
    height: 512px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.image-acc-item.active .acc-img {
    transform: scale(1.08);
}

/* Caption immer unten, feste Höhe */
.acc-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px 20px;
    height: 120px;
    box-sizing: border-box;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.0)
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.acc-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

/* Zusatztext – weich & langsam einfahren */
.acc-text {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;

    transform: translateY(14px);

    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-acc-item.active .acc-text {
    opacity: 1;
    max-height: 400px;
    transform: translateY(0);
}

/* Debug – kannst du später wieder löschen */
.image-acc-item.active {
    /* outline: 3px solid lime; */
}
