/* comfortaa-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 400;
    src: url('/css/fonts/comfortaa-v45-latin-regular.woff2') format('woff2'),
    url('/css/fonts/Comfortaa-Regular.ttf') format('truetype');
}

/* playfair-display-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('/css/fonts/playfair-display-v37-latin-regular.woff2') format('woff2'),
    url('/css/fonts/PlayfairDisplay-Regular.ttf') format('truetype'); 
    
  }

/* playfair-display-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Playfair Display';
    font-style: bold;
    font-weight: 600;
    src: url('/css/fonts/PlayfairDisplay-SemiBold.ttf') format('truetype'); 
    
  }

/* nunito-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('/css/fonts/nunito-v26-latin-regular.woff2') format('woff2'),
    url('/css/fonts/Nunito-Regular.ttf') format('truetype');
  }

:root {
    --cl-brand: #adcff4;
    --cl-high-emp: #25282b;
    --cl-med-emp: #828282;
    --cl-low-emp: #9a9fa8;
}

html {
    background-color: #f9faff;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito';
    font-size: 1.125;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    color: var(--cl-med-emp);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.bodycontent {
    padding: 0 3vw;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    transition: all 0.5s;
    width: 100%;
    
}

.button1 {
    padding: 0px 20px;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background-color: var(--cl-brand);
    color: var(--cl-high-emp);
    cursor: pointer;
    font-size: 0.8rem;
}

.button2 {
    padding: 0px 17px;
    height: 2rem;
    margin: 0 0 0 6px;
    border: solid;
    border-radius: 8px;
    border-color: var(--cl-high-emp);
    border-width: 1.5px;
    background-color: #f9faff;
    color: var(--cl-high-emp);
    cursor: pointer;
    font-size: 0.8rem;
}

.button3 {
    padding: 0px 20px;
    border: solid;
    border-radius: 1rem;
    height: 2rem;
    border-color: var(--cl-high-emp);
    border-width: 1px;
    background-color: #f9faff;
    color: var(--cl-high-emp);
    cursor: pointer;
    font-size: 0.8rem;
}

h1 {
    font-size: 3rem;
    margin: 3% 0%;
    font-family: 'Playfair Display';
    font-weight: bold;
    color: var(--cl-high-emp);
}

h2 {
    font-size: 2.4rem;
    font-family: 'Playfair Display';
    font-weight: bold;
    color: var(--cl-high-emp);
}

h3 {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Playfair Display';
    color: var(--cl-high-emp);
    margin: 0;
}

h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--cl-brand);
    margin-bottom: -3px;
}

#realabout h2 {
    margin-bottom: 25px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

header {
    color: var(--cl-high-emp);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: normal;
    font-family: 'Comfortaa';
    /* padding: 0 3vw; */
}

main p {
    line-height: 1.8;
    font-weight: lighter;
}


nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4em;
    transition: all 0.5s;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--cl-high-emp);
    text-decoration: none;
}

.section {
    padding: 60px 20px;
}

#about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4vw;
}

.content {
    max-width: 50%;
    transition: all 0.5s;
}

.image {
    position: absolute;
    overflow: hidden;
    top: -100px;
    left: 50vw;
    width: 100%;
    z-index: -1;
}

.mask1 {
    -webkit-mask-image: url(/img/puddle.png);
    -webkit-mask-size: 600px;
    mask-image: url(/img/puddle.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 100%;
    position: relative;
  }

.mask1 img {
    margin: 60px 0 0 0;
    width: 600px;
    object-fit: contain;
}

#realabout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4vw;
    transition: all 0.5s;
}

.about-image {
    position: relative;
    display: flex;
}

.about-image img {
    border-radius: 50%;
    max-width: 350px;
    transition: all 0.5s;
    width: 100%;
}


.project-cards {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-width: 600px;
    max-width: 750px;
    margin: 0 auto;
    min-height: 22rem;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.06); 

}

.card img {
    width: 50%;
    object-fit: cover;
}

