.hidden {
  display: none !important;
}

.fa-x,
.fa-bars {
  font-size: 36px;
  padding: 19px !important;
  color: var(--white-color);
  cursor: pointer;
}

.hideOnMobile {
  white-space: nowrap;
}

.dropdownmobileevent,.dropdownmobilecinema{
  background-color: var(--background-color)!important;
  width: 100%!important;
  padding-top: unset!important;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10000;
  height: 140px;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: 1920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background-color: transparent;
  background-image: linear-gradient(180deg,
      #000 0,
      rgba(0, 0, 0, 0.738) 19%,
      rgba(0, 0, 0, 0.541) 34%,
      rgba(0, 0, 0, 0.382) 47%,
      rgba(0, 0, 0, 0.278) 56.5%,
      rgba(0, 0, 0, 0.194) 65%,
      rgba(0, 0, 0, 0.126) 73%,
      rgba(0, 0, 0, 0.075) 80.2%,
      rgba(0, 0, 0, 0.042) 86.1%,
      rgba(0, 0, 0, 0.021) 91%,
      rgba(0, 0, 0, 0.008) 95.2%,
      rgba(0, 0, 0, 0.002) 98.2%,
      rgba(0, 0, 0, 0.001) 99.2%,
      transparent);
}

@media (min-width: 1025px) {
  .sticky-site-header {
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.6px);
    -webkit-backdrop-filter: blur(2.6px);
    transition: all 0.5s cubic-bezier(0.97, 0.28, 0.82, 0.85);
  }
}

nav ul {
  width: 100%;
  list-style: none;
}

nav a,
nav span {
  height: 100%;
  /* padding: 0 30px; */
  text-decoration: none;
  color: var(--white-color);
  font-family: var(--roboto-condensed-regular);
}

.links-container {
  height: inherit;
  max-width: 1920px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  margin: 0;
}

.links-container__left {
  height: inherit;
  display: flex;
  align-items: center;
}

.links-container__left li {
  height: inherit;
}

.links-container__left li a {
  display: flex;
  align-items: center;
}

.links-container__right {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  height: 114px;
}

.links-container__right>div {
  display: flex;
  flex-direction: row;
}

.links-container__top {
  margin-bottom: auto;
  display: flex;
  gap: 40px;
}

.links-container__bottom {
  margin-top: 60px;
  display: flex;
  gap: 80px;
}

.links-container__top li a,
.links-container__top li span {
  font-size: var(--text-sm);
}

.links-container__bottom li a {
  font-size: var(--text-md-sm);
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  min-height: 100%;
  width: 80%;
  background: var(--background-color);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  font-family: var(--roboto-condensed-regular);
  overflow-y: scroll;
  /* Enable vertical scroll */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  z-index: 9999;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar-container {
  padding: 15px 36px;
  padding-bottom: 40px;
}

.sidebar-container__inner {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 67px;
  margin-bottom: 67px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.sidebar-icon {
  width: 18px;
  height: 20px;
  margin-right: 10px;
  display: inline-block;
}

.sidebar-container__inner a {
  padding: 0 !important;
  font-size: var(--text-sm);
}

.sidebar-container__inner .fa-solid {
  color: var(--white-color);
  font-size: var(--text-md);
  margin-right: 8px;
}

.sidebar-container__social {
  display: flex;
  gap: 20px;
  margin-top: 19px;
}

.sidebar-container__social .fa-brands {
  font-size: var(--text-xl);
  color: var(--white-color);
  opacity: 0.5;
}

.sidebar-caption {
  color: var(--ticket-color);
  font-size: var(--text-md);
  text-transform: uppercase;
  font-weight: bold;
  margin: 0px;
}

.green-stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background-color: var(--ticket-color);
}

.menu-button {
  display: none;
}

.logo {
  /* height: 81px; */
  object-fit: contain;
  max-height: 100%;
}

.links-container .fa-solid {
  margin-right: 4px;
}

.dropdown-content {
  padding-top: 20px;
  display: none;
  position: absolute;
  background-color: transparent;
  color: var(--white-color);
  min-width: 200px;
  z-index: 1000;
}

.dropdown-content a,
.dropdown-content span {
  width: fit-content;
}

.reduce-visibility {
  opacity: 0.3;
}

.noStyleBtn {
  border: 0;
  background: unset;
}

.dropdown .dropbtn:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  /* Semi-transparent black overlay */
  z-index: 9999;
}

@media (max-width: 1920px) {
  nav {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
}

@media (max-width: 1300px) {
  .logo {
    max-width: 225px;
  }
}
@media screen and (max-width:767px) {
    .logo {
      max-height: 75px!important;
    }
}
@media (max-width: 1024px) {
  .hideOnMobile {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .logo {
    height: unset !important;
    max-width: 140px !important;
    margin: unset !important;
  }

  nav {
    height: unset!important;
    max-height: 75px;
    background-color: #161b21;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .links-container {
    margin: 0 40px;
  }
}

@media (min-width: 1280px) {
  .links-container {
    margin: 0 80px;
  }
}

@media (min-width: 1536px) {
  .links-container {
    margin: 0 140px;
  }
}

@media (min-width: 1650px) {
  .links-container {
    margin: 0 246px;
  }
}

/* Language dropdown: align directly under the current flag */
/* Make the language dropdown sit above the dark overlay */
/* Base: keep menu hidden by default */
#language_dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px); /* visual spacing without creating a hover gap */
  min-width: 45px;
  align-items: flex-start;
  z-index: 10001; /* above overlay */
}

/* Open state: JS adds .open to the <li id="language_dropdown"> */
#language_dropdown.open .dropdown-content {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
}

