/* Orange navigation and footer, as on the previous site. */
#page-header.navbar-default,
.navbar-default {
    background-color: #ffae00 !important;
}
.bp-page-footer > * {
    background-color: transparent !important;
    --frame-background: transparent;
    --frame-color: #212529;
    --frame-link-color: #004a70;
    --frame-link-hover-color: #004a70;
}
/* Buttons adapt to the full menu text and wrap, the whole button stays clickable. */
#page-header {
    height: auto;
    min-height: var(--mainnavigation-nav-height);
    padding-block: .4rem;
}
/* Only from the desktop breakpoint on, the phone menu keeps the behaviour of bootstrap_package. */
@media (min-width: 992px) {
    #page-header .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
    }
    #page-header .navbar-nav {
        flex-wrap: wrap;
        width: 100%;
        align-items: stretch;
        row-gap: .35rem;
    }
    #page-header .navbar-nav > .nav-item {
        display: flex;
        flex: 1 1 auto;
    }
}
#page-header .nav-link.nav-link-main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-mainnavigation {
        --mainnavigation-link-font-size: .9rem;
        --mainnavigation-link-padding-x: .5rem;
    }
}
/* Menu entries as 3D buttons. */
#page-header .nav-link.nav-link-main {
    margin: .2rem .15rem;
    color: #212529;
    background: linear-gradient(to bottom, #ffdf80, #ffc233);
    border: 1px solid #a86f00;
    border-radius: .4rem;
    box-shadow: 0 3px 0 #a86f00, 0 4px 6px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: color .15s ease, box-shadow .15s ease, transform .15s ease;
}
#page-header .nav-link.nav-link-main:hover,
#page-header .nav-link.nav-link-main:focus-visible {
    color: #ffffff;
    background: #454545 !important;
    border-color: #1f1f1f;
    box-shadow: 0 3px 0 #1f1f1f, 0 0 12px 3px rgba(255, 240, 170, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
#page-header .nav-link.nav-link-main:focus-visible {
    outline: 2px solid #212529;
    outline-offset: 2px;
}
/* The selected page looks pressed in. */
#page-header .nav-link.nav-link-main.active,
#page-header .nav-link.nav-link-main:active {
    color: #ffe08a;
    background: #454545;
    border-color: #1f1f1f;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 0 12px 3px rgba(255, 240, 170, .85);
    transform: translateY(2px);
}
/* The home button sits in every rootline, so it only counts as selected on the home page. */
body:not(.page-1) #page-header .nav-link.nav-link-main[href$="/"].active {
    color: #212529;
    background: linear-gradient(to bottom, #ffdf80, #ffc233);
    border-color: #a86f00;
    box-shadow: 0 3px 0 #a86f00, 0 4px 6px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
    transform: none;
}
body:not(.page-1) #page-header .nav-link.nav-link-main[href$="/"].active:hover,
body:not(.page-1) #page-header .nav-link.nav-link-main[href$="/"].active:focus-visible {
    color: #ffffff;
    background: #454545 !important;
    border-color: #1f1f1f;
    box-shadow: 0 3px 0 #1f1f1f, 0 0 12px 3px rgba(255, 240, 170, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* The buttons replace the blue line of bootstrap_package. */
