.viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 15px;
}

.quiz-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  z-index: 2;
  min-height: 100px;
  width: 100%;
  max-width: 650px;
}

#quizQuestionState {
  position: relative;
  width: 100%;
  z-index: 1;
}

#quizResultState {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  opacity: 0; /* Verhindert das Aufblitzen beim Laden */
  pointer-events: none; /* Verhindert Klicks im unsichtbaren Zustand */
  transform: translateY(10px);
}

.quiz-badge {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
  display: inline-block;
}

/* h2 & p explizit sichtbar schalten */
.quiz-header h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 15px;
  font-weight: 400;
  color: #f8fafc !important;
  visibility: visible !important;
  display: block !important;
}

.result-title {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.result-sub {
  color: #94a3b8 !important;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-top: 4px;
  visibility: visible !important;
  display: block !important;
}

.interactive-frame {
  position: relative;
  width: 90vw;
  max-width: 650px;
  height: 42vh;
  max-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background: #1e293b;
}

.zoom-image {
  width: 100%;
  height: 100%;
  transform: scale(4.5) translate(5%, 5%);
  transform-origin: center center;
}

.zoom-image svg {
  width: 100%;
  height: 100%;
}

.quiz-options {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  width: 92%;
  z-index: 10;
}

.option {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

@media (max-width: 600px) {
  .interactive-frame {
    height: 38vh;
  }
  .quiz-options {
    flex-direction: column;
    bottom: 8px;
  }
  .option {
    padding: 8px;
    font-size: 0.75rem;
  }
}