body {
  font-family: 'Quicksand', cursive;
  background: url("background1.jpg") no-repeat center center fixed;
  background-size: cover;
  text-align: center;
  padding: 50px;
  position: relative;
}

/* Dunkles Overlay, damit der Text nicht untergeht */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* halbtransparentes Schwarz */
  z-index: 0;
}

.container {
  position: relative; /* über das Overlay legen */
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.9); /* halbtransparent weiß */
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

h1 {
  color: #333;
}

#quiz-container {
  margin: 20px 0;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.feedback {
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
}

.feedback.wrong {
  color: red;
  text-align: left;   /* Antworten linksbündig */
  margin-top: 20px;
}
.feedback.correct {
  color: green;
  text-align: left;   /* Antworten linksbündig */
  margin-top: 20px;
}
#quiz-container p:first-child {
  font-weight: bold;
  color: #313131;
  margin-bottom: 10px;
}
.antworten {
  text-align: left; /* Antworten links ausrichten */
  margin: 10px 0;
}

.antworten label {
  display: block; /* jede Antwort in eigener Zeile */
  padding: 5px 0;
}
/* Fortschrittsbalken */
.progress {
  height: 12px;
  background: #ddd;
  border-radius: 6px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #81C784);
  transition: width 0.4s ease;
}

/* Punktestand */
#score {
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

.antworten label:hover {
  background-color: rgba(0,0,0,0.05);
  border-radius: 5px;
  cursor: pointer;
}