#page-header .nav-link.nav-link-main::before {
    display: none;
}
/* Content area in the gold of the buttons, with a thin anthracite 3D frame. */
#page-content {
    --frame-color: #212529;
    --frame-link-color: #00456a;
    --frame-link-hover-color: #00314d;
    width: calc(100% - 1rem);
    max-width: 1320px;
    margin: 1rem auto 1.5rem;
    color: #212529;
    background: linear-gradient(to bottom, #ffdf80, #ffc233);
    border: 1px solid #333333;
    border-radius: .5rem;
    box-shadow: 0 2px 0 #333333, 0 4px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
/* An empty page still shows its area, an empty one on the home page below the carousel would only look broken. */
body:not(.page-1) #page-content {
    min-height: 12rem;
}
body.page-1 #page-content:not(:has(.frame)) {
    display: none;
}
/* The blue of the old site is hard to read on gold. */
#page-content a:not(.btn) {
    color: #00456a;
    text-decoration: underline;
}
#page-content a:not(.btn):hover,
#page-content a:not(.btn):focus-visible {
    color: #00314d;
}
@media (min-width: 992px) {
    #page-content {
        width: calc(100% - 3rem);
    }
}
/* Logo vertically centred on both sides of the menu, the phone layout keeps its single logo. */
@media (min-width: 992px) {
    #page-header .container-mainnavigation > .navbar-brand-image,
    #page-header .container-mainnavigation > .navbar-collapse {
        align-self: center;
    }
    #page-header .navbar-brand-image {
        flex: 0 0 auto;
        height: auto;
    }
    #page-header .navbar-brand-image img {
        top: auto;
        transform: none;
        width: auto;
        height: 60px;
        max-height: none;
    }
    #page-header .container-mainnavigation::after {
        content: "";
        display: block;
        flex: 0 0 auto;
        align-self: center;
        width: 71px;
        height: 60px;
        background: url("/fileadmin/philchornb/images/logo%203d_transp205x174.png") center / contain no-repeat;
    }
}
/* Send button of the contact form in anthracite, with the look of the menu buttons. */
#page-content .frame-type-form_formframework .btn,
#page-content .frame-type-form_formframework button[type="submit"] {
    color: #ffffff;
    background: #333333;
    border: 1px solid #1f1f1f;
    border-radius: .4rem;
    box-shadow: 0 3px 0 #1f1f1f, 0 4px 6px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
#page-content .frame-type-form_formframework .btn:hover,
#page-content .frame-type-form_formframework .btn:focus-visible,
#page-content .frame-type-form_formframework button[type="submit"]:hover,
#page-content .frame-type-form_formframework button[type="submit"]:focus-visible {
    color: #ffffff;
    background: #454545;
    border-color: #1f1f1f;
    box-shadow: 0 3px 0 #1f1f1f, 0 0 12px 3px rgba(255, 240, 170, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
#page-content .frame-type-form_formframework .btn:active,
#page-content .frame-type-form_formframework button[type="submit"]:active {
    color: #ffe08a;
    background: #454545;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6);
    transform: translateY(2px);
}
/* Tables: anthracite head, calm rows, thin frame. */
#page-content table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background: rgba(255, 255, 255, .55);
    border: 1px solid #333333;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: .4rem;
    overflow: hidden;
    box-shadow: 0 2px 0 #333333, 0 3px 8px rgba(0, 0, 0, .2);
}
#page-content table th,
#page-content table td {
    padding: .6rem .8rem;
    vertical-align: top;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(51, 51, 51, .25);
}
#page-content table thead th {
    color: #ffe08a;
    background: #333333;
    border-bottom: 0;
}
#page-content table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .35);
}
#page-content table tbody tr:last-child td {
    border-bottom: 0;
}
#page-content table tbody tr:hover td {
    background: rgba(255, 255, 255, .7);
}
/* Footer: one gold panel over the full width, its distance is the padding of the menu bar. */
#page-footer {
    position: relative;
    padding: .4rem;
    color: #212529;
    background-color: #ffae00;
}
#page-footer::before {
    content: "";
    position: absolute;
    inset: .4rem;
    background: linear-gradient(to bottom, #ffdf80, #ffc233);
    border: 1px solid #333333;
    border-radius: .5rem;
    box-shadow: 0 2px 0 #333333, 0 4px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
#page-footer > * {
    position: relative;
}
#page-footer .container,
#page-footer .frame-container {
    max-width: none;
}
/* Footer links look like the gold menu buttons. */
#page-footer .footer-section-content a {
    display: inline-block;
    margin: .2rem 0;
    padding: .3rem .75rem;
    color: #212529;
    text-decoration: none;
    background: linear-gradient(to bottom, #ffdf80, #ffc233);
    border: 1px solid #a86f00;
    border-radius: .4rem;
    box-shadow: 0 3px 0 #a86f00, 0 4px 6px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: color .15s ease, box-shadow .15s ease;
}
#page-footer .footer-section-content a:hover,
#page-footer .footer-section-content a:focus-visible {
    color: #ffffff;
    background: #454545;
    border-color: #1f1f1f;
    box-shadow: 0 3px 0 #1f1f1f, 0 0 12px 3px rgba(255, 240, 170, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
