/*
 Theme Name:   QPX
 Theme URI:    
 Description:  QuickpageX
 Author:       Erich Schweizer-Ferrari
 Author URI:   https://www.kath.ch
 Template:     wp-bootstrap-starter
 Version:      1.0.1
 Tags:         lightweight, uncluttered, easy to customize, based on Twitter Bootstrap v4.x
 Text Domain:  qpx
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/**
 * bg 009999
 * link 008888
 * hover 00aaaa
 */

html {
    height: 100%;
}
body {
    color: #444444;
    font-family: 'text-font', sans-serif;
    font-size: 1.2rem;
    height: 100%;
    line-height: 1.5;
}

body #page{
    position: relative;
}

h1 {
    font-family: 'title-font', sans-serif;
    font-size: 2rem;
}
h1.page-title, h1.entry-title {
    border-bottom: 1px solid #CCCCCC;
    font-size: 2rem;
    margin-bottom: 13px;
    padding-bottom: 11px;
}
h2 {
    font-family: 'title-font', sans-serif;
    font-size: 1.6rem;
}
h3 {
    font-family: 'title-font', sans-serif;
    font-size: 1.4rem;
}
h4 {
    font-family: 'title-font', sans-serif;
    font-size: 1.2rem;
}
h5 {
    font-family: 'title-font', sans-serif;
    font-size: 1.1rem;
}
h6 {
    font-family: 'title-font', sans-serif;
    font-size: 1rem;
}
h2 + h3 {
    padding: 0 !important;
}
.search.search-results h2.title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    padding: 0 0 1rem 0;
}

.screen-reader-shortcut {
    position: absolute;
    top: -1000em;
}
.screen-reader-shortcut:focus {
    left: 0.4rem;
    top: 0.4rem;
    height: auto;
    width: auto;
    display: block;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem 1rem;
    background: #f1f1f1;
    color: #009999;
    z-index: 100000;
    line-height: normal;
    text-decoration: none;
    outline: 0;
}

.site a, .site a.nav-link {
    color: #009999 !important;
}
a:hover {
    color: #00aaaa;
}

#page-sub-header {
    background-size: cover;
    height: 0;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 20.833%;
    padding-top: 0;
}
header#masthead {
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
}

.inline-image-float-left img {
    float: left;
    margin: 0.5rem 1rem 0.5rem 0;
}
.inline-image-float-right img {
    float: right;
    margin: 0.5rem 0 0.5rem 1rem;
}

.site-header-under .navbar {
    padding: 0;
}

.navbar-brand {
    min-width: 160px
}
.navbar-brand > a {
    color: #009999;
}

.navbar-brand img {
    max-height: 108px;
    height: auto;
}

.navbar-toggler {
    font-size: 2rem;
    margin: 2rem -1.2rem 0 0;
}
button#scr_navigation {
    color: white !important;
}

body:not(.theme-preset-active) #masthead .navbar-nav {
    margin-top: 0.5rem;
}

body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
    color: #009999;
    font-size: 1.3rem;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover {
    color: #00aaaa;
    text-decoration: underline;
}    
body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_item > a {
    color: #009999;
}    

body:not(.theme-preset-active) #masthead {
    background-color: #ffffff;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
    color: #ffffff;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover {
    color: #eeeeee;
}    
body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_item > a {
    color: #ffffff;
}    

#masthead > .container, .site-header-over > .container {
    max-width: 100%;
    margin-left: -15px;
    margin-right: -15px;
}
#masthead > .container > .navbar > .navbar-brand {
    margin-bottom: 13px;
    max-height: 108px;
    max-width: 30%;
}
#masthead .navbar-brand > a:hover {
    color: #00aaaa;
}
#masthead .navbar-nav > li > a {
    font-family: 'title-font', sans-serif !important;
}
#masthead .navbar-nav > li > a:hover {
    color: #009999;
    font-family: 'title-font', sans-serif !important;
}
#masthead .navbar-nav > li.active > a:hover {
    color: #009999;
    font-family: 'title-font', sans-serif !important;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li.active > a {
    font-weight: normal !important;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
    padding: 0.5rem 1rem 0.5rem 1rem;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover,
body:not(.theme-preset-active) #masthead .navbar-nav > li > a:focus {
    font-weight: normal !important;
}
.dropdown-menu {
    border: none;
    font-size: 1.2rem;
    margin-top: 0;
    min-width: auto;
}
.dropdown-menu .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
}
.menu-item {
    background-color: white !important;
}

.dropdown-item:hover {
    text-decoration: underline;
}
.menu-active {
    font-weight: bold !important;
}
.esf_parent_and_child_navigation {
    background-color: #F0F0F0;
    margin-top: 0.3rem;
    padding: 1rem 1rem 0.5rem 1rem;
}
.esf_parent_and_child_navigation ul {
    list-style-type: none;
    padding-left: 0;
}
.esf_parent_and_child_navigation ul ul {
    padding-left: 1.5rem;
}
.esf_parent_and_child_navigation li:last-child {
    padding-bottom: 0.5rem;
}

.container.utility-container{
    display: inline;
}

.utility-menu {
    font-size: 0.875rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}


