.designer_products{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
}
.designer_product{

    border-radius: 16px;
    width: 292px;
    aspect-ratio: 292 / 354;
    box-shadow: 0 0 9.7px 0 rgba(0,0,0,0.15);
    

    display: flex;
    flex-direction: column;
    overflow: hidden;

}
.designer_product .infos span{
    font-size: 17px;
}
.designer_product .infos b{
    font-size: 18px;
}
.designer_product .infos{
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    padding: 27px;
}
.designer_product .imgcont{
    flex:6;
    overflow: hidden;
    
}
.designer_product .imgcont img{
    width: 100%;
}

.designerprofile{
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.designerprofile img{
    width: 130px;
    aspect-ratio: 1/1;
    border-radius: 200px;
    box-shadow: 0 0 4.5px 0 rgba(0,0,0,0.15);
}
.designerprofile > div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 0;
}
.designerprofile b{
    font-weight: 800;
    margin: 0;
    font-size: 22px;
}
.designerprofile .sub{
    font-size: 20px;
}
.designerprofile span:last-child{
    filter:opacity(0);
}
.gallery{
    height: fit-content;
    flex-wrap: wrap;
    justify-content: start;
}
.galleryphone{
    display:none
}
.logophone{
    width: 14vw;
    aspect-ratio: 1/1;
    border-radius: 200px;
    box-shadow: 0 0 4.5px 0 rgba(0,0,0,0.15);
    margin-right: 5vw;

}
#overview > div{
    font-size: 18px;
}


@media (min-width: 700px) {
    .designerprofile{
        margin: 20px 0;
    }
}
@media (max-width: 700px) {
    .gallery{
        display: flex !important;
        gap: 5vw;
        align-items: center;
    }
    .gallery img, .designer_product{
        width: 73vw;
        height: auto;
    }
    .gallery img{
        border-radius: 11px;
    }

    #overview > div{
        font-size: 4vw;
        line-height: 6vw;
    }
    .companycard{
        padding: 4vw 10vw !important;
        gap: 10vw;
        padding-bottom: 0 !important;
    }
    .designer_products{
        flex-direction: column;
        gap: 5vw;
        align-items: center;

    }
    
    .designer_product .infos b{
        font-size: 4.5vw;
    }
    .designer_product .infos span{
        font-size: 3.5vw;
    }
    .designer_product .infos {
        padding: 5vw;
        gap: 3vw;
        justify-content: center;
    }
    .designerprofile{
        padding: 0 7vw;
    }
    .designerprofile b{
        font-size: 4vw;
    }
    .designerprofile .sub{
        font-size: 3.5vw;
    }
    .designerprofile img {
        width: 20vw;
        height: 20vw;
        align-self: center;
    }
    .designerprofile span:last-child{
        display: none
    }
    .gallery{
        flex-direction: column;
        padding: 0;
        margin: auto;
    }

}
/* Service-Karten sind klickbar und öffnen .servicepopup (manufacturer.js) */
.designer_product{
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.designer_product:hover, .designer_product:focus-visible{
    transform: translateY(-3px);
    box-shadow: 0 0 14px 0 rgba(0,0,0,0.22);
    outline: none;
}
.designer_product .imgcont img{
    height: 100%;
    object-fit: cover;
}

/* Großansicht eines Services, Grundoptik von .mainpopup (index.css) */
.servicepopup{
    width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 30px;
    position: relative;
}
.servicepopup > svg{
    position: absolute;
    top: 22px;
    right: 22px;
    cursor: pointer;
    z-index: 1;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-sizing: content-box !important;
}
.servicepopup-img{
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f4f4;
}
.servicepopup-img img{
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
}
.servicepopup p{
    font-size: 18px;
}

@media (max-width: 700px) {
    .servicepopup{
        width: 92vw;
        border-radius: 6vw;
        padding: 5vw;
        gap: 3vw;
    }
    .servicepopup > svg{
        top: 7vw;
        right: 7vw;
        width: 4.5vw;
        height: 4.5vw;
        padding: 1.5vw;
    }
    .servicepopup-img{ border-radius: 4vw; }
    .servicepopup h1{ font-size: 5.5vw; }
    .servicepopup p{ font-size: 4vw; }
    .servicepopup .buttons button{ font-size: 4.5vw; min-height: 12vw; border-radius: 7vw; }
}
