/* Base Styles */
html{
  font-size: 16px;
}
body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #0f0c29, #302b63);
  min-height: 100svh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  padding: 20px;
}

.index-page {
  padding: 0;
  align-items: stretch;
}

.training-page {
  justify-content: center;
  align-items: center;
}

.training-page .container,
.training-page .quiz-container,
.training-page .result-container {
  margin-left: auto;
  margin-right: auto;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>');
  z-index: -1;
}

/* Compact Container */
.container {
  background: #0f0c29e6;
  backdrop-filter: blur(5px);
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  min-height: 420px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.index-page .container {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.imagebox {
  background-image: url("Gemini_Generated_Image_uiqurluiqurluiqu.png");
  background-size: contain;
  background-repeat: no-repeat; /* Kein Wiederholen */
  background-position: center;  /* Zentriert */
  width: 100%;
  height: 300px;
  margin-top: 20px;
}

/* Title */
.title-box {
  position: relative;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(45deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

h1 span {
  font-size: 1rem;
  color: #fff;
}

.subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Compact Button */
button {
  background: linear-gradient(45deg, #ff8a00, #e52e71);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  transition: transform 0.2s;
  min-height: 58px;
}

button:hover {
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.2s;
}

button:hover .btn-arrow {
  transform: translateX(3px);
}

.std_btn {
  width: 220px;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px auto;
  box-sizing: border-box;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

@media (max-width: 768px) {
  body {
    padding: 14px;
    align-items: flex-start;
  }

  .index-page {
    padding: 0;
    align-items: stretch;
  }

  .training-page {
    justify-content: center;
    align-items: center;
  }

  .container {
    width: min(100%, 640px);
    padding: 22px;
  }

  .index-page .container {
    width: 100%;
    padding: 22px;
  }

  .training-page .container,
  .training-page .quiz-container,
  .training-page .result-container {
    width: min(100%, 640px);
  }

  .imagebox {
    height: 240px;
  }

  h1 {
    font-size: 2rem;
  }

  .std_btn {
    width: min(100%, 320px);
  }

  .footer-links {
    gap: 12px 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .index-page {
    padding: 0;
  }

  .training-page {
    padding: 10px;
    justify-content: center;
    align-items: center;
  }

  .container {
    width: 100%;
    padding: 18px;
    min-height: 0;
  }

  .index-page .container {
    padding: 18px;
  }

  .training-page .container,
  .training-page .quiz-container,
  .training-page .result-container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

  .imagebox {
    height: 180px;
    margin-top: 16px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .std_btn {
    width: 100%;
    max-width: 320px;
  }
}

