:root {
    --font-size: 1rem;
    --font-main: "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --line-height: 1.5rem;
    --color-accent: #59af81;
    --color-background-dark: #242424;
    --color-background-light: #ffffff;
    --color-text-dark: #121212;
    --color-text-light: #ffffff;
    --padding-small: 0.5rem;
    --padding-medium: 1rem;
    --padding-large: 1.5rem; 
    --margin-small: 0.5rem;
    --margin-medium: 1rem;
    --margin-large: 2rem; 
    color-scheme: light dark;
}

body {
    color: light-dark(var(--color-text-dark), var(--color-text-light));
    background-color: light-dark (var(--color-background-light), var(--color-background-dark));
    font-family: var(--font-main);
    font-size: var(--font-size);
    margin: 0;
    padding: 0;
    width: 100%;
}


/* Navigations-Leiste */

.nav {
    display: flex;
    justify-content: center;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.nav_list {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-background-dark);
    gap: 1rem;
    list-style: none;
    border-radius: 1000px;
    padding: 0.6rem 0.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.nav_link {
    color: var(--color-text-light);
    font-family: var(--font-main);
    display: inline-block;
    padding: var(--padding-medium);
    border-radius: 1000px;
    background-color: transparent;
    text-decoration: none;
    transition: 0.3s;
    padding: 0.6rem 1.4rem;
}

.nav_link:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.nav_link.active {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    font-weight: 600;
}

@media (max-width: 700px) {
    .nav_list {
        flex-direction: row; 
        font-size: 0.8rem;
        justify-content: space-around;
        width: 100%;  
        gap: 0.3rem;
        border-radius: 0px;
        padding: 0.6rem 0;
        box-shadow: none;
    }
    .nav_link {
        flex: 1;    
        padding: 0.6rem 0.6rem;
    }
}


/* Main-Abschnitt */

/* Home */

.home  {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.home div {
    flex: 1 1 300px;
    text-align: center;
}

.home img {
    flex: 1 1 300px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
    padding: 1rem;
    border-radius: 1000px;
    object-position:95% 50%;
    transform: scale(0.5);
}

@media (max-width: 700px) {
    .home img {
            transform: scale(0.8);
    }
}


/* About */ 

.about {
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about_info {
    padding: 2rem;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.about_flexbox {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.about_box {
    padding: 1.5rem;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    flex: 1 1 45%;
    max-width: 49%;
    box-sizing: border-box;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.about_box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about_box ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

@media (max-width: 700px) {
    .about_box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* Projects */

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    margin: 0  auto;
    padding: 2rem 0;
    color: var(--color-text-light);
    padding-bottom: 5rem;
}

.project_box {
    background-color: var(--color-background-dark);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    flex: 1 1 45%;
    max-width: 49%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 2rem;
}

.project_box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 40px;
}

#project_2016 {
    object-position: 57% 50%;
    transform: scale(1.0);
}

#project_2021 {
    object-position: center 61%;
    transform: scale(1.0);
}

#project_2006 {
    object-position: center 55%;
    transform: scale(1.0);
}

#project_2013 {
    object-position: center;
    transform: scale(1.0);
}

#project_2023 {
    object-position: 55% 75%;
    transform: scale(1.0);
}

#project_2024 {
    object-position: 45% 50%;
    transform: scale(1.0);
}

.project_box p {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
  .project_box {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* Gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 90%;
    max-width: 1400px;
    margin: 0  auto;
    padding-bottom: 5rem;
}

.gallery_box {
    width: calc(25% - 2rem);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.gallery_box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.gallery_box p {
    margin: 0;
    padding: 0;
    height: 0;
}

@media (max-width: 1000px) {
    .gallery_box {
        width: calc(33% - 2rem);
    } 
}


@media (max-width: 700px) {
    .gallery_box {
        width: calc(50% - 2rem);
    } 
}


@media (max-width: 500px) {
    .gallery_box {
        width: 100%;
    } 
}


/* Contact */

.contact {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.contact_start {
    margin-top: 1rem;
}

.contact_start h3 {
    font-size: 2rem;
    font-weight: 700;
}

.contact_start p {
    color: rgb(107 114 128);
}

.contact_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.form_box {
    display: flex;
    flex-direction: column;
}

.form_label {
    margin-bottom: 0.5rem;
}

.form_input, .form_textarea {
    border: 2px solid #e5e7eb;
    display: flex;
    height: 2rem;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    line-height: 1.25rem;    
}

.form_input:focus, .form_textarea:focus {
    outline: 2px solid var(--color-accent);
} 

.form_textarea {
    min-height: 120px;
}

.form_submit {
    border: none;
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 15px 5px;
    font-weight: 600;
    border-radius: 10px;
    color: var(--color-text-light);
    background-color: var(--color-accent);
    cursor: pointer;
}


/* Footer-Leiste */

.footer {
    background-color: var(--color-background-dark);
    padding: 3rem 3rem;
}

.footer_list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.footer_block {
    flex: 1 1 calc(25% - 2rem);
    max-width: 200px;
}

.footer_block h3 {
    flex: 1 1 200px;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.footer_block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_link {
    text-decoration: none;
    color: var(--color-text-light);
}

.footer_link:hover {
    color: var(--color-accent);
}

.footer_email {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 250px;
}

.footer_email input {
    padding: 0.6rem;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-accent);
}

.footer_email button {
    padding: 0.6rem;
    border: none;
    border-radius: 10px;
    color: var(--color-text-light);
    background-color: var(--color-accent);
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 600px) {
    .footer_block {
    flex: 1 1 calc(50% - 2rem);
    }
}

@media (max-width: 400px) {
    .footer_block {
        flex: 1 1 100%;
        align-content: center;
        font-size: 0.8rem;
    }
    .footer {
        align-content: center;
    }
}