/* ############ CONTENT ############ */
content {
    grid-area: content;
    background-color: #EBEBEB;
    overflow: auto;
    display: grid;
    padding: 20px;
    grid-template-rows: 60px 45px 1fr;
    grid-template-columns: 100%;
    grid-template-areas:
        "headline"
        "options"
        "main";
}

/* ###### UI Background ###### */
.ui_background {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    background-color: rgba(2, 16, 21, 0.65);
    backdrop-filter: blur(3px);
    z-index: 30;
}
.div_front_full {
    position: fixed;
    background-color: #EBEBEB;
    width: 98%;
    height: 98%;
    border: 1px solid #fff;
    overflow: auto;
    display: grid;
    grid-template-rows: 60px 80px 1fr;
    grid-template-columns: 100%;
    grid-template-areas:
        "headline"
        "options"
        "main";
}
.div_front_middle {
    
    position: fixed;
    background-color: #EBEBEB;
    width: 750px;
    height: 90%;
    border: 1px solid #fff;
    overflow: auto;
    display: grid;
    grid-template-rows: 60px 80px 1fr;
    grid-template-columns: 100%;
    grid-template-areas:
        "headline"
        "options"
        "main";
}
.div_front_small {
    position: fixed;
    background-color: #EBEBEB;
    width: 408px;
    height: 400px;
    border: 1px solid #fff;
    overflow: auto;
    display: grid;
    grid-template-rows: 60px 80px 1fr;
    grid-template-columns: 100%;
    grid-template-areas:
        "headline"
        "options"
        "main";
}
.ui_background .headline {
    grid-area: headline;
    background-color: #155c8f;
}
.ui_background .headline h3 {
    color: #fff;
}
.ui_background .options {
    padding: 0 20px;
}
.ui_background .main {
    padding: 0 20px;
}

/* ###### CONTENT - OHNE DIV ###### */
.headline {
    grid-area: headline;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    background-color: #CCDAE3;
    height: 40px;
}

.options {
    grid-area: options;
}

.main {
    grid-area: main;
    margin-bottom: 20px;
}

content h3 {
    font-weight: 500;
    font-size: 20px;
    padding-left: 25px;
}

/* ###### CONTENT - Dashboard ###### */
wrapper {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 65% 1fr;
    grid-gap: 1rem;
    grid-template-areas:
      "erinnerung info"
      "neuigkeiten tipps";
}

.meedox-container {
    display: block;
    background-color: #CCDAE3;
    border-radius: 3px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: all 250ms;
    animation: fadein 0.5s ease-out normal backwards;
}

.loadErinnerung {
    grid-area: erinnerung;
    animation-delay: 0;
}
.loadInfo {
    grid-area: info;
    animation-delay: 250ms;
}
.loadNeuigkeiten {
    grid-area: neuigkeiten;
    animation-delay: 250ms;
}
.loadTipps {
    grid-area: tipps;
    animation-delay: 500ms;
}

.desktop_invisible {
    display: none;
}
.mobile_invisible {
    display: inline-block;
}

flex_container {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    border: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}
.flex_box {
    min-width: 300px;
    flex-basis: 300px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 0 10px 20px 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #BBCFDB;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
}
.flex_box .label_dunkel {
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #fff;
    background-color: #8baabf;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.flex_box .label_dunkel_unten {
    padding: 10px;
    background-color: #8baabf;
    border-top: 1px solid #fff;
}
.flex_box .label_dunkel_unten p {
    color: #fff;
}
.flex_box .label_hell {
    padding: 0;
    margin: 5px 10px;
    color: #363636;
}
.flex_box .input {
    border: 0;
    box-shadow: inset 0px 10px 23px -10px #AAA;
    padding: 5px 10px;
    margin: 0 10px 10px 10px;
    color: #363636;
    background-color: #fff;
}
.flex_box .von_bis_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 10px 10px 10px;
}
.flex_box .von_bis_container .von_bis {
    margin: 0;
    width: 35%;
}
.flex_box .von_bis_container .von_bis_p {
    margin: 10px;
}
.flex_box .input select {
    box-shadow: none;
    border: none;
    background-color: transparent;
    color: #363636;
    padding: 0;
}
.flex_box .checkbox_label {
    padding: 0;
    margin: 10px 40px;
}
.flex_box .checkbox_span {
    padding: 0;
    margin-left: -30px;
}


form_wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    padding: 0;
    margin: 0 0 0 2px;
}
form_wrapper label {
    background-color: #8baabf;
    padding: 5px;
    margin: 10px 0 0 0;
    border-bottom: 1px solid #fff;
}
form_wrapper input {
    border: 0;
    background-color: #BBCFDB;
    padding: 5px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}
form_wrapper input:hover {
    background-color: #EFEFEF;
    color: #363636;
    cursor: pointer;
}


/* ###################################### */
/* ############ MEDIA QUERYS ############ */
/* ###################################### */

/* ############ TABLETS ############ */
@media screen and (max-width: 1024px) {
    
    content {
        margin-left: 35px;
    }

    .div_front_middle {
        width: 94%;
        grid-template-rows: 70px 70px 1fr;
    }
}

/* ############ MOBILE ############ */
@media screen and (max-width: 480px)
{
    content {
        margin-left: 0;
        padding: 5px;
    }

    wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "erinnerung"
            "neuigkeiten"
            "tipps";
    }
    
    .loadInfo {
        animation-delay: 0;
    }

    .loadErinnerung {
        animation-delay: 250ms;
    }

    .loadNeuigkeiten {
        animation-delay: 500ms;
    }

    .loadTipps {
        animation-delay: 750ms;
    }
    
    .div_front_full {
        width: 94%;
        height: 96%;
        top: 2%;
        left: 3%;
        grid-template-rows: 70px 70px 1fr;
    }

    .div_front_small {
        width: 94%;
        height: 96%;
        top: 2%;
        left: 3%;
        grid-template-rows: 70px 70px 1fr;
        transform: none;
    }

    .ui_background .headline {
        height: 60px;
    }

    .ui_background .headline h3 {
        font-size: 16px;
        font-weight: 400;
    }

    .ui_background .main {
        padding: 0;
    }
    
    .desktop_invisible {
        display: inline-block;
    }
    
    .mobile_invisible {
        display: none;
    }
    
    .flex_box {
        margin: 0 5px 10px 5px;
    }
}