/* 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: 15%;
}

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;
}


/* --------- Landingpage  --------------------------------------- */

.bg{
    background-image: url(..//Bilder/Hintergrundbild.jpg);
    height: 95%;
    max-height: 900px;
    min-height: 420px;
    width: auto;
    background-repeat:no-repeat;
    background-position: right;
    background-size: cover;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-end;
    align-items: flex-start;
    justify-content: center;
}

.overlay {
    height: 95%;
    max-height: 900px;
    min-height: 450px;
    width: 40%;
    background-color: rgb( 0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0px;
    z-index: 1;
    border: none;
    padding: 2%;
}

.textfeld{
    color: white;
    position: relative;
    top: 20%;
    text-align: left;
    float: left;
}

.DEKarte {
    width: 30%; 
    float: right; 
    transform: translateY(-70%);
}

.link{
    color: #57a333;
    text-decoration: none;
}

.mehr {
    z-index: 30;
}

.mehrButton {
    width: 60%;
    height: auto;
    padding-bottom: 2%;
    flex: 1;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.mehrButton:hover {
    -webkit-filter: drop-shadow(5px 5px 5px #000);
    filter: drop-shadow(5px 5px 5px #000); 
}


/* --------- 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: 40%;
    padding: 2%;
    background-image: url(../Images/Unsplash_Rasenbild80kl.png);
    background-repeat: repeat-y; 
    background-size: 100%;
    z-index: 5;
    min-width: 400px;
    color: black;
}

#main {
    flex: 60%;
    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: 1%;
    width: 100%;
    height: auto;
    background-color: #1B2A27;
    text-align: right; 
    color: white;
    font-size: 1vw;
}   

.imggif{
    width: 8%;
    position: relative; 
    animation: gifmove 15s infinite;
    animation-timing-function: linear;
    z-index: 20;
}

.gif{
    float: left;
    text-align: left;
    width: 80%;
    max-width: 100%;
}

@keyframes gifmove {
    from {left: -80px;}
    to {left: 100%;}
    0% {opacity: 1;}
    90% {opacity: 1;}
    100% {opacity: 0;}
}

/* --------- Bilder Galerie ------------------------------ */

.row > .column {
    padding: 1% 1%;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 50%;
    min-width: 170px;
}

.columnsmall {
    float: left;
    width: 10%;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    padding-top: 5%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 60%;
    max-width: 1200px;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
}

.cursor {
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1%;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 2vw;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Number text */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

#main img {
    margin-bottom: -4px;
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}

.demo {
    opacity: 0.6;
}

.active,
.demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


/* --------- 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;
}

/* --------- Kontaktformular ------------------------------ */

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

input, textarea {
    background: none;
    border: 2px solid #dadada;
    color: #575757;
    font-size: 1vw;
    height: 2rem;
    margin: 5px 0;
    padding: 10px 11px;
    resize: none;
    width: 40%;
    font-family: sans-serif;
}  

#nachricht {
    background-color: none;
    border: 2px solid #dadada;
    color: #575757;
    font: 13px ;
    height: 8rem;
    margin: 5px 0;
    padding: 10px 11px;
    resize: none;
    width: 50%;    
}

select {
    background: none;
    border: 2px solid #dadada;
    color: #575757;
    height: 2rem;  
    margin-left: 20px;
    resize: none;
    margin-bottom: 5px;
    width: 10%
} 

input:focus, textarea:focus {
    box-shadow: 0 0 5px #226E00; 
}

#senden {
    background: none;
    border: 2px solid #dadada;
    color: #575757;
    height: 40px;
   /* margin-left: 12px;  */
    resize: none;
    box-shadow: none;
    width: 50%;    
}

#senden:hover{
    background-color: #226E00;  
    color: white;
}

#senden:active {
    background-color: #57a333;
    color: white;
}  


/* --------- Responsive Layout ---------------------------- */


@media screen and (max-width: 1499px){
    
    .mehrButton {
    width: 60%;
    z-index: 300;
    padding-bottom: 1%;
}
}

/* --------------------------------- */ 
@media screen and (max-width: 1000px){
    
    h1{
        font-size: 3vw;
        margin-top: 20%;
    }

    h2{
        font-size: 2.5vw;
    }

    h3{
        font-size: 2vw;
    }

    h4{
        font-size: 1.3vw;
    }
    
    p{ 
        font-size: 2vw;
    }
    
    aside{
        padding: 3%;
        flex: 100%;
        background-image: url(../Images/Unsplash_Rasenbild80Mobil.png);
        min-width: 400px;
    }
    
    main{
        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;
    }
    
    
    /* Modal Content */
    .modal-content {
        width: 80%;
    }

    
    /* Next & previous buttons */
    .prev,
    .next {
        top: 50%;
        padding: 1%;
        font-size: 4vw;  
    }
    
        /* --------- Kontaktformular ------------- */

    input, textarea {
        font-size: 14px;
        width: 40%
    }  

    #nachricht {
        font-size: 14px ;
        width: 50%;    
    }

    select {
        background: none;
        border: 2px solid #dadada;
        color: #575757;
        height: 2rem;  
        margin-left: 20px;
        resize: none;
        margin-bottom: 5px;
        width: 40%
    } 

    input:focus, textarea:focus {
        box-shadow: 0 0 5px #226E00; 
    }

    #senden {
        background: none;
        border: 2px solid #dadada;
        color: #575757;
        height: 40px;
        resize: none;
        box-shadow: none;
        width: 240px;    
    }
    
    .imggif{
        width: 11%;
    }
    
    .gif{
        width: 70%;
    }
 
}


