/* === Allgemeines Layout === */

@font-face {
  font-family: "StreamerSlant";
  src: url("../assets/fonts/StreamerSlantDemo-WyrX4.otf") format("opentype");
}

@font-face {
  font-family: "Number";
  src: url("../assets/fonts/VeniteAdoremus.ttf");
}

.body, html {
  transition: 0.5s ease;
  background-color: #2a2a2a;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  transition: 0.3s ease;
}

.containerNachClick {
  display: none;
}

.containerNachClick.sichtbar {
    display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  transition: 0.3s ease;
}

#Eingang {
  margin-top: 5%;
}

#spielerName {
  font-weight: 600;
}

#spielerName::placeholder {
  font-weight: normal;
}

#spielerAlter {
  font-weight: 600;
}

#spielerAlter::placeholder {
  font-weight: normal;
}

/* === Button zentriert === */


#gameBtn {
  position: relative;
  display: block;
  margin: 40px auto;
  padding: 15px 30px;
  width: 280px;
  height: 70px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #00e1ff;
  background-color: #111;
  border: 2px solid #00e1ff;
  border-radius: 25px;
  box-shadow: 0 0 15px #00e1ff;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 3px;
}

#gameBtn:hover {
  background-color: #00e1ff;
  color: #000;
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

#gameBtn.unsichtbar {
  display:none;
}

#gameBtnSec {
 display:none;
}


#gameBtnSec.sichtbar {
  position: relative;
  display: block;
  margin: 40px auto;
  padding: 15px 30px;
  width: 180px;
  height: 55px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #00e1ff;
  background-color: #111;
  border: 2px solid #00e1ff;
  border-radius: 25px;
  box-shadow: 0 0 15px #00e1ff;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

#gameBtn:hover {
  background-color: #00e1ff;
  color: #000;
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

#gameBtnSec.sichtbar:hover {
  background-color: #00e1ff;
  color: #000;
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

#nextRoundBtn {
  position: relative;
  display: block;
  margin: 40px auto;
  padding: 15px 30px;
  width: 280px;
  height: 70px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #00e1ff;
  background-color: #111;
  border: 2px solid #00e1ff;
  border-radius: 25px;
  box-shadow: 0 0 15px #00e1ff;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 3px;
}

#nextRoundBtn:hover {
  background-color: #00e1ff;
  color: #000;
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

#platzhalterZwei {
  width: 100vw;
  height: 1vh;
  background-color:transparent;
}

.intro-wrapper.unsichtbar {
    display: none;
}
.intro-wrapper {
  color: #00e1ff;
  font-family: 'Segoe UI', sans-serif;
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
  transition: 0.5s ease;
  position: sticky;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
  color: #fff;
}

.intro-title.unsichtbar {
    display: none !important;
}

.intro-title {
  font-size: 40px !important;
  font-weight: 900 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  font-family: "StreamerSlant", sans-serif !important;
  letter-spacing: 5px !important;
  margin-bottom: 20px !important;
  color: rgb(0, 225, 255) !important;
  text-shadow: 0 0 10px rgb(0, 225, 255) !important;
  list-style-position: inside !important;
  padding: 0 !important;
  margin: 0 auto !important;
  justify-content: center !important;
  text-align: center !important;
}


.intro-highlight.unsichtbar {
    display: none;
}

.intro-highlight {
  font-size: 20px;
  font-weight: 800;
  color: black;
  margin-top: 15px;
  margin-bottom: 15px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-family: 'Segoe UI', sans-serif;
}

.intro-highlight {
  font-size: 20px;
  font-weight: 800;
 color: black !important;
  margin-top: 15px;
  margin-bottom: 15px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-family: 'Segoe UI', sans-serif;
}

.intro-text.unsichtbar {
    display: none;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-weight:500;
 font-family: 'Segoe UI', sans-serif;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-weight:500;
 font-family: 'Segoe UI', sans-serif;
}

