/* 1. Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: grosa;
  src: url(../fonts/Grosa-Medium.woff2) format("woff2");
  font-style: normal;
}

@font-face {
  font-family: grosa;
  src: url(../fonts/Grosa-Bold.woff2) format("woff2");
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: grosa;
  src: url(../fonts/Grosa-MediumItalic.woff2) format("woff2");
  font-style: italic;
}

@font-face {
  font-family: mandarin;
  src: url(../fonts/ArialUnicode.ttf) format("truetype");
  font-style: normal;
  font-weight: normal;
}

:lang(zh-Hant) {
  font-family: mandarin, serif;
  font-variant-ligatures: none;
}

html, body {
  font-family: grosa, sans-serif;
  font-weight: normal;
  color: #111;
  background: #fff;
  scroll-behavior: smooth;
  line-height: 1.3;
  font-size: calc(12px + 0.390625vw);
}

html em, body em{
 font-style: italic;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

h1 {
  font-family: grosa, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: normal;
  font-style: normal;
}

h2 {
  font-family: grosa, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: normal;
}

h3 {
  font-family: grosa, sans-serif;
  font-size: inherit;
  font-weight: normal;
    margin-bottom: 20px;

}

button {
  font-family: grosa, sans-serif;
  font-size: inherit;
  transition: all 0.3s ease;
  color: inherit;
}



section {
  border-bottom: 2px solid black;
  width: 100%;
}

section .container {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 ;
}


section p {
  margin-bottom: 1.5rem;
}

section p:last-child {
  margin-bottom: 0rem;
}


/* 2. Opener */
#opener {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#opener video,
#opener img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opener-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

#openerMessage {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: grosa, sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 110;
}

#openerMessage.show {
  opacity: 1;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
    opacity: 1;
  }
  80% {
    transform: translateX(-50%) translateY(5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

#openerLogoOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#openerLogoOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-center figure {
  height: auto;
  width: 60vw;
}

.logo-center svg {
  display: block;
  width: 100%;
  height: auto;
}

.infotext-opening-overlay {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  opacity: 0;
  transition: opacity 0.6s ease;
  width: 90vw;
  font-size: calc(12px + 1.5vw);
  line-height: 1;
}

.infotext-opening-overlay.visible {
  opacity: 1;
}




/* 3. Sticky Nav */
#sticky-nav {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 20px;
  border-bottom: 2px solid black;
  z-index: 1000;
}

#sticky-nav .nav-logo a{
  text-decoration: none;
  line-height: 1.1;
  color: black;
}

#sticky-nav .nav-logo {
  text-decoration: none;
}

#sticky-nav .nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
}

#main-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#main-content.reveal {
  opacity: 1;
  transform: translateY(0);
}


/* 4. Accordion Section */
section#program .container {
  padding: 40px 20px 20px 20px;
  margin: 0 ;
}

section#program h1, section#team h1, section#about h1, section#tickets h1, section#intro h1 {
  text-align: center;
}

.program-accordion .accordion-day:not(:last-child) {
  border-bottom: 2px solid #111;
  margin-bottom: 20px;
}

.program-accordion .accordion-day:last-child {
  margin-bottom: 0px;
}


.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 0;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0px  0 0px 0;
  cursor: pointer;
}

.chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.accordion-toggle .chevron {
  transition: transform 0.4s ease;
}

.accordion-toggle.active .chevron {
  transform: rotate(225deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-in-out;
}

.entry-wrap {
  padding-left: 2.5rem;
}

.accordion-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}


.accordion-entry img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.accordion-entry .entry-text {
  flex: 1;
}

.image-hover {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image-hover img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.image-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: exclusion;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.image-hover:hover img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}

.image-hover:hover::after {
  opacity: 0;
}


.video-wrapper {
  width: 100%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.6s ease;
}

.video-wrapper.active {
  opacity: 1;
  max-height: 1000px; 
  margin-top: 20px;
  width: 100%;
}


.accordion-entry .video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.show-video {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}


.entry-text {
  margin-top: 15px;
}

.entry-text a {
  text-decoration: underline;
}

.entry-text img {
  margin-bottom: 60px;
  width: 80%;
}


.entry-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  max-width: 90%;
  margin-top: 12px;
}

.entry-col {
  flex: 1;
  min-width: 200px;
}

.entry-col p {
  margin: 0;
  padding: 0;
}


/* 5. About & Ticket */

.about-block-2 {
  margin-top: 60px;
}

section#tickets a {
  text-decoration: underline;
}

.terms-block {
  font-size: 0.8rem;
}



/* 6. Team */
.team-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 80%;
}

.team-section li {
  flex: 1 1 calc(33.33% - 20px);
  min-width: 200px;
}


.team-section li img{
  width: 100%;
}

section#team {
  border-bottom: none;
}


/* Partners / Logos */


.partner-logos .logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px); 
  row-gap: 0px;
  margin-top: 0px;
  margin-bottom: 20px;
}

.logo-grid h3 {
  padding-left: 12px;
  min-height: clamp(20px, 8vw, 60px);
  display: flex;
  align-items: center;
  margin: 0;
}


.partner-logos .logo-item {
  flex: 1 1 clamp(100px, 22vw, 160px); 
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(20px, 10vw, 80px);
  padding: 0 clamp(6px, 1vw, 16px);
}
.partner-logos .logo-item img {
  display: block;          
  max-height: 50px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

section#partners .container {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto; 
}


section#contact {
  border-bottom: none;
  font-size: 0.9rem;
}

section#contact {
position: relative;
}

section#contact h3 {
  margin-bottom: 20px;
}

section#partners h3 {
  margin-bottom: 0px;
  font-size: 0.9rem;
}

section#contact .container{
  padding: 20px;
  max-width: 100%;
  margin: 0 auto; 
}


section#contact .logo-item{
  width: 8rem;
  position: absolute;
  bottom: 20px;
  right: 20px;
}

section#contact .entry-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: end;
  padding-left: 0px;
  width: 80%;
}


section#contact p {
  margin: 0;
  padding: 0;
}

section#contact a {
  text-decoration: none;
  color: inherit;
}

.imprint-wrap {
  height: 100vh;
  width: 100vw;
}

section#imprint {
  border-bottom: none;
}

.go-back {
  margin: 40px;
  position: fixed;
  top: 0; 
  right: 0;
}

/* 7. Responsive */
@media (max-width: 600px) {

    section,
  #sticky-nav,
  .program-accordion .accordion-day:not(:last-child),
  section#program .accordion-day:not(:last-child),
  section#program,
  section#intro,
  section#team,
  section#about,
  section#tickets {
    border-bottom-width: 1px !important;
  }


  .logo-grid h3 {
  border-left-width: 1px;
}

.logo-center figure {
  height: auto;
  width: 90vw;
  padding-bottom: 20px;
}

section .container {
  padding: 20px 20px;
}

button:hover {
  color: inherit;
}

section a:hover {
  color: inherit;
}

#sticky-nav .nav-links a:hover {
  color: inherit;
}

.entry-wrap {
  padding-left: 0;
}

  .accordion-entry {
    flex-direction: column;
  }

  .accordion-entry img {
    width: 100%;
  }

  #sticky-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  #sticky-nav .nav-links {
    margin-top: 10px;
  }

  #sticky-nav .nav-links a {
    margin-left: 0;
    margin-right: 15px;
  }

.image-hover img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.image-hover::after {
  display: none;
}

#openerMessage {
  top: 20px;
}

#openerMessage.show {
  opacity: 1;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
  80% {
    transform: translateX(-50%) translateY(-5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.partner-logos .logo-grid {
  row-gap: 20px;
}


}