/* Kill the old hover-driven rule so it doesn't fight us */
/* .dropdown .dropbtn:hover .dropdown-content {
  display: none !important;
} */

/* Ensure the trigger stacks above the overlay */
#language_dropdown {
  position: relative;
  z-index: 10002; /* nav is 10000; overlay is 9999 in your CSS */
}


/* =========================================================
   Kino-/Standortauswahl im Header
   Eigene Dropdown-Komponente (kein natives <select>).
   Flaeche: --dark-card-backgroundcolor
   Akzent:  --ticket-color (Akzentfarbe des jeweiligen Kinos)
   ========================================================= */
.ti-cinema-switch {
  position: relative;
  display: inline-block;
  z-index: 10060; /* nav: 10000, .dropdown-content: 10050 */
  font-family: var(--roboto-condensed-regular);
}

/* Abstand/Gr��e der FontAwesome-Icons aus dem Header neutralisieren */
.ti-cinema-switch .fa-solid {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

/* Wrapper im oberen Men�band vertikal zentrieren (nur Desktop, s.u.).
   Bewusst in die 1025px-Media-Query verschoben: als unbedingte Regel
   hatte sie dieselbe Spezifit�t wie .hideOnMobile und stand im Stylesheet
   dahinter, wodurch sie auf Mobilger�ten faelschlich gewonnen und die
   Desktop-Kinoauswahl oben aus dem Header ragen liess. */
@media (min-width: 1025px) {
  .ti-cinema-switch-wrap {
    display: flex;
    align-items: center;
  }
}

/* --- Ausl�ser --- */
.ti-cinema-switch__toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--ticket-color);
  border-radius: 2px;
  background-color: var(--dark-card-backgroundcolor, var(--background-color));
  color: var(--white-color);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

/* Aufhellen unabh�ngig von der jeweiligen Hintergrundfarbe */
.ti-cinema-switch__toggle:hover,
.ti-cinema-switch__toggle:focus-visible,
.ti-cinema-switch.is-open .ti-cinema-switch__toggle {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.07);
  outline: none;
}

.ti-cinema-switch .ti-cinema-switch__pin {
  flex: 0 0 auto;
  font-size: 15px;
  color: var(--ticket-color);
}

