:root {
    --oxydrot: #424242;
    --ocker: #a5a5a5;
    --grau: #e8e6e7;
}

header, footer {
    filter: saturate(0);
}

* {
    box-sizing: border-box;
}

html body {
    background-color: var(--grau);
    font-family: arial, helvetica, sans-serif;
    font-size: 0.8rem
}

.page-container {
    padding-top: 0.8rem;
    background-color: white;
    min-height: calc(100vh - 1.6rem);
    position: relative;
}

@media (max-width: 575px) {
    .page-container {
        padding-top: 0;
    }
}

.page-header {
    background: url("assets/header-line.png") repeat-x;
    height: 189px;
    margin: 0 -30px;
    padding: 1rem 30px 0;
    position: relative;
}

.page-header::before {
    content: "";
    position: absolute;
    left: -116px;
    top: 0;
    background: url("assets/header-side.png");
    height: 189px;
    display: block;
    width: 116px;
}

.page-header::after {
    content: "";
    position: absolute;
    right: -116px;
    background: url("assets/header-side.png");
    height: 189px;
    display: block;
    width: 116px;
    top: 0;
    transform: scaleX(-1);
}

.site-title-heading {
    font-family: Garamond, serif;
    text-transform: uppercase;
    font-size: 2.8rem;
}

.site-description {
    margin-left: 2rem;
}

.page-header *, .page-header a:hover, .page-header a:active {
    color: white;
    text-decoration: none;
}

.page-header .textwidget p {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .site-title-heading {
        font-size: 2.7rem;
    }
}

@media (max-width: 767px) {
    .site-title-heading {
        font-size: 2.7rem;
        padding-top: 2rem;
    }

    .page-header .textwidget {
        display: none;
    }

    .site-title .site-description {
        font-size: 16px;
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .site-title {
        margin-top: 2rem;
    }

    .site-title-heading {
        font-size: 7.5vw;
        text-align: center;
    }

    .site-title .site-description {
        font-size: 5vw;
        font-size: min(5vw, 16px);
    }
}


#mobileheader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 1rem;
    z-index: 123;
}

.admin-bar #mobileheader {
    top: 3rem;
    border-top: 1px red dashed;
}

#mobileheader .menu {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    display: inline-block;
    padding: 0.5rem;
    height: 3rem;
    width: 3rem;
    text-align: center;
}

#mobileheader .left {
    float: left;
}

#mobileheader .right {
    float: right;
}

#mobileheader .menu i {
    font-size: 2rem;
}

#content {
    padding-top: 0.8rem;
    background: white;
    margin-bottom: 0.8rem;
}

.page-link, .page-link:hover {
    color: var(--oxydrot);
}

.page-item.active .page-link {
    background-color: var(--oxydrot);
    border-color: var(--oxydrot);
}


.sidebar {
    background-color: var(--oxydrot);
    color: white;
    border-left: 0.8rem solid white;
    border-right: 0.8rem solid white;
    padding: 0;
}

.sidebar a {
    color: white;
    word-break: break-word;
    hyphens: auto;
}

.sidebar a:hover, .sidebar a:focus, .sidebar a:active {
    color: var(--grau);
}

.sidebar .widget {
    border: none !important;
}

.sidebar .widget_nav_menu {
    overflow: visible !important;
}


/*
    Custom grid for main layout
*/
@media (min-width: 768px) {
    .sidebar {
        position: relative;
        flex: 0 0 22%;
        max-width: 22%;
    }

    #main {
        position: relative;
        flex: 0 0 56%;
        max-width: 56%;
    }
}

/* @media (max-width: 991px) { */
/* .sidebar { */
/* position: relative; */
/* flex: 0 0 27%; */
/* max-width: 27%; */
/* } */
/* #main { */
/* position: relative; */
/* flex: 0 0 46%; */
/* max-width: 46%; */
/* } */
/* } */

@media (max-width: 767px) {
    #mobileheader {
        display: block;
    }

    .page-header, #site-footer {
        margin: 0 -15px; /* full width */
        overflow-x: hidden;
    }

    .sidebar {
        height: 100%; /* 100% Full-height */
        width: 0; /* 0 width - change this with JavaScript */
        position: fixed; /* Stay in place */
        z-index: 1; /* Stay on top */
        top: 0; /* Stay at the top */
        background-color: var(--oxydrot); /* Black*/
        overflow-x: hidden; /* Disable horizontal scroll */
        overflow-y: scroll;
        padding-top: 7rem; /* Place content 60px from the top */
        transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
        display: none;
    }

    .sidebar.open {
        display: block;
        max-width: 17rem;
        width: 80vw;
    }

    #sidebar-left {
        border-left: none;
        left: 0;
    }

    #sidebar-right {
        right: 0;
        border-right: none;
    }
}


/*
    Content styles
*/