.intro-subtle.unsichtbar {
display: none;
}

.intro-subtle{
  font-size: 20px;
  color: rgb(100, 240, 255);
  margin-bottom: 20px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-weight:500;
 font-family: 'Segoe UI', sans-serif;
 color: black !important;
}

 #EingabeInfosTitle {
  font-size: 20px;
  color: rgb(100, 240, 255);
  margin-bottom: 20px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-weight:500;
 font-family: 'Segoe UI', sans-serif;
 color: #fff !important;
}



.intro-list, ul.unsichtbar {
    display:none;
}
#EingabeInfosText, ul.sichtbar {
  padding-left: 20px;
  list-style-type: disc;
  margin-bottom: 20px;
  list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 color: #fff !important;
font-family: Orbitron, sans-serif;
}

.intro-list {
  padding-left: 20px;
  list-style-type: disc;
  margin-bottom: 20px;
  list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 color: black !important;
font-family: Orbitron, sans-serif;
}



.intro-info ul.unsichtbar {
    display: none;
}
.intro-info ul {
  padding-left: 20px;
  list-style: square;
  margin-top: 10px;
    list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
 font-family: 'Segoe UI', sans-serif;
 color: black !important;
}

.intro-call.unsichtbar {
    display: none;
}

.intro-highlight.hover,
.intro-text.hover,
.intro-subtle.hover,
#EingabeInfosTitle.hover,
.intro-list.hover,
#EingabeInfosText.hover,
ul.sichtbar.hover,
.intro-info ul.hover {
    color: #fff !important;
}

.intro-call {
  font-family: "StreamerSlant", sans-serif !important;
  letter-spacing: 5px !important;
  font-size: 30px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  font-weight: bold !important;
  text-align: center !important;
  justify-content:center !important;
  margin-top: 50px !important;
  color: rgb(0, 225, 255) !important;
  animation: pulse 1.2s infinite alternate !important;
}

.intro-call span {
  font-family: "StreamerSlant", sans-serif !important;
    font-size: 50px !important;
    vertical-align: middle !important;
    font-weight: 400 !important;
}

.intro-call i {
    bottom: 20% !important;
    position: relative !important;
}

.intro-call span[style*="visibility: hidden"] {
    font-size: 30px !important;
}

.Quest {
  font-family: "Number", sans-serif;
  font-weight: bold;
}


@keyframes pulse {
  from {
    text-shadow: 0 0 10px rgb(0, 225, 255);
  }
  to {
    text-shadow: 0 0 25px rgb(0, 225, 255), 0 0 40px rgb(0, 225, 255);
  }
}

#platzhalter {
  width: 100vw;
  height: 1vh;
  background-color: transparent;
}


/* === Eingabe-Feld === */
#inputBlock {
  display: flex;
  justify-content: center;
  margin-top: 4%;
}

#input {
  color:white;
  background-color: #111;
  border: 2px solid cyan;
  border-radius: 3px;
  height: 30px;
  width: 200px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  padding: 5px;
  transition: 0.3s ease;
}

#input:focus {
  appearance: none;
  color:white;
  background-color: #111;
  border: 2px solid cyan;
  border-radius: 3px;
  height: 30px;
  width: 200px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  padding: 5px;
  transition: 0.3s ease;
  outline: none;
}

/* === Feedback (Richtig/Falsch) === */
#feedbackRight,
#feedbackFalse {
  display: none;
}

