/* JOC-2026-10 local package: loaded after the existing compiled styles. */

.page-header--events--fixed .events-box .box--headline .joc-event-title {
    font-family: Didot, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
}

/* R03: data-badge="inline" keeps the complete reCAPTCHA branding in form flow. */
.contentblock--form .form--button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.contentblock--form .form--button-container .grecaptcha-badge {
    position: static !important;
    margin: 8px 0;
    max-width: 100%;
    flex-shrink: 0;
}
.contentblock--form .checkbox label {
    overflow-wrap: anywhere;
}
.contentblock--form .form--button-container .btn {
    max-width: 100%;
    white-space: normal;
}

/* R05: use the configured request navigation item in the mobile menu too. */
@media (max-width: 1384.98px) {
    .main-nav .main-nav--first-level > .joc-main-nav--action {
        display: block;
    }
    .main-nav .main-nav--first-level > .joc-main-nav--action > a.btn {
        display: block;
        margin: 16px 20px;
        padding: 12px 20px;
        color: #fff;
        border: 2px solid #fff;
        text-align: center;
    }
    .page-header .main-nav {
        height: calc(100vh - 50px);
        height: calc(100dvh - 50px);
    }
    .main-nav--burger:focus-visible,
    .main-nav .next:focus-visible,
    .main-nav a:focus-visible {
        outline: 3px solid #ffd66b;
        outline-offset: -3px;
    }
}
@media (max-width: 767.98px) {
    .page-header .main-nav {
        height: calc(100vh - 13.3333333333vw);
        height: calc(100dvh - 13.3333333333vw);
    }
}

/* R06: retain all room values at their existing readable font size. */
.contentblock--table .joc-table-scroll-hint {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.contentblock--table .contentblock--table-responsive {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.contentblock--table .contentblock--table-responsive:focus-visible {
    outline: 3px solid #900;
    outline-offset: 4px;
}
.contentblock--table .contentblock--table-responsive th:first-child,
.contentblock--table .contentblock--table-responsive td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, .12);
}
.contentblock--table .contentblock--table-responsive th:first-child {
    background: #900;
}

/* Mobile gallery tracks must shrink below the thumbnail's intrinsic width.
   This is the existing CSS gallery with baguetteBox lightbox, not a carousel. */
.contentblock--gallery .gallery--container {
    min-width: 0;
    max-width: 100%;
}
.contentblock--gallery .gallery--container > a,
.contentblock--gallery .gallery--container > figure,
.contentblock--gallery .gallery--container figure,
.contentblock--gallery .gallery--container picture {
    min-width: 0;
    max-width: 100%;
}
.contentblock--gallery .gallery--container figure {
    margin: 0;
}
.contentblock--gallery .gallery--container img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
@media (max-width: 767.98px) {
    .contentblock--gallery .gallery--container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    /* Show all three room-content panels without a partial horizontal card. */
    .contentblock--grid .grid,
    .contentblock--grid .grid--slider,
    .contentblock--grid .grid--slider-element,
    .contentblock--grid .textbox {
        min-width: 0;
        max-width: 100%;
    }
    .contentblock--grid .grid--slider {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: none;
        grid-template-rows: none;
        overflow: visible;
        scroll-snap-type: none;
    }
    .contentblock--grid .grid--slider .grid--slider-element {
        grid-area: auto;
        grid-row: auto;
        grid-column: auto;
        width: 100%;
        height: auto;
    }
    .contentblock--grid .grid--slider .textbox {
        display: flex;
        flex-direction: column;
    }
    .contentblock--grid .grid--slider .textbox--image {
        height: auto;
    }
    .contentblock--grid .grid--slider .textbox--image figure {
        margin: 0;
    }
    .contentblock--grid .grid--slider .textbox--image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .contentblock--grid .grid--slider .textbox--content-container {
        min-width: 0;
        max-width: 100%;
        padding: 24px;
        overflow-wrap: anywhere;
    }
    .contentblock--grid .grid--slider .textbox--content-container .btn {
        max-width: 100%;
        white-space: normal;
    }
    .contentblock--grid .grid .grid--image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    /* A wide descriptive first column must not cover every capacity column
       when the user scrolls a narrow screen. Keep the table itself scrollable. */
    .contentblock--table .contentblock--table-responsive th:first-child,
    .contentblock--table .contentblock--table-responsive td:first-child {
        position: static;
        box-shadow: none;
    }
}