#main article.post, #main article.page {
    padding: 0;
    border: none;
    margin-bottom: 2rem;
}

h1.entry-title, h2.entry-title {
    padding: 5px 2px 5px 2px;
    font-size: 1.424rem;
    border-top: solid 1px var(--grau);
    border-bottom: solid 1px var(--grau);
    color: var(--ocker);
    text-align: center;
}

.search-results h2.entry-title {
    font-size: 1.125rem;
}

h2 {
    font-size: 1.424rem;
}

h3 {
    font-size: 1.266rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

a, a:active, a:hover, a:focus {
    color: var(--ocker)
}

p a {
    color: var(--oxydrot);
}

.has-attentionred-color {
    color: #a50000;
}

img {
    border: solid 2px var(--oxydrot);
}

hr {
    padding-top: 2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    clear: both;
}

.alignwide + * {
    padding-top: 2rem;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.vorstand img {
    max-height: 150px;
    width: auto;
}

/*
    Hauptmenue
 */
ul.menu {
    padding-left: 0 !important;
}

ul.menu li {
    padding: 0.3rem 5px 0.3rem 20px;
    margin-left: 0;
    list-style-position: inside;
    list-style-type: square;
    text-indent: -12px;
}

ul.menu li + li {
    border-top: 1px solid var(--ocker);
}

ul.menu li::marker {
    margin-left: 20px;
}

.current-menu-item > a {
    font-weight: bold;
}

@media (min-width: 768px) {
    ul.menu li {
    }

    ul.menu li ul {
        position: absolute;
        background: var(--oxydrot);
        margin-left: 2rem;
        margin-right: -2rem;
        padding: 0 !important;
        display: none;
        z-index: 1;
        border: 1px solid var(--ocker);
        box-shadow: 0 2px 3px var(--grau);
    }

    ul.menu > .menu-item > a {
        hyphens: none;
    }

    ul.menu li.current-menu-item > ul, ul.menu li.current-menu-ancestor > ul {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0.3rem;
        margin-right: 0;
        display: block;
        z-index: 0;
        position: relative;
        border: none;
        border-top: 1px solid var(--ocker);
        box-shadow: none;
        margin-left: -0.5rem;
    }

    ul.menu li:active > ul,
    ul.menu li:focus > ul,
    ul.menu li:hover > ul {
        display: block;
    }

    ul.menu li ul li ul {
        display: none;
    }

    ul.menu li ul li:active > ul,
    ul.menu li ul li:focus > ul,
    ul.menu li ul li:hover > ul {
        display: block;
    }
}

@media (max-width: 767px) {
    #sidebar-left .widget ul {
        padding-left: 0;
        padding-top: 0.3rem;
    }

    ul.menu li {
        border-top: 1px solid var(--ocker);
        padding-right: 0;
    }

    ul.menu > li:last-of-type {
        border-bottom: 1px solid var(--ocker);
    }
}

#sidebar-right .widget_media_image {
    text-align: center;
}

#site-footer .widget_media_image {
    display: inline-block;
}

#sidebar-right .widget_media_image img,
#site-footer .widget_media_image img {
    margin: 0 0.5rem;
    border: none;
    filter: saturate(0);
}

#sidebar-right .widget_media_image img:hover,
#sidebar-right .widget_media_image img:focus,
#site-footer .widget_media_image img:hover,
#site-footer .widget_media_image img:focus {
    filter: none;
}


#site-footer {
    background-color: var(--oxydrot);
    border: none;
    position: relative;
    min-height: 8rem;
}

#site-footer::before, #site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    background: var(--oxydrot) url("assets/footer-corner.png") top left/2rem no-repeat;
    height: 100%;
    display: block;
    width: 4rem;
}

#site-footer::before {
    left: -4rem;
}

#site-footer::after {
    right: -4rem;
    transform: scaleX(-1);
}

@media (max-width: 767px) {
    #site-footer .widget_media_image img {
        margin: 0.5rem;
    }
}


#copyright {
    text-align: center;
    padding: 0.8rem;
    color: gray;
}

#copyright a {
    color: inherit;
}

form.search:focus-within .input-group {
    box-shadow: 0 2px 3px var(--grau);
    border-radius: 0.25rem;
}

form.search .form-control:focus,
form.search .form-control:focus + .input-group-append button {
    border-color: var(--ocker);
    outline: 0;
    box-shadow: none;
}

.dashaus figcaption {
    display: none;
}

.dashaus figure {
    position: relative;
}

.dashaus figure:hover figcaption {
    display: inline-block;
    position: absolute;
    top: 100%;
    margin-left: -50%;
    background: var(--oxydrot);
    width: 200%;
    height: 1.6rem;
    padding: 0.2rem;
}

.dashaus .blocks-gallery-item:first-of-type figcaption {
    margin-left: 0;
}

