html {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

*, *:before, *:after {
    box-sizing: border-box;
}

body {
    padding: 44px 0 0 0;
    margin: 0;
}

nav {
    display: flex;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    padding: 10px 15px 10px 15px;
    margin: 0 0 0 0;
    font-size: 16pt;
    background: white;
    z-index: 100;
}

#nav-name {
    flex: 1;
}

#nav-work {
    flex: 0 0 80px;
    text-align: right;
}

#nav-work a:hover {
    color: grey;
}

#nav-about a:hover {
    color: grey;
}

#nav-about {
    flex: 0 0 80px;
    text-align: right;
}

nav a {
    color: black;
    text-decoration: none;
    padding: 0 0 0 0;
}

section {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
}

.projekttitel {
    display: flex;
    align-items: flex-end;
    height: 100vh;
}

.projekttitel h1 {
    flex: 1;    
    margin: 0;
    padding: 0 0 30px 5%;
    font-size: 14vw;
    font-weight: 500;
    color: white;
}

#startbild {
    height: 100vh;
    position: fixed;   
    width: 100%; 
    top: 0;
    left: 0;
    z-index: -100;
}

#startbild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projekttext {
    padding: 4vw 4vw 2vw 5vw;
    margin: 0 5% 5% 5%;
    background: white;
}

.projektbeschrieb {
    font-size: 3.5vw;
    margin: 0;
}

.projektinfo {
    font-size: 2vw;
}

/* .back {
    padding: 4vw 4vw 2vw 5vw;
    margin: 5% 100% 0 0;
    width: 100px;
    position: absolute;
    z-index: 100;
} */

.projektbilder {
    background: white;
}

.projektbilder img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 95vh;
    padding-top: 5%;
}

.projektbilder-colum-5 {
    background: white;
    column-count: 2;
}

.projektbilder-colum-5 img {
    column-count: 2;
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 95vh;
    padding-top: 5%;
}

.titelbilder {
    display: flex;
    flex-wrap: wrap;
}

.titelbild {
    background: white;
    position: relative;
}


.titelbild img,
.titelbild a {
    width: 100%;
    display: block;
}

.projekte-titel {
    font-size: 22px;
    font-family: 'Open Sans', sans-serif;
    position: absolute;
    color: white;
    padding: 0px 0px 8px 14px;
    bottom: 0;
}  

.about-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;     /* Inhalte horizontal zentrieren */
    align-items: flex-start;     /* vertikale Ausrichtung oben lassen */
    gap: 40px;                   /* Abstand zwischen Spalten */
    width: 70%;                  /* Breite begrenzen */
    margin: 0 auto;              /* Container zentrieren */
    background: white;
    padding: 40px 20px;
  }
  

.about-beschrieb-2 {
    order: 7;
    width:20%;
    /*padding: 10px 20px 10px 20px;*/
    text-decoration: none;
    color: black;
    padding-bottom: 0px;
    /*border-bottom: 1px solid rgb(255,255,255);*/
}

.about-beschrieb-3 {
    width: 40%;
    order: 6;
    padding: 5px 15px 5px 5px;
}

a.schwarzer-link {
    color: black;
    text-decoration: underline;
  }

.projektbilder-einzel {
    column-count: 1;
    column-gap: 0;           
    background: white;
    clear: both;
}
  
.projektbilder-einzel img {
    display: block;
    width: 100%;              
    height: auto;
    margin: 0 auto;
    padding-top: 10px;
}


@media (min-width: 680px) {

    .titelbild {
        width: 50%;
    }

    .titelbild:nth-child(odd) {
        padding: 0vw 0vw 0vw 0vw;
    }

    .titelbild:nth-child(even) {
        padding: 0vw 0vw 0vw 0vw;
    }

    .startbild {
        order: 1;
    }

    .projektbeschrieb {
        font-size: 1.5vw;
        margin: 0;
    }

    .projektinfo {
        font-size:1vw;
    }

    .about-container {
        column-gap: 10px;
        padding-top: 10px;
        order: 4;
        background: white;
        display: flex;
        flex: 1;
        flex-flow: row wrap;
        width: 100vw;
    }

    .about-beschrieb-2 {
        order: 7;
        width:20%;
        padding: 5px 5px 5px 5px;
        text-decoration: none;
        color: black;
        padding-bottom: 0px;
        font-size: 1.3rem;
        line-height: 1.7rem;
        /*border-bottom: 1px solid rgb(255,255,255);*/
    }

    .about-beschrieb-3 {
        width:40%;
        order: 6;
        padding: 5px 15px 5px 5px;
        font-size: 1.3rem;
        line-height: 1.7rem;
    }

    .projektbilder {
        column-count: 2;
        column-gap: 10px;
        padding-bottom: 10px;
        order: 4;
    }

    .projektbilder img {
        width: 100%;
        padding-top: 10px;
    }

    .projektbilder-colum-5 {
        column-count: 5;
        column-gap: 10px;
        padding-bottom: 10px;
        order: 4;
    }

    .projektbilder-colum-5 img {
        width: 100%;
        padding-top: 10px;
    }

    .projektbilder-gross {
        column-count: 1;
        column-gap: 10px;
        order: 5;
        background: white;
        padding-bottom: 10px;
        padding-top: 10px;
    }
    
    .projektbilder-gross img {
        width: 100%;
    }

    .projektbilder-einzel {
        order: 6;
        clear: both;
        column-count: 1;
        column-gap: 10px;
        background: white;
        padding-bottom: 10px;
    }
    
    .projektbilder-einzel img {
        width: 60%;
        height: auto;
    }

    .projekttitel h1 {
        font-size: 9vw;
    }

    .projekttitel {
        height: auto;
        font-size: 40%;
        order: 3;
        min-height: 25vh;
    }
    
    .projekttext-container {
        min-height: 70vh;
    }

    .projekttext {
        padding: 1.5vw 1.3vw 1vw 2vw;
        margin: 60px 16px 0 60%;
        order: 2;
    }
}

@media (max-width: 800px) {
    .about-container {
        width: 100%;                  /* mehr Platz auf kleinen Screens */
        flex-direction: column;      /* untereinander anordnen */
        align-items: center;         /* Inhalt zentrieren */
        text-align: left;
        gap: 20px;
        padding-top: 20px;
    }
  
    .about-beschrieb-2,
    .about-beschrieb-3 {
        width: 100%;                /* volle Breite für beide Spalten */
        text-align: left;
        font-size: 1.1rem;
    }
}
