/*
Theme Name: Gesellschaft der Musikfreunde 2021
Theme URI: https://achtbit.media/
Author: Achtbit Media GmbH
Author URI: https://achtbit.media/
Description: Theme für die Gesellschaft der Musikfreunde Neustadt
Version: 1.0
Text Domain: gdm_2021
*/

:root {
    --bg-main: #ffffff;
    --bg-footer: #79817E;
    --bg-accent: #EFE7D3;
    --accent: #D5B674;
    --accent-hover: #a68d59;
    --font: #4E5453;
}

* {
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

body.admin-bar {
    height: calc(100% - 32px);
    margin-top: 32px;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

p {
    text-align: justify;
    hyphens: auto;
}

.gdm-widgets-no-justify p {
    text-align: unset;
    hyphens: none;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color .3s;
}

p a {
    font-weight: bold;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    margin: 0;
    padding: 0 0 0 30px;
}

ul li {
    list-style-type: none;
    position: relative;
}

ul li:before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    position: absolute;
    left: -20px;
    top: 8px;
}


.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    color: white;
    transition: background-color .3s, color .3s;
    z-index: 7;
}

body.admin-bar .main-menu {
    top: 32px;
}

body.scrolled .main-menu {
    background-color: var(--bg-accent);
    color: var(--font);
}

.logo {
    float: left;
    padding: 20px 20px 20px 40px;
    height: 100%;
    box-sizing: border-box;
}

.logo img {
    display: block;
    height: 100%;
}

body .logo .logo-dark {
    display: none;
}

body .logo .logo-color {
    display: block;
}

body.scrolled .logo .logo-dark {
    display: block;
}

body.scrolled .logo .logo-color {
    display: none;
}

.nav {
    float: right;
}

.nav ul {
    padding: 0;
    margin: 0 20px 0 0;
}

.nav ul li {
    list-style-type: none;
    float: left;
    padding: 20px 0;
    margin: 0 20px;
    position: relative;
    display: block;
}

.nav ul li:before {
    display: none;
}

.nav ul li a {
    text-decoration: none;
    text-transform: uppercase;
    line-height: 40px;
    display: block;
    color: inherit;
    transition: color .3s;
}

.nav ul li ul li:hover > a {
    color: black;
}

.nav ul li.current-menu-item > a, .nav ul li.current-menu-parent > a {
    font-weight: bold;
}

.nav > ul > li.current-menu-item, .nav ul li.current-menu-parent {
    padding-top: 12px;
    border-top: 8px solid var(--accent);
}

.nav ul li ul {
    background-color: var(--bg-accent);
    position: absolute;
    top: 80px;
    left: -20px;
    margin: 0;
    padding: 0;
    color: var(--font);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    transition: transform .3s, opacity .3s, visibility .3s;
    z-index: -5;
}

.nav ul li:last-of-type ul {
    right: -20px;
    left: unset;
}

.nav ul li.current-menu-parent ul {
    top: 72px;
}

.nav ul li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav > ul > li > ul > li {
    float: none;
    padding: 20px 0 0;
}

.nav ul li ul li:last-child {
    padding-bottom: 20px;
}

.nav ul li ul li a {
    line-height: 1;
}

.nav ul li ul li ul {
    display: none;
}

