:root {
    --progress-green: green;
    --progress-yellow: rgb(241, 241, 45);
    --progress-red: rgba(255, 0, 0, 0.767);
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bree Serif', serif;
}

html {
    overflow-x: hidden;
    margin-right: calc(-1 * (100vw - 100%));
}

.error,
.status {
    color: lightcoral;
}

.error {
    display: block;
    white-space: pre-line;
}

.status {
    display: none;
    height: 20px;
}

#background {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-image: url(../img/background.jpg);
    background-size: 100% 100%;
    z-index: -1;
}

#navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 32px;
    -webkit-box-shadow: 0 6px 10px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 10px 2px rgba(0, 0, 0, 0.8);
    background-color: rgba(65, 65, 66, 0.8);
    height: 107px;
    z-index: 1;
}

#navbar ul {
    list-style: none;
}

#navbar li {
    display: inline-block;
    margin-right: 100px;
}

a {
    text-decoration: none;
    color: #ffffff;
    text-shadow: 2px 2px black;
}

a:hover {
    color: rgb(98, 169, 228);
}

#navbar-mobile ul {
    list-style: none;
}

#navbar-mobile li {
    padding-bottom: 50px;
}

#navbar-mobile {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    padding-top: 120px;
    z-index: 2;
    background-color: rgba(20, 20, 20, 0.95);
    transition: 0.3s;
    font-size: 32px;
}

#navbar-mobile.active-state {
    left: 50%;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: 0.3s;
    z-index: -1;
}

#overlay.active-state {
    background-color: rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    z-index: 1;
}

#navbar a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgb(98, 169, 228);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

#navbar a:hover::before,
#navbar a:focus::before {
    transform: scaleX(1);
    border-radius: 20px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    width: 80%;
    margin: 50px auto 20px;
}

.form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: white;
    text-shadow: 2px 2px black;
}

.label-input {
    width: 90%;
}

label {
    font-size: 20px;
}

input,
textarea {
    width: 100%;
    resize: vertical;
    background-color: rgba(70, 70, 70, 0.8);
    border: solid 1px rgb(30, 30, 30);
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.4);
    font-family: 'Bree Serif', serif;
    color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 2px 2px 50px rgba(70, 70, 70, 0.8) inset;
    transition: background-color 5000s ease-in-out 0s;
}

textarea {
    padding: 10px;
    box-sizing: border-box;
    font-size: 18px;
    text-shadow: 2px 2px black;
}

input[type=text],
input[type=email] {
    height: 35px;
    padding-left: 10px;
    box-sizing: border-box;
    font-size: 18px;
    text-shadow: 2px 2px black;
}

.button-area {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    padding-bottom: 15px;
}

button {
    width: 50%;
    height: 50px;
    border: solid 1px rgb(150, 150, 150);
    border-radius: 20px;
    background-color: rgb(12, 103, 168);
    font-size: 18px;
    cursor: pointer;
    -webkit-box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.4);
}

.g-recaptcha {
    padding-bottom: 10px;
}

.contact-box {
    width: 100%;
}

.shadow {
    -webkit-box-shadow: 1px 5px 15px 5px #000000;
    box-shadow: 1px 5px 15px 5px #000000;
}

.text-box {
    min-width: 300px;
    max-width: 550px;
    text-align: justify;

    border: 3px solid rgb(46, 45, 45);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    white-space: normal;
}

.text {
    padding-left: 20px;
    padding-right: 20px;
    color: white;
    text-shadow: 2px 2px black;
}

.text-box h1 {
    text-align: center;
}

.text-box p {
    font-size: 20px;
}

.me {
    height: auto;
    max-width: 300px;
    border-radius: 25px;
}

.upper-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
}

.project-item {
    display: flex;
    flex-direction: column;
    min-width: 25%;
    border: 2px solid rgb(46, 45, 45);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    white-space: normal;
    -webkit-box-shadow: 1px 5px 15px 5px #000000;
    box-shadow: 1px 5px 15px 5px #000000;
}

.project-item .description {
    font-size: 20px;
    text-align: left;
    width: 640px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    color: #ffffff;
    text-shadow: 2px 2px black;
}

.project-item.active-state .description {
    max-height: 500px;
    transition: max-height 1s;
}

.project-image {
    width: 150px;
    height: 150px;
    border: solid 1px black;
    border-radius: 30px;
    -webkit-box-shadow: 0 4px 4px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 4px 2px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-image:hover {
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 10px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 10px 2px rgba(0, 0, 0, 0.8);
}

hr {
    width: 95%;
}

.info {
    font-size: 18px;
    float: right;
    cursor: pointer;
    margin-left: 10px;
    text-shadow: none;
}

.upper-content h2 {
    font-size: 30px;
    margin-left: 30px;
    line-height: 60px;
    text-align: center;
}

.arrow {
    border: solid white;
    border-width: 0 3px 3px 0;
    padding: 8px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 15px;
    margin-right: 15px;
    transition: 0.2s;
}

.arrow.active-state {
    transform: rotate(225deg);
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.icons {
    width: 32px;
    height: 32px;
}

/********** Hamburger Symbol und Liste **********/
#hamburger {
    display: none;
    cursor: pointer;
    width: 35px;
    z-index: 3;
}

#hamburger.fixed {
    position: fixed;
}

#hamburger #bar,
#hamburger:after,
#hamburger:before {
    display: block;
    content: '';
    width: 100%;
    height: 5px;
    background-color: #ffffff;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 5px;
}

#hamburger.active-state:before {
    transform: rotate(-45deg) translate(-9px, 6px);
}

#hamburger.active-state:after {
    transform: rotate(45deg) translate(-9px, -8px);
}

#hamburger.active-state #bar {
    opacity: 0;
}

.underline-animation {
    display: inline-block;
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0087ca;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

/************************************/

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 920px) {
    label {
        font-size: 18px;
    }

    .text-box p {
        font-size: 18px;
    }

    .text-box h1 {
        font-size: 26px;
    }

    .contact-box {
        width: 90%;
    }

    .label-input {
        width: 90%;
    }

    #navbar {
        justify-content: flex-end;
    }

    #navbar ul {
        display: none;
    }

    .container {
        width: 100%;
    }

    .container .text-box {
        margin-left: 20px;
        margin-right: 20px;
    }

    .me {
        width: 50%;
        height: 50%;
        margin-bottom: 30px;
    }

    #hamburger {
        display: block;
        margin-right: 20px;
        padding: 5px;
    }

    .project-item {
        width: 90%;
    }

    .project-image {
        width: 110px;
        height: 110px;
    }

    .upper-content h2 {
        font-size: 20px;
        margin: 0;
        padding-top: 20px;
        line-height: 50px;
    }

    .upper-content .arrow {
        padding: 5px;
    }

    .project-item .description {
        width: 100%;
        font-size: 18px;
    }

    .break {
        display: none;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
/*@media only screen and (min-width: 810px) {} */

/* Large devices (laptops/desktops, 992px and up) */
/*@media only screen and (min-width: 992px) {}*/

/* Extra large devices (large laptops and desktops, 1200px and up) */
/*@media only screen and (min-width: 1200px) {}*/