#page-footer .footer-section-content a:focus-visible {
    outline: 2px solid #212529;
    outline-offset: 2px;
}
/* Footer row: everything lines up with the upper and lower edge of the centred picture. */
#page-footer .footer-section-content {
    padding-block: .6rem;
}
#page-footer .footer-section-content .section-row,
#page-footer .footer-section-content .section-column,
#page-footer .footer-section-content .frame,
#page-footer .footer-section-content .frame-group-container,
#page-footer .footer-section-content .frame-group-inner,
#page-footer .footer-section-content .frame-container,
#page-footer .footer-section-content .frame-inner {
    margin-block: 0;
    padding-block: 0;
}
#page-footer .footer-section-content p:last-child,
#page-footer .textpic-gallery,
#page-footer .textpic-gallery figure,
#page-footer .gallery-row,
#page-footer .gallery-item {
    margin-bottom: 0;
}
#page-footer .textpic-gallery img {
    display: block;
}
#page-footer .footer-section-content-column-left .frame-inner {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    #page-footer .footer-section-content-column-left .chor-sponsor {
        font-size: .9rem;
        white-space: normal;
    }
}
/* On phones the caption stays directly above the picture. */
#page-footer .chor-sponsor {
    order: 1;
    margin: 0;
    /* The size follows the column, so that the line stays in one piece. */
    font-size: min(1.1rem, 3.5cqw);
    line-height: 1.2;
    white-space: nowrap;
}
@media (min-width: 768px) {
    #page-footer .footer-section-content .section-row {
        align-items: stretch;
    }
    #page-footer .footer-section-content-column-left,
    #page-footer .footer-section-content-column-left .frame,
    #page-footer .footer-section-content-column-left .frame-group-container,
    #page-footer .footer-section-content-column-left .frame-group-inner,
    #page-footer .footer-section-content-column-left .frame-container,
    #page-footer .footer-section-content-column-left .frame-inner {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }
    #page-footer .chor-sponsor {
        order: 0;
        margin-bottom: auto;
        padding-bottom: 1.5rem;
    }
    #page-footer .footer-section-content-column-middle {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #page-footer .footer-section-content-column-right {
        padding-bottom: 1.75rem;
        text-align: right;
    }
    #page-footer .footer-section-content-column-right a:first-child {
        margin-top: 0;
    }
    #page-footer .footer-section-content-column-middle .textpic {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
    }
    #page-footer .footer-section-content-column-middle .textpic-item {
        width: auto;
    }
    #page-footer .footer-section-content-column-middle .textpic-text {
        grid-column: 1;
        grid-row: 1;
    }
    #page-footer .footer-section-content-column-middle .textpic-gallery {
        grid-column: 2;
        grid-row: 1;
    }
    #page-footer .footer-section-meta {
        position: absolute;
        right: 1.4rem;
        bottom: 1rem;
        max-width: 25%;
        overflow: visible;
        font-size: .8rem;
    }
    #page-footer .footer-section-meta .frame,
    #page-footer .footer-section-meta .frame-group-container,
    #page-footer .footer-section-meta .frame-group-inner,
    #page-footer .footer-section-meta .frame-container,
    #page-footer .footer-section-meta .frame-inner {
        margin: 0;
        padding: 0;
    }
    #page-footer .footer-section-meta .footer-info-section {
        text-align: right;
    }
    #page-footer .footer-section-meta p:last-child {
        margin-bottom: 0;
    }
}
/* On Aktuelles the text flows around the pictures, on phones they stay stacked. */
@media (min-width: 768px) {
    body.page-81 .textpic-left,
    body.page-81 .textpic-right {
        display: block;
    }
    body.page-81 .textpic-left .textpic-gallery {
        float: left;
        width: 40%;
        margin: 0 1.5rem 1rem 0;
    }
    body.page-81 .textpic-right .textpic-gallery {
        float: right;
        width: 40%;
        margin: 0 0 1rem 1.5rem;
    }
    body.page-81 .textpic-left .textpic-text,
    body.page-81 .textpic-right .textpic-text {
        width: auto;
    }
    body.page-81 .textpic::after {
        content: "";
        display: block;
        clear: both;
    }
}
/* Calendar and list of dates. */
.chor-calendar,
.chor-dates {
    overflow-x: auto;
}
.chor-calendar table {
    table-layout: fixed;
    min-width: 40rem;
}
.chor-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #ffe08a;
}
#page-content .chor-calendar-nav a {
    color: #ffffff;
    text-decoration: none;
}
#page-content .chor-calendar-nav a:hover,
#page-content .chor-calendar-nav a:focus-visible {
    color: #ffe08a;
    text-decoration: underline;
}
.chor-calendar-nav span {
    font-size: 1.15rem;
    font-weight: 700;
}
#page-content .chor-calendar-days th {
    color: #ffffff;
    text-align: center;
    background: #454545;
}
.chor-calendar td {
    height: 5.5rem;
}
#page-content .chor-calendar td.chor-today {
    background: rgba(255, 255, 255, .85);
    box-shadow: inset 0 0 0 2px #333333;
}
.chor-day {
    display: block;
    font-weight: 700;
}
.chor-event {
    display: inline-block;
    margin: .1rem 0;
    padding: .1rem .4rem;
    font-size: .8rem;
    line-height: 1.25;
    color: #ffffff;
    background: #333333;
    border-radius: .25rem;
}
.chor-event.chor-cat-102 {
    background: #8a5a00;
}
.chor-nowrap {
    white-space: nowrap;
}
.chor-legend {
    margin-top: .5rem;
}
.chor-ics {
    padding: .25rem .6rem;
    color: #ffffff;
    white-space: nowrap;
    background: #333333;
    border: 1px solid #1f1f1f;
    border-radius: .4rem;
    box-shadow: 0 2px 0 #1f1f1f;
}
.chor-ics:hover,
.chor-ics:focus-visible {
    background: #454545;
    box-shadow: 0 2px 0 #1f1f1f, 0 0 8px 2px rgba(255, 240, 170, .85);
}
/* Carousel arrows as anthracite buttons, visible on every picture. */
.carousel .carousel-control {
    width: 3.5rem;
    opacity: 1;
    z-index: 5;
}
.carousel .carousel-control-icon {
    width: 2.5rem;
    height: 2.5rem;
    max-width: none;
    background-color: #333333;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 55%;
    border: 1px solid #1f1f1f;
    border-radius: 50%;
    box-shadow: 0 3px 0 #1f1f1f, 0 4px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}
.carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.carousel .carousel-control:hover .carousel-control-icon,
.carousel .carousel-control:focus-visible .carousel-control-icon {
    background-color: #454545;
    box-shadow: 0 3px 0 #1f1f1f, 0 0 12px 3px rgba(255, 240, 170, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* Picture frame in anthracite and gold at the window edge, the page scrolls behind it. */
:root {
    --chor-frame: 8px;
}
body {
    background-color: #ffae00;
}
.body-bg {
    padding: var(--chor-frame);
}
#page-header.navbar-fixed-top {
    top: var(--chor-frame);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1090;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px #6b6b6b,
        inset 0 0 0 3px #333333,
        inset 0 0 0 5px #ffc233,
        inset 0 0 0 8px #333333,
        inset 0 0 8px 8px rgba(0, 0, 0, .35);
}
@media (min-width: 768px) {
    :root {
        --chor-frame: 16px;
    }
    body::after {
        box-shadow:
            inset 0 0 0 1px #6b6b6b,
            inset 0 0 0 5px #333333,
            inset 0 0 0 6px #fff0aa,
            inset 0 0 0 10px #ffc233,
            inset 0 0 0 11px #a86f00,
            inset 0 0 0 15px #333333,
            inset 0 0 0 16px #1f1f1f,
            inset 0 0 12px 16px rgba(0, 0, 0, .4);
    }
}
/* chor.js changes the height with the picture, the page follows softly. */
.carousel .item {
    transition: transform .6s ease-in-out, height .6s ease-in-out;
}
/* Upright pictures stay complete in the carousel, chor.js marks them. */
.carousel .carousel-backgroundimage.chor-portrait {
    background-color: #333333;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    filter: none;
}
/* Readable captions on carousel pictures. */
.carousel-item-type-header .carousel-header,
.carousel-item-type-header .carousel-subheader,
.carousel-item-type-header .carousel-text,
.carousel-item-type-text_and_image .carousel-header,
.carousel-item-type-text_and_image .carousel-subheader,
.carousel-item-type-text_and_image .carousel-text {
    text-shadow: 0 0 3px #000, 0 0 3px #000;
}
.frame-type-form_formframework fieldset {
    border: 1px solid #cce6f3;
    background: #f0f8fc;
    padding: 1em;
    margin: 1.5em 0;
}
