.layout--main {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.layout--filmrausch {
  padding: var(--space-lg);
}

.layout--programm {
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (width >=1151px) {
  .header-container {
    height: var(--header-height);
    background-color: var(--clr-background);
    position: static;
  }

  .logo {
    gap: var(--space-lg);
    color: var(--clr-primary-text);
  }

  .logo img {
    width: auto;
  }

  .desktop-menu {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .desktop-menu li {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    border-right: var(--border-thin);
  }

  .desktop-menu li a {
    text-decoration: none;
    color: var(--clr-text);
  }

  .desktop-menu .current-menu-item>a,
  .desktop-menu .current_page_item>a {
    color: var(--clr-text);
    font-weight: 700;
    border-bottom: var(--border-thin);
  }

  .socials-container {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-inline: var(--space-lg);
    border-right: var(--border-thin);
  }

  .socials-container .socials {
    display: flex;
    gap: var(--space-sm);
  }

  .socials-container .socials img {
    display: block;
    height: 20px;
    width: auto;
  }

  .header-right {
    display: block;
    padding-top: var(--space-sm);
    padding-left: var(--space-md);
    font-size: 13px;
    font-weight: 200;
    line-height: 1.5;
  }

  .header-right h3 {
    font-size: 15px;
    font-weight: 700;
  }

  .header-right p {
    margin: 0;
  }

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

.foerder-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.foerder-content p {
  font-size: 16px;
  max-width: none;
  margin-top: 0;
  line-height: 1.5;
}

@media (width >=586px) {
  .foerder-grid {
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
    justify-content: space-between;
  }

  .foerder-grid> :nth-child(2) {
    justify-self: end;
  }

  .foerder-content {
    max-height: 46vh;
  }
}

@media (width >=921px) {
  .foerder-content {
    columns: 2;
    gap: var(--space-lg);
    display: block;
    max-height: none;
    overflow-y: visible;
    padding: 0;
    border: none;
  }

  .foerder-content p {
    font-size: 13px;
    max-width: 295px;
  }

  .foerder-content p:first-child {
    margin-top: 0;
  }
}

.filmrausch-left {
  max-height: 20vh;
  overflow-y: auto;
  padding: var(--space-lg);
}

.text-columns {
  column-count: 1;
  column-gap: var(--space-lg);
  position: relative;
}

.text-columns p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 var(--space-sm) 0;
  break-inside: avoid;
}

.filmrausch-infobox {
  background-color: var(--clr-accent);
  padding: 0;
  box-sizing: border-box;
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  font-size: 13px;
  line-height: 1.5;
}

.filmrausch-infobox .infobox-header {
  background-color: var(--clr-accent);
  padding: 12px 15px;
  border-bottom: var(--border-medium);
}

.filmrausch-infobox .infobox-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  color: var(--clr-primary);
}

.filmrausch-infobox .infobox-section {
  padding: 12px 15px;
  border-bottom: var(--border-medium);
}

.filmrausch-infobox .infobox-section:last-child {
  border-bottom: none;
}

.filmrausch-infobox .infobox-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-primary);
}

.filmrausch-infobox .infobox-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--clr-primary);
}

.filmrausch-infobox .infobox-content p {
  margin: 0 0 5px;
  font-size: 13px;
}

.filmrausch-infobox .infobox-content p:last-child {
  margin-bottom: 0;
}

.filmrausch-infobox .infobox-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.filmrausch-infobox .infobox-content li {
  font-size: 13px;
  margin-bottom: 3px;
  padding-left: 0;
}

.filmrausch-infobox .infobox-content li::before {
  content: "• ";
  margin-right: 5px;
}

.dark-mode .filmrausch-infobox,
.dark-mode .filmrausch-infobox .infobox-header h2,
.dark-mode .filmrausch-infobox .infobox-header h3,
.dark-mode .filmrausch-infobox .infobox-section h3,
.dark-mode .filmrausch-infobox .infobox-section h4,
.dark-mode .filmrausch-infobox .infobox-content {
  color: black !important;
}

