:root {
  --neon-blue: #00f0ff;
  --neon-blue-glow: 0 0 20px #00f0ff, 0 0 40px #00f0ff99;
  --yellow: #dfb708;
  --blue: #00345f;
  --section-title-size: 4vw;
  --section-subtitle-size: 2vw;
  --section-text-size: 1.1vw;
}
body {
  background: radial-gradient(ellipse at top, #222 0%, #000 100%);
  color: #fff;
  font-family: "Jockey One", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}
h1 {
  color: #0078d7;
}
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem 2rem;
  background: linear-gradient(180deg, #000 60%, transparent 100%);
}
.logo {
  width: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px #ffe81f);
}
.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px #ffe81f, 0 0 40px #fff;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.cta {
  display: inline-block;
  color: var(--neon-blue);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s;
  padding: 10px;
}
.cta:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-blue);
}
section {
  max-width: 700px;
  margin: 3rem auto;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  box-shadow: 0 0 24px #ffe81f33;
  padding: 2rem;
}
h2 {
  font-family: "Jockey One", "Arial", sans-serif;
  color: #ffe81f;
  text-shadow: 0 0 10px #ffe81f;
  margin-top: 0;
}
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #111;
  color: #ffe81f;
  font-size: 1rem;
  border-top: 2px solid #ffe81f33;
}
.sponsor-logos img {
  width: 100px;
  margin: 0 1rem;
  filter: brightness(1.2) drop-shadow(0 0 10px var(--neon-blue));
}
.team ul,
.faq details {
  color: #fff;
}
.registration form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.registration input,
.registration button {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
}
.registration button {
  background: var(--neon-blue);
  color: #222;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-blue);
}
.registration button:hover {
  background: #fff;
  color: var(--neon-blue);
}
::-webkit-scrollbar {
  width: 8px;
  background: #222;
}
::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 8px;
}
.film-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 0;
}
.film-card {
  display: flex;
  background: rgba(20, 20, 30, 0.95);
  border-radius: 24px;
  box-shadow: 0 0 32px var(--neon-blue);
  overflow: hidden;
  align-items: center;
  min-height: 260px;
  transition: transform 0.2s;
}
.film-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 48px #ffe81f66;
}
.film-img {
  width: 220px;
  height: 100%;
  object-fit: cover;
  background: #222;
  border-right: 2px solid #ffe81f44;
  flex-shrink: 0;
}
.film-content {
  padding: 2rem;
  color: #fff;
  flex: 1;
}
.film-content h2 {
  color: #ffe81f;
  font-family: "Jockey One", "Arial", sans-serif;
  margin-top: 0;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #ffe81f;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Jockey One", "Arial", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.section-bg {
  position: relative;
  /* full viewport height so the image fills the viewport vertically */
  min-height: 100vh;
  width: 100vw;
  /* scale image so its height matches the section, keep aspect ratio */
  background-size: auto 100%;
  /* align the image to the right; leftover space on the left shows the background-color */
  background-position: right center;
  background-repeat: no-repeat;
  /* left area should be solid black where the image doesn't reach */
  background-color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}
.menu-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.menu-nav {
  background: #111;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
}
.menu-link {
  color: #fff;
  font-size: 1rem;
  margin: 0 0.6rem;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  display: inline-block;
}
.menu-link.active {
  color: var(--neon-blue);
  text-shadow: var(--neon-blue-glow);
}
.topnav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 101;
  display: flex;
  gap: 1.5rem;
}

