#ghg-main-nav {
    position: relative;
    left: 0;
}

.main-nav-item.level-1 .ghg-menu-separator {
    width: 1em;
    border: none;
}

.main-nav-item.level-1.menu-separator:hover {
    background: inherit;
}

@media only screen and (max-width: 989px) {
    .main-nav-item.level-1.menu-separator {
        display: none;
    }
}

/* bookstack */

.bb-bookstack-title {
    margin: 27px 0 11px 0;
    color: #000;
    font-size: 27px;
    line-height: 36px;
    font-family: SourceSansPro, Arial, Helvetica, sans-serif;
    font-weight: 400
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-title {
        margin: 25px 0 9px 0;
        font-size: 25px;
        line-height: 32px
    }
}

.bb-bookstack-content {
    color: #000;
}

.bb-bookstack-content h2, .bb-bookstack-content h3 {
    font-family: SourceSansPro, Arial, Helvetica, sans-serif;
    font-weight: 400
}

/* large header */
.bb-bookstack-content h2 {
    margin: 23px 0 11px 0;
    font-size: 23px;
    line-height: 31px
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content h2 {
        margin: 21px 0 9px 0;
        font-size: 21px;
        line-height: 27px
    }
}

/* medium header */
.bb-bookstack-content h3 {
    margin: 21px 0 11px 0;
    font-size: 21px;
    line-height: 28px
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content h3 {
        margin: 19px 0 9px 0;
        font-size: 19px;
        line-height: 25px
    }
}

/* small header */
.bb-bookstack-content h4 {
    margin: 13px 0 7px 0;
    font-family: SourceSansPro, Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content h4 {
        font-size: 14px;
        line-height: 20px
    }
}

/* tiny header */
.bb-bookstack-content h5 {
    margin: 13px 0;
    padding: 10px;
    font-family: SourceSansPro, Arial, Helvetica, sans-serif;
    font-weight: 400;
    background-color: #f4f4f4;
    font-size: 16px;
    line-height: 23px
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content h5 {
        font-size: 14px;
        line-height: 20px
    }
}

.bb-bookstack-content ol, bookstack-content ul {
    margin: 0 0 11px 20px;
    line-height: 25.5px;
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content ol, .bb-bookstack-content ul {
        margin: 0 0 9px 20px;
        line-height: 22.5px;
    }
}

.bb-bookstack-content ol ol, .bb-bookstack-content ol ul, .bb-bookstack-content ul ol, .bb-bookstack-content ul ul {
    margin-top: 11px;
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content ol ol, .bb-bookstack-content ol ul, .bb-bookstack-content ul ol, .bb-bookstack-content ul ul {
        margin-top: 9px;
    }
}

.bb-bookstack-content ol li {
    list-style-type: decimal;
}

.bb-bookstack-content ol ol li {
    list-style-type: lower-latin;
}

.bb-bookstack-content ol ul li {
    padding: 0;
}

.bb-bookstack-content li {
    margin: 0;
    padding: 0;
    line-height: 25.5px;
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .bb-bookstack-content li {
        line-height: 22.5px;
    }
}

.bb-bookstack-content ul ol li {
    background-image: none;
}

.bb-bookstack-content ol {
    margin-left: 0;
}

.bb-bookstack-content ol li {
    background: 0 0;
    padding: 0;
    margin-left: 40px;
}

table {
    max-width: 100%;
    background-color: transparent;
}

th {
    text-align: left;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 22.5px;
    border-top: 2px #999 solid;
    border-bottom: 2px #999 solid;
}

table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table > tfoot > tr > th, table > thead > tr > td, table > thead > tr > th {
    padding: 8px;
    line-height: 22.5px;
    vertical-align: top;
    border: 1px solid #ddd;
}

table > thead > tr > th {
    vertical-align: top;
    border-bottom: 2px solid #ddd;
    color: #000;
}

table > tbody > tr > th {
    background: #eee;
    color: #333;
    border-bottom: 1px solid #fff;
    text-align: left
}

table > tbody > tr > th.sub[scope=row], table > tbody > tr > th[scope=row] {
    background: #f0f0f0;
}

