@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* #22223b #4a4e69 #9a8c98 #c9ada7 #f2e9e4 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #f2e9e4;
    padding-top: 0px;
    padding-right: 0px;
    margin: 0px;
}

main {
    padding: 0 40px;
    padding-top: calc(80px + 20px);
}


a {
    text-decoration: none;
    color: #9a8c98;
}


#header {
    padding: 50px 10px;
    min-height: calc(100vh - 80px - 250px); /* 80px nav, 250px footer */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22223b;
    font-size: 40px;
    margin-top: 5px;
    line-height: 85px;
    font-weight: 400;
    letter-spacing: .05rem;
    hyphens: auto; /* hyphens */
}

h1 {
    font-size: 70px;
    line-height: 75px;
    color: #22223b;
    margin-top: 5px;
}

h2 {
    font-size: 45px;
    line-height: 47px;
    color: #22223b;
    margin-top: 5px;
}

h3 {
    font-size: 30px;
    line-height: 32px;
    padding-top: 10px;
    color: #9a8c98;
    margin: 20px 0px;
}

h4 {
    font-size: 20px;
    line-height: 27px;
    color: #22223b;
    margin-top: 5px;
    max-width: 800px;
}

p {
    color: #22223b;
    font-size: 1.4rem;
    margin-top: 5px;
    max-width: 800px;
    padding-bottom: 20px;
    line-height: 2.5rem;
    font-weight: 400;
    letter-spacing: .05rem;
    hyphens: auto; /* hyphens */
}

img {
    flex-basis: 50%;
    overflow: hidden;
    margin-bottom: 70px;
    max-width: 50%;
    min-width: 25%;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: inherit;
    color: #22223b;
    text-align: right;
    padding: 20px 20px;

@media screen and (max-width: 600px) {
.img {    
    max-width: 80%;
    min-width: 25%;}
  }
}

/* ================ NAVIGATION ================ */
div.nav {
  padding: 10px;
  width: 100%;
  position: fixed;
  height: 80px;
  overflow: none;
  background-color: #f2e9e4;
}

/* ================ NAVIGATION Links ================ */
.nav a {
    float: left;
    color: #c9ada7;
    display: block;
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 18px;
}

/* ================ NAVIGATION Maus hover ================ */
.nav a:hover {
    background-color: transparent;
    color: #4a4e69;
}

/* ================ NAVIGATION aktive Seite ================ */
.nav a.selected {
    background-color: transparent;
    color: #4a4e69;
}

/* ================ NAVIGATION hide link on small screens ================ */
.nav .icon {
    display: none;
}


/* ================ NAVIGATION responsive ================ */

@media screen and (max-width: 600px) {
    .nav a:not(:first-child) {display: none;}
    .nav a.icon {
        float: right;
        display: block;
  }
}

@media screen and (max-width: 600px) {
    .nav.responsive {
        position: relative;
        overflow: visible}
    
    .nav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .nav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }       
}

/* ================ PROJEKTE ================ */

.section-title {
    font-size: 4rem;
    font-weight: 700;
    color: #22223b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: left;
}

#projects .projects {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

#projects .projects-header h1 {
    margin-bottom: 50px;
}

#projects .all-projects {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#projects .projects-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}

#projects .project-info{
    padding: 30px;
    flex-basis: auto;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    background-color: #838383;
    color: white;
}

#projects .project-info h3{
    font-size: 30px;
    line-height: 32px;
    padding-top: 10px;
    color: #9a8c98;
}

#projects .project-info h4{
    font-size: 20px;
    line-height: 27px;
    color: #22223b;
    margin-top: 10px;
}

#projects .project-info p{
    color: white;
}

#projects .img{
    flex-basis: 50%;
    height: 300px;
    overflow: hidden;
}

/* responsive - mobile */
@media (max-width: 400px) {

    h1 {
    font-size: 50px;
    line-height: 55px;
    color: #22223b;
    margin-top: 5px;
}

h2 {
    font-size: 30px;
    line-height: 37px;
    color: #22223b;
    margin-top: 5px;
}

h3 {
    font-size: 22px;
    line-height: 25px;
    padding-top: 10px;
    color: #9a8c98;
    margin: 20px 0px;
}
    
h4 {
    font-size: 17px;
    line-height: 20px;
    color: #22223b;
    margin-top: 5px;
    max-width: 800px;
}
    
.section-title {
    font-size: 2rem;
    line-height: inherit;
    font-weight: 700;
    color: #22223b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: left;
}