.second-column {
  break-before: auto;
  margin-top: var(--space-sm);
}

.photo-container {
  position: relative;
  margin-top: var(--space-lg);
}

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  font-size: 12px;
  color: #8B4513;
  background: rgb(255 255 255 / 70%);
  padding: 5px;
  font-style: normal;
}

@media (width <=920px) {
  .layout--filmrausch {
    padding: 0;
  }

  .layout--filmrausch>h1 {
    padding: var(--space-lg);
    margin-bottom: 0;
  }

  .filmrausch-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .filmrausch-right {
    order: 1;
    width: 100%;
    height: 50vh;
    min-height: 400px;
  }

  .filmrausch-left {
    order: 2;
    max-height: none;
    overflow-y: visible;
    border: none;
    margin-bottom: var(--space-lg);
    padding: 0;
    margin-top: 20px;
  }

  .text-columns {
    column-count: 1;
  }

  .filmrausch-infobox {
    order: 3;
    break-inside: auto;
    width: 100%;
    margin-top: var(--space-xxl);
  }

  .photo-carousel-container {
    height: 50vh;
    min-height: 400px;
  }

  .carousel-caption-wrapper {
    bottom: var(--space-md);
    right: var(--space-md);
    max-width: calc(100% - 30px);
  }
}

@media (width >=586px) and (width <=920px) {
  .layout--filmrausch>h1 {
    padding: var(--space-lg);
  }
}

@media (width >=921px) {
  .layout--filmrausch {
    padding: var(--space-lg);
  }

  h1 {
    margin-bottom: var(--space-xxl);
  }

  .filmrausch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: stretch;
    min-height: 80vh;
  }

  .filmrausch-left,
  .filmrausch-right {
    height: auto;
  }

  .filmrausch-left {
    max-height: none;
    overflow-y: visible;
    padding: 0;
    border: none;
    display: flex;
  }

  .text-columns {
    column-count: 2;
    flex: 1;
  }

  .text-columns p {
    font-size: 13px;
  }

  .infobox h3,
  .infobox-content,
  .infobox-content li {
    font-size: inherit;
  }

  .second-column {
    break-before: column;
  }

  .speech-bubbles-container {
    min-height: 200px;
  }

  .photo-carousel-container {
    height: 100%;
  }

  .filmrausch-right {
    min-height: auto;
    height: 85%;
  }
}

@media (width >=921px) {
  .filmrausch-right {
    height: 70vh;
    min-height: 500px;
  }

  .photo-carousel-container {
    height: 100%;
    max-height: 600px;
  }

  .carousel-slide img {
    object-fit: cover;
    object-position: center;
  }
}

.desktop-layout {
  display: none;
}

.mobile-layout {
  display: block;
}

.top-section {
  flex: none;
  position: relative;
  transition: opacity 0.3s ease-in-out;
}

.top-section.fade-out {
  opacity: 0;
}