@keyframes feedbackPop {
  0% {
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

#feedbackRight.sichtbar,
#feedbackFalse.sichtbar {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  padding: 16px 28px;
  border-radius: 25px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10000;
  animation: feedbackPop 0.4s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(0, 225, 255, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ✅ Richtig */
#feedbackRight.sichtbar {
  background: rgba(0, 225, 255, 0.15);
  color: rgb(0, 225, 255);
  border: 2px solid rgb(0, 225, 255);
  text-shadow: 0 0 6px rgb(0, 225, 255);
  box-shadow: 0 0 25px rgba(0, 225, 255, 0.6);
}

/* ❌ Falsch */
#feedbackFalse.sichtbar {
  background: rgba(255, 40, 40, 0.15);
  color: rgb(255, 80, 80);
  border: 2px solid rgb(255, 80, 80);
  text-shadow: 0 0 6px rgb(255, 80, 80);
  box-shadow: 0 0 25px rgba(255, 80, 80, 0.4);
}
#feedbackRight.fade-out,
#feedbackFalse.fade-out {
  opacity: 0;
  transform: translateX(-50%) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* === Karte (Farbfeld) === */

.anzeige-wrapper {
  display: none;
}
.anzeige-wrapper.sichtbar {
  position: relative;
  height: 300px; /* genug Platz zum Zentrieren */
}

.colorchanger {
  display: none;
}

.colorchanger.sichtbar {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: blue;
  height: 200px;
  width: 200px;
  border-radius: 30px;
  transition: 0.3s ease;
}

.punktezeiger {
  display: none;
}

.punktezeiger.sichtbar {
  display: flex;
  position: absolute;
  top: 50%;
  left: calc(50% + 130px); /* etwas rechts neben der colorchanger */
  transform: translateY(-50%);
  width: 50px;
  height: 70px;
  background-color: white;
  font-size: 30px;
  font-family: "Number", sans-serif;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: 0.3s ease;
}

/* === Texte & Anzeige beim Start === */
#text,
#play {
  display: none;
  transition: 0.3s ease;
  text-align: center;
}

#text.sichtbar,
#play.sichtbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  font-weight: bold;
}

#textAdj {
  display: none;
  position: absolute;
}

#textAdj.sichtbar {
transition: 0.3s ease;
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  /* dein bisheriges Styling */
  display: block;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 30px;
  width: 150px;
  margin: 15% auto 0;
  transition: 0.3s ease;
  margin-top: 20%;
  color: red;
}

/* === Timer-Karten === */

#timer {
  display: none;
}

#timer.sichtbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  min-height: 30vh;
}

.card {
  display: none;
}

.card.sichtbar {
  display: flex;
  width: 50px;
  height: 70px;
  background-color: white;
  font-size: 30px;
  font-family: "Number", sans-serif;;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: 0.3s ease;
  margin: 10px;
  font-weight: 100;
}

.auswertung {
  opacity: 0;
}

.auswertung-box, .auswertung-item, .EingabeInfosContainer {
  display: none;
}

.auswertung-box.sichtbar {
  transition: 0.3s ease-in-out;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80%;
  max-width: 400px;
  animation: pulse-card 2s infinite ease-in-out;
  z-index: 10;
  padding: 3px;
  overflow: hidden;
  top: 10vh;
  margin-top: 250px;
  padding: 15px;
  height: fit-content;
}

.EingabeInfosContainer.sichtbar  {
  transition: 0.9s ease;
  position: relative;
  bottom: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80%;
  max-width: 400px;
  animation: pulse-card-rot 2s infinite ease-in-out;
  z-index: 100;
  margin-top: 250px;
}


.auswertung-item.sichtbar {
  transition: 0.3s ease;
  display: block;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: rgb(0, 225, 255);
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid rgb(0, 225, 255);
  box-shadow: 0 0 25px rgb(0, 225, 255);
  text-shadow: 0 0 5px rgb(0, 225, 255), 0 0 10px rgb(0, 225, 255);
}

@keyframes erscheinen-schrumpfen {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.auswertung-item.animate {
  animation: erscheinen-schrumpfen 0.8s ease-in-out forwards;
  transform-origin: center center;
}

@keyframes pulse-card {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 10px rgb(0, 225, 255),
      0 0 20px rgb(0, 225, 255),
      inset 0 0 5px rgb(0, 225, 255);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow:
      0 0 20px rgb(0, 225, 255),
      0 0 40px rgb(0, 225, 255),
      inset 0 0 10px rgb(0, 225, 255);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 10px rgb(0, 225, 255),
      0 0 20px rgb(0, 225, 255),
      inset 0 0 5px rgb(0, 225, 255);
  }
}

