html, body{
    margin: 0px;
    padding: 0px;
    height: 100%;
    text-align: center;
}

section{
    min-height: 100%;
}

a{
    text-decoration: none;
}

li{
    list-style-type: none;
}

h1, h2, h3, h4, a{
    font-family: sans-serif;
    font-weight: 500;
    color: #494949;
}

h1, a{
    text-transform: uppercase;
}

h1{
    font-weight: 900;
    font-size: 50px;
}

h3{
    font-size: 40px;
    padding-top: 100px;
    margin-top: 0;
    margin-bottom: 10px;
}

h4, p{
    font-family: serif;
    color: #494949;
}

hr{
    width: 30px;
    height: 3px;
    background: black;
    border: 0;
    margin: 0 auto 20px auto;
}

#logo, li, img .fa-bars{
    transition: all 300ms;
    -webkit-transition: all 300ms;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
}

.fa-bars{
    visibility: hidden;
}

/* HEADER **************************************/

header{
    width: 100%;
    height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);*/
    z-index: 2;
    border-bottom: gray solid 3px;
}

#logo{
    width: 150px;
    float: left;
    margin: 10px 0 0 50px;
}

#logo:hover{
    opacity: 0.5;
}

#logo img{
    width: 100%;
}

header .nav{
    float: right;
    margin: 22px 50px 0 0;
}

header .nav .nav-item{
    float: left;
    margin-left: 16px;
    font-size: 20px;
}

header .nav .nav-item:hover{
    padding-top: 5px;
}

/* HOME **************************************/

#home{
    background: url("../images/mainpage.jpg");
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

#home{
    margin-top: 65px;
}

#home hr{
    width: 0px;
    height: 0px;
}

#home h1{
    font-size: 65px;
    margin: 10% 10% 0 5%;
    color: black;
    opacity: 70%;
}

#home h2{
    font-size: 25px;
    color: black;
    font-weight: 700;
    opacity: 70%;
}

/* Ueber-uns **************************************/

#ueber-uns{
    padding: 0 20% 0 20%;
    background-color: #f0f0f0;
}

#ueber-uns .uberskontakt{
    padding-top: 30px;
}

#ueber-uns iframe{
    margin-top: 40px;
    width: 600px;
    height: 350px;
}

/* NEWS **************************************/

#news{
    overflow: hidden;
    padding: 0 10% 0 10%;
}

/*#news-flexbox{*/
.newsflash{
    display: flex;
    justify-content: center;
    gap: 10px 20px;
    /*background-color: aqua;*/
    flex-wrap: wrap;
}

/*#news-flexitem{*/
.mod-articlesnews__item{
    /*background-color: red;*/
    width: 400px;
    height: 350px;
    overflow: hidden;
    flex-grow: 1;
    flex-shrink: 1;
}

#news .newsflash img {
  width: 50%;
  height: 50%;
}

/* Mannschaft **************************************/

#mannschaft{
    background-color: #f0f0f0;
}

.blog{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.blog > div{
    min-width: fit-content;
    min-height: fit-content;
    margin: 10px;
}

.gruppe{
    padding-top: 0px;
}

.mannschaftsfoto{
    height: 500px;
}

.class_overlay_mannschaft{
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    /*padding-top: 65px;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    cursor: pointer;
    overflow-y: auto;
    align-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.class_overlay_mannschaft > .item{
    float: left;
    position: relative;
    /*width: 20%;*/
    height: fit-content;
    padding: 0 15px 0 15px;
}


/* Feuerwehrhaus **************************************/
#feuerwehrhaus{

}

.ruesthaus-front{
    height: 500px;
}

#raeume{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#raeume div{
    min-width: fit-content;
    min-height: fit-content;
    margin: 10px;
}

#feuerwehrhaus img{
    border-radius: 5px;
}

#raeume img:hover{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}


/* Fuhrpark **************************************/

#fuhrpark{
    background-color: #f0f0f0;
}

#kfz{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#kfz div{
    min-width: fit-content;
    min-height: fit-content;
    margin: 20px;
    position: relative;
}

#kfz div img{
    height: 300px;
    width: 400px;
}

#kfz p{
    font-size: 1.4em;
}

#kfz-name{
    position: absolute;
    bottom: 0px;
    background-color: lightgray;
    opacity: 0;
    transition: opacity 1s;
    width: 100%;
    text-align: center;
    z-index: 0;
}

#kfz img:hover + #kfz-name{
    opacity: 1;
}

#fuhrpark img{
    border-radius: 5px;
    width: 400px;
    height: 300px;
}

/* Jugend **************************************/

#jugend .gruppenfoto{
    margin-top: 40px;
    height: 25rem;
}


/* Chronik **************************************/

