:root {
    --vb-orange: #ffae00;
    --vb-yellow: #fff000;
    --vb-black: #000000;
    --vb-white: #ffffff;
    --vb-light-yellow: #fffbd6;
    --vb-link: #9b6900;
}

body.theme-schauspiel {
    --vb-orange: #ff0000;
    --vb-yellow: #fd6c1e;
    --vb-light-yellow: #fff0eb;
    --vb-link: #b00000;
}

body.theme-konzerte {
    --vb-orange: #d0009a;
    --vb-yellow: #fc33a6;
    --vb-light-yellow: #fff0fa;
    --vb-link: #94006e;
}

body.theme-musiktheater {
    --vb-orange: #0a5eff;
    --vb-yellow: #18c0fe;
    --vb-light-yellow: #eaf8ff;
    --vb-link: #0a5eff;
}

body {
    background: var(--vb-white);
    color: var(--vb-black);
}

#body-wrapper a,
#body-wrapper a:visited {
    color: var(--vb-orange);
    font-weight: 700;
    text-decoration: none;
}

#body-wrapper a:hover,
#body-wrapper a:focus {
    color: var(--vb-orange);
    text-decoration-line: underline;
    text-decoration-color: var(--vb-orange);
}

#body-wrapper form button[type="submit"] {
    border: 0;
    color: var(--vb-black);
    background: var(--vb-yellow);
    font-weight: 700;
}

#body-wrapper form button[type="submit"]:hover,
#body-wrapper form button[type="submit"]:focus {
    border: 0;
    color: var(--vb-white);
    background: var(--vb-orange);
}

#body-wrapper form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

#body-wrapper form .checkbox-row input[type="checkbox"] {
    display: block;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transform: translateY(0.12rem);
    accent-color: var(--vb-orange);
}

#body-wrapper form .checkbox-row label {
    margin: 0;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--vb-black);
}

h1 {
    border-bottom: 0.2rem solid var(--vb-yellow);
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
    padding-bottom: 0.4rem;
}

h2 {
    border-left: 0.25rem solid var(--vb-orange);
    padding-left: 0.6rem;
}

#header {
    --vb-header-height: 4.5rem;
    background: var(--vb-yellow);
    border-bottom: 0.25rem solid var(--vb-orange);
    color: var(--vb-black);
    height: var(--vb-header-height);
}

#header .navbar-section {
    height: calc(var(--vb-header-height) - 0.25rem);
}

#header a {
    color: var(--vb-black);
}

#header .logo svg path {
    fill: var(--vb-black);
}

#header .logo,
#header .logo .navbar-brand {
    flex: 0 0 auto;
}

#header .logo img {
    display: block;
    width: auto;
    height: 54px;
    max-width: none;
    object-fit: contain;
}

body.header-fixed.header-animated #header.scrolled .logo img {
    width: auto;
    height: 34px;
}

body.header-fixed.header-animated #header.scrolled {
    --vb-header-height: 2.75rem;
    height: var(--vb-header-height);
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: calc(var(--vb-header-height) - 0.25rem);
}

.header-fixed #body-wrapper {
    padding-top: 4.5rem;
}

.dropmenu > ul > li > a:hover,
.dropmenu > ul > li > a:focus,
.dropmenu > ul > li > a.active {
    color: var(--vb-white) !important;
    background: var(--vb-orange);
}

.dropmenu ul ul li a:hover,
.dropmenu ul ul li a:focus,
.dropmenu ul ul li a.active {
    color: var(--vb-black) !important;
    background: var(--vb-white);
}

.dropmenu ul ul {
    background: var(--vb-white);
    border-top: 0.2rem solid var(--vb-orange);
}

.dropmenu ul ul li a {
    border-bottom: 0.05rem solid var(--vb-orange);
}

.mobile-menu .button_container span {
    background: var(--vb-black);
}

.overlay {
    background: var(--vb-yellow);
}

blockquote {
    background: var(--vb-light-yellow);
    border-left-color: var(--vb-orange);
}

.table,
table {
    width: 100%;
    margin: 1.5rem 0 2rem;
    line-height: 1.45;
}

.table th,
table th {
    background: var(--vb-yellow);
    color: var(--vb-black);
    font-weight: 700;
    white-space: nowrap;
}

.table td,
.table th,
table td,
table th {
    border-bottom-color: var(--vb-orange);
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.table th:first-child,
.table td:first-child,
table th:first-child,
table td:first-child {
    width: 38%;
}

.table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
    background: var(--vb-light-yellow);
}

.concert-program {
    width: 100%;
    margin: 1.5rem 0 2.5rem;
    overflow-x: auto;
}

#body-wrapper .concert-program-table {
    display: table;
    width: 100%;
    min-width: 900px;
    margin: 0;
    table-layout: fixed;
    white-space: normal;
}

#body-wrapper .concert-program-table th,
#body-wrapper .concert-program-table td {
    width: auto;
    border: 0;
    background: var(--vb-white);
    color: var(--vb-black);
}

#body-wrapper .concert-program-table thead th {
    padding: 0.65rem 0.5rem;
    border-left: 0.125rem solid var(--vb-orange);
    color: inherit;
    text-align: center;
}

#body-wrapper .concert-program-table thead th:last-child {
    border-right: 0.125rem solid var(--vb-orange);
}

#body-wrapper .concert-program-table thead small {
    color: var(--vb-black);
    font-size: 0.8rem;
    font-weight: 400;
}

#body-wrapper .concert-program-table .ring-a {
    color: #001eff;
}

#body-wrapper .concert-program-table .ring-b {
    color: #ff5a00;
}

