/* --- DARTQUIZ CSS RESET UND BASISSTYLES --- */

/* Globaler Reset nur innerhalb des Dartquiz-Containers */
.dartquiz-container,
.dartquiz-container * {
  all: unset;
  all: revert;
  box-sizing: border-box;
  font-family: sans-serif;
  color: #111;
  text-decoration: none;
}

/* Hauptcontainer */
.dartquiz-container {
  all: revert;
  display: block;
  font-family: sans-serif;
  line-height: 1.5;
  color: #111;
  box-sizing: border-box;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 3rem;
  border:1px solid #808080;
}

/* Innerer Bereich mit Hintergrundbild */
.dartquiz-inner {
  position: relative;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 2rem;
  border-radius: 0;
  overflow: hidden;
}

/* Fade-Overlay über das Hintergrundbild */
.dartquiz-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* 60% weiß über Bild */
  z-index: 0;
}

/* Inhalte sichtbar über dem Overlay */
.dartquiz-inner > * {
  position: relative;
  z-index: 1;
}

/* Quizfrage */
.dartquiz-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
}

/* Einführungstext */
.dartquiz-intro {
  margin-bottom: 1.5rem;
  color: #111;
}

/* Antworten */
.dartquiz-answer {
  margin-bottom: 1.5rem;
}

.dartquiz-answer button {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  color: #111;
}

/* Deaktivierte Buttons nach Vote */
.dartquiz-answer button[disabled] {
  background-color: transparent;
  color: #888;
  cursor: default;
}
/* Richtige Antwort (ganzer Block) hervorheben */
.dartquiz-answer.correct-answer {
	background-color: rgba(70, 180, 80, 0.1);
	border: 2px solid #46b450;
}

/* Balken-Container */
.dartquiz-bar-container {
  background-color: #ccc;
  height: 10px;
  position: relative;
  margin-top: 0.5rem;
}

/* Balken selbst */
.dartquiz-bar {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  background-color: #0073aa; /* grün für gewählte Antwort */
}

/* Prozentanzeige */
.dartquiz-percentage {
  position: absolute;
  top: -1.5em;
  right: 0;
  font-size: 0.85rem;
  color: #111;
}

/* Richtige Antwort */
button.correct {
  background-color: rgba(70, 180, 80, 0.5);
  color: #111;
}

/* Beschreibung nach Vote */
.dartquiz-description {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #111;
  display: none;
}

/* Link-Block */
.dartquiz-link {
  margin-top: 1rem;
  display: none;
}

.dartquiz-link a {
  color: #0073aa;
  font-weight: bold;
}

/* Weiter-Button */
.dartquiz-next {
  margin-top: 2rem;
  display: none;
}

.dartquiz-next .dartquiz-next-btn {
	background: rgba(255, 255, 255, 0.5);
	color: #000;
	border: none;
	padding: 10px 20px;
	font-size: 1rem;
	cursor: pointer;
}

.dartquiz-next a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  color: #111;
  text-align: center;
  border: none;
}

/* Cookie-Reset Button */
.dartquiz-reset-cookie {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  color: #111;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Ladeanzeige */
.dartquiz-loading {
  text-align: center;
  padding: 2em;
  font-style: italic;
  color: #666;
}

.dartquiz-loading::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  border: 2px solid #ccc;
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}