@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Bowlby+One+SC&display=swap');

body {
  margin: 0;
  background: black url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  background-size: cover;
  color: #FFDE06;
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.hidden {
  display: none;
}

#password-screen,
#selection-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black url('assets/Startseite1.PNG') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding-top: 0.5vh;
  padding-left: 4vw;
  padding-right: 4vw;
  box-sizing: border-box;
}

#selection-screen {
  position: relative;
  overflow: hidden;
  z-index: 999;
  background: black url('assets/PascalC2.PNG') center center no-repeat;
  background-size: cover;
}

#password-screen input,
#password-screen button,
#selection-screen button {
  padding: 0.6em 1em;
  font-size: 1.3em;
  background: #111;
  border: 2px solid #FFDE06;
  color: #FFDE06;
  cursor: pointer;
  margin: 0.6em;
  width: 80%;
  max-width: 200px;
}

.intro-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 80vh;
  overflow: hidden;
  perspective: 800px;
  background-image: url('assets/Star Wars Background2.jpg');
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.headline {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 4em;
  color: black;
  -webkit-text-stroke: 2px #FFDE06;
  text-align: center;
  z-index: 6;
  opacity: 0;
  display: block;
}

.headline span {
  display: block;
}

.headline-zoom {
  animation: zoomCrawl 12s ease-out forwards;
}

@keyframes zoomCrawl {
  0% {
    transform: translate(-50%, -50%) scale(3) translateZ(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) translateZ(-500px);
    opacity: 0;
  }
}

.blue-line, .crawl {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.blue-line {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00bfff;
  font-size: 1.7em;
  text-align: center;
  width: 90vw;
  line-height: 1.3;
  padding: 0 1em;
  z-index: 5;
}

.crawl {
  position: absolute;
  top: 90%;
  width: 100%;
  max-width: 95vw;
  left: 50%;
  transform: translateX(-50%) rotateX(25deg);
  transform-origin: bottom center;
  font-size: 1.15em;
  line-height: 1.4;
  padding: 0 1em;
}

.crawl-fly {
  animation: flyCrawl 120s ease-out forwards;
}

@keyframes flyCrawl {
  0% {
    transform: translateX(-50%) rotateX(65deg) scale(2.5) translateZ(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) rotateX(65deg) scale(0.5) translateZ(-3000px);
    opacity: 0;
  }
}

.subheadline {
  font-size: 1.2em;
  text-align: center;
  color: #FFDE06;
  margin-bottom: 1.2em;
}

.paragraph {
  text-align: left;
  color: #FFDE06;
  max-width: 95%;
  margin: 0 auto 1em auto;
}

.target-marker {
  background-color: transparent;
}

.back-button {
  position: absolute;
  left: 5px;
  top: 30%;
  display: none;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 0.4em;
  font-size: 0.9em;
  background: #111;
  border: 2px solid #FFDE06;
  color: #FFDE06;
  cursor: pointer;
  z-index: 10;
}

#extraContent {
  display: none;
  padding: 10px 15px 0;
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  color: #FFDE06;
  position: relative;
  top: 0;
}

#extraContent.show {
  top: -40px;
}

#extraContent img:not(.hut-thumb) {
  display: none;
}

iframe {
  width: 100%;
  max-width: 320px;
  height: 200px;
  border: 4px solid #FFDE06;
  margin-bottom: 1em;
}

#infoBackBtn {
  display: block;
  margin: 1em auto 0 auto;
  padding: 0.4em 0.8em;
  font-size: 0.9em;
  background: #111;
  border: 2px solid #FFDE06;
  color: #FFDE06;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

@media (max-width: 500px) {
  .blue-line {
    font-size: 1.4em;
    max-width: 95vw;
    padding: 0 1em;
  }

  .crawl {
    max-width: 95vw;
    font-size: 1em;
    padding: 0 1em;
  }

  .info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .hut-thumb {
    width: 60px;
    height: auto;
    border: 2px solid #FFDE06;
    border-radius: 5px;
  }

  #extraContent h2 {
    font-size: 1.2em;
  }
}

.crawl-fly {
  animation: flyCrawl 90s ease-out forwards;
}

@keyframes flyCrawl {
  0% {
    transform: translateX(-50%) rotateX(65deg) scale(2.5) translateZ(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) rotateX(65deg) scale(0.5) translateZ(-3000px);
    opacity: 0;
  }
}

.headline span {
  line-height: 0.8;
  margin: 0;
}

#gif-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#gif-screen.hidden {
  display: none;
}
#gif-screen img {
  max-width: 90vw;
  max-height: 90vh;
}
#selection-screen video#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
@media (max-width: 768px) {
  #selection-screen video#background-video {
    object-position: center center;
  }
}

.info-box {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.info-text {
  border: 2px solid #FFDE06;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

iframe {
  width: 100%;
  height: 200px;
  border: 4px solid #FFDE06;
  display: block;
  margin: 0 auto;
}

#extraContent a {
  color: #FFDE06;
  text-decoration: underline;
}

#pwButton {
  font-size: 1em;
  padding: 0.4em 1.2em;
  max-width: 180px;
  margin-top: 1em;
}

#password-screen #pwButton {
  font-size: 1em !important;
  padding: 0.4em 1.2em !important;
  max-width: 180px !important;
  margin-top: 0em !important;
  margin-bottom: 0.5em !important;
}

#password-screen input {
  margin-bottom: 0.4em;
}

#selection-screen .button-container {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

#selection-screen .button-container button {
  margin: 0;
}

#selection-screen .button-container button {
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #FFDE06;
  border-radius: 12px;
  color: #FFDE06;
  font-size: 1.1em;
  padding: 0.8em 1.6em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
  width: 90vw;
  max-width: 300px;
  text-align: center;
}

#selection-screen .button-container button:hover {
  background-color: #FFDE06;
  color: black;
  transform: scale(1.03);
  box-shadow: 0 0 12px #FFDE06;
}

#password-screen input,
#password-screen button {
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #FFDE06;
  border-radius: 12px;
  color: #FFDE06;
  font-size: 1.1em;
  padding: 0.6em 1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
  width: 80vw;
  max-width: 200px;
  margin: 0.4em 0;
}

#password-screen button:hover {
  background-color: #FFDE06;
  color: black;
  transform: scale(1.03);
  box-shadow: 0 0 12px #FFDE06;
}
/* Bild komplett sichtbar machen, mobil optimiert */
#pascalImage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: opacity 1s ease, transform 1s ease;
  opacity: 0;
  max-width: 90vw;
  max-height: 70vh; /* Höher, damit Handy‑Bildschirm es vollständig zeigt */
  border-radius: 10px;
  object-fit: contain;
}

#pascalImage.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 600px) {
  #pascalImage {
    max-width: 60vw;
    max-height: 50vh;
  }
}
#pascalImage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}