@keyframes pulse-card-rot {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 5px red,
      0 0 10px red,
      inset 0 0 5px red;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow:
      0 0 10px red,
      0 0 20px red,
      inset 0 0 10px red;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 5px red,
      0 0 10px red,
      inset 0 0 5px red;
  }
}


#platzmacher.sichtbar {
  bottom: 100%;
  left: 50%;
  right:50%;
  display: flex;
  justify-items: center;
  align-items: center;
  transform: translate(-50%, -50%);
  background-color: transparent;
  height: 200px;
  width: 200px;
  background-color: transparent;
}

#reaktionsChart {
  display: none;
}

#startbildschirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  gap: 20px;
  z-index: 10000;
  display: none;
}

#startbildschirm input[type="text"],
#startbildschirm input[type="number"] {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 15px;
  border: none;
  outline: none;
  background: white;
  color: black;
  width: 250px;
}

#startbildschirm label {
  color: rgb(0, 225, 255);
  font-size: 14px;
}

.geschlecht-box {
  display: flex;
  gap: 20px;
  color: rgb(0, 225, 255);
  font-size: 14px;
}

#man {
  width: 20px;
  height: 20px;
  top: 4px;
  appearance: none;
  border: 2px solid #00e1ff;
  border-radius: 10px;
  background-color: black;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
}

#woman {
  width: 20px;
  height: 20px;
  top: 4px;
  appearance: none;
  border: 2px solid #00e1ff;
  border-radius: 10px;
  background-color: black;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;

}

#man:checked {
  background-color: #00e1ff;
    background-color: #00e1ff;
  background-image: url("../assets/images/unnamed.png");
  background-size: cover; /* Passt das Bild an die Größe des Elements an */
  background-size: 155%;
  background-position: center; /* Zentriert das Bild */
}

#woman:checked {
    background-color: #00e1ff;
      background-color: #00e1ff;
  background-image: url("../assets/images/unnamed.png");
  background-size: cover; /* Passt das Bild an die Größe des Elements an */
  background-size: 155%;
  background-position: center; /* Zentriert das Bild */s

}

#startWeiterBtn {
  padding: 10px 20px;
  font-size: 15px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  background: rgb(0, 225, 255);
  color: black;
  border: none;
  border-radius: 20px;
  width: 150px;
}

#welcome {
  font-family: "StreamerSlant", sans-serif;
  color: rgb(0, 225, 255);
  letter-spacing: 12px;
  font-size: clamp(32px, 8vw, 60px);
  text-shadow: #00e1ff 0px 0px 15px;
  text-align: center;
}

#cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.einschaetzungsBox {
  background: #111;
  padding: 30px;
  border-radius: 20px;
  border: 2px solid #00e1ff;
  box-shadow: 0 0 20px #00e1ff;
  text-align: center;
  animation: pop 0.3s ease-out;
  color: white;
  font-family: 'Orbitron', sans-serif;
}

.einschaetzungsBox input {
  width: 80%;
  padding: 10px;
  margin: 15px 0;
  border-radius: 10px;
  border: none;
  font-size: 16px;
}

.einschaetzungsBox button {
  background: #00e1ff;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

#einschaetzungInput {
  font-family: "Number", sans-serif;
}

#einschaetzungInput::placeholder {
  font-family: Arial, Helvetica, sans-serif;
}

#einschaetzungBtn {
    font-family: orbitron, sans-serif;

}