#chronik{
    padding: 0 20% 0 20%;
    max-height: 80%;
    overflow-y: auto;
}

#chronik h4{
  font-weight: bold;
}

/* Footer **************************************/

footer{
    width: 100%;
    height: 65px;
    background: #252525;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 0;
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

footer li{
    float: left;
    position: relative;
    text-decoration: none;
    height: 60px;
    width: 200px;
    line-height: 60px;
    display: block;
    margin: 0 20px 0 20px;
}

footer li:hover{
    opacity: 0.5;
}

footer a{
    color: #f0f0f0;
    font-family: sans-serif;
}

.versteckt{
  display: none;
}


/* MEDIA QUERIES **************************************/

/* TABLETS */

@media screen and (max-width: 1300px) {
    header{
        height: auto;
    }

    #logo{
        width: 100px;
        margin-top: 5px;
    }

    header .nav{
        margin-top: 11px;
        margin-right: 25px;
        padding-left: 0px;
    }

    header .nav .nav-item{
        font-size: 17px;
    }

    #home{
        margin-top:auto;
    }

    #home h1{
        font-size: 60px;
        margin-top: 200px;
    }

    #home h2{
        font-size: 20px;
    }

    h3{
        font-size: 35px;
        padding-top: 70px;
    }

    #ueber-uns{
        padding: 0 10% 0 10%;
    }

    #ueber-uns p{
        margin: 0;
    }

    #ueber-uns iframe{
        margin-top: 20px;
        width: 500px;
        height: 200px;
    }

    .ruesthaus-front{
        height: 400px;
    }

    #mannschaft .blog img {
        height: 150px;
        width: 100px;
    }

    #mannschaft .mannschaftsfoto{
        height: 300px;
    }

    #feuerwehrhaus .ruesthaus-front{
        height: 300px;
    }

    #raeume div img{
        height: 140px;
        width: 200px;
    }

    #kfz div img{
    width: 300px;
    height: 200px;
    position: relative;
    }

    #kfz div{
        width: 300px;
    }

    #kfz-name{
        opacity: 1;
        bottom: 15px;
        width: 100%;
        text-align: center;
        z-index: 0;
    }

    #jugend .gruppenfoto{
        height: 350px;
    }

    #jugend .blog img {
        height: 150px;
        width: 100px;
    }

    #chronik{
        padding: 0 10% 0 10%;
    }

    
    footer{
       height: 40px;
    }

    footer ul + li{
        padding: 0;
        margin: 0;
    }

    footer li{
        width: 150px;
        height: 20px;
        line-height: 20px;
    }

}

/* TABLET klein */

@media screen and (max-width: 1050px) {
    header .nav {
        margin: 0;
        float: none;
    }

    .fa-bars{
        font-size: 17px;
        display: block;
        width: 100%;
        cursor: pointer;
        text-align: right;
        float: right;
        margin: -25px 30px 0 0;
        visibility: visible;
    }

    .fa-bars:hover{
        opacity: 0.5;
    }

    header .nav{
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    header .nav.open{
        height: auto;
    }

    header .nav .nav-item{
        width: 100%;
        padding: 5px 0;
        margin: 0;
        border-top: 1px solid #dddddd;
    }

    header .nav .nav-item:hover{
        background-color: #eeeeee;
    }

    #home{
        margin-top: 41px;
    }

    #home h1{
        font-size: 40px;
        margin-top: 180px;
    }

    footer{
        width: 100%;
        height: auto;
        display:block;
    }

    footer ul{
        padding: 0;
    }
    
    footer li{
        float: none;
        height: 30px;
        width: 100%;
        display: block;
        margin: 0;
    }
}
/* MOBILES */

@media screen and (max-width: 480px) {
    h3{
        font-size: 30px;
        padding-top: 55px;
        margin-bottom: 5px;
    }
    
    #logo{
        margin-left: 10px;
    }
    
    #home h1{
        font-size: 30px;
        margin-top: 100px;
    }

    #ueber-uns iframe{
        margin-top: 20px;
        margin-bottom: 20px;
        width: 90%;
        height: 200px;
    }

    #mannschaft .mannschaftsfoto{
        height: 200px;
        margin-bottom: 20px;
    }

    #feuerwehrhaus .ruesthaus-front{
        height: 200px;
    }

    #raeume div{
        margin: 5px 0 5px 0;
    }

    #raeume div img{
        min-width: 300px;
        min-height: 200px;
    }

    #kfz div{
        margin: 5px 20px 5px 20px;
    }

    #jugend .gruppenfoto{
        height: 200px;
        margin-bottom: 20px;
    }

    #jugend > div p{
        margin-top: 0;
    }

    #jugend .item{
        margin: 0 10px 0 10px;
    }
}