.dashaus .blocks-gallery-item:last-of-type figcaption {
    margin-left: -100%;
}


.museum::after {
    clear: both;
    content: " ";
    display: table;
    margin-bottom: 3rem;
}

.museum .image {
    float: left;
    margin-right: 1rem;
}

.museum .info {
    display: table;
}

@media (max-width: 767px) {
    .museum .image img {
        max-width: 20vw;
    }
}

.height-gallery .blocks-gallery-item {
    display: block;
    max-height: 300px;
    width: auto;
    height: auto;
}


/*
		Contact form
*/
.wpcf7-form {
    max-width: 40rem;
    margin: auto;
}

.wpcf7 br {
    display: none;
}

.wpcf7 label {
    display: inline-block;
}

.wpcf7 hr {
    clear: both;
    margin-bottom: 2.5em;
}

.wpcf7 span {
    display: inline-block;
}

.wpcf7 input, .wpcf7 select, .wpcf7 textarea {
    padding: 0.3rem;
    border-radius: 3px;
    border: 2px solid var(--ocker);
}

.wpcf7 textarea.low {
    height: 5rem;
}

span.wpcf7-form-control-wrap {
    padding-left: 1rem;
    /*width: 100%;*/
    display: block;
}

span.wpcf7-not-valid-tip {
    font-size: 0.8em;
    position: absolute;
    margin-left: 1em;
    display: block;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin-top: 1em;
}

.wpcf7 input[type="checkbox"] {
    width: auto;
}

.wpcf7 input.i:invalid {
    border-color: #c10000;
    box-shadow: inset 2px 1px 5px rgba(193, 0, 0, 0.4);
}

.wpcf7 input, .wpcf7 select, .wpcf7 textarea, .wpcf7 .half select, .wpcf7 .half > span, .wpcf7 .full > span {
    width: 100%;
    display: inline-block;
}

.wpcf7-radio {
    width: 100%;
    display: block;
}

.wpcf7-radio input {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
}

.wpcf7-radio .wpcf7-list-item {
    width: 100%;
    padding: 0.2rem;
}

.wpcf7-radio .first {
    margin-top: 0.6rem;
}

@media (min-width: 880px) {
    .wpcf7 .half {
        width: 50%;
        float: left;
        padding: 0 2% 0.6em 0;
    }

    .wpcf7 .offset {
        margin-left: 25%;
    }

    .wpcf7 .full {
        width: 98%;
        padding: 0 0 0.6em 0;
    }

    .wpcf7 .full span input[type="text"] {
        width: 100%;
    }
}

@media (max-width: 879px) {
    .wpcf7 p {
        margin: 0;
    }

    .wpcf7 .half, .wpcf7 .full {
        width: 100%;
        padding: 0 5% 1em 0;
    }

    .wpcf7 .half.mobile {
        width: 50%;
        float: left;
        padding: 0 5% 1em 0;
    }

    .wpcf7 .half.plz {
        width: 30%;
        float: left;
        padding: 0 5% 1em 0;
    }

    .wpcf7 .half.ort {
        width: 70%;
        float: left;
        padding: 0 5% 1em 0;
    }

    .wpcf7 .mobile input, .wpcf7 .plz input, .wpcf7 .ort input, .wpcf7-number {
        width: 100%;
    }

    /*.wpcf7 input[type="text"], .wpcf7 input[type="text"], .wpcf7 select {*/
    /*	width: 95%;*/
    /*	margin-left: 1em;*/
    /*}*/
    .wpcf7-form > label, .wpcf7-form fieldset > label {
        width: 100%;
        padding-bottom: 1em;
    }
}

.wpcf7 .math-quiz input.wpcf7-quiz {
    width: 4em;
}

.wpcf7 .message {
    padding: 0;
}


.wpcf7-radio input[type="radio"] + span {
    color: black;
    position: relative;
}

.wpcf7-radio input[type="radio"] + span::before {
    /* Outer Circle of radio button */
    border: 2px solid var(--ocker);
    content: ' ';
    display: inline-block;
    margin-right: 5px;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    transition: border 0.15s ease-in-out;
    margin-bottom: -.3rem;
}

.wpcf7-radio input[type="radio"] + span::after {
    /* Inner Circle of radio button */
    content: '\2713';
    position: absolute;
    left: 0.1rem;
    top: -0.6rem;
    font-size: 1.5rem;
    font-weight: bold;
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
}

input[type="radio"] {
    display: none;
}

/* When button is active */
.wpcf7-radio input[type="radio"]:checked + span::after {
    display: block;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-timing-function: linear;
    transition-timing-function: linear;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.wpcf7-radio input[type="radio"]:checked + span::before {
    /*border-color: var(--oxydrot);*/
}

.wpcf7-radio input[type="radio"]:checked + span {
    /*color: var(--oxydrot);*/
}