/* ============== Global Layout ================== */
.page-container {
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}

.container {
    position: relative;
    width: 960px;
    margin: 0 auto;
    padding: 0;
}

@media only screen and (max-width: 599px) {
    .container {
        width: 100%;
    }
}

@media only screen and (min-width: 600px) and (max-width: 1000px) {
    .container {
        width: 95vW;
    }
}

/* main section contains the content of a page */
main {
    background-color: white;
    padding: 20px;
}

/* ============== Header ================== */
:root {
    --chiro-header-height: 150px;
    --chiro-header-cover-height: 150px;
    --chiro-header-img-size: 120px;
    --chiro-header-img-margin-horizontal: 20px;
    --chiro-header-img-margin-top: 10px;
    --chiro-header-h2-margin-left: calc(var(--chiro-header-img-size) + var(--chiro-header-img-margin-horizontal));
}

.header {
    clear: both;
}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
    .hide-on-mobile {
        display: none;
    }
}

.header {
    margin-top: 0;
    margin-bottom: 0;
}

.static-header-part {
    width: 100%;
    height: var(--chiro-header-height);
    background-color: #250a38;
}

.static-header-part .wp-block-cover {
    height: var(--chiro-header-cover-height);
    min-height: unset;
    background-color: #250a38 !important;
}

.static-header-part .wp-block-columns {
    height: 140px;
    margin-top: 20px;
    display: flex;
    align-content: center;
}

.static-header-part .wp-block-cover > img {
}

.static-header-part figure {
    overflow: hidden;
    margin-top: var(--chiro-header-img-margin-top);
}

.static-header-part h2 {
    margin-top: 50px;
    margin-left: var(--chiro-header-h2-margin-left);
}

.static-header-part figure figcaption {
    display: none;
}

.static-header-part figure img {
    height: var(--chiro-header-img-size);
    width: auto;
    overflow: hidden;
}

.static-header-part figure:first-child {
    float: left;
    margin-right: var(--chiro-header-img-margin-horizontal);
    padding-top: 5px;
}

.static-header-part figure:nth-child(2) {
    float: right;
    margin-left: var(--chiro-header-img-margin-horizontal);
    border: 5px solid white;
    transform: rotate(5deg);
    height: calc(120px - 10px);
}

@media only screen and (max-width: 767px) {
    .static-header-part figure img {
        width: 15vW;
        height: 15vW;
    }

    .static-header-part figure:nth-child(2) {
        height: 15vW;
    }

    .static-header-part h2 {
        font-size: calc(10px + (19 * (90vW / 767)));
    }
}

/* ============== Footer ================== */

.footer {
    font-size: 14px;
    background: silver;
    padding: 10px;
    color: black;
}

.footer a {
    color: black;
    text-decoration: underline;
}

.footer a:hover {
    color: white;
}

.footer .widget {
    padding: 0 10px;
    box-sizing: border-box;
}

.footer .widget h3 {
    color: #bbb;
}

.footer .wp-block-columns {
    margin-bottom: 0;
}

.footer figure.ekhn-logo img {
    display: block;
    background-color: none;
    width: 50px;
}

.footer figure.ekhn-logo figcaption {
    display: none;
}

/* ============== Content ================== */

@media only screen and (max-width: 599px) {
    .gemeinde-app-entry.teaser:not(.event) > a {
        flex-direction: column;
    }

    .gemeinde-app-entry.teaser .main-image-container {
        margin-left: 0;
        width: 100%;
    }
}

.sticky {
    background: #f6f6f6;
}

.title {
    padding-bottom: 15px;
}

.meta {
    font-size: 0.8em;
    line-height: 1.4;
    font-style: italic;
    color: #999;
}

.meta div:empty {
    display: none;
}

.byline {
    font-size: 0.8em;
    font-style: italic;
    margin-top: -15px;
    margin-bottom: 15px;
}

.eo-events-shortcode li {
    list-style: none;
}

ul.eo-event-meta {
    list-style: none;
}

/* ============== Pagination ================== */

nav.nav {
    display: flex;
    justify-content: space-between;
    margin: 1em 0;
    hyphens: auto;
}

nav.nav a {
    text-decoration: none;
}

nav .nav-previous,
nav .nav-next {
    width: 40vW;
}

nav .nav-previous a,
nav .nav-next a {
    display: flex;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(73, 19, 112, 0.3);
    color: rgba(73, 19, 112);
    justify-content: center;
}

