#mobile-layout {
    display: block;
}

#desktop-layout .specials-left {
    min-height: 600px;
}

#desktop-layout {
    display: none;
    overflow: hidden;
}

#desktop-layout h2 {
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
    font-size: 13px;
}

#desktop-layout .specials-header h1 {
    margin: 0;
}

#desktop-layout .specials-header .special-title {
    text-transform: uppercase;
    font-size: clamp(32px, 8vw, 56px);
    overflow: visible;
    font-weight: 900;
    color: var(--clr-accent);
    background-color: black;
    display: inline;
    box-decoration-break: clone;
    padding: 0.1em 0.25em;
    line-height: 1.5;
}

#desktop-layout .specials-left img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

#desktop-layout .special-decription {
    margin-top: 0;
}

.specials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mobile-layout .specials-container {
    gap: 0;
}

.specials-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

#desktop-layout .desktop-weitere-veranstaltungen h3 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 13px;
}

#desktop-layout .desktop-vorstellung-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: "Fira Code", monospace;
}

#desktop-layout .desktop-vorstellung-date {
    font-weight: bold;
    min-width: 50px;
}

#desktop-layout .desktop-vorstellung-time {
    min-width: 50px;
}

.specials-selector {
    border: 2px solid black;
    margin-top: 20px;
}

.specials-selector-list {
    display: flex;
    flex-direction: column;
}

.special-selector-item {
    padding: 12px 15px;
    border-bottom: 2px solid black;
    cursor: pointer;
    font-size: 25px;
    transition: background-color 0.2s ease;
}

.special-selector-item:last-child {
    border-bottom: none;
}

.special-selector-item:hover {
    background: #f0f0f0;
}

.special-selector-item.active {
    background: var(--clr-accent);
    color: black;
    font-weight: 900;
}

#desktop-layout .specials-left {
    position: relative;
    overflow: hidden;
    overflow: visible;
}

#desktop-layout .specials-header {
    position: relative;
    z-index: 2;
}

#desktop-layout .special-image {
    position: absolute;
    z-index: 1;
    transition: transform 0.3s ease;
    width: 100%;
    height: 600px;
    min-height: 500px;
    object-fit: cover;
    top: 0;
    left: 0;
}

#desktop-layout .special-image:hover {
    transform: scale(1.05);
}

.fade-transition {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fade-transition.fade-out {
    opacity: 0;
}

#mobile-layout .specials-container {
    display: flex;
    flex-direction: column;
}

#specials-accordion-container {
    border: 2px solid var(--clr-primary);
    background: transparent;
    padding: 0;
    font-family: "Fira Code";
}

#specials-accordion-container .accordion {
    margin-bottom: 0;
}

#specials-accordion-container .panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

#specials-accordion-container .panel.open {
    max-height: 1000px;
    overflow-y: auto;
}

#specials-accordion-container .panel img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
}

#specials-accordion-container .panel p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--clr-text);
}

#specials-accordion-container h3 {
    font-size: 13px;
    font-weight: bold;
    margin: 15px 0 10px;
}

#specials-accordion-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#specials-accordion-container li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: "Fira Code", monospace;
    padding: 5px 0;
}

#desktop-layout .special-image {
    cursor: pointer;
    transition: transform 0.3s ease, cursor 0.2s ease;
}

#desktop-layout .special-image:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.specials-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0 0 0 / 0%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    overflow: auto;
    padding: 40px;
    opacity: 0;
}

.specials-fullscreen-overlay.active {
    background-color: rgb(0 0 0 / 95%);
    opacity: 1;
}

.specials-fullscreen-img {
    object-fit: contain;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 2px solid var(--clr-accent);
}

.specials-fullscreen-overlay.active .specials-fullscreen-img {
    transform: scale(1);
    opacity: 1;
}

.special-image,
#specials-accordion-container .panel img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    transition: opacity 0.3s ease;
    background-color: #f5f5f5;
}

.special-image:not([src]),
#specials-accordion-container .panel img:not([src]) {
    opacity: 0;
}

.special-image.loaded,
#specials-accordion-container .panel img.loaded {
    opacity: 1;
}

@media (width <=767px) {
    .specials-fullscreen-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .specials-fullscreen-img {
        width: 100%;
        height: auto;
        max-height: 100vh;
        border: none;
    }

    #specials-accordion-container .panel img {
        max-height: 150px;
    }
}

@media (width >=768px) {
    #mobile-layout {
        display: none;
    }

    #desktop-layout {
        display: block;
    }
}

.connected-movie-badge {
    background: var(--clr-accent);
    color: black;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: bold;
    text-transform: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0073aa !important;
    color: white !important;
}

.movie-option {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.movie-option:last-child {
    border-bottom: none;
}

.no-screenings-message {
    font-style: italic;
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}

.loading-screenings {
    font-style: italic;
    color: #999;
    font-size: 13px;
    padding: 10px 0;
}

.mobile-vorstellung-ticket {
    color: black;
}

.mobile-vorstellungen-list li span {
    width: 45%;
}

.desktop-vorstellung-item a {
    text-decoration-color: black;
    color: black;
}

.mobile-specials-switcher {
    border: 2px solid var(--clr-primary);
    margin-bottom: 40px;
}

.mobile-specials-list {
    display: flex;
    flex-direction: column;
}

.mobile-special-item {
    padding: 15px;
    border-bottom: 2px solid var(--clr-primary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-special-item:last-child {
    border-bottom: none;
}

.mobile-special-item:hover {
    background: #f8f8f8;
}

.mobile-special-item.active {
    background: var(--clr-accent);
    color: black;
    font-weight: 700;
}

.mobile-specials-content {
    border-top: none;
}

.mobile-specials-content img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
}

.mobile-specials-content .special-description-content {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--clr-text);
}

.mobile-specials-content h3 {
    font-size: 13px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: var(--clr-primary);
}

.mobile-vorstellungen-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-vorstellungen-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-family: "Fira Code", monospace;
}

.mobile-vorstellungen-list li:last-child {
    border-bottom: none;
}

.mobile-vorstellung-ticket {
    color: black;
    text-decoration: underline;
    font-weight: 500;
}

@media (width <=767px) {
    .mobile-specials-content {
        min-height: 200px;
    }

    .mobile-special-item {
        padding: 18px 15px;
    }
}

@media (width >=768px) {
    #mobile-layout {
        display: none;
    }

    #desktop-layout {
        display: block;
    }
}

body.dark-mode .desktop-vorstellung-item a,
body.dark-mode .mobile-vorstellung-ticket {
    color: white !important;
    text-decoration-color: white !important;
}