body #masthead .navbar.utility-menu ul.navbar-nav li a{
    font-size: 0.875rem;
}

body #masthead .navbar.utility-menu ul.navbar-nav{
    margin-top: 0;
}

.footer-menu {
    background-color: #F0F0F0;
}
.footer-menu ul, .utility-menu ul {
    list-style-type: none;
}
.footer-menu li, .utility-menu li {
    float: left;
    padding: 0 1.5rem 0 0;
}
.footer-menu li:first-child {
    margin-left: -0.7rem;
}
.utility-menu li:last-child {
    padding: 0 2rem 0 0;
}

.utility-menu a.dropdown-item {
    font-size: 0.875rem;
}

.p-md-5 {
    padding: 1rem !important;
}
.qpx-header-image-caption {
    background-color: rgba(255, 255, 255, 0.7);
    color: #444444;
    display: block;
    float: right;
    font-size: 1rem;
    padding: 0 7px 0 7px;
}
.qpx-header-image-caption a {
    color: #004444;
}

.entry-content h2 {
    margin: 0 0 1.5rem 0;
    padding-top: 3rem;
}
.entry-content h3 {
    margin: 0 0 1.5rem 0;
    padding-top: 3rem;
}

.definition > iframe {
    margin-top: 11px;
}

.esf-person {
    padding-bottom: 0rem;
}
.esf-person + .esf-person, hr + .esf-person, p + .esf-person {
    padding-top: 3rem;
}

.esf-person .esf-floatnone {
    margin-left: 0;
    margin-right: 0;
}

.esf-person .esf-image-container {
    margin-top: -7px;
}

.esf-person h3 {
    margin-top: 0;
    padding-top: 0;
}

.esf-event-list .margin-top, .esf-post-list {
    margin-bottom: 2rem;
}
.esf-event-list .left.vertical {
    margin-bottom: 0;
}
.esf-event-list .right.vertical {
    margin-top: 0;
}

.esf-post-list .row {
    margin-bottom: 2rem;
}

.esf-post-list .excerpt a {
    color: #999999 !important;
}

.fullwidth {
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#masthead .navbar-nav > li:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    top: 0;
    width: 18rem;
}
#masthead .navbar-nav li > .dropdown-menu li:hover .dropdown-menu {
    left: 17rem;
    margin-top: 0;
    top: 0;
    width: 18rem !important;
    display: block;
}

.row.archive {
    margin-bottom: 2.5rem;
}
.row.archive .excerpt a, .row.archive .excerpt a p {
    color: #444444;
}

.esf-image-caption {
    background-color: transparent;
    overflow: auto;
}

.wp-block-image figure {
	margin-top: 0.7rem;
}

figcaption {
    font-size: 1rem;
}

.header-text {
    margin: 15px;
}

/**
 * gutenberg
 */
.wp-block-media-text {
    align-items: flex-start;
}
.wp-block-media-text > figure > img, .wp-block-media-text > figure > video {
    margin-top: 3.4rem;
}
.wp-block-social-links .wp-social-link a {
    color: white !important;
}

/**
 * collapse-o-matic
 */
.collapseomatic {
    background-position-y: 0.35rem;
    font-family: 'title-font', sans-serif;
    font-size: 1.6rem;
}
.collapseomatic_content {
    margin-top: 0.7rem;
}

/* Extra small devices (portrait phones, less than 576px)
   No media query since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) sm */
@media (min-width: 576px) {
    body:not(.theme-preset-active) #masthead .navbar-nav {
        margin-top: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) md */
@media (min-width: 768px) {
    body:not(.theme-preset-active) #masthead .navbar-nav {
        margin-top: 2rem;
    }
    .col-xs-12.col-md-3.order-md-first > div { /* sidebar left */
        border-right: 1px solid #E8E8E8;
        padding-right: 3rem;
    }
    .col-xs-12.col-md-3.order-md-last > div { /* sidebar right */
        border-left: 1px solid #E8E8E8;
        padding-left: 3rem;
    }
}

/* Large devices (desktops, 992px and up) lg */
@media (min-width: 992px) {
    body:not(.theme-preset-active) #masthead .navbar-nav {
        margin-top: 0;
    }
    body:not(.theme-preset-active) #masthead .navbar-nav > li:first-child > a {
        padding: 0.5rem 1rem 0.5rem 0.5rem;
    }
    #masthead .navbar-nav > li:hover > .dropdown-menu {
        margin-top: 1.3rem;
        top: 1rem;
    }
    #masthead .navbar-nav li > .dropdown-menu li:hover .dropdown-menu {
        left: 17rem;
        margin-top: -0.5rem;
    }
    .right h3 {
        padding-top: 0.2rem;
    }
    .header-text {
        background-color: rgba(255, 255, 255, 0.8);
        margin: 2rem 3rem 0 0;
        max-height: 15rem;
        max-width: 50%;
        overflow: auto;
        position: absolute;
        right: 0;
        vertical-align: top;
        width: auto;
        z-index: 100;
    }
    .header-text > .header-text-wrapper {
        padding: 1rem 2rem 2rem 2rem;
    }

}

/* Extra large devices (large desktops, 1200px and up) xl */
@media (min-width: 1200px) {
}
