#therapy{
    padding: 4rem 0.4rem;
    background-color: var(--secondary-color);
}
#therapy h1{
    padding-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
#therapy li{
    margin-block: 0.1rem;
}
.focus-therapy_pic{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    grid-template-rows: repeat(auto-fit);
    gap: 0.4rem;
    margin-bottom: 5rem;
}
.text-therapy{
    background-color: var(--light-secondary-color);
    font-size: 1.3rem;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
}
.bild-container{
    background-color: var(--secondary-color);
    position: relative;
    display: inline-block;
    overflow: hidden;
    border: 0.25rem solid var(--text-color);
}
.bild{
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

@media(min-width:400px){
    .text-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(7, 42, 64, 0.8);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: translateX(-100%);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    .bild-container:hover .bild {
        transform: scale(1.1);
    }
    .bild-container:hover .text-overlay {
        opacity: 1;
        transform: translateX(0);
    }
    .text-overlay ul{
        padding-left: 2rem;
    }
}
@media (max-width: 400px){
    #therapy{
        padding: 3rem 0.5rem 0.5rem 0.5rem;
    }
    #therapy h1{
        text-align: center;
    }
    .bild-container{
        border: none;
    }
    .text-overlay {
        width: 100%;
        height: 100%;
        color: white;
        padding: 1rem 0.5rem 1rem 1rem;
    }
    .text-overlay ul{
        padding-left: 1rem;
    }
    .focus-therapy_pic{
        gap: 3rem;
    }
}