@import url("reset.css");

/*-----------FONTS-----------*/

@font-face {
    font-family: 'Blauer Nue';
    src: url('../fonts/BlauerNue-Medium.woff2') format('woff2'),
        url('../fonts/BlauerNue-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Blauer Nue';
    src: url('../fonts/BlauerNue-Regular.woff2') format('woff2'),
        url('../fonts/BlauerNue-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CS Genio Mono';
    src: url('../fonts/CSGenioMono-Regular.woff2') format('woff2'),
        url('../fonts/CSGenioMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/*-----------FONTGESTALTUNG-----------*/

body {
    font-family: 'Blauer Nue';
}

p {
    font-size: 15px;
    line-height: 1.4;
}

a {
    font-size: 15px;
    text-decoration: none;
    color: var(--fontgrey);
}

h1 {
    font-weight: 500;
    font-size: 30px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 75px;
}

h1 span {
    color: var(--fontgrey);
}

h1 img {
    margin-bottom: -7px;
    width: 40px;
}

h2 {
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 25px;
}

h2 span {
    color: var(--fontgrey);
}

h2 img {
    margin-bottom: -7px;
    width: 40px;
}

h3 {
    font-weight: 500;
    font-size: 22px;
    line-height: 1.5;
    color: var(--fontgrey);
}

h4 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.button {
    color: var(--blue);
    border: solid 1px var(--blue);
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.5s ease;
}

.button:hover {
    background-color: var(--blue);
    color: white;
}

/*-----------AUFBAU-----------*/

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

section {
    padding: 100px 0;
}

:root {
    --grey: #EDEDED;
    --fontgrey: #AEAEB2;
    --blue: #0066CC;
}

.content {
    text-align: center;
    width: 75%;
    margin-left: 12.5%;
}


/*-----------NAVI-----------*/

nav {
    position: fixed;
    width: 100%;
    text-align: left;
    z-index: 100;
    background: white;
    padding: 20px 0;
}

nav ul {
    width: 75%;
    margin-left: 12.5%;
    display: inline-flex;
    justify-content: space-between;
}

nav ul li {
    font-size: 16px;
    color: var(--black);
}

nav ul li a {
    font-size: 16px;
    color: var(--black);
}

/*-----------About me-----------*/

.bio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 75px;
}


.bio-box {
    text-align: left;
    background-color: var(--grey);
    border-radius: 30px;
    padding: 50px;
    width: 100%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.19);
}

.bio-box:nth-of-type(1) {
    background-image: url('../images/emojis/winken.webp');
    background-size: cover;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
}


.info {
    display: inline-flex;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    color: var(--fontgrey);
    margin-bottom: 1rem;
}

.info:nth-of-type(5) {
    margin-bottom: 0;
}

.info p {
    line-height: 1;
}

.info-link{
    transition: 0.5s ease;
}

.info-link:hover{
    color: var(--blue);
}

.info img {
    height: 23px;
    margin-right: 10px;
    margin-top: -4px;
}

.info span {
    color: black;
}

.interessen {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interessen .info {
    margin-bottom: 0;
}

/*-----------Work-----------*/

#work {
    background-color: #F8F8F8;
}

#work h2 {
    margin-bottom: 100px;
    line-height: 1.5;
}

.projekte {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.projekt {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    padding: 50px;
    min-height: 400px;
    border-radius: 30px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.19);
    overflow: hidden;
    cursor: pointer;
}

.projekt:nth-of-type(1) {
    background-image: url('../images/projekte/backdoor/backdoor_main.webp');
}

.projekt:nth-of-type(2) {
    background-image: url('../images/projekte/daylightstudio/daylightstudio_main.webp');
}

.projekt:nth-of-type(3) {
    background-image: url('../images/projekte/solarregina/solarregina_main.webp');
}

.projekt:nth-of-type(4) {
    background-image: url('../images/projekte/travelbuddy/travelbuddy_main.webp');
}

.projekt:nth-of-type(5) {
    background-image: url('../images/projekte/rollsroyce/rollsroyce_main.webp');
}

.projekt:nth-of-type(6) {
    background-image: url('../images/projekte/blok/blok_main.webp');
}

.projekt:nth-of-type(7) {
    background-image: url('../images/projekte/lichtmuseum/lichtmuseum_main.webp');
}

.projekt:nth-of-type(8) {
    background-image: url('../images/projekte/atelier15/atelier15_main.webp');
}

.projekt:nth-of-type(9) {
    background-image: url('../images/projekte/helvetica/helvetica_main.webp');
}

.projekt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.5) 10%,
            rgba(0, 0, 0, 0.3) 20%,
            rgba(0, 0, 0, 0) 40%);
    border-radius: 30px;
    pointer-events: none;
}