.poster-container {
  position: relative;
  width: 100%;
  height: 17vh;
  background-color: #e0e0e0;
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(224 224 224 / 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.top-extra-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: var(--border-thin);
}

.top-extra-info p {
  font-size: 16px;
}

.extra-infos span {
  border: var(--border-thin);
  border-radius: 100px;
  padding: 5px 3px;
  font-size: 10px;
}

.movie-title {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-inline: var(--space-lg);
  font-size: clamp(18px, 2vw + 1rem, 26px);
  line-height: clamp(22px, 2vw + 0.5rem, 30px);
  font-family: "Fira Code";
  font-weight: 500;
}

.main-info-container {
  padding-inline: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  justify-content: space-between;
}

.main-info-tags {
  position: relative;
}

.main-info-tags p {
  margin: 0;
  white-space: nowrap;
}

.synopsis-wrapper {
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.synopsis-wrapper .full-text {
  display: block;
  max-width: 110ch;
}

.read-toggle {
  font-weight: bold;
  cursor: pointer;
  color: black;
  display: inline-block;
  margin-top: 5px;
}

.dark-mode .read-toggle {
  color: white;
}

.top-buttons-container {
  margin-bottom: var(--space-lg);
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  padding-inline: var(--space-lg);
}

.top-buttons-container button {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  font-weight: 900;
  background: var(--clr-accent);
  cursor: pointer;
  border: var(--border-medium);
}

.top-buttons-container button:nth-child(2) {
  font-weight: 400;
  background: var(--clr-background);
  border: var(--border-medium);
}

.weitere-vorstellungen {
  display: none;
}

.vorstellungen-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.vorstellung-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.vorstellung-date {
  font-size: 13px;
  font-weight: bold;
  min-width: 50px;
}

.vorstellung-time {
  font-size: 13px;
  font-weight: bold;
  flex: 1;
  text-align: center;
}

.vorstellung-ticket {
  background: var(--clr-accent);
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.bottom-section {
  flex: 1;
  margin-inline: var(--space-lg);
  margin-bottom: var(--space-lg);
  transform: translateY(0);
  display: flex;
  flex-direction: column;
}

.movie-list-container {
  flex: 1;
  overflow-y: auto;
  transition: opacity 0.3s ease-in-out;
}

.movie-list-container.fade-out {
  opacity: 0;
}

.selector-row {
  display: flex;
  border-bottom: var(--border-medium);
}

.movie-list-container>.selector-row:last-of-type {
  border-bottom: 2px solid black;
}

.dark-mode .movie-list-container>.selector-row:last-of-type {
  border-bottom: 2px solid white;
}

.day {
  flex: 0 0 65px;
  border-right: var(--border-thick);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.day span:first-child {
  font-weight: bold;
}

.selector-movie-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.selector-movie-list-single {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  line-height: 1.5;
  cursor: pointer;
}

.selector-movie-list-single:not(:last-child) {
  position: relative;
  padding-bottom: var(--space-sm);
}

.selector-movie-list-single:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: #e0e0e0;
}

.selector-movie-list-single h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.selector-movie-list-single.highlighted {
  background-color: var(--clr-accent);
  position: relative;
}

.selector-movie-list-single.highlighted::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--clr-accent);
  z-index: -1;
}

.highlighted h3,
.highlighted .uhrzeit {
  font-weight: 900;
}

.uhrzeit {
  font-family: "Fira Code", monospace;
  font-size: .8rem;
  white-space: nowrap;
  margin-left: var(--space-sm);
}

.bottom-buttons-container {
  display: flex;
  border-top: var(--border-thick);
}

.bottom-buttons-container button {
  flex: 1;
  padding: var(--space-sm);
  border: none;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.bottom-buttons-container button:first-child {
  border-right: var(--border-thick);
}

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

  .desktop-layout {
    display: block;
  }

  #desktop-layout .programm-main {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
  }

  #desktop-layout {
    display: flex;
    padding-inline: var(--space-lg);
  }

  #desktop-layout .left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    overflow-y: auto;
  }

  #desktop-layout .right-content {
    width: 100%;
    max-height: 50vh;
  }

  #desktop-layout .right-content .poster-container {
    height: 100%;
    width: 100%;
  }

  #desktop-layout .right-content .poster {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  #desktop-layout .left-content .top-extra-info {
    padding: 0 0 var(--space-sm) 0;
    border-bottom: var(--border-medium);
    margin-bottom: 0;
  }

  #desktop-layout .left-content .movie-title {
    padding: 0;
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
  }

  #desktop-layout .left-content .main-info-container {
    padding: 0;
    flex-direction: row;
    gap: var(--space-md);
    justify-content: space-between;
  }

  #desktop-layout .left-content .main-info-tags {
    width: auto;
    display: flex;
    gap: var(--space-xl);
  }

  #desktop-layout .left-content .main-info-tags p {
    font-size: 13px;
  }

  #desktop-layout .left-content .main-info-synopsis {
    font-size: 13px;
    line-height: 1.5;
  }

  #desktop-layout .left-content .top-buttons-container {
    padding: 0;
    margin: 0;
    gap: var(--space-sm);
    flex-direction: row;
  }

  #desktop-layout .left-content .top-buttons-container button {
    padding: 12px 24px;
    font-size: 14px;
    max-width: 200px;
    width: auto;
    flex: none;
  }

  .top-section,
  .desktop-top {
    border: 0;
  }

  .desktop-top-row .main-info-container {
    display: flex;
    flex-direction: row;
  }

  #desktop-layout .main-info-tags {
    display: flex;
    gap: var(--space-xl);
    flex-direction: column;
  }

  .main-info-tags-desktop {
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
  }

  #desktop-layout .main-info-container {
    display: flex;
    flex-direction: row;
  }

  #desktop-layout .weitere-vorstellungen {
    display: block;
    border-top: var(--border-medium);
    padding-top: var(--space-md);
    margin-top: auto;
  }

  #desktop-layout .weitere-vorstellungen h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: var(--space-sm);
  }

  #desktop-layout .bottom-section {
    margin: 0 var(--space-lg) var(--space-lg) var(--space-lg);
    display: flex;
  }

  #desktop-layout .movie-list-container {
    flex: 1;
    overflow-y: auto;
  }

  @media (width >=1200px) {
    #desktop-layout .left-content {
      gap: 25px;
    }

    #desktop-layout .left-content .movie-title {
      font-size: clamp(28px, 3vw, 42px);
    }

    #desktop-layout .weitere-vorstellungen h3 {
      font-size: 16px;
      margin-bottom: var(--space-md);
    }
  }
}

