/**
 * grid.css
 *
 * The grid ist seperated in header, main and footer.
 * Each of this elements contains a layout-wrapper to adjust the content accordingly.
 *
 * Index
 * - LAYOUT
 *   - WRAPPER
 * - HEADER
 *   - MAGS
 *   - CLAIM
 *   - SEAL
 *   - SEARCH
 *   - BENEFITS
 *   - SERVICES
 * - MAIN
 * - SIDEBAR
 * - FOOTER
 *   - LINKS
 *   - SOCIAL
 *   - SERVICES
 *
 * Media
 * - MOBILE (only)
 * - TABLET
 * - TABLET (only)
 * - DESKTOP
 */

/* ------------------------------------ *
 * #LAYOUT
 * ------------------------------------ */
html {
    font-size: 16px;
    overflow-x: hidden;
}
body {
    font-size: 1em;
    font-family: Amble;
    overflow-x: hidden;
    -ms-scroll-limit-x-max: 0;
}
body.body-overlay {
    overflow: hidden;
    max-height: 100%;
}

header {
    margin: 0 0 15px;
}

main {
    position: relative;
}

footer {
    margin: 20px 0 0;
}



/* #LAYOUT-WRAPPER */
.layout-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
main .layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}





/* ------------------------------------ *
 * #HEADER
 * ------------------------------------ */
.header-topmenu-container {
    width: 100%;
    background: rgb(224, 224, 224);
    margin: 0 0 10px;
}
.header-topmenu {
    display: flex;
    margin: 0;
    padding: 8px 0;
    justify-content: space-between;
    list-style: none;
}

.header-topmenu li {
    padding: 0 10px;
}

.header-topmenu li:nth-child(2) i {
    margin: 0 5px 0 0;
}
/*.header-topmenu li:nth-child(3) {*/
    /*display: none;*/
/*}*/

.header-row {
    display: flex;
    justify-content: center;
}

.header-logo {
    flex: 0 0 70%;

    flex: 0 0 auto;
    margin-right: 2%;
}
.header-logo img {
    display: block;
    margin: 0 auto;
    width: 200px;
}



/* #HEADER-MAGS */
.header-mags {
    display: none;
    margin: 0 0 0 35px;
}
.header-mags p {
    margin: 0;
    font-size: 0;
}
.header-mags br {
    display: none;
}
.header-mags img {
    display: block;
}



/* #HEADER-CLAIM */
.header-claim {
    display: none;
    margin: 15px 0 0;
}
.header-claim img {
    display: block;
    width: 100%;
    max-width: 230px;
}



/* #HEADER-SEAL */
.header-seal {
    flex: 0 0 30%;
    align-self: center;

    flex: 0 0 auto;
    margin-left: 2%;
}
.header-seal a {
    display: block;
    max-width: 64px;
    margin: 0 auto;
}
.header-seal img {
    display: block;
    max-width: 100%;
}



/* #HEADER-SEARCH */
.header-search {
    display: none;
    margin: 10px 0 0;
}
.layout-wrapper-search .header-search {
    display: block;
}
.header-search-container {

}
.header-search ul,
.header-search.fullscreen:before,
.header-search.fullscreen:after {
    display: none;
}
.search-box {
    display: flex;
    justify-content: center;
}
.search-box span {
    position: relative;
    width: 75%;
}
.search-box span i {
    position: absolute;
    padding: 8px;
    top: 4px;
    left: 6px;
    border-radius: 20px;
    font-size: 1em;
    background: rgb(255, 0, 0);
    color: rgb(255, 255, 255);
}
.search-box [type=text] {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    padding: 11px 4px 9px 45px;
    border: 1px solid rgb(180, 184, 184);
    border-right: none;
    border-radius: 18px 0 0 18px;
    font-family: Amble;
}

.search-box .button {
    padding: 8px 10px;
    border-radius: 0 2px 2px 0;
}