.card-content {
    padding: 35px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content button {
    align-self: flex-start;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    color: var(--cl-high-emp);
    
}

form label {
    margin-bottom: 0px;
    margin-top: 15px;
    font-weight: lighter;
    font-size: smaller;
}

form input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e8ecf4;
}

form textarea {
    border-radius: 5px;
    border: 1px solid #e8ecf4;
    height: 200px;
}

form button {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background-color: var(--cl-brand);
    color: var(--cl-high-emp);
    cursor: pointer;
}

footer {
    color: var(--cl-med-emp);
    text-align: center;
    padding: 0px 0px 10vw 0px;
    font-size: 0.9em;
    font-weight: lighter;
    transition: all 0.5s;
}

#about-footer {
    margin-top: 90px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 4%;
    margin-bottom: 50px;
    margin-top: 60px;
    transition: all 0.5s;
}

.social-icons img {
    width: 40px;
    height: 40px;
    opacity: 80%;
}

#projects h2,
#contact h2 {
    text-align: center;
    margin: 0 0 1.5em 0;
}

#projects h2::after,
#contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2.5px; 
    background-color: var(--cl-brand);
    margin: 4px auto 0 auto; 
}

.wave-container {
    position: relative;
    bottom: 0px;
    width: 100%;
    overflow: hidden;
    margin: 0 0 -7px 0;
    height: auto;
}

.conditional-break::after {
    content: "";
}


@media (max-width: 768px) {

    header p {
        display: none;
    }

    nav ul {
        flex: 1;
        padding: 0;
        gap: 12vw;
    }

    header {
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        font-size: large;
    }

    body {
        width: 100%;
        min-width: 360px;
    }

    .bodycontent {
        padding: 0 0.5vw;
    }

    main {
        max-width: 100%;
        margin: 0 auto;
        
    }

    #about {
        flex-direction: column-reverse;
        text-align: center;
        position: relative;
        margin-top: 55vw;
        margin-bottom: -3em;
    }

    #realabout {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: -30px;
    }

    #realabout img {
        margin-bottom: 20px;
    }

    .content {
        max-width: 500px;
        margin-top: -20px;
    }

    .image {
        position: absolute;
        top: -108vw;
        left: -3vw;
        width: 103vw;
        z-index: -1; 
    }
    
    .mask1 {
        -webkit-mask-image: url(/img/puddle.png);
        -webkit-mask-size: 110vw;
        mask-image: url(/img/puddle.png);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        width: 100%;
        position: relative;
      }
    
    .mask1 img {
        margin: 26vw 0px 0px -12vw;
        width: 120vw;
        object-fit: contain;
    }

    .project-cards {
        flex-direction: column;
    }

    .card {
        flex-direction: column;
        max-width: 100%;
        min-width: 0;
    }

    .project2 {
        flex-direction: column-reverse;
        max-width: 100%;
        min-width: 0;
    }

    .card img {
        width: 100%;
        height: auto;
        min-height: 200px;
    }

    .card-content {
        width: 100%;
        min-height: 200px;
        padding: 30px;
    }

    .social-icons {
        gap: 7%;
    }

    .social-icons img {
        width: 36px;
        height: 36px;
    }

    #impressum {
        margin-left: 20px;
        margin-top: 20px;
    }

    #impressum h1 {
        margin-bottom: 10px;
    }


    #about-footer {
        margin-top: 0px;
    }

}


@media (max-width: 1000px) and (min-width: 769px) {

    .mask1 img {
        margin-left: calc(60vw - 610px);
    }

    #aboutcontent {
        max-width: 500px;
        transition: all 0.5s;
    }

    #realabout {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: -30px;
        transition: all 0.5s;
    }

    #realabout img {
        margin-bottom: 20px;
    }

    .social-icons {
        gap: 6%;
    }

}

@media screen and (max-device-width: 480px){
    body{
      -webkit-text-size-adjust: 100%;
    }
  }

@media (max-width: 921px) { /* Change 600px to your desired breakpoint */
    .conditional-break::after {
        content: "\A"; /* This is the newline character */
        white-space: pre; /* This is required to make the newline character work */
    }
}