.fehlerText {
  color: red;
  font-size: 14px;
  height: 18px;
  margin-bottom: 10px;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.login-container {
  background: #111;
  padding: 30px;
  border-radius: 20px;
  border: 2px solid #00e1ff;
  box-shadow: 0 0 20px #00e1ff;
  text-align: center;
  animation: pop 0.3s ease-out;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
  min-width: 320px;
  min-height: 420px;
  transition: 0.3s ease;
}

.login-container::before {
  content: '';
  position: absolute;
  width: var(--before-width, 100px);
  height: 130%;
  background-image: linear-gradient(180deg, cyan, white);
  animation: rotBGimg 3s linear infinite;
  transition: all 0.2s linear;
  z-index: 0;
  top: -65px;
  border-radius: inherit;
}

.login-container::after {
  content: '';
  position: absolute;
  background: #111;
  inset: 5px;
  border-radius: 15px;
  z-index: 1;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .intro-title {
    font-size: 30px !important; 
  }
}

#bright {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  display: none;
}

#bright.v {
  display: block;
  width: 900%;
  height: 930%;
  top: -15%;
  background-image: linear-gradient(180deg, cyan, white);
}

.language-switch {
  position: absolute;
  top: 15px;
  right: 0;
  width: 73px;
  height: 30px;
  background: #111;
  border: 2.5px solid #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
  box-sizing: border-box;
}

.lang-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size: cover;
  transition: transform 0.3s;
  background-image: url("https://flagcdn.com/w40/de.png");
}

.language-switch.english .lang-circle {
  position: absolute;
  left: 40px;
  transform: translateX(0px);
  background-image: url("https://flagcdn.com/w40/gb.png");
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size:cover;
  background-size: 45px;
  background-position: center;
  transition: transform 0.3s;
}

.login-container:hover {
    transform: scale3d(1.05, 1.05, 1.05);
}

.login-container * {
  z-index: 2;
  position: relative;
  transition: transform 0.2s ease;
}

.login-container:hover > * {
  transform: translateY(-5px) scale3d(1.05, 1.05, 1.05);
}

@keyframes rotBGimg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#anonym {
  width: 20px;
  height: 20px;
  appearance: none;
  top: 7px;
  border: 2px solid #00e1ff;
  border-radius: 4px;
  background-color: black;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
  right: 3px;
}

#anonym:checked {
  background-color: #00e1ff;
  background-image: url("../assets/images/unnamed.png");
  background-size: cover; /* Passt das Bild an die Größe des Elements an */
  background-size: 165%;
  background-position: center; /* Zentriert das Bild */
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay-content {
  background: rgba(0, 225, 255, 0.2);
  border: 2px solid #00ffcc;
  border-radius: 20px;
  padding: 30px 60px;
  color: #00ffcc;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  text-align: center;
  text-shadow: 0 0 10px #00ffcc;
}

.animate-popup {
  animation: popup 0.6s ease-in-out;
}

@keyframes popup {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}a


#wuerfelAnimation {
  width: 100%;
  max-width: none;
  height: auto;
  display: flex;
  justify-content: center;
  margin: 150px auto 0;
}

#wuerfelAnimation.result {
  margin-top: 1000px;
}

#wuerfelAnimation.unsichtbar {
  display: none;
}

#wuerfelAnimation svg {
  filter: drop-shadow(0 0 15px #00e1ff);
  width: 100%;
  max-width: 450px;
  height: auto;
  display: flex;
  justify-content: center;
  margin: 150px auto 0;
}

#gameStart {
  transition: 0.3s ease;
  display: block;
  backdrop-filter: blur(4px);
  color: rgb(0, 225, 255);
  font-family: 'Orbitron', sans-serif;
  font-size: 60px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  text-shadow: 0 0 5px rgb(0, 225, 255), 0 0 10px rgb(0, 225, 255); 
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

#letsTestOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#letsTestOverlay .overlay-content {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: rgb(0, 225, 255);
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 30px 60px;
  border-radius: 20px;
  border: 2px solid rgb(0, 225, 255);
  box-shadow: 0 0 25px rgb(0, 225, 255);
  text-shadow: 0 0 5px rgb(0, 225, 255), 0 0 10px rgb(0, 225, 255);
  animation: popup 0.6s ease-in-out;
}