table > tbody > tr > td {
    border-bottom: 1px solid #ddd;
}

table caption {
    font-variant: small-caps;
    margin: 0 0 2px 6px;
}

table > caption + thead > tr:first-child > td, table > caption + thead > tr:first-child > th, table > colgroup + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > th, table > thead:first-child > tr:first-child > td, table > thead:first-child > tr:first-child > th {
    border-top: 0;
}

table > tbody + tbody {
    border-top: 2px solid #ddd;
}

table .table {
    background-color: #fff;
}

table.fixed {
    table-layout: fixed;
}

table.border_none, table.border_none tbody td, table.border_none tbody th, table.border_none td, table.border_none th {
    border: none;
}

/* style latetst posts */

ul.wp-block-latest-posts.wp-block-latest-posts__list {
    margin: 0px;
    margin-top: 14px;
}

ul.wp-block-latest-posts.wp-block-latest-posts__list li {
    width: 100%;
    margin: 10px;
    display: table-row;
}

@media only screen and (min-width: 768px) {
    ul.wp-block-latest-posts.wp-block-latest-posts__list {
        display: flex;
        margin-right: -20px;
    }

    ul.wp-block-latest-posts.wp-block-latest-posts__list li {
        width: 50%;
        margin-left: 0px;
        margin-right: 30px;
    }
}

.wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
    padding: 15px 30px 30px 30px;
    font-size: 19px;
    line-height: 25px;
    background-color: rgb(238, 238, 238);
    clear: both;
    margin-top: 0;
}

@media only screen and (max-width: 768px) {
    div.container > p {
        margin-left: 0px;
    }

    .wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media only screen and (min-width: 767px) {
    .wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
        height: 300px;
    }
}

@media only screen and (min-width: 1000px) {
    .wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
        height: 230px;
    }
}

@media only screen and (min-width: 1200px) {
    .wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
        height: 180px;
    }
}

.wp-block-latest-posts__featured-image {
    float: none;
    margin-right: 10px !important;
    margin-bottom: 0px !important;
}

@media only screen and (min-width: 768px) {
    .wp-block-latest-posts__featured-image {
        margin-left: 0px !important;
        margin-right: 0px !important;
        width: 100%;
    }
}

.wp-block-latest-posts__post-date {
    margin-left: 50px;
}

a.wp-block-latest-posts__post-title:hover {
    color: #000 !important;
}

a.wp-block-latest-posts__read-more {
    display: none;
}


.wp-block-latest-posts__post-title {
    background-color: rgb(238, 238, 238) !important;
    display: block;
    font-weight: bold;
    text-decoration: none !important;
    padding-left: 30px;
    padding-top: 10px;
    padding-bottom: 1px;
    font-size: 22px;
    line-height: 30px;
    margin-left: 0px;
    margin-right: 0px;
}

@media only screen and (min-width: 768px) {
    .wp-block-latest-posts__post-title {
        margin-left: 0px;
        margin-right: 0px;
    }
}

.wp-block-latest-posts__featured-image img {
    padding: 30px 30px 15px 30px;
    background-color: rgb(238, 238, 238);
}

ul.wp-block-latest-posts li:before {
    content: url('../images/pfeil.png');
    position: absolute;
    right: 10px;
    bottom: -7px;
}


@media only screen and (min-width: 768px) {
    ul.wp-block-latest-posts li:before {
        right: 0px;
    }
}

.wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
    margin-bottom: 0 !important;
}

ul.wp-block-latest-posts li:hover:after {
    content: url('../images/pfeil.png');
    position: absolute;
    right: 0px;
    bottom: -7px;
}

@media only screen and (max-width: 768px) {
    ul.wp-block-latest-posts li:hover:after {
        right: 10px;
    }
}

ul.wp-block-latest-posts li:hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-color: #777;
}

a.wp-block-latest-posts__post-title:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

ul.wp-block-latest-posts li {
    position: relative;
    display: inline-block;
}

/* style static latest posts */