.jahr {
    position: absolute;
    right: 25px;
    top: 25px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

.projekt-titel {
    position: absolute;
    text-align: left;
    bottom: 25px;
    left: 25px;
    color: white;
}

.projekt-titel p img {
    height: 20px;
    margin-right: 3px;
    margin-bottom: -4px;
}


/*-----------INTERESSE-----------*/

#interesse {
    background-color: black;
    overflow: visible;
    position: relative;
}

#interesse h2 {
    color: white;
}

.stop-memoji {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 102%;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mail-button {
    display: inline-block;
    background-color: white;
    border-radius: 10px;
    padding: 10px 0;
    width: 100px;
    text-align: center;
    transition: 0.5s ease;
}

.mail-button:hover {
    content: "Ja";
    transition: 0.5s ease;
    background-color: #00ba00;
    color: white;
}

/*-----------Unterseiten-----------*/

.detail h1{
    text-align: left;
    margin-bottom: 5px;
    line-height: 1.2;
}

.detail {
    text-align: left;
    margin-bottom: 50px;
}

.splide {
    margin-bottom: 30px;
}

.splide__slide img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 30px;
}

.detail h3 {
    color: black;
}

.detail h4 {
    color: var(--fontgrey);
    margin-bottom: 30px;
}

.detail p {
    margin-bottom: 30px;
    width: 80%;
}

.detail .info{
background-color: var(--grey);
margin-bottom: 30px;
}

.zurueck {
    color: var(--blue);
    border: solid 1px var(--blue);
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.7s ease;
}

.zurueck:hover {
    background-color: var(--blue);
    color: white;
}

.detail-boxen .info:hover{
    color: var(--blue);
}

/*-----------FOOTER-----------*/

footer {
    padding: 10px 0;
    background-color: black;
}

footer p,
footer a {
    color: white;
}

footer .col {
    flex-basis: 50%;
}

footer .col:nth-of-type(2) p {
    text-align: right;
}

footer a {
    margin-top: 1px;
}

/*-----------ANIMATION----------*/

 @keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(200px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left, .fade-in-right, .fade-in-up, .fade-in-down {
    opacity: 0;
}

.fade-in-down.visible {
    animation: fadeInDown 1.5s ease-in-out forwards;
}

.fade-in-left.visible {
    animation: fadeInLeft 1.5s ease-in-out forwards;
}

.fade-in-right.visible {
    animation: fadeInRight 1.5s ease-in-out forwards;
}

.fade-in-up.visible {
    animation: fadeInUp 1.5s ease-in-out forwards;
} 


/*-----------RESPONSIVE-----------*/

@media screen and (max-width: 1450px) {
    .stop-memoji{
  height: 90%;
}
}

@media screen and (max-width: 1400px) {

    
.bio{
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 50px;
    }

    .bio-box:nth-of-type(3){
        grid-area: 2 / 1 / 3 / 3;
    }

    .detail-boxen {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
        margin-bottom: 100px;
    }

    .detail:nth-of-type(1){
        grid-area: 1 / 1 / 2 / 2;
    }

    .detail:nth-of-type(2){
        grid-area:  2 / 1 / 3 / 2;
    }

}

@media screen and (max-width: 1350px) {
    .stop-memoji{
        display: none;
    }
}

@media screen and (max-width: 1050px) {
    .bio{
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 50px;
    }

    .bio-box:nth-of-type(1){
        grid-area: 1 / 1 / 2 / 2;
        height: 400px;
    }
    .bio-box:nth-of-type(2){
        grid-area: 2 / 1 / 3 / 2;
    }
    .bio-box:nth-of-type(3){
        grid-area: 3 / 1 / 4 / 2;
    }
}


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

    h1, h2{
        font-size: 25px;
        margin-bottom: 50px;
    }
    
    h1 img, h2 img{
        width: 30px;
    }

    

    .projekte {
        grid-template-columns: repeat(2, 1fr);
      }

    .projekt{
        min-height: 300px;
    }  
}

@media screen and (max-width: 750px) {

    .projekte {
        grid-template-columns: repeat(1, 1fr);
      }

}

@media screen and (max-width: 500px) {

    .content{
        width: 90%;
        margin-left: 5%;
    }

    nav ul{
        width: 90%;
        margin-left: 5%;
    }

    h1, h2{
        font-size: 20px;
    }
    
    h1 img, h2 img{
        width: 25px;
    }

    h4{
        font-size: 16px;
    }

    .bio-box:nth-of-type(1)
{
    grid-area: 1 / 1 / 2 / 2;
    height: 350px;
  }

}