@keyframes popup {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

#timeOverContainer {
  display: none !important;
 transition:0.5s ease;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80%;
  max-width: 400px;
  animation: pulse-card 2s infinite ease-in-out;
  z-index: 10;
  padding: 3px;
  overflow: hidden;
  top: 10vh;
  margin-top: 250px;
  padding: 15px;
  height: fit-content;
  z-index: 1000000;
  opacity: 0;
      function zeigeTimerOver() {
      setTimeout(() => {
        timeOver.style.display = "none";
        timeOverContainer.style.display = "none";
      }, 900);
    }

}

#timeOver {
    transition: 0.3s ease;
    z-index: 10000000;
  display: none !important;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: rgb(0, 225, 255);
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid rgb(0, 225, 255);
  box-shadow: 0 0 25px rgb(0, 225, 255);
  text-shadow: 0 0 5px rgb(0, 225, 255), 0 0 10px rgb(0, 225, 255);
  opacity: 0;
  transition: opacity 0.1s ease-in;
}

#ranglisteContainer {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.ranglisten-eintrag {
  margin: 10px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  border: 2px solid rgb(0, 225, 255);
  box-shadow: 0 0 25px rgb(0, 225, 255);
  color: rgb(0, 225, 255);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  animation: erscheinen-schrumpfen 0.8s ease-in-out forwards;
}

.rang-eintrag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 15px 20px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 2px solid rgb(0, 225, 255);
  background: rgba(0, 0, 0, 0.6);
  color: rgb(0, 225, 255);
  box-shadow: 0 0 25px rgb(0, 225, 255);
  text-shadow: 0 0 5px rgb(0, 225, 255), 0 0 10px rgb(0, 225, 255);
}

.rang-gold   { border-color: gold;   box-shadow: 0 0 25px gold;   color: gold;   }
.rang-silber { border-color: silver; box-shadow: 0 0 25px silver; color: silver; }
.rang-bronze { border-color: peru;   box-shadow: 0 0 25px peru;   color: peru;   }


.rang-highlight {
  animation: pulse-card 1s ease-in-out infinite;
}

/* === Startmenü Karten === */
#startCards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}

.aspect-card {
  width: 90%;
  max-width: 600px;
  background: #111;
  border: 2px solid #00e1ff;
  border-radius: 15px;
  overflow: hidden;
  color: #00e1ff;
  cursor: pointer;
  transition: max-height 0.6s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  max-height: 90px;
  padding: 15px;
  box-sizing: border-box;
  box-shadow: 0 0 15px #00e1ff;
}

.aspect-card.hovering,
.aspect-card.open {
  max-height: 1000px;
  background-color: #00e1ff;
  color: #000;
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

.aspect-card.hovering {
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

.aspect-card.clicked {
  animation: card-click-flash 0.2s ease;
}

.aspect-header {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: rgb(0, 225, 255);
      font-family: orbitron, sans-serif;

}

.aspect-card.hovering .aspect-header,
.aspect-card.open .aspect-header {
  color: rgb(0, 225, 255);
}

.aspect-content {
  background: #00e1ff;
  color: black;
  border: 2px solid black;
  border-radius: 6px;
  padding: 20px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
 font-family: Sergio UI;
 font-weight: 500;
 padding-bottom: 30px;
}

.aspect-card.hovering .aspect-content,
.aspect-card.open .aspect-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: #000;
  color: black;
  border-color: #fff;
}

#startCards .intro-list,
#startCards .intro-info ul,
#startCards .intro-text,
#startCards .intro-subtle {
  line-height: 1.8;
}
#startCards li {
  margin-bottom: 8px;
}

@keyframes scroll-open {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes card-click-flash {
  from { box-shadow: 0 0 30px rgb(0, 225, 255); }
  to   { box-shadow: 0 0 20px rgb(0, 225, 255); }
}

#transitionOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow: hidden;
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.6s ease, opacity 0.6s ease;
  opacity: 1;
}

