.main-text2{
    padding-top: 80px;
    background-color: var(--primary-color);
    transition: background-color 5s ease;

}
.main-text2 h2{
    font-size: 80px;
    line-height: 1;
    text-align: center;
    margin-bottom: 15px;
}
.main-text2 h2 span {
    color: var(--light-secondary-color);
    transition: color 5s ease;
}
.portfolio-content2{
   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(359px, auto));
   
}
.row2{
    position: relative;
    overflow: hidden;
   
   
}
.row2 img{
    width: 65%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 3.3%;
    margin-bottom: 10%;
   
}
.layer2{
    width: 85%;
    height: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 10%;

    transition: height 0.5s;
}

.layer2 p{
    color: var(--light-secondary-color);
    font-size: 2.5vw;
    font-weight: 600;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20%;
    margin-right: 20%;
    transition: color 5s ease;
    text-shadow: 
        -1px -1px 0 #383838,  
         1px -1px 0 #383838,
        -1px  1px 0 #383838,
         1px  1px 0 #383838;
}


.row2:hover img{
    transform: scale(1.2);
}
.row2:hover .layer2{
    height: 75%;
}
.contact-icons-calling2 i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: var(--light-secondary-color);
    border: 2px solid var(--main-brand-color);
    border-radius: 50%;
    font-size: 40px;
    color: var(--main-brand-color);
    text-decoration: none;
    margin: 30px 15px 30px 15px;
    transition: 0.5s ease;
    opacity: 5;
    animation: slideLeft 1s ease forwards;
    animation-delay: 5ms;
    
}
.contact-icons-calling2 i:hover{
    background-color: var(--main-brand-color);
    color: var(--light-secondary-color);
    box-shadow: 0 0 20px var(--light-secondary-color);
}
@media(max-width: 800px) {
    .main-text2{
        padding: 0;
        font-size: 15px;
    }

    .main-text2 h2{
        padding-top: 10%;
    }
   

    .row2 img{
        align-items: center;
       
    }

    .row2:hover img{
        transform: scale(1.2);
    }

    .layer2 p{
        font-size: 1.2rem;
        font-weight: 400;
    }


    .portfolio-content2 {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        
    }

    .contact-icons-calling2 {
        font-size: 10px; /* Anpassung der Schriftgröße */
        width: 100%; /* Volle Breite der Icons */
    }
}