#body-wrapper .concert-program-table .ring-c {
    color: #20db00;
}

#body-wrapper .concert-program-table .ring-d {
    color: #a47b00;
}

#body-wrapper .concert-program-table .ring-e {
    color: #ff1010;
}

#body-wrapper .concert-program-table .concert-title th {
    padding: 2rem 0 0.35rem;
    color: var(--vb-orange);
    font-size: 1.05rem;
    text-align: left;
}

#body-wrapper .concert-program-table .concert-dates td {
    height: 2.1rem;
    padding: 0.35rem 0.5rem;
    border-left: 0.125rem solid var(--vb-orange);
    font-weight: 700;
    text-align: center;
}

#body-wrapper .concert-program-table .concert-dates td:last-child {
    border-right: 0.125rem solid var(--vb-orange);
}

#body-wrapper .concert-program-table .concert-details td {
    padding: 0.8rem 0 0;
    line-height: 1.65;
    vertical-align: top;
}

#body-wrapper .concert-program-table .concert-details .concert-works {
    padding-left: 1.5rem;
    text-align: right;
}

#body-wrapper .concert-program-table .concert-cast td {
    padding: 0.15rem 0 0.35rem;
}

#body-wrapper .concert-program-table .concert-cast strong {
    color: var(--vb-orange);
}

.theatre-program {
    width: 100%;
    margin: 1.5rem 0 2.5rem;
    overflow-x: auto;
}

#body-wrapper .theatre-program-table {
    display: table;
    width: 100%;
    min-width: 0;
    margin: 0;
    table-layout: fixed;
    white-space: normal;
}

#body-wrapper .theatre-program-table th:first-child,
#body-wrapper .theatre-program-table td:first-child {
    width: 40%;
}

#body-wrapper .theatre-program-table th:nth-child(n + 2),
#body-wrapper .theatre-program-table td:nth-child(n + 2) {
    width: 15%;
    text-align: center;
}

#body-wrapper .theatre-program-table thead small {
    color: var(--vb-black);
    font-size: 0.8rem;
    font-weight: 400;
}

#body-wrapper .theatre-program-table tbody td {
    line-height: 1.45;
}

#body-wrapper .theatre-program-table tbody td:first-child strong {
    color: var(--vb-link);
}

#body-wrapper .theatre-program-table .theatre-venue {
    display: inline-block;
    margin-top: 0.25rem;
    font-weight: 700;
}

#footer {
    background: var(--vb-orange) !important;
    border-top: 0.3rem solid var(--vb-yellow);
    color: var(--vb-black);
}

#footer a,
#footer a:visited {
    color: var(--vb-black);
    font-weight: 700;
}

#footer a:hover,
#footer a:focus {
    color: var(--vb-white);
}

@media (max-width: 840px) {
    #header {
        background: var(--vb-yellow);
    }

    #header .logo img {
        width: auto;
        height: 42px;
        max-width: min(70vw, 280px);
    }

    #body-wrapper .theatre-program-table {
        min-width: 850px;
    }

    .mobile-menu .button_container.active span {
        background: var(--vb-black);
    }

    .overlay.open {
        opacity: 1;
    }

    .mobile-logo {
        min-height: 5.5rem;
        border-bottom: 0.25rem solid var(--vb-orange);
    }

    .mobile-logo img {
        width: auto;
        height: 42px;
        max-width: min(70vw, 280px);
    }

    .overlay-menu {
        height: calc(100% - 5.5rem);
        padding: 0.75rem 1rem 1.5rem;
    }

    .treemenu.treemenu-root {
        margin: 0;
    }

    .treemenu li {
        position: relative;
        margin: 0 0 0.35rem;
        padding: 0;
        background: transparent;
    }

    .treemenu li a,
    .treemenu li a:visited {
        display: block;
        min-height: 2.8rem;
        margin: 0;
        padding: 0.65rem 3rem 0.65rem 1rem;
        border-radius: 0.3rem;
        color: var(--vb-black) !important;
        background: var(--vb-light-yellow);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.5rem;
    }

    .treemenu > li > a:hover,
    .treemenu > li > a:focus,
    .treemenu > li > a.active {
        color: var(--vb-white) !important;
        background: var(--vb-orange);
    }

    .treemenu li ul {
        margin: 0.35rem 0 0.6rem 1rem;
        padding-left: 0.65rem;
        border-left: 0.2rem solid var(--vb-orange);
    }

    .treemenu li ul li {
        margin-bottom: 0.2rem;
    }

    .treemenu li ul li a,
    .treemenu li ul li a:visited {
        min-height: 2.4rem;
        padding: 0.45rem 0.8rem;
        border: 0.05rem solid var(--vb-orange);
        color: var(--vb-black) !important;
        background: var(--vb-white);
        font-size: 0.9rem;
        line-height: 1.4rem;
    }

    .treemenu li ul li a:hover,
    .treemenu li ul li a:focus,
    .treemenu li ul li a.active {
        color: var(--vb-white) !important;
        background: var(--vb-orange);
    }

    .treemenu .toggler {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        float: none;
        width: 2.8rem;
        height: 2.8rem;
        padding: 0;
        color: var(--vb-black);
        font-size: 1.5rem;
        line-height: 2.8rem;
        text-align: center;
    }

    .treemenu .toggler::before {
        margin: 0;
    }

    .treemenu li.tree-empty > .toggler {
        display: none;
    }

    .treemenu li.active > .toggler,
    .treemenu li:has(> a.active) > .toggler {
        color: var(--vb-white);
    }

    .table,
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