.header-img {
    background-color: var(--bg-footer);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    z-index: -2;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

body.admin-bar .header-img {
    top: 32px;
}

.wrapper {
    flex: 1 0 auto;
    margin-top: 500px;
    position: relative;
    padding: 100px;
    background-color: var(--bg-main);
}

.page-wrapper {
    width: calc(100% - 60px);
    max-width: 950px;
    min-height: 100%;
    margin-left: auto;
    margin-right: auto;
    z-index: 6;
    position: relative;
}

.page-heading {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translate(-50%, -100%);
    width: calc(100% - 60px);
    padding-left: 30px;
    padding-right: 30px;
    max-width: 1500px;
    text-transform: uppercase;
    font-size: 80px;
    color: white;
    font-weight: bold;
    z-index: 4;
}

footer {
    background-color: var(--bg-footer);
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 60px;
    color: white;
    z-index: 5;
}

.footer-logo {
    height: 100%;
    flex-grow: 0;
    margin-right: 60px;
}

.footer-logo img {
    height: 70px;
}

.footer-content {
    flex-grow: 1;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    margin-left: 30px;
}

.background-logo {
    display: block;
    position: fixed;
    bottom: 0;
    left: 70%;
    transform: translateX(-50%);
    height: 80%;
    z-index: 3;
}

.gdm-text-widget {
    position: relative;
    padding-bottom: 11px;
    z-index: 5;
}

.gdm-text-widget-heading {
    font-weight: bold;
    font-size: 30px;
    color: var(--font);
    position: absolute;
    bottom: calc(100% - 39px);
    line-height: 1.1;
}

.gdm-text-widget-content {
    margin-left: 120px;
    margin-top: 45px;
    display: inline-block;
    max-width: calc(100% - 120px);
}

.gdm-text-widget-design-box {
    position: absolute;
    top: 33px;
    left: -20px;
    width: 120px;
    height: calc(100% - 33px);
    background-color: var(--accent);
    z-index: -1;
}

.gdm-text-widget-content img {
    width: 450px;
    margin-left: -40px;
    height: auto !important;
    max-width: calc(100% + 40px);
}

.gdm-widgets-image-small img {
    width: 300px;
    margin-left: -40px;
    height: auto !important;
    max-width: calc(100% + 40px);
}

.header-overlay-gradient {
    background: linear-gradient(to top, rgba(121, 129, 126, 0.93), #ffffff00);
    width: 100%;
    height: 250px;
    position: absolute;
    top: -250px;
    left: 0;
}

body.front-page .background-logo {
    display: none;
}

body.front-page .page-heading {
    display: none;
}

body.front-page .logo-color {
    display: none;
}

body.front-page .header-img {
    height: 100%;
}

body.front-page.admin-bar .header-img {
    height: calc(100% - 32px);
}

body.front-page .wrapper {
    margin-top: 0;
}

body.front-page .front-page-full-height {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 100px;
}

body.front-page.admin-bar .front-page-full-height {
    height: calc(100vh - 32px);
}

body.front-page .front-page-logo {
    flex: 1;
    position: relative;
}

body.front-page .front-page-logo img {
    height: 100%;
    max-height: 375px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

body.front-page .front-page-header-boxes {
    margin-top: 100px;
    flex: 0;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
}

body.front-page .front-page-header-box-container {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    margin-right: 30px;
}

body.front-page .front-page-header-box {
    background-color: var(--accent);
    padding: 30px;
    flex-grow: 1;
    font-size: 20px;
    width: 350px;
    position: relative;
}

.front-page-header-box a:not(.no-front-a), .gdm-cm-latest-concert-box-link-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.so-widget-gdm_home_widget {
    display: flex;
}

body.front-page .front-page-header-box-heading {
    margin-bottom: -13px;
    font-size: 30px;
    font-weight: bold;
    flex-grow: 0;
}

body.front-page .front-page-header-box-latest-concert {
    background-color: var(--bg-footer);
    width: 250px;
}

body.front-page .header-img-maske {
    background-size: cover;
    background-position: right bottom;
    background-color: unset;
}

body.front-page .header-overlay-gradient {
    display: none;
}

.panel-grid {
    align-items: stretch !important;
}

.panel-first-child.panel-last-child {
    height: 100%;
}

.panel-first-child.panel-last-child > div {
    height: 100%;
}

.panel-first-child.panel-last-child > div > div {
    height: 100%;
}

.front-page-header-box-container-welcome a {
    color: white;
    font-weight: bold;
}

.front-page-header-box-container-welcome a:hover {
    color: #ffd660;
}

.home-small {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-menu-bar {
    display: none;
}

#mobile-menu {
    display: none;
}

.header-nav-background {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), #ffffff00);
    width: 100%;
    height: 100px;
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
}

.header-img-maske-mobile {
    display: none;
}

.gdm-search-result-container {
    display: block;
}

.gdm-search-result-container:not(:first-child) {
    margin-top: 30px;
}

.gdm-search-result-title {
    font-weight: bold;
    font-size: 30px;
    color: var(--font);
}

.gdm-search-result-information {
    color: black;
    font-weight: normal;
}

.gdm-search-result-information-link {
    color: var(--accent);
    font-weight: bold;
    transition: color .3s;
}

.gdm-search-result-container:hover .gdm-search-result-information-link {
    color: var(--accent-hover);
}

nav.pagination h2 {
    display: none;
}

ul.page-numbers {
    padding: 0;
    margin: 20px 0 0;
}

.page-numbers li {
    display: block;
    float: left;
    background-color: var(--accent);
    color: white;
    position: static;
    margin-top: 10px;
    margin-right: 10px;
}

.page-numbers li::before {
    display: none;
}

.page-numbers a {
    color: white;
    padding: 8px 18px;
    display: block;
}

.page-numbers span.page-numbers.current {
    padding: 8px 18px;
    display: block;
    background-color: var(--accent-hover);
}

.gdm-cm-latest-concert-box-link {
    font-weight: bold;
}

.wpcf7-list-item {
    margin-left: 0;
}

input:not([type="checkbox"]):not([type="submit"]):not([type="file"]), textarea {
    border-radius: 0;
    border: 1px solid var(--bg-footer);
    padding: 5px;
    width: 100%;
    max-width: 350px;
    outline: none;
    margin-top: 15px
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-list-item label input[type="checkbox"] {
    border-radius: 0;
    border: 1px solid var(--bg-footer);
    transform: scale(1.1);
}

.select-wrapper {
    position: relative;
    max-width: 362px;
    width: calc(100% + 12px);
    border-radius: 0;
}

.select-wrapper::before {
    font-size: 20px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 7px;
    color: #000000;
    z-index: 5000000;
}

.select-label {
    margin-bottom: -1em;
}

button, a.button {
    border: none;
    padding: 0;
    background: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: color .3s;
}

button:hover, a.button:hover {
    color: var(--accent-hover);
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    color: black;
    cursor: pointer;
    outline: none;
    width: 100%;
    padding: 5px;
    border: 1px solid var(--bg-footer);
    font-size: 14px;
    border-radius: 0;
    background-color: white;
}

.wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-form p:first-of-type {
    margin-top: 0;
}

footer p {
    text-align: unset;
}

@media (max-width: 1350px) {
    .header-img-maske {
        display: none;
    }

    .header-img-maske-mobile {
        display: block;
    }
}

@media (max-width: 1000px) {
    .header-overlay-gradient {
        top: -150px;
        height: 150px;
    }

    .mobile-menu-bar {
        display: block;
        float: right;
        font-size: 25px;
        line-height: 60px;
        padding-right: 20px;
    }

    #mobile-menu {
        display: block;
        position: fixed;
        z-index: 500;
        width: 100%;
        height: 100%;
        transform: translateX(120%);
        transition: transform .5s;
    }

    #mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-background {
        position: absolute;
        top: -100px;
        left: -50px;
        width: 200%;
        height: 200%;
        background-color: var(--bg-accent);
        z-index: -2;
        transform: rotate(10deg);

    }

    .mobile-menu-close {
        position: absolute;
        top: 0;
        right: 20px;
        line-height: 60px;
        font-size: 30px;
        color: var(--font);
    }

    #mobile-menu a {
        color: var(--font);
        font-size: 20px;
    }

    #mobile-menu ul {
        margin: 0;
        padding: 0;
    }

    #mobile-menu > ul {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        left: 0;
    }

    #mobile-menu ul li {
        list-style-type: none;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 15px;
    }

    #mobile-menu ul li ul li {
        margin-bottom: 0;
        margin-top: 0;
    }

    #mobile-menu ul li ul li a {
        font-size: 16px;
    }

    #mobile-menu ul li:before {
        display: none;
    }

    #mobile-menu ul li ul {
        display: none;
        margin-top: 15px;
        margin-bottom: 25px;
    }

    #mobile-menu ul li:hover > a {
        color: black;
    }

    #mobile-menu ul li.current-menu-item > a, #mobile-menu ul li.current-menu-parent > a {
        font-weight: bold;
    }

    .panel-grid {
        align-items: normal !important;
    }

    .panel-grid-cell, .so-panel {
        margin-bottom: 30px !important;
    }

    .panel-grid-cell:last-child, .so-panel:last-child {
        margin-bottom: 0 !important;
    }

    .panel-grid:last-child {
        margin-bottom: 0 !important;
    }

    .home-small {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    p, a, ul, li, .gdm-text-widget-content, button {
        font-size: 14px;
    }

    .nav {
        display: none;
    }

    .header-img {
        height: 400px;
    }

    .wrapper {
        margin-top: 300px;
        padding: 30px;
    }

    .page-heading {
        font-size: 30px;
        top: 6px;
        width: calc(100% - 60px);
        padding-left: 30px;
        line-height: 1.1;
    }

    .page-wrapper {
        margin: 0;
        width: 100%;
    }

    .background-logo {
        display: none;
    }

    .main-menu {
        height: 60px;
    }

    .logo {
        padding: 15px 15px 15px 20px;
    }

    .gdm-text-widget-design-box {
        left: -90px;
        top: 22px;
    }

    .gdm-text-widget-content {
        margin-left: 45px;
        margin-top: 30px;
    }

    .gdm-text-widget-heading {
        font-size: 20px;
        bottom: calc(100% - 26px);
        line-height: 1.1;
    }

    .gdm-text-widget-content img {
        width: calc(100% + 40px);
        max-width: 375px;
        margin-bottom: 12px;
    }

    .gdm-widgets-image-small img {
        max-width: 300px;
    }

    footer {
        display: block;
        padding: 30px;
    }

    .footer-logo {
        height: auto;
        width: 100%;
    }

    .footer-logo img {
        width: 100px;
        height: auto;
        display: block;
    }

    .footer-content {
        margin-top: 30px;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links a {
        margin-left: 10px;
    }

    .footer-links a:first-of-type {
        margin-left: 0;
    }

    body.front-page .front-page-full-height {
        padding: 0 50px 0 50px;
        justify-content: space-evenly;
    }

    body.front-page .front-page-header-box-container {
        margin-right: 0;
    }

    body.front-page .front-page-header-box {
        width: auto;
    }

    body.front-page .front-page-logo {
        position: static;
        flex: 0;
    }

    body.front-page .front-page-logo img {
        position: static;
        transform: none;
        height: auto;
        max-height: unset;
        width: 250px;
    }

    body.front-page .front-page-header-box-container {
        width: 250px;
    }

    body.front-page .front-page-header-box-container-welcome {
        width: 350px;
        margin-right: 30px;
    }

    body.front-page .front-page-header-box-heading {
        font-size: 25px;
        margin-bottom: -11px;
    }

    body.front-page .front-page-header-box {
        font-size: 18px;
    }

    body.front-page .front-page-header-boxes {
        margin-top: 0;
    }

    .gdm-text-widget-content {
        max-width: unset;
    }

    .gdm-cm-latest-concert-box-date {
        font-size: 14px;
    }

    body.front-page .front-page-header-box-latest-concert {
        font-size: 14px;
    }
}

@media (max-width: 730px) {

    p {
        text-align: left;
        hyphens: none;
    }

    body.front-page .front-page-full-height {
        padding: 50px;
        height: 800px;
    }

    body.front-page .header-img {
        height: 800px;
    }

    body.front-page .front-page-header-boxes {
        flex: 1;
        flex-direction: column;
        justify-content: center;
    }

    .front-page-header-box a:not(.no-front-a), .gdm-cm-latest-concert-box-link-container {
        bottom: 25px;
        left: 50px;
    }

    body.front-page .front-page-header-box-container {
        display: block;
        max-width: 100%;
    }

    body.front-page .front-page-logo img {
        width: 200px;
    }

    body.front-page .front-page-header-box-container-welcome {
        margin-bottom: 30px;
        margin-right: 0;
    }

    body.front-page .front-page-header-box {
        padding-left: 50px;
        margin-left: -50px;
    }
}

@media (max-width: 330px) {
    .footer-links a {
        font-size: 12px;
    }
}

@media (max-width: 730px) {
    body.front-page .front-page-header-box-container {
        width: 100%;
    }
}

@media (max-width: 730px) and (max-height: 720px) {
    body.front-page .front-page-logo img {
        width: 150px;
    }

    body.front-page .front-page-header-box {
        padding: 15px 15px 15px 50px;
    }

    body.front-page .front-page-header-box-container-welcome {
        margin-bottom: 15px;
    }

    .front-page-header-box a:not(.no-front-a), .gdm-cm-latest-concert-box-link-container {
        bottom: 15px;
    }
}

@media (max-width: 730px) and (max-height: 600px) {
    body.front-page .front-page-logo img {
        width: 120px;
    }

    body.front-page .front-page-header-box-heading {
        font-size: 20px;
        margin-bottom: -8px;
    }

    body.front-page .front-page-header-box {
        font-size: 16px;
    }
}

@media (min-width: 1001px) and (max-height: 780px) {
    body.front-page .front-page-header-boxes {
        margin-top: 30px;
    }
}

@media (min-width: 1001px) and (max-height: 780px) {
    body.front-page .front-page-header-boxes {
        margin-top: 30px;
    }

    body.front-page .front-page-header-box {
        font-size: 16px;
        padding: 15px;
    }

    body.front-page .front-page-header-box-heading {
        font-size: 25px;
        margin-bottom: -11px;
    }
}

@media (max-width: 1200px) and (min-width: 1001px) {

}