/* Bank Winter Theme Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background: #dfdfd8;
    margin: 0 0;
    padding: 0;

    color: #4B4B4B;
    font: 16px "DTLVandenKeere WD","Times New Roman",Times,serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Layout with mobile-first approach */

#main, #primary, #secondary {
    -webkit-transition: all .2s ease-out;
    -moz-transition: all .2s ease-out;
    -o-transition: all .2s ease-out;
    transition: all .2s ease-out;

    background-color: #FCFCFB;
}

#main {
    margin: 0 0 1em;
    padding: 0 1em 5em;

    max-width: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#primary {
    margin: 0 0 1em;
    padding: 0 0 5em;
    width: 100%;
}

#secondary {
    display: none;
    font-family: "DTL Caspari WT","Helvetica Neue",Arial,Helvetica,sans-serif;
}

#mobile-header {
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;

    padding: 1em 0 0 0;
    margin-bottom: 1em;
    border-bottom: 1px solid #DCDCD5;
}

#secondary .imprint-section {
    padding-top: 1em;
}

#primary .imprint-section {
    display: block;
    width: 100%;
    padding: 2em 1em 0 1em;
}

.entry {
    padding: 0 1em;
}

/* Desktop Styles */
@media only screen and (min-device-width:767px) and (min-width:768px) {
    #main {
        max-width: 1100px;
        margin: 0 auto 1em;
        padding-top: 2em;

        -webkit-box-shadow: 0 3px 3px rgba(0,0,0,.2);
        -moz-box-shadow: 0 3px 3px rgba(0,0,0,.2);
        box-shadow: 0 3px 3px rgba(0,0,0,.2);

        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    #primary {
        margin: 0 0 1em;
        padding: 1em 1em 5em 1em;

        border-left: 1px solid #DCDCD5;
    }
    
    #secondary {
        display: block;
        min-width: 190px;

        margin: 0 0 1em;
        padding: 0 1em 5em;
    }

    #mobile-header {
        display: none;
    }

    #primary .imprint-section {
        display: none;
    }
}    

@media only screen and (min-device-width:1024px) and (min-width:1024px) {
    #main {
        padding: 4em 3em 5em;
    }

    #secondary {
        min-width: 290px;
    }
}

/* Table Styles */

.entry-content table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.entry-content td {
    font-size: 1em;
    vertical-align: top;
    padding: 0 .5em 1em 0;
    border: none;
    word-break: normal;
}


/* Branding Styles */

.custom-logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-top: 1em;
}

@media only screen and (min-device-width:767px) and (min-width:768px) {
    .custom-logo {
        max-width: 300px;
        margin-top: 0;
    }
}

/* Image Styles */

.entry-content img {
    max-width: 100%;
    height: auto;
}


/* Text and Header Styles */

h1, h2, h3, h4, h5, h6 {
    color: #183857;
    margin-top: 0;
    font-weight: normal;
}

h1 {
    font-size: 1.867em;
}

h2 {
    font-size: 1.333em;
}

.entry-content h2 {
    margin-bottom: .6em;
}

a {
    color: #183857;
    text-decoration: none;
}
    