/* #HEADER-BENEFITS */
.header-search ul {
    justify-content: space-between;
    list-style: none;
    color: rgb(255, 255, 255);
    font-size: 0.95em;
}
.header-search ul li {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.header-search ul i {
    padding: 0 4px 0 0;
}



/* #HEADER-SERVICES */
.services-header {
    display: none;
    flex: 0 0 12%;
    align-self: center;
}
.services-header a {
    display: block;
    max-width: 74px;
    margin: 0 auto;
}
.services-header img {
    display: block;
    max-width: 100%;
}





/* ------------------------------------ *
 * #MAIN
 * ------------------------------------ */
.main-content {
    position: relative;
    max-width: 100%;
    margin: 0 10px;
    flex: 1 1 60%;
    order: 2;
}

.breadcrumb {
    display: none;
    width: 100%;
    margin: 0 0 15px;
    font-size: 0.7em;
}
.breadcrumb:empty {
    display: none;
}
.breadcrumb span {
    color: rgb(153, 153, 153);
}





/* ------------------------------------ *
 * #SIDEBAR
 * ------------------------------------ */
.sidebar {
    flex: 1 1 39%;
    order: 1;
    margin: 15px 10px 25px;
}
.sidebar ul {
    list-style: none;
}
.sidebar li {
    background: rgb(243, 243, 243);
    border-bottom: 1px solid rgb(255, 255, 255);
}
.sidebar li:nth-child(n+2):hover {
    background: rgb(224, 224, 224);
}
.sidebar li:first-child {
    border-radius: 2px 2px 0 0;
}
.sidebar li:last-child {
    border-radius: 0 0 2px 2px;
}
.sidebar a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 15px;
    text-decoration: none;
}
.sidebar li.nav-head {
    padding: 15px;
    background: rgb(131, 192, 41);
    color: rgb(255, 255, 255);
}
.sidebar li.nav-head a {
    
}
.sidebar li.current {
    font-family: AmbleBold;
    background: rgb(224, 224, 224);
}
.sidebar li.current a {
    
}
.sidebar-start {
    display: none;
}





/* ------------------------------------ *
 * #FOOTER
 * ------------------------------------ */
/* #FOOTER-LINKS */
.footer-links {
    padding: 10px 10px 20px;
    background: rgb(243, 243, 243);
}
.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 20px;
    list-style: none;
    align-items: center;
    justify-content: space-between;
}
.footer-links li {
    flex: 1 1 50%;
    padding: 0;
}
.footer-links a {
    display: block;
    padding: 15px 0;
}



/* #FOOTER-SOCIAL */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 120px;
    margin: 0 auto 15px;
}
.footer-social a {
    padding: 0;
}
.footer-social img {
    display: block;
}
.footer-copyright {
    text-align: center;
    font-size: 0.9em;
}



/* #FOOTER-SERVICES */
.footer-services {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    background: rgb(224, 224, 224);
}
.footer-service-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.footer-service {
    display: block;
    flex: 0 0 170px;
    padding: 10px;
}
.footer-service img {
    display: block;
    margin: 0 auto;
}
.footer-service a {
    display: block;
    text-align: center;
    text-decoration: none;
}
.footer-service strong {
    display: block;
    margin: 10px 0;
    font-size: 1.1em;
    color: rgb(1, 93, 168);
}
.footer-service span {
    display: block;
    margin: 10px 0;
    height: 75px;
}
.footer-service .button {
    display: block;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    font-family: Amble;
    font-size: 0.9em;
    background: rgb(131, 192, 41);
}



/* #MOBILE: only mobile */
@media not screen and (min-width: 640px) {
    main .layout-wrapper .main-content {
        order: 2;
    }
    main .layout-wrapper .sidebar {
        order: 3;
    }
    .header-topmenu li:first-child {
        display: none;
    }
    .header-topmenu li:nth-child(3) span:first-child {
        display: none;
    }



    /* #HEADER */
    /*.header-topmenu :nth-child(3) {*/
        /*display: none;*/
    /*}*/



    /* #FOOTER */
    .footer-services {
        display: block;
        width: auto;
        margin-right: 10px;
        margin-left: 10px;
        margin-bottom: 15px;
    }
    .footer-service-wrapper {
        display: block;
    }
    .footer-services.fullscreen {
        background: transparent;
    }
    .footer-service {
        flex: none;
        padding: 0;
        background: transparent;
    }
    .footer-service img {
        display: none;
    }
    .footer-service a {
        display: block;
        box-sizing: border-box;
        width: 100%;
        padding: 15px 10px;
        border-top: 1px solid rgb(255, 255, 255);
        text-decoration: none;
        color: rgb(255, 255, 255);

        border-radius: 2px;
        list-style: none;
        background: rgb(131, 192, 41);
    }
    .footer-service:first-child a {
        border: none;
        border-radius: 2px 2px 0 0;
    }
    .footer-service:last-child a {
        border-radius: 0 0 2px 2px;
    }
    .footer-service a * {
        display: none;
    }
    .footer-service .button {
        padding: 0;
        font-size: 1rem;
        text-align: left;
    }
    .footer-service .button:after{
        content: '\f0da';
        font-family: FontAwesome;
        margin: 0 0 0 4px;
    }
}