/* --------------------------------- */ 

@media screen and (max-width: 780px){

    p{
        font-size: 18px;
    }

    h1{
        font-size: 30px;
    }

    h2{
        font-size: 28px;
    } 

    h3{
        font-size: 24px;
    }

    h4{
        font-size: 18px;
    }
    
    aside{
        padding: 5%;
        width: 100%;
        background-image: url(../Images/Unsplash_Rasenbild80Mobil.png);
    }
    
    #main {
        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;
    }
    
    #navbar a:hover {
        color: #226E00 !important;
    }
    
    .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%;
    }
    

/* Modal Content */
     .modal {
        padding-top: 10%;
    }
    
    .modal-content {
        width: 90%;
    }

/* The Close Button */
    .close {
        font-size: 28px;
    }

    
/* Next & previous buttons */
    .prev,
    .next {
        top: 50%;
        font-size: 5vw!important;  
    }
    
    /* ------ Bilder --------*/
    
    div.single {
        width: 100%;
    }

    div.single img {
        width: 100%;
        height: auto;
        object-fit: fill;
        background-size: cover;
    }

    /* ------ Kontaktformular --------- */

    input, textarea {
        background: none;
        border: 2px solid #dadada;
        color: #575757;
        font-size: 16px;
        height: 3rem;
        margin: 5px 0;
        padding: 10px 11px;
        resize: none;
        width: 100%;
        font-family: sans-serif;
    }  

    #nachricht {
        background-color: none;
        border: 2px solid #dadada;
        color: #575757;
        font: 13px ;
        height: 8rem;
        margin: 5px 0;
        padding: 10px 11px;
        resize: none;
        width: 100%;    
    }

    select {
        background: none;
        border: 2px solid #dadada;
        color: #575757;
        height: 2rem;  
        margin-left: 20px;
        resize: none;
        margin-bottom: 5px;
        width: 40%;
    } 

    input:focus, textarea:focus {
        box-shadow: 0 0 5px #226E00; 
    }

    #senden {
        background: none;
        border: 2px solid #dadada;
        color: #575757;
        height: 40px;
        resize: none;
        box-shadow: none;
        width: 240px;    
    }

    #senden:hover{
        background-color: #226E00;  
        color: white;
    }

    #senden:active {
        background-color: #57a333;
        color: white;
    }   
    
    .imggif{
        width: 12%;
    }
    
    .gif{
        width: 65%;
    }
   
/* ------------------------------------------------- */ 
   
    .bg{
        background-image: url(..//Bilder/Hintergrundbild_Mobil.jpg);
    }  
    
    aside {
        background-image: url(../Images/Unsplash_Rasenbild80Mobil.png);
        min-width: 250px;
    }
    

/* ------------------------------------------------- */ 

@media screen and (max-width: 500px){
    
     p{
        font-size: 16px;
    }

    h1{
        font-size: 30px;
    }

    h2{
        font-size: 28px;
    } 

    h3{
        font-size: 24px;
    }

    h4{
        font-size: 18px;
    }
    
    aside{
        padding: 5%;
        flex: 100%;
        background-image: url(../Images/Unsplash_Rasenbild80Mobil.png);
    }
    
    .footer {
        font-size: 16px;
    } 
    
    /* ------- Navigation -------------------*/
    
    #logo{
        transition: 0.4s;
        width: 20% !important;
    }
        
    .DEKarte {
        visibility: hidden;
    }
    
    .overlay{
        width: 100%;
    }
    
    .textfeld{
        width: 100%;
    }
   
    
    /* --------- Bilder ---------------------*/
    
    .column {
    width: 100%;
    }
    
    .columnsmall {
    width: 10%;
    }
    
    .modal {
        padding-top: 15%;
    }
    
    .modal-content {
        width: 90% !important;
    }
    
    /* Next & previous buttons */
    .prev,
    .next {
        top: 55%;
        font-size: 5vw!important;  
    }
    
    div.single {
    width: 100%;
    }

    div.single img {
    width: 100%;
    height: auto;
    object-fit: fill;
    background-size: cover;
    }
    
    
    .mehrButton {
        display: none;
    }
    
    .imggif{
        width: 63%;
    }
    
    .gif{
        width: 20%;
    }
    
    @keyframes gifmove {
    from {left: -30px;}
    to {left: 100%;}
    0% {opacity: 1;}
    90% {opacity: 1;}
    100% {opacity: 0;}
}

    
}


    