@media (max-width: 1275px) {
    .first-page {
        flex-direction: column;
    }

    .front-image {
        margin-bottom: 25px;
    }

    .first-page::after {
        height: 325px;
    }
}

@media (max-width: 1150px) {
    .third-page {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding-top: 150px;
    }
    
    .skills-container {
        justify-content: flex-start;
    }

    .projects-container {
        gap: 15px;
    }
}

@media (max-width: 1060px) {
    .projects-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .second-page {
        flex-direction: column;
        padding-right: 25px;
        justify-content: center;
        align-items: center;
        gap: 0px;
        padding-top: 0px;
    }

    .width150 {
        display: none;
    }

    .about-profil {
        position: relative; /* oder absolute, je nach Layout */
        left: 50%;
        transform: translateX(-50%);
    }
    
    .potrait-img {
        position: absolute;
        top: 49%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        width: 99%;
        height: 99%;
        z-index: 1;
    }
    
    .circle {
        z-index: 100;
    }

    .second-right {
        padding-top: 50px;
    }

    .contact-container {
        padding: 0px 20px;
        gap: 25px;
    }

     .pd-right20 {
        padding-right: 20px;
    }

    .fourd-page {
        position: relative;
        padding-top: 150px;
    }
}

@media (max-width: 750px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 32px;
        cursor: pointer;
    }

    .image-wrapper {
        width: 300px;
    }

    .part2 {
        font-size: clamp(32px, 5vw, 65px);
    }

    .part3 {
        font-size: clamp(36px, 6vw, 74px);
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background: #141d2f;
        padding: 24px;
        border-radius: 12px;
        gap: 16px;
    }

    .desktop-menu {
        display: none;
    }

    .header-right {
        display: none;
    }

    .navbar {
        display: block;
    }

    .part1 {
        font-size: 30px;
    }

    .part2, .part3{
        font-size: 70px;
    }

    .third-page-right {
        padding-left: 15px;
    }

    .third-page {
        padding-left: 0px;
    }

    .padding {
        padding-right: 10px;
    }

    .skills-box {
        padding-right: 15px;
    }

    .image-container {
        gap: clamp(35px, 5vw, 45px);
    }

    .image-container img {
        width: 44px;
        height: 50px;
    } 

    .language-pill {
        padding: 10px 10px;
    }

    .contact-container {
        padding: 0px 0px;
    }

    .privacy-page h1 {
        font-size: 50px;
    }
}

@media (max-width: 700px) {
    .front-image {
        height: 500px;
    }

    .contact-left, .contact-right {
        width: 95%;
    }

    .line {
        width: clamp(20px, 5vw, 500px);
    }

    .display-flex-start {
        justify-content: start;
    }

    .front-image {
        left: 0px;
        height: 375px;
        left: 50%;
        transform: translateX(-50%);
    }

    .bg-img {
        width: clamp(150px, 50vw, 450px);
        height: clamp(150px, 50vw, 450px);
    }

    .skills-box span {
        display: block;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-container {
        flex-direction: column;
    }

    .second-page {
        padding-left: 15px;
    }

    .footer {
        padding: 10px 5px;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .footer-right {
        gap: 10px;
        justify-content: center;
    }

    .footer-center {
        gap: 0px;
        width: 100%;
    }

    .footer-left {
        width: 16%;
    }
}

@media (max-width: 570px) {
    .part2, .part3{
        font-size: 40px;
        letter-spacing: -3px;
    }

    .first-page-h1 {
        gap: 5px;
        flex-direction: column;
    }

    .circle {
        height: 250px;
    }

    .part1 {
        writing-mode: initial;
        transform: none;
    }

    .button {
        width: 124px;
    }

    .gap30 {
        gap: 8px;
    }

    h1 {
        font-size: 55px;
    }

    .first-content {
        padding: 0 0px;
    }

    .privacy-page {
        padding: 1px;
    }

    .impressum-block p {
        font-size: 16px;
    }

    .privacy-page h1 {
        font-size: 29px;
    }

    .impressum-block h2 {
        font-size: 22px;
    }

    .section_container {
        padding: 4px;
    }
}

@media (max-width: 350px) {
    .project-card {
        width: 290px;
        padding: 14px;
    }
}