#transitionOverlay.fadeout {
  backdrop-filter: blur(20px);
  opacity: 0;
}

#transitionOverlay .ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 25%;
  border: 6px solid rgb(255, 255, 255);
  background: radial-gradient(
    circle,
    rgba(0, 225, 255, 0.25) 0%,
    rgb(255, 255, 255) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 80px rgba(0, 225, 255, 0.9),
    0 0 160px rgba(0, 225, 255, 1),
    0 0 300px rgba(0, 225, 255, 1),
    inset 0 0 60px rgba(0, 225, 255, 0.8);
  opacity: 0.1;
  filter: blur(5px);
  will-change: transform, opacity;
  transform: scale(0);
}

#transitionOverlay.active .ring {
  animation: ring-grow 1.8s ease-in-out;
}

#transitionOverlay.active .ring:nth-child(2) {
  animation-delay: 0.2s;
}
#transitionOverlay.active .ring:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ring-grow {
  0% {
    transform: scale(30);
    opacity: 0.2;
  }
  50% {
    transform: scale(400);
    opacity: 0.3;
  }
}

/* === Startmenü Karten === */
#startCards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
  align-items: center;
  margin-top: 50px;
}

.aspect-card {
  width: 90%;
  max-width: 600px;
  background: #111;
  border: 2px solid #00e1ff;
  border-radius: 15px;
  overflow: hidden;
  color: #00e1ff;
  cursor: pointer;
  transition: max-height 0.6s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  max-height: 90px;
  padding: 15px;
  box-sizing: border-box;
  box-shadow: 0 0 15px #00e1ff;
  transition: max-height 0.6s ease;
  max-height: 90px;
  padding: 10px;
}

.aspect-card.hovering,
.aspect-card.open {
  max-height: 1000px;
  background-color: #00e1ff;
  color: #000;
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

.aspect-card.hovering {
  box-shadow: 0 0 25px #00e1ff, 0 0 50px #00e1ff;
}

.aspect-card.clicked {
  animation: card-click-flash 0.2s ease;
}

.aspect-header {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  margin-bottom: 10px;
  color: rgb(0, 225, 255) !important;
}

.aspect-card.hovering .aspect-header,
.aspect-card.open .aspect-header {
  color: black !important;
}

.aspect-content {
  background: #00e1ff;
  color: black;
  border: 4px solid black;
  border-radius: 10px;
  padding: 20px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.aspect-card.hovering .aspect-content,
.aspect-card.open .aspect-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: #000;
  color: #fff;
  border-color: #fff;
}

#startCards .intro-list,
#startCards .intro-info ul,
#startCards .intro-text,
#startCards .intro-subtle {
  line-height: 1.8;
}
#startCards li {
  margin-bottom: 8px;
  display: block;
  animation: scroll-open 0.5s ease;
}

@keyframes scroll-open {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes card-click-flash {
  from { box-shadow: 0 0 30px rgb(0, 225, 255); }
  to   { box-shadow: 0 0 20px rgb(0, 225, 255); }
}

#shaderCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
}


@media (max-width: 600px) {
  #wuerfelAnimation svg {
    width: 80vw !important;
    height: 80vw !important;
    max-width: none;
  }
  #wuerfelAnimation.result {
    margin-top: 1000px;
  }
  #nextRoundBtn {
    margin-top: 20px;
  }
}

@keyframes closeOpen {
  0% {
    clip-path: circle(100% at center);
    opacity: 1;
  }
  33% {
    clip-path: circle(0% at center);
    opacity: 0;
  }

    66% {
    clip-path: circle(0% at center);
    opacity: 0;
  }

  100% {
    clip-path: circle(100% at top);
    opacity: 1;
  }
}
.close-open {
  animation: closeOpen 0.66s ease-in-out;
  animation-duration: 1.33s;
  animation-delay: 0.2;
  overflow: hidden;
transition: clip-path 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