#mobile-layout {
  display: block;
}

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

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

#desktop-layout h2 {
  color: black;
  font-size: 13px;
  width: auto;
  padding: 0;
  display: block;
}

.dark-mode #desktop-layout h2 {
  color: white;
}

#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-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  justify-content: space-between;
}

#desktop-layout .desktop-weitere-veranstaltungen h3 {
  font-weight: bold;
  margin-bottom: var(--space-sm);
  font-size: 13px;
}

#desktop-layout .desktop-vorstellung-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 12px;
  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 {
  margin-top: var(--space-lg);
}

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

.special-selector-item {
  padding: 12px 15px;
  border-bottom: var(--border-medium);
  cursor: pointer;
  font-size: 25px;
  transition: background-color 0.2s ease;
}

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

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

#desktop-layout .specials-left {
  position: relative;
  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 {
  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: var(--space-md);
}

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

#specials-accordion-container h3 {
  font-size: 13px;
  font-weight: bold;
  margin: var(--space-md) 0 var(--space-sm) 0;
}

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

#specials-accordion-container li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  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;
}

@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;
  }
}

@media (width >=1151px) {
  main {
    padding: 90px var(--space-lg) 0 125px;
  }

  .layout--filmrausch {
    padding: 90px var(--space-lg) var(--space-lg) 125px;
  }
}

.carousel-arrow.click-feedback {
  background-color: #ffd700 !important;
  transform: scale(0.95);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-indicator.active {
  background-color: #ffd700 !important;
  opacity: 1 !important;
}

.carousel-indicator:hover {
  opacity: 0.8 !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.foerder-sidebar .panel {
  color: black !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.foerder-sidebar .panel,
.foerder-sidebar .panel p,
.foerder-sidebar .panel li,
.dark-mode .foerder-sidebar .panel,
.dark-mode .foerder-sidebar .panel p,
.dark-mode .foerder-sidebar .panel li {
  color: black !important;
}

.foerder-sidebar .panel .btn {
  margin-bottom: 30px !important;
  color: var(--clr-accent) !important;
}