/* Retain the existing visual size when the leading section heading becomes h1. */
.contentblock h1.joc-heading-h2 { font-size: clamp(30px, 8vw, 39px); line-height: 1.2em; }

/* Allow grid columns containing wide data tables to shrink to their track. */
.cols > .col { min-width: 0; }
.contentblock--table-responsive { max-width: 100%; }

/* Long German headings must wrap on narrow screens. */
.contentblock h1, .contentblock h2, .contentblock h3, .contentblock h4, .contentblock h5, .contentblock h6,
.events-box h1, .events--detail h1, .events--detail h2, .joc-event-title { overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 767.98px) { .contentblock--largeteaser > .container { padding-left: 0; padding-right: 0; } .contentblock--largeteaser .largeteaser { margin-left: 0; margin-right: 0; } }

/* Space wrapped content buttons without changing the original button design. */
@media (max-width: 767.98px) {
    .contentblock--buttons > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
    .contentblock--buttons.text-center > .container {
        justify-content: center;
    }
    .contentblock--buttons > .container > .btn {
        max-width: 100%;
        white-space: normal;
    }
}

/* Team portraits: compact details, centered alongside the image on desktop. */
.joc-team-row .contentblock--image,
.joc-team-row .contentblock--wysiwyg,
.joc-team-row .contentblock--buttons { margin-bottom: 0 !important; }
.joc-team-row .contentblock--headline { margin-bottom: 12px !important; }
.joc-team-row .contentblock--headline h3,
.joc-team-row .contentblock--headline h4 { margin: 0; }
.joc-team-row .contentblock--wysiwyg p { margin: 0; }
@media (min-width: 768px) {
    .joc-team-row > .container > .cols { align-items: center; }
}
@media (max-width: 767.98px) {
    .joc-team-row > .container > .cols > .col + .col { margin-top: 20px; }
}

/* Keep event information compact while allowing long titles to wrap. */
.page-header--events--static { max-width: 520px; }
.page-header--events--fixed { max-width: 320px; }
.page-header--events .events-box { box-sizing: border-box; max-width: 100%; }
.page-header--events .box--headline h1,
.page-header--events .box--headline .joc-event-title { white-space: normal; hyphens: none; }

/* All event images: full foreground with a decorative blurred copy. Videos untouched. */
.joc-event-image-stage {
    position: relative;
    width: 100%;
    aspect-ratio: var(--joc-image-ratio);
    overflow: hidden;
    isolation: isolate;
    background: #343434;
}
.joc-event-image-stage > .joc-event-image-backdrop {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    max-width: none;
    object-fit: cover;
    filter: blur(28px) brightness(.72);
    pointer-events: none;
}
.joc-event-image-stage .joc-event-image-foreground {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.joc-event-image-stage .joc-event-image-foreground picture {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
}
.joc-event-image-stage .joc-event-image-foreground img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}
.page-header--image > .joc-event-image-stage--hero {
    height: 100%;
    aspect-ratio: auto;
}
.events .event--image > .joc-event-image-stage {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
}

/* Stronger contrast for the white event-card title and date. */
.event--image header {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 1));
}

/* Local static arrival map; all mapping resources are served by this website. */
.joc-contact-map--static { margin: 0; }
.joc-contact-map--image-link, .joc-contact-map--static picture { display: block; }
.joc-contact-map--static img { display: block; width: 100%; max-width: 100%; height: auto; }
.joc-contact-map--image-link:focus-visible { outline: 3px solid #990000; outline-offset: 4px; }
.joc-contact-map--static figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 10px 0; font-size: 13px; line-height: 1.5; }
.joc-contact-map--static figcaption a { color: inherit; text-decoration: underline; }
.joc-contact-map--route { margin: 20px 0 0; text-align: center; }
@media (max-width: 575px) {
    .joc-contact-map--static figcaption { justify-content: center; text-align: center; }
}

.joc-contact-map--image-link { position: relative; }
.joc-contact-map--label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 12px); padding: 5px 10px; background: #fff; color: #990000; font-size: 14px; line-height: 1.4; font-weight: 600; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