/* Top-left main navigation (horizontal) */
.topnav-left {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 110;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* When menu-links are used in the topnav-left, render them inline and compact */
.topnav-left .menu-link {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.topnav-left .menu-link.active {
  color: var(--neon-blue);
  border-bottom-color: var(--neon-blue);
  text-shadow: var(--neon-blue-glow);
}
.topnav-num {
  color: #fff;
  font-size: 1.1rem;
  font-family: "Jockey One", "Arial", sans-serif;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  padding-bottom: 2px;
}
.topnav-num.active {
  border-bottom: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  text-shadow: var(--neon-blue-glow);
}
.section-bg {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}
.section-num-bg {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 13vw;
  color: rgba(255, 255, 255, 0.08);
  font-family: "Jockey One", Arial, sans-serif;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}
.section-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #fff;
  width: 50vw;
  max-width: 590px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: 2;
}
.section-title {
  font-size: var(--section-title-size);
  font-weight: bold;
  color: #fff;
  margin: 0 0 1.5em 0;
  letter-spacing: 0.05em;
  text-shadow: var(--neon-blue-glow);
}
.section-subtitle {
  font-size: var(--section-subtitle-size);
  color: #fff;
  margin: 0 0 0.5em 0;
  font-weight: 600;
  text-shadow: 0 0 10px #000a;
}
.section-text {
  font-size: var(--section-text-size);
  color: #fff;
  margin-bottom: 2em;
  line-height: 1.5;
  text-shadow: 0 0 8px #000a;
}
.read-more {
  display: inline-block;
  margin-top: 7em;
  color: #fff;
  font-size: 1.1vw;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--neon-blue);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.read-more:hover {
  opacity: 1;
}
.section-num-bg {
  position: absolute;
  /* push the large number slightly past the right edge so ~10% of the glyph
       (relative to its own font-size) is outside the section and clipped by
       the parent's overflow:hidden. Using em here ties the offset to the
       element's font-size: -0.1em == -10% of its font-size. */
  right: -4vw;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 13vw;
  color: rgba(255, 255, 255, 0.08);
  font-family: "Jockey One", "Arial", sans-serif;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .section-content {
    margin-right: 2vw;
    padding: 1rem;
  }
  .topnav {
    top: 1rem;
    right: 1rem;
    gap: 1rem;
  }
}

/* Rotate-screen overlay (hidden by default) */
.rotate-overlay {
  position: fixed;
  inset: 0;
  display: none; /* shown in portrait via media query or JS */
  align-items: center;
  justify-content: center;
  background: rgb(0, 0, 0);
  color: #fff;
  z-index: 9999;
}
.rotate-overlay[aria-hidden="false"] {
  display: flex;
}
.rotate-overlay__inner {
  max-width: 520px;
  width: calc(100% - 8rem);
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55));
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 40px var(--neon-blue);
}
.rotate-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px var(--neon-blue));
}
.rotate-title {
  font-size: 1.6rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--neon-blue);
}
.rotate-text {
  margin: 0 0 1rem;
  color: #fff;
}
.rotate-close {
  background: #fff;
  color: #222;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
@media (orientation: portrait) {
  .rotate-overlay {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rotate-overlay__inner {
    transition: none;
  }
}

/* SVG hero styles: scale cleanly to viewport and ensure text remains in image-fixed coordinates */
.svg-hero {
  height: 100vh;
  width: 100vw;
  display: block;
  position: relative;
}
.svg-hero .hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Make SVG text scale responsively using CSS variables if needed */
.svg-hero .title {
  font-size: clamp(28px, 4.5vw, 64px);
}
.svg-hero .subtitle {
  font-size: clamp(18px, 2.5vw, 32px);
}
.svg-hero .meta {
  font-size: clamp(14px, 1.8vw, 26px);
}
.svg-hero .link {
  font-size: clamp(12px, 1.6vw, 22px);
  fill: var(--neon-blue);
}

/* Hide the old .section-content for the SVG hero to avoid duplication */
.svg-hero .section-content {
  display: none;
}

/* Styles for HTML content inside the SVG foreignObject */
.hero-fo {
  font-family: "Rationale", "Jockey One", Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.hero-fo__title {
  margin: 0 0 0.4rem 0;
  font-size: clamp(28px, 4.5vw, 56px);
  color: #fff;
}
.hero-fo__subtitle {
  margin: 0 0 0.6rem 0;
  font-size: clamp(16px, 2.4vw, 28px);
  color: var(--neon-blue);
}
.hero-fo__meta {
  margin: 0 0 1rem 0;
  font-size: clamp(14px, 1.8vw, 20px);
  color: #fff;
}
.hero-fo__cta {
  display: inline-block;
  text-decoration: none;
}
.hero-fo--more {
  margin: 0 0 1rem 0;
  font-size: clamp(14px, 1.8vw, 20px);
  color: #000;
  background-color: rgba(255, 255, 255, 0.65);
  width: auto;
  height: auto;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: var(--neon-blue-glow) inset;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

/* Ensure foreignObject content scales visually and doesn't overflow */
svg .hero-fo {
  box-sizing: border-box;
  padding: 0;
}

/* Split foreignObject blocks: ensure they behave like normal HTML containers */
.hero-fo--title,
.hero-fo--subtitle,
.hero-fo--cta,
.hero-fo--more {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.hero-fo--title .hero-fo__title {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 64px);
}
.hero-fo--subtitle .hero-fo__subtitle {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--neon-blue);
}
.hero-fo--subtitle .hero-fo__meta {
  margin: 0.4rem 0 0 0;
  font-size: clamp(14px, 1.8vw, 20px);
}
.hero-fo--cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hidden {
  display: none;
}

.title {
  fill: #ffffff;
  font-family: "Jockey One", sans-serif;
  font-weight: 700;
  font-size: 64px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}
.subtitle {
  fill: #ffe81f;
  font-family: "Jockey One", sans-serif;
  font-size: 32px;
}
.meta {
  fill: #ffffff;
  font-size: 26px;
}
.link,
a {
  fill: #00f0ff;
  text-decoration: underline;
  cursor: pointer;
}

strong,
a {
  color: var(--yellow);
}

.more strong {
  color: var(--blue);
}

.infobox {
  border: 2px solid var(--yellow);
  padding: 0.7rem;
  border-radius: 8px;
  background: rgba(255, 232, 31, 0.1);
  box-shadow: 0 0 10px var(--neon-blue);
  top: 2rem;
  left: 100px;
  position: fixed;
  top: 2rem;
  z-index: 101;
}

.countdown {
  left: 360px;
  width: auto;
}

.close-more {
  position: absolute;
  top: 0;
  right: 18px;
  color: #000000b6;
  text-decoration: none;
  font-size: 2rem;
}

/* Info-Icon (nur Mobile) */
.info-icon {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 2.2em;
  background: rgba(0, 224, 255, 0.15);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  text-align: center;
  line-height: 50px;
  color: #00e0ff;
  cursor: pointer;
  z-index: 100;
}
/* Overlay (Mobile Vollbild) */
.info-overlay .infobox {
  flex: 1;
  background: rgba(0, 224, 255, 0.08);
  border: 2px solid #00e0ff;
  border-radius: 10px;
  padding: 20px 10px;
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.4);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2em;
  background: none;
  border: none;
  color: #00e0ff;
  cursor: pointer;
}
.info-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center; /* Vertikal zentriert */
  flex-direction: column; /* hinzufügen */
}

.info-overlay .info-content {
  position: relative;
  display: flex;
  flex-direction: column; /* Untereinander */
  justify-content: center;
  width: 100%;
  max-width: 480px;
  gap: 20px; /* Abstand zwischen den Boxen */
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2em;
  background: none;
  border: none;
  color: #00e0ff;
  cursor: pointer;
}
.info-overlay {
  display: none;
}

/* Mobile-Anpassungen */
@media (max-width: 1000px) {
  #infobox-outer {
    display: none;
  }
  .info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 1);
    z-index: 999;
    padding-top: 60px;
  }

  .info-icon {
    display: block;
  }
}