/* #TABLET */
@media screen and (min-width: 640px) {
    /* #LAYOUT */
    .layout-wrapper {
        width: auto;
        min-width: 640px;
        max-width: 55em;
        padding: 0 10px;
        box-sizing: border-box;
    }
    main .layout-wrapper {
        justify-content: space-between;
    }

    .main-content {
        margin: 0;
    }

    .main-content.main-content-sidebar {
        flex: 0 1 59%;
        max-width: 59%;
    }



    /* #SIDEBAR */
    .sidebar {
        flex-grow: 0;
        margin: 0;
    }
    .sidebar li.nav-head,
    .sidebar a {
        padding: 15px 10px;
    }



    /* #HEADER */
    header .layout-wrapper {
        margin-bottom: 10px;
    }
    .header-row {
        justify-content: flex-start;
    }
    .header-logo {
        flex-basis: auto;
        margin: 0;
    }
    .header-logo img {
        width: 230px;
    }
    .header-topmenu {
        height: 1rem;
        justify-content: space-between;
    }
    /*.header-topmenu li:nth-child(3) {*/
        /*display: block;*/
    /*}*/
    .header-topmenu li:nth-child(3) span:first-child a:after {
        content: '|';
        display: inline-block;
        padding: 0 10px 0 15px;
    }


    .header-search {
        display: block;
        width: 100%;
        position: relative;
        padding: 10px 0 10px;
        margin: 10px 0 20px;
        background: rgb(131, 192, 41);
    }
    .header-search.fullscreen:before,
    .header-search.fullscreen:after {
        display: block;
    }
    .header-search-container {
        display: flex;
        width: 100%;
        justify-content: space-around;
    }
    .search-form {
        display: none;
        max-width: 500px;
        flex: 0 0 50%;
    }
    .search-box span {
        width: 100%;
    }

    .header-search ul {
        display: flex;
        flex: 0 0 100%;
        justify-content: space-between;
    }


    .header-claim {
        display: block;
        flex: 1 1 auto;
        align-self: center;
        margin: 40px 4% 0 4%;
    }
    .header-seal {
        flex-basis: 12%;
        margin: 0;
    }
    .services-header {
        display: block;
    }

    /* with search */
    .layout-wrapper-search .header-search {
        display: block;
    }
    .layout-wrapper-search .search-form {
        display: block;
    }
    .layout-wrapper-search .header-search ul {
        flex: 0 0 50%;
        justify-content: space-around;
    }



    /* #FOOTER */
    .footer-links ul {
        padding: 0;
        justify-content: center;
    }
    .footer-links li {
        flex: 0 0 auto;
    }
    .footer-links ul a {
        padding: 15px 30px;
    }
}



 /* #TABLET only */
@media screen and (min-width: 640px) and (max-width: 1023px) {
    .layout-wrapper-search .header-search ul li:last-child {
        display: none;
    }
}



/* #DESKTOP */
@media screen and (min-width: 1024px) {
    /* #LAYOUT */
    body {
        background: rgb(243, 243, 243);
    }

    header {
        margin-bottom: 0;
    }

    main:before {
        content: ' ';
        display: block;
        position: absolute;
        top: -10px;
        width: 100%;
        height: 30px;
        background: rgb(131, 192, 41);
    }

    .layout-wrapper {
        width: 1024px;
        min-width: 1024px;
        max-width: 1024px;
        padding: 0 15px;
    }
    main .layout-wrapper {
        background: rgb(255, 255, 255);
        padding-top: 15px;
        padding-bottom: 15px;
    }



    /* #SIDEBAR */
    .sidebar {
        flex-basis: 23%;
        font-size: 0.94em;
    }
    .sidebar a,
    .sidebar li.nav-head {
        padding: 10px;
    }

    .main-content.main-content-sidebar {
        flex: 0 0 74.4%;
        max-width: 74.4%;
    }



    /* #HEADER */
    .header-seal,
    .services-header {
        flex-basis: 10%;
    }
    .header-mags {
        display: block;
    }

    .header-search {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .search-form {
        flex: 0 0 45%;
    }

    .layout-wrapper-search .header-search ul {
        flex: 0 0 53%;
    }



    /* #FOOTER */
    .footer-links ul a {
        padding-right: 15px;
        padding-left: 15px;
    }



    /* #MAIN */
    .breadcrumb {
        display: block;
    }
}
