.fixed_image_wrapper {
    position: fixed;
    width: 100vw;
    height: 100dvh;
    top: 0;
    left: 0;
}
.fixed_image_wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.fixed_image_claim {
    background-color: red;
    position: absolute;
    z-index: 300;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.image_gallery {
    padding-top: 100vh;
    position: relative;
    z-index: 100;
}

.text_wrapper {
    display: flex;
    column-gap: 1rem;
    position: fixed;
    bottom: 0;
    right: 0;
    align-items: flex-end;
    margin: 1rem;
    z-index: 100;
}

.idea, .credits {
    display: flex;
    flex-direction: column;
    justify-content: end;
    max-height: calc(100dvh - 2rem);
    /* Transition für das Mobile-Wachstum hinzufügen */
    transition: flex 0.4s ease-in-out; 
    color: white;
    background: rgba(255, 127, 0, 0.37);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8.2px);
    -webkit-backdrop-filter: blur(8.2px);
    border-radius: 0.5rem;
}

.idea_bottom,
.credits_bottom {
    padding: 1rem 1.5rem;
    text-align: center;
}

.idea_top, .credits_top {
    display: grid;
    grid-template-rows: 0fr; 
    max-width: 0px;    
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    text-align: center;
    overscroll-behavior: contain;
    transition: 
        grid-template-rows 0.3s ease-in-out, 
        max-width 0.3s ease-in-out 0.3s;
}

.idea_top.active, .credits_top.active {
    grid-template-rows: 1fr;
    max-width: 400px;        
    white-space: normal;
    transition: 
        max-width 0.3s ease-in-out, 
        grid-template-rows 0.3s ease-in-out 0.3s;
}
.idea_top p,
.credits_top p {
    padding: 2.5rem 2rem;    
}

.clip_wrapper {
    min-height: 0;
}

/* --- MOBILE OPTIMIERUNG --- */
@media screen and (max-width: 600px) {
    .text_wrapper {
        left: 0; 
        width: auto; 
    }

    .text_wrapper > div {
        flex: 1;
    }

    .idea_top.active, .credits_top.active {
        max-width: none; 
    }

    .idea:has(.idea_top.active),
    .credits:has(.credits_top.active) {
        flex: 3;
    }
}