/*
Name: style.css
Description: CSS-Datei für das Webdesign Tutorial.
Version: 1.0
*/

/* ################# STANDARTEINSTELLUNGEN ################# */

/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v30-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}


body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
}
h1, p {
    margin: 0;
}



/* ################# HEADER ################# */

/* Header ----------- */
header {
    width: 100%;
    background-color: rgba(84,139,84,0.9);
    position: fixed;
}
header .flex-box-xl {
    height: auto;
    align-items: center;
}
/* Logo ----------- */
header .logo img {
    height: 40px;
    margin: 10px 0px 10px 0px;
}
header .telefon img {
    height: 50px;
}
/* Menu-Button ----------- */
header .menu .menu-button {
    display: none;
}

/* Menu ----------- */
header .menu {
    text-align: right;
    font-size: 16px;
}
header .menu ul li {
    list-style: none;
    display: inline;
    margin: 0 0 0 20px;
}
header .menu ul li:first-child {
    margin: 0;
}
header .menu ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 200ms;
    position: relative;
    top: 0;
}
header .menu ul li a:hover {
    top: 3px;
    color: #336633;
}



/* ################# BANNER & INHALT ################# */

/* Banner ----------- */
.banner {
    background-image: url(../images/banner.jpg);
    width: 100%;
    height: 90%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
}
.banner h1 {
    
    width: 50%;
    height: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
}


/* Inhalt ----------- */
.inhalt .flex-box-sm {
    background: #fff;
    margin: 0px 15px 0px 15px;
    padding: 30px 15px 30px 15px;
    width: auto;
    text-align: center;
    color: #000000;
    line-height: 1.5;
    font-size: 20px;
}
.inhalt p {
    text-align: center;
    color: #000000;
    line-height: 1.5;
    font-size: 20px;
}
/* ################# GRAFIK ################# */
.flex { 
    flex-wrap: wrap;
    display: flex; 
    justify-content: center; 
    align-items: center;
    text-align: left;
    color: #000000;
    line-height: 1.5;
    font-size: 20px;
}
/* ################# FOOTER ################# */
footer {
    width: 100%;
    background-color: rgba(84,139,84,0.9);
    color: #fff;
}
footer .flex-box-sm {
    height: 45px;
    align-items: center;
}
footer .rechtliches {
    text-align: right;
}
footer .rechtliches ul li {
    list-style: none;
    display: inline;
}
footer .rechtliches ul li:last-child {
    margin-left: 10px;
}
footer .rechtliches ul li a {
    color: #ffffff;
    text-decoration: none;
}
footer .rechtliches ul li a:hover {
    color: #01F5FF;
}

.img-fit {
   width: 100%;
   object-fit: cover;
   height: 100%; 
}



/* ################### MOBILE ANPASSUNG ################################## */
@media screen and (max-width: 1200px) {
    /* ####### HEADER ####### */
    /* Header ----------- */
    header {
        background-color: rgba(84,139,84,0.9);
        position: fixed;
        top: 0;
        left: 0;
    }
    header .flex-box-xl {
        height: auto;
    }
    /* Logo ----------- */
    header .logo {
        height: 55px;
        z-index: 10;
    }
    header .logo img {
        height: 35px;
        margin: 10px 0px 0px 160px;
    }
    header .telefon img {
        height: 40px;
        margin: 6px 0px 0px 7px;
        position: absolute;
        top: 0px;  
    }
    /* Menu-Button ----------- */
    header .menu .menu-button {
        display: block;
        position: absolute;
        top: 18px;
        right: 12px;
        height: 20px;
        cursor: pointer;
        z-index: 20;
    }
    /* Menu ----------- */
    header .menu {
        text-align: center;
    }
    header .menu nav {
        background-color: rgba(51, 102, 51, 0.6);
        padding: 10px 0;
        display: none;
        position: relative;
    }
    header .menu nav.open-menu {
        display: block;
        animation: open-menu 250ms ease-out 0s normal forwards;
    }
    header .menu nav.close-menu {
        display: block;
        animation: close-menu 250ms ease-out 0s normal forwards;
    }
    header .menu ul li, header .menu ul li:first-child {
        list-style: none;
        display: block;
        margin: 0;
        padding: 7px 0;
    }
    /* ####### BANNER & INHALT ####### */
    /* Banner ----------- */
    .banner {
        background-image: url(../images/banner.jpg);
    width: 100%;
    height: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    }
    .banner h1 {
        font-size: 30px;
        padding-top: 60px;
    }
    /* Inhalt ----------- */
    .inhalt .flex-box-sm {
        margin: 0px 10px 10px 10px;
        padding: 20px;
    }
    /* ####### FOOTER ####### */
    footer .flex-box-sm {
        height: auto;
        padding: 10px 0;
        flex-direction: column-reverse;
    }
    footer .copyright, footer .rechtliches {
        text-align: center;
        margin-bottom: 5px;
    }
}
