/* Prüfungssimulation */
.exam-toolbar {
  position: sticky;
  top: var(--booking-sticky-offset, 118px);
  z-index: 70;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(12,26,45,0.18);
  border-radius: 0;
  background: rgba(249,249,249,0.96);
  box-shadow: none;
}

.exam-progress {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  color: rgb(12,26,45);
  font-weight: 700;
}

.exam-progress strong {
  font-size: 1.45rem;
  line-height: 1;
}

.exam-timer {
  min-width: 4.8em;
  padding: 0.18em 0.45em;
  border-bottom: 4px solid rgb(12,26,45);
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.exam-timer.is-low {
  background: #c0392b;
}

.exam-question-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
}

.exam-form.is-wizard .exam-question-card {
  display: none;
}

.exam-form.is-wizard .exam-question-card.is-active {
  display: block;
}

.exam-question-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(12,26,45,0.22);
  background: #fff;
  box-sizing: border-box;
}

.exam-question-card legend {
  max-width: 100%;
  padding: 0 0.4em;
  color: rgb(12,26,45);
  font-weight: 800;
  white-space: normal;
}

.exam-question-image {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 10px 0;
  border: 0;
  box-shadow: none;
}

.exam-answer-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.exam-answer-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 0.65em 0.75em;
  border: 1px solid rgba(12,26,45,0.18);
  background: rgba(46,73,119,0.06);
  cursor: pointer;
}

.exam-answer-options input {
  margin-top: 0.2em;
}

.exam-wizard-controls {
  display: none;
}

.exam-form.is-wizard .exam-wizard-controls {
  position: sticky;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(12,26,45,0.18);
  background: rgba(249,249,249,0.96);
  box-sizing: border-box;
}

.exam-form.is-wizard .exam-wizard-controls button {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 2.8em;
}

.exam-form.is-wizard .exam-wizard-controls button[hidden] {
  display: none;
}

.exam-form.is-wizard .exam-wizard-controls button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.exam-form.is-wizard .exam-submit-fallback {
  display: none;
}

.exam-result {
  text-align: center;
}

.exam-score {
  margin: 0.2em 0;
  color: rgb(12,26,45);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
}

.exam-score span {
  display: block;
  font-size: 0.38em;
  color: #4e5d73;
}

.exam-pass,
.exam-fail {
  font-weight: 800;
  font-size: 1.25rem;
}

.exam-pass {
  color: #1f7a48;
}

.exam-fail {
  color: #a1261a;
}

.exam-review {
  display: grid;
  gap: 12px;
}

.exam-review-item {
  padding: 14px;
  border-left: 6px solid #c0392b;
  background: #fff;
}

.exam-review-item.is-correct {
  border-left-color: #2e8b57;
}

.exam-review-item h3 {
  margin: 0 0 0.55em;
  color: rgb(12,26,45);
}

.exam-answer-review {
  margin: 0.5em 0;
  padding-left: 1.2em;
}

.exam-answer-review li {
  margin: 0.25em 0;
}

.exam-answer-review .is-correct-answer {
  font-weight: 800;
  color: #1f7a48;
}

.exam-answer-review .is-selected-answer:not(.is-correct-answer) {
  color: #a1261a;
  text-decoration: line-through;
}

.exam-feedback {
  color: #4e5d73;
}

.pruefung-simulation-bg {
  max-width: var(--max-width);
  margin: 0 auto;
  background-image: linear-gradient(to bottom, rgba(255,174,0,0.5), rgba(12,26,45,0.5));
  padding: 10px 0;
}

@media (max-width: 640px) {
  .exam-toolbar {
    align-items: center;
    flex-direction: row;
    top: var(--booking-sticky-offset, 60px);
  }
  .exam-timer {
    width: auto;
    box-sizing: border-box;
  }

  .exam-form.is-wizard .exam-wizard-controls {
    margin-right: -8px;
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