.nav-next a:after,
.nav-previous a:before {
    display: block;
    width: 20px;
    text-align: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-right: 0.2em;
    font-style: normal;
}

nav .nav-previous a:before {
    content: "\f104"; /* angle-left */
}

nav .nav-next a:after {
    content: "\f105"; /* angle-right */
}

/* ============== Header Menu ================== */

img._mi {
    /* menu-icon-plugin distorts aspect ratio of svg icons if the svg contains dimensions and if it needs to be rescaled */
    height: 100%;
}

.chiro-theme-menu,
.chiro-theme-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.chiro-theme-menu,
.chiro-theme-menu a,
.chiro-theme-menu li,
.chiro-theme-menu ul {
    background: #491370;
    color: #eee;
}

.chiro-theme-menu a:hover,
.chiro-theme-menu .current-menu-item a {
    background: rgba(255, 255, 255, 0.15);
}

.chiro-theme-menu {
    text-align: center;
}

.chiro-theme-menu li {
    position: relative;
    white-space: nowrap;
}

.chiro-theme-menu a {
    text-decoration: none;
    position: relative;
    padding: 0.75em 0.5em;
}

.chiro-theme-menu > li {
    display: inline-block;
}

.chiro-theme-menu > li > a {
    display: inline-block;
    margin: 0.25em 0;
    min-width: 3em;
}

/* Submenu */
.chiro-theme-menu li.menu-item-has-children > a:after {
    content: "\f0d7"; /* angle-left */
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-left: 0.2em;
    font-style: normal;
    opacity: 0.5;
}

.chiro-theme-menu ul.sub-menu {
    position: absolute;
    display: none;
    margin-top: -0.25em;
    left: 0;
    z-index: 1000;
    text-align: left;
    border: 1px solid white;
    border-top: none;
}

.chiro-theme-menu li:hover > ul.sub-menu,
.chiro-theme-menu li:focus-within > ul.sub-menu {
    display: block;
}

.chiro-theme-menu ul.sub-menu li,
.chiro-theme-menu ul.sub-menu a {
    display: block;
}

.chiro-theme-menu ul.sub-menu ul {
    top: 0;
    left: 100%;
    margin-top: 0;
}

.gemeinde-app-filters {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 2em;
}

.gemeinde-app-filter .selected {
    background: #491370;
    color: #eee;
}

.gemeinde-app-filter .selected svg {
    fill: #eee;
}

.gemeinde-app-filter .selected:after {
    content: "\f0d7";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-left: 0.2em;
    font-style: normal;
    opacity: 0.5;
}

@media only screen and (max-width: 599px) {
    .chiro-theme-menu > li {
        position: static;
    }
    .chiro-theme-menu ul.sub-menu {
        width: 80%;
        left: 10%;
    }
}

@media only screen and (min-width: 600px) and (max-width: 899px){
    .chiro-theme-menu ul.sub-menu {
        margin-left: -100%; /* Bei schmalen displays sollen die Untermenüs mehr Platz haben.  */
    }
}

/* Horizontal drop downs for desktop */
@media screen and (min-width: 900px) {
    .chiro-theme-menu {
        text-align: left;
    }

    .chiro-theme-menu > li > a {
        margin: 0;
    }

    .chiro-theme-menu ul.sub-menu {
        margin-top: 0;
        margin-left: 0;
    }
}

/* hide menu labels if too narrow screen */
@media only screen and (max-width: 899px) {
    .chiro-theme-menu li.menu-item ._mi + span {
        display: none;
    }

    .chiro-theme-menu li.menu-item ._mi {
        margin-left: 0;
        margin-right: 0;
    }
}

.gemeinde-app-link .app-name:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-right: 0.2em;
    font-style: normal;
    content: "\f35d"; /* fas fa-external-link-alt */
}

.gemeinde-app-entry .meta-info.main-audience:before,
.gemeinde-app-entry .meta-info.main-topic:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-right: 0.2em;
    font-style: normal;
}

.gemeinde-app-entry .meta-info.main-audience:before {
    content: "\f140"; /* fas fa-bullseye */
}

.gemeinde-app-entry .meta-info.main-topic:before {
    content: "\f02c"; /* fas fa-tags */
}

.gemeinde-app-entry .copyright-info {
    color: #444;
}

.gemeinde-app-link a {
    background-color: #f0f0f0;
}

.gemeinde-app-content a {
    color: #5d1f84;
}