.ti-cinema-switch__current {
  flex: 1 1 auto;
  min-width: 0; /* erzwingt das Schrumpfen im Flex-Layout, sonst greift die Ellipse nicht */
  height: auto;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ti-cinema-switch .ti-cinema-switch__caret {
  flex: 0 0 auto;
  font-size: 11px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.ti-cinema-switch.is-open .ti-cinema-switch__caret {
  transform: rotate(180deg);
}

/* --- Aufgeklappte Liste --- */
.ti-cinema-switch__list {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1;
  display: none;
  width: auto;
  min-width: 100%;
  max-height: 60vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Sicherheitsnetz: die Liste darf nie �ber ihren Rahmen hinausragen */
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background-color: var(--dark-card-backgroundcolor, var(--background-color));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.ti-cinema-switch.is-open .ti-cinema-switch__list {
  display: block;
}

.ti-cinema-switch__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ti-cinema-switch__link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  padding: 11px 16px;
  border-left: 3px solid transparent;
  color: var(--white-color);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ti-cinema-switch__item + .ti-cinema-switch__item .ti-cinema-switch__link {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ti-cinema-switch__link .fa-solid {
  flex: 0 0 auto;
  font-size: 13px;
  opacity: 0.45;
}

/* Name eines Standorts: darf nie �ber den Rahmen der Liste hinausragen */
.ti-cinema-switch__link span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ti-cinema-switch__link:hover,
.ti-cinema-switch__link:focus-visible {
  background-color: rgba(255, 255, 255, 0.07);
  border-left-color: var(--ticket-color);
  color: var(--white-color);
  outline: none;
}

.ti-cinema-switch__link:hover .fa-solid,
.ti-cinema-switch__link:focus-visible .fa-solid {
  color: var(--ticket-color);
  opacity: 1;
}

.ti-cinema-switch__link.is-current {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: var(--ticket-color);
  font-weight: 700;
}

.ti-cinema-switch__link.is-current .fa-solid {
  color: var(--ticket-color);
  opacity: 1;
}

/* --- Variante Sidebar (mobiles Men� im alten Header) --- */
.ti-cinema-switch--sidebar {
  display: block;
  width: 100%;
  margin: 6px 0 2px;
}

.ti-cinema-switch--sidebar .ti-cinema-switch__toggle {
  width: 100%;
  max-width: 100%;
}

.ti-cinema-switch--sidebar .ti-cinema-switch__list {
  width: 100%;
  white-space: normal;
}

.ti-cinema-switch--sidebar .ti-cinema-switch__link {
  padding: 11px 16px !important;
}

.ti-cinema-switch--sidebar .ti-cinema-switch__link span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* --- Variante Mobil (neuer Header: rechte Spalte ist dort ausgeblendet) --- */
.ti-cinema-switch--mobile {
  display: none;
}

@media (max-width: 1024px) {
  .ti-cinema-switch--mobile {
    display: inline-block;
    max-width: 100%; /* darf den Elternbereich nie sprengen, egal wie lang der Name ist */
    margin: 8px 0 2px;
  }

  /* Deutlich kompakter als am Desktop: feste Obergrenze statt vw, damit die Box
     auf jeder Displaybreite klein bleibt und nie an den Bildschirmrand st��t. */
  .ti-cinema-switch--mobile .ti-cinema-switch__toggle {
    max-width: min(56vw, 190px);
    padding: 6px 10px;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .ti-cinema-switch--mobile .ti-cinema-switch__pin {
    font-size: 12px;
  }

  .ti-cinema-switch--mobile .ti-cinema-switch__caret {
    font-size: 9px;
  }

  .ti-cinema-switch--mobile .ti-cinema-switch__list {
    left: 50%;
    width: max-content;
    max-width: min(80vw, 260px);
    transform: translateX(-50%);
  }

  .ti-cinema-switch--mobile .ti-cinema-switch__link {
    padding: 9px 12px;
    gap: 8px;
    font-size: 12px;
  }
}

/* Sehr schmale Displays: Box nochmal reduzieren, damit auch bei langen Namen
   links/rechts sicher Luft zum Bildschirmrand bleibt. */
@media (max-width: 360px) {
  .ti-cinema-switch--mobile .ti-cinema-switch__toggle {
    max-width: min(50vw, 150px);
    padding: 5px 8px;
    font-size: 10px;
  }

  .ti-cinema-switch--mobile .ti-cinema-switch__list {
    max-width: min(84vw, 240px);
  }
}

/* ==========================================================================
   Info-Banner ganz oben (rotierende Hinweistexte), Navbar direkt darunter.
   Nur fuer ausgewaehlte Kinos, siehe tiheader_render_info_banner().
   Reihenfolge: Banner (top:0) -> Navbar (per body.ti-has-info-banner nav
   nach unten versetzt) -> normaler Seiteninhalt.
   ========================================================================== */
.ti-info-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  /* Bewusst UNTER der Navbar (10000): Banner und Navbar ueberlappen sich
     nicht (die Navbar ist per top darunter versetzt), aber die mobile Sidebar
     (Hamburger-Menue) steckt im Stacking-Context der Navbar und beginnt bei
     top:0 - mit 10001 hat das Banner deren oberen Teil inkl. Schliessen-X
     verdeckt, solange nicht gescrollt war. */
  z-index: 9999;
  min-height: 42px;
  background-color: var(--ticket-color);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Navbar um die Bannerhoehe nach unten versetzen, damit sie direkt unter
   dem Banner beginnt statt dahinter. Hoehere Spezifitaet als "nav { top:0 }"
   gewinnt unabhaengig von der Position im Stylesheet. */
body.ti-has-info-banner nav {
  top: 42px;
  transition: top 0.4s ease;
}

/* Sobald das Banner beim Scrollen ausblendet (siehe tiheaderInitInfoBanner),
   rutscht die Navbar wieder ganz nach oben - sonst bliebe eine leere Luecke
   in Bannerhoehe stehen. Zwei Klassen = hoehere Spezifitaet als die Regel
   oben, gewinnt unabhaengig vom Breakpoint (42px/50px). */
body.ti-has-info-banner.ti-info-banner-scrolled nav {
  top: 0;
}

.ti-info-banner.is-scrolled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ti-info-banner__inner {
  position: relative;
  max-width: 1920px;
  min-height: inherit;
  margin: 0 auto;
}

.ti-info-banner__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 20px;
  color: var(--white-color);
  font-family: var(--roboto-condensed-regular);
  font-size: var(--text-sm);
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.ti-info-banner__text.is-active {
  opacity: 1;
}

@media (max-width: 1024px) {
  .ti-info-banner {
    min-height: 50px;
  }

  .ti-info-banner__text {
    padding: 8px 16px;
    font-size: var(--text-xs, 12px);
    line-height: 1.3;
  }

  body.ti-has-info-banner nav {
    top: 50px;
  }
}

/* Platz fuer das Info-Banner reservieren (Klasse wird serverseitig via
   body_class-Filter gesetzt, siehe tiheader_should_show_info_banner()).
   Bewusst per fester CSS-Regel statt per JS, damit beim ersten Rendern
   sofort Platz da ist und der Inhalt darunter nicht nachtraeglich springt. */
@media (min-width: 1025px) {
  body.ti-has-info-banner {
    padding-top: 58px; /* 42px Banner + etwas Luft zum Inhalt darunter */
  }
}

@media (max-width: 1024px) {
  body.ti-has-info-banner {
    padding-top: 50px;
  }
}
