/* Globale Styles */
*{
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: Myriad Pro, sans-serif;
    text-decoration: none;
    scroll-behavior: smooth; 
    font-size: 100%;
}

p{
    font-size: 1.3vw;
}

ul{
    list-style: none;
}

h1{
    font-size: 3vw;
    margin-bottom: 1.5rem;
    margin-top: 10%;
}

h2{
    font-size: 2.5vw; 
    margin-bottom: .4rem;
    margin-top: 1rem;
    font-weight: lighter;
}

h3{
    font-size: 1.7vw;
    margin-bottom: 0.4rem;
    margin-top: 1.2rem;
}

h4{
    font-size: 1vw;
    font-weight: lighter;
    font-style: italic;
    margin: 0;
}

.link{
    color: #57a333;
    text-decoration: none;
}

/* --------- Navigation --------------------------------------- */

#nav {
    overflow: hidden;
    background-color: #1b2a27;
    padding: 10px 20px;
    transition: 0.4s;
    width: 100%;
    z-index: 99;
    position: fixed;
    top: 0; 
    display: inline;
}

#nav a {
    color: #57a333;
    text-decoration: none;
    font-size: 1.5vw;
    padding: 10px 20px;
    border-radius: 4px;
}

#logo{
    z-index: 120;
    transition: 0.4s;
    width: 15%;
    left: 0;
}

#nav a:hover{
    color: #226E00;
}

a:hover{
    color: #226E00;
}

a.aktiv {
    color: white;
    text-decoration: none;
}

.navi {
    float: right;
    padding: 2.5% 0;
}

#nav .icon{
    display: none;
}




/* --------- Inhalt --------------------------------------- */

#content {
    display: flex;
    width: 100%;
    
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
}

aside {
    flex: 30%;
    min-width: 220px;
    padding: 2%;
    background-image: url(../Images/Unsplash_Rasenbild80kl.png);
    background-repeat: repeat-y; 
    background-size: 100%;
    z-index: 5;
    color: black;
}

#main {
    flex: 70%;
    background-color: white;
    padding: 3%;
}

#main p{
    margin-bottom: .8rem;
}


.chapter{
    padding: 10px 10px 10px 20px;
    background-color: #1B2A27;
    text-align: left;
    color: white;
    width: 100%;
    z-index: 10;
}
    
.footer {
    padding: 10px;
    width: 100%;
    background-color: #1B2A27;
    text-align: right; 
    color: white;
    font-size: 1vw;
    display: block;
}    


/* --------- einzelne Bilder ------------------------------ */

div.single {
    margin: 7px;
    width: 47%;
    min-width: 160px;
    height: auto;
    float: left;
}

div.single img {
    width: 100%;
    height: auto;
    object-fit: fill;
    background-size: cover;
}

/* --------- Responsive Layout ------------------------------ */
@media screen and (max-width: 1499px){
 
    
}

@media screen and (max-width: 1499px){
 
    
    .mehrButton {
    width: 60%;
    z-index: 300;
    padding-bottom: 1%;
    }
    
    h1{
        font-size: 3vw;
        margin-top: 15%;
    }    
}

/* --------------------------------- */ 
@media screen and (max-width: 1000px){
    
    h1{
        font-size: 3vw;
        margin-top: 15%;
    }

    h2{
        font-size: 2.5vw;
    }

    h3{
        font-size: 2vw;
    }

    h4{
        font-size: 1.3vw;
    }
    
    p{ 
        font-size: 1.5vw;
    }
    
    aside{
        padding: 3%;
        flex: 30%;
    }
    
    main{
        flex: 70%;
        max-width: 100% !important;
    }
    
    .footer {
    font-size: 1.5vw;
    } 
    
    #nav a {
        color: #57a333;
        text-decoration: none;
        padding: 10px 10px;
        vertical-align: middle;
        font-size: 2vw;
    }
    
    #logo{
        padding: .75% 0 0 0;
    }
    
    .overlay{
        width: 100%;
        padding: 3%;
    }
    
    .textfeld{
        color: white;
        text-align: left;
        top: 0;
        width: 100%;
    }
    
    .DEKarte {
        margin-right: 2%;
        font-size: 1vw;
        width: 20%;
    }
    
    .mehrButton {
        width: 40%;
        z-index: 300;
        padding-bottom: 1%;
    }

    
    /* ------ einzelne Bilder --------- */

    div.single {
        margin-left: 0;
        margin-right: 0;
        margin-top: 7px;
        margin-bottom: 7px;
        width: 100%;
        min-width: 160px;
        height: auto;
        float: left;
    }

    div.single img {
        width: 100%;
        height: auto;
        object-fit: fill;
        background-size: cover;
    }

/* --------------------------------- */ 

@media screen and (max-width: 750px){

    p{
        font-size: 16px;
    }

    h1{
        font-size: 30px;
        margin-top: 0%;
    }

    h2{
        font-size: 28px;
    } 

    h3{
        font-size: 24px;
    }

    h4{
        font-size: 18px;
    }
    
    aside{
        padding: 10%;
        flex: 30%;
    }
    
    #main {
        flex: 70%;
        background-color: white;
        padding: 3%;
        max-width: 100%;
    }
    
    .footer {
        font-size: 18px;
    } 
    
    
    /* ----- Navigation -----*/

    #nav {
    background-color:  #1b2a27;
    }
    
    #nav {
        padding: 2% !important;
    }
    
    #nav a{
        padding: 3% 2%;
        font-size: 18px;
    }
    
    .navi {
        padding: 0px !important;
    }
    
    .navi{
        display: none;
    }
 
    .navi {
        float: none;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .navi a{
        float: none;
        display: none;
        margin: 0;
        border-bottom: 2px solid grey;
        padding: 2% 3%;
    }
    
    .navi.responsive a {
        display: block;
    }
    
    #nav a.icon {
        float: right;
        display: block;
    }
    
    #nav a.icon img{
        width: 30%;
        float: right;
    }
    
    #logo{
        transition: 0.4s;
        width: 20% !important;
    }
        
    .DEKarte {
        visibility: hidden;
    }
    
    .overlay{
        width: 100%;
    }
    
    .textfeld{
        width: 100%;
    }
   
    
    /* ------ Bilder --------*/
    
    div.single {
    width: 100%;
    }

    div.single img {
    width: 100%;
    height: auto;
    object-fit: fill;
    background-size: cover;
    }

/* ------------------------------------------------- */ 

@media screen and (max-width: 500px){
    
     p{
        font-size: 16px;
    }

    h1{
        font-size: 30px;
        margin-top: 0%;
    }

    h2{
        font-size: 28px;
    } 

    h3{
        font-size: 24px;
    }

    h4{
        font-size: 18px;
    }
    
    aside{
        padding: 10%;
        flex: 100%;
    }
    
    #main{
        flex: 100%;
    }
    
    .footer {
        font-size: 16px;
    }
    
    /* ------- Navigation -------------------*/
    
    #logo{
        transition: 0.4s;
        width: 20% !important;
    }
        
    .DEKarte {
        visibility: hidden;
    }
    
    .overlay{
        width: 100%;
    }
    
    .textfeld{
        width: 100%;
    }
   
    
    /* --------- Bilder ---------------------*/
    
    
    div.single {
    width: 100%;
    }

    div.single img {
    width: 100%;
    height: auto;
    object-fit: fill;
    background-size: cover;
    }
    
}


    