ul.wp-block-latest-posts.wp-block-latest-posts__list.posts_on_home {
    margin: 0px;
    display: block;
}

ul.wp-block-latest-posts.wp-block-latest-posts__list.posts_on_home li {
    width: 100%;
    background-color: rgb(238, 238, 238);
    margin-top: 0px;
    margin-bottom: 40px;
    display: inline-block;
}


ul.wp-block-latest-posts.wp-block-latest-posts__list li {
    display: inline-block;
}


.posts_on_home img {
    padding: 15px 15px 15px 15px;
}

.posts_on_home .wp-block-latest-posts__featured-image {
    width: 66%;
    padding-top: 35px;
    padding-bottom: 35px;
    padding-right: 50px;
    margin-left: 20px !important;

}

.posts_on_home a.wp-block-latest-posts__post-title {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
    padding-bottom: 0px;
    text-decoration: none !important;
    padding-left: 50px;
    padding-top: 35px;
    background-color: rgb(238, 238, 238);
}

.posts_on_home a[href]:hover {
    color: #000;
    background-color: rgb(238, 238, 238);
}

.posts_on_home .wp-block-latest-posts__post-excerpt, .posts_on_home .wp-block-latest-posts__post-full-content {
    font-size: 18px;
    line-height: 27px;
    padding-left: 50px;
    clear: none;
    height: auto;
}

@media only screen and (max-width: 700px) {
    ul.posts_on_home a.wp-block-latest-posts__post-title {
        display: inline-block;
        padding-top: 0;
        padding-bottom: 0;
    }

    ul.posts_on_home .wp-block-latest-posts__post-excerpt, ul.posts_on_home .wp-block-latest-posts__post-full-content {
        padding-bottom: 20px;
    }

    ul.posts_on_home .wp-block-latest-posts__featured-image {
        padding-bottom: 0;
    }
}

label.ghg-message, label.ghg-message textarea {
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .ics-calendar {
        padding-left: 10px;
    }
}

.subpages-list .page_item a {
    text-decoration: none;
}

.widget-area ul.wp-block-latest-posts {
    padding-right: 50px;
}

.widget-area ul.wp-block-latest-posts li {
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .widget_recent_entries {
        display: none;
    }
}

.widget_recent_entries .box {
    margin-bottom: 0;
}

/* page-teaser */

.box {
    margin: 15px 0;
    padding: 0;
}

.box.page-teaser {
    margin-top: 0;
    margin-bottom: 15px;
}

a.box-teaser-extended .box-teaser-extended-img {
    padding: 10px;
}

.content-wrapper .horizontal-bg-container .container {
    padding: 15px 10px;
}

.page-teaser .box-teaser-extended-link {
    display: block;
    position: absolute;
    background-color: #66909b;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    color: #fff;
}

.box-teaser-extended-link svg {
    fill: #fff;
}

.content-wrapper a.teaser {
    align-self: stretch;
    box-sizing: border-box;
    padding: 1rem;
    display: block;
    position: relative;
    text-decoration: none;
    background-color: #eee;
    margin: 5px;
}

.content-wrapper a.teaser.three-columns {
    flex: 1 1 calc(33.333% - 10px);
}

.content-wrapper a.teaser.two-columns {
    flex: 1 1 calc(50% - 10px);
}

@media only screen and (max-width: 767px) {
    .content-wrapper a.teaser.three-columns {
        flex: 1 1 calc(50% - 10px);
    }

    .content-wrapper a.teaser.two-columns {
        flex: 1 1 calc(100%);
    }
}

@media only screen and (max-width: 511px) {
    .content-wrapper a.teaser.three-columns {
        flex: 1 1 calc(100%);
    }
}

.content-wrapper a.teaser:hover {
    background-color: #ddd;
    color: #000;
}

a.teaser h3 {
    margin-top: 0.5em;
}

a.teaser .teaser-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #66909b;
    fill: #fff;
}

.teaser-row {
    display: flex;
    flex-flow: row wrap;
}

a.teaser img {
    width: 100%;
    height: auto;
    transition: .3s;
}

a.teaser:hover img {
    transform: scale(1.02);
}