a:focus, a:active, a:hover {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

a:active, a:hover {
    outline: 0;
}

.entry-title {
    cursor: default;
    font-family: "DTLVandenKeere WD","Times New Roman",Times,serif;
    margin-bottom: .75em;
}    

.entry-content {
    font-family: "DTL Caspari WT","Helvetica Neue",Arial,Helvetica,sans-serif;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.entry-meta {
    clear: both;
    border-top: 1px solid #DCDCD5;
    padding-top: 20px;
    margin-top: 20px;
}

.lnk-print, .post-edit-link {
    font-family: "DTL Caspari WT","Helvetica Neue",Arial,Helvetica,sans-serif;
    font-size: .800em;
}

.lnk-print, .post-edit-link, .gform_edit_link a {
    background: url(../img/sprite-mastergrid-24bit.png) no-repeat -380px 0;
    display: inline-block;
    min-height: 16px;
    padding-left: 22px;
}    

.imprint-section {
    clear: both;
}

address {
    font-family: "DTL Caspari WT","Helvetica Neue",Arial,Helvetica,sans-serif;
    font-style: normal;
    font-size: .800em;
    line-height: 1.6;
}


/* Default Menu Styles */

.menu-section {
    clear: both;
}

.menu-section.menu-primary {
    display: block;
    width: 100%;
    border: 1px solid #DCDCD5;
    border-width: 1px 0;
    padding: 1.750em 0;

    margin-bottom: 24px;
    margin-top: 24px;
}

.menu-section.menu-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-section.menu-primary li {
    display: list-item;
    text-align: match-parent;
    position: relative;
    margin-bottom: .067em;
}

.menu-section.menu-primary a {
    color: #656564;
    display: block;
    line-height: 1.875em;
    padding: 0 .625em;
    font-size: 1.188em;
    font-family: "DTLVandenKeere WD","Times New Roman",Times,serif;
    text-decoration: none;
    -webkit-transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

.menu-section.menu-primary a:hover,
.menu-section.menu-primary li.current-menu-item a {
    background: #183857;
    color: #FFF;
    }


.menu-section.menu-secondary {
    padding-bottom: 2em;
}

.menu-section.menu-secondary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-section.menu-secondary ul li {
    display: list-item;
    text-align: match-parent;
    float: left;
    padding-right: 1.13em;
    font-size: .8em;
}

.menu-section.menu-secondary ul a:before {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAFCAIAAADtz9qMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACtJREFUeNpikLAI//PnNwQxMTAwyNjEMIABE4SC8KGcJ0eWQDkQFhAABBgAlSEPicrDK2kAAAAASUVORK5CYII=") no-repeat left top;
    content: "";
    display: inline-block;
    height: 6px;
    width: 8px;
}

/* Mobile Menu Styles */

.mobile-modal-content .menu-section {
    padding-top: 2em;
}

.mobile-modal-content > .menu-section + .menu-section {
    padding-top: 0;
}

.menu-section-divider {
    border-bottom: 1px solid #DCDCD5;
    height: 1px;
    width: 100%;
    padding: 8px 0;
}

.menu-section-mobile ul {
    margin: 0;
    padding: 0;
}

.menu-section-mobile a {
    text-decoration: none;
}

.menu-section-mobile a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.menu-section-mobile.menu-main ul * {
    list-style: none;
    line-height: 40px;
    font-size: 20px;
    color: #4b4b4b;
}

.menu-section-mobile.menu-alt ul * {
    list-style: none;
    line-height: 40px;
    font-size: 16px;
    color: #4b4b4b;
}


/* --- Mobile Modal Overlay Styles --- */

.mobile-modal-overlay {
    display: none; /* default, shown via JS */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    animation: modal-fade-in .5s;
}

.mobile-modal-overlay.active {
    display: flex;
}

.mobile-modal-overlay.left {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    transition: opacity 0.5s ease;
}

.mobile-modal-overlay.right {
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    transition: opacity 0.5s ease;
}

.mobile-modal-content {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 2em 1.5em 1.5em 1.5em;
    max-width: 90vw;
    width: 260px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    animation: modal-fade-in .5s;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.mobile-modal-close img {
    width: 28px;
    height: 28px;
    display: block;
}

.mobile-menu-toggle,
.mobile-options-toggle {
    background: none;
    border: none;
    padding: 0.25em;
    margin: 0 0.5em 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mobile-menu-toggle img,
.mobile-options-toggle img {
    width: 30px;
    height: 30px;
    display: block;
}

@media (min-width: 768px) {
    .mobile-modal-overlay,
    .mobile-menu-toggle,
    .mobile-options-toggle {
        display: none !important;
    }
}

body.mobile-modal-open {
    overflow: hidden;
}


/* --- Language Switcher Styles --- */

div.wpml-ls {
    padding: 0;
}

.wpml-ls ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpml-ls ul li.wpml-ls-item {
    display: list-item;
    text-align: match-parent;
    float: left;
    padding-right: 1.13em;
    font-size: .8em;
}

.wpml-ls ul a:before {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAFCAIAAADtz9qMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACtJREFUeNpikLAI//PnNwQxMTAwyNjEMIABE4SC8KGcJ0eWQDkQFhAABBgAlSEPicrDK2kAAAAASUVORK5CYII=") no-repeat left top;
    content: "";
    display: inline-block;
    height: 6px;
    width: 8px;
}

.wpml-ls a li.wpml-ls-item, .wpml-ls a {
    line-height: 30px;
    padding: 0;
}

.wpml-ls a, .wpml-ls a span {
    color: #4B4B4B;
    text-decoration: none;
}

.wpml-ls a:hover span {
    text-decoration: underline;
    cursor: pointer;
}

.menu-section-mobile.menu-language-switcher .wpml-ls ul * {
    font-size: 20px;
    line-height: 40px;
}

.menu-section-mobile.menu-language-switcher .wpml-ls li {
    display: list-item;
    float: none;
}

.menu-section-mobile.menu-language-switcher .wpml-ls-current-language {
    font-weight: bold;
}

/* Slider Revolution Styles */

.revslider {
    margin-bottom: 1em !important;
}

.slider-font {
    font-family: "DTLVandenKeere WD","Times New Roman",Times,serif !important;
}

/* Misc */

hr, hr.wp-block-separator {
    border-top: 1px solid #DCDCD5;
    margin: 1em 0;
}