* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Open Sans", sans-serif;
    font-size: 16px;
    min-height: 100vh; 
    background: #f4f6f9; 
    color: #333; 
}

.navbar {
    position: sticky;
    top: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}

.hero {
    margin-top: 0;
    text-align: center;
    font-size: 60px;
    color: white; 
    background: linear-gradient(
        rgba(20, 30, 48, 0.8),
        rgba(36, 59, 85, 0.8)
    ),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d");

    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px 20px; /* NEW */
}

.profile {
    display: flex;
    gap: 80px;
    align-items: Center;
    margin-top: 60px; 
    padding: 40px;
    background: white;
    border-radius: 10px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    
    
}

.Kurzprofil {
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;
}

.Kurzprofil h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #e74c3c;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}


.profile_foto {
    width: 360px;
    height: 360px;
    object-fit: cover;
    display: flex;
    margin: 30px auto 0 auto;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
    

}

.layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 60px; 
    padding: 40px;
    background: white;
    border-radius: 10px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}


.buttons {
    margin-top: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


#content-box {
    max-width: 1800px;
    padding-left: 0;
    flex: 1;
}


button {
    padding: 12px 20px;
    margin-right: 0;
    border: none;
    background-color: #e0e6ed;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}
.buttons button.active {
    background-color: #333;
    color: white;
}


button:hover {
    background-color: #2c3e50;
    color: white;
    transform: translateX(5px); 
}


.content {
    display: none;
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;
}


.content.active {
    display: block;
}


.content h2 {
    margin-bottom: 10px;
    position: relative;
}

.content h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #e74c3c;
    display: block;
    margin-top: 5px;
}

.skills-section {
    max-width: 1600px;
    margin: 60px auto;
    padding: 25px;
    border-radius: 8px;
    background: white;
    display: flex;
    gap: 90px;

}


.skill {
    display: flex;
    align-items: center;
    font-size: 20px;
    gap: 30px;

}

.kentnisse {
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;

}

.kentnisse h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: blue;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sprachen {
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;

}
.sprachen h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: blue;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.skill span {
    width: 240px;
    flex-shrink: 0;
}

.bar {
    width: 360px;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}


.fill {
    height: 100%;
    background: #2c3e50;
    border-radius: 3px;
}

.diplome-container {
    max-width: 1600px;
    margin: 60px auto;
    padding: 30px 40px;
    display: flex;
    gap: 90px;
    border-top: 1px solid #ddd;
    background: white;
}
.zertifikate {
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;

}

.zertifikate h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: blue;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}


.abacus {
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;
}

.abacus h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: blue;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}
.kentnisse,
.sprachen,
.zertifikate,
.abacus
 {
    flex: 1;
}


.kontakt-container {
    max-width: 1600px;
    margin: 60px auto;
    padding: 30px 40px;
    display: flex;
    gap: 60px;
    border-top: 1px solid #ddd;
    background: white;
}

.Kontakt_personal,
.Kontakt_formular {
    flex: 1;

}
.Kontakt_personal {    
    padding: 25px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e3e8ee;

}
.Kontakt_formular h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: blue;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.Kontakt_personal h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: blue;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}



.titel {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 30px;
}


input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
}

textarea {
    min-height: 100px;
}

.Kontakt_formular button {
    padding: 12px 20px;
    margin-right: 0;
    border: none;
    background-color: #e0e6ed;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}


.Kontakt_formular button:hover {
    background-color: #2c3e50;
    color: white;
    transform: translateX(5px); 
}



.Buttontotop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
    transition:all 03.s ease;
   
}


.download {
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
} 



.Kontaktbutton {
    background-color: #e0e6ed;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    
}


.Kontaktbutton:hover {
    background-color: #2c3e50;
    color: white;
    transform: translateX(5px); 
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1200px) {
    .profile,
    .layout,
    .skills-section,
    .diplome-container,
    .kontakt-container {
        gap: 40px;
        padding: 30px;
    }

    .hero {
        font-size: 48px;
    }

    .profile_foto {
        width: 300px;
        height: 300px;
    }
}


@media (max-width: 992px) {
    .profile,
    .skills-section,
    .diplome-container,
    .kontakt-container {
        flex-direction: column;
    }
     
    .Buttontotop {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
    }
    
    .navbar {
        padding: 15px 20px;
    }

    .layout {
        flex-direction: column;
    }

    .buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    button {
        font-size: 18px;
    }

    .hero {
        font-size: 40px;
    }
}


@media (max-width: 765px) {
    .profile,
    .skills-section,
    .diplome-container,
    .kontakt-container {
        flex-direction: column;
    }

    .profile_foto {
        width: 250px;
        height: 250px;
    }

    .hero {
        font-size: 34px;
        padding: 100px 15px 60px 15px;
    }

    .nav-links a {
        margin-left: 10px;
    }
}


@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero {
        font-size: 28px;
    }

    button {
        width: 100%;
    }

    .skill {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bar {
        width: 100%;
    }

    .titel {
        font-size: 24px;
    }
}


@media (max-width: 400px) {
    .hero {
        font-size: 22px;
    }

    .profile_foto {
        width: 200px;
        height: 200px;
    }

    body {
        font-size: 14px;
    }

    .titel {
        font-size: 20px;
    }
}