/* GDMM v1.3-clean · tnt.css
 * TNT – täglich üben und Vorab-Übungen.
 *   exercise-   Übungsbildschirm im Vollbild (TNT und Vorab-Übung teilen ihn)
 *   tnt-, quiz-, question-, answer-   ältere TNT-Darstellung innerhalb des Seitengerüsts
 *   gdmm-in-exercise (auf <body>)     Übungsbildschirm ist offen
 *
 * Einbindung (Reihenfolge ist Teil der Kaskade, siehe index.html):
 *   tokens → base → layout → modals → forum → tnt → live-participant → trainer → presenter → ux → trainer-workspace → awards
 *
 * Mobile First: Die Regeln ohne Media Query beschreiben die Smartphone-Ansicht,
 * @media (min-width: …) ergänzt größere Bildschirme. Die Werte enden auf .02px (z. B. 750.02px),
 * damit sie lückenlos an die früheren Grenzen (max-width: 750px) anschließen – auch bei gebrochenen
 * Fensterbreiten durch Zoom. Verbliebene @media (max-width: …)-Blöcke enthalten Deklarationen, die es
 * nur auf kleinen Bildschirmen gibt (die Regel setzt dafür auf großen Bildschirmen keinen eigenen Wert).
 */

.question-shell {
  max-width: 920px;
  margin: 0 auto;
}

.quiz-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-15);
  margin-bottom: var(--space-14);
  color: var(--muted);
  font-size: var(--fs-083);
  font-weight: 750;
}

.quiz-steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: var(--space-8);
  margin: 0 0 var(--space-25);
}

.quiz-step {
  height: 7px;
  border-radius: var(--radius-100);
  background: #e2e7ef;
}

.quiz-step.active {
  background: var(--blue);
}

.quiz-step.done {
  background: var(--lime);
}

.question-title {
  font-size: clamp(1.35rem,2.5vw,2rem);
  line-height: 1.35;
  margin: var(--space-9) 0 var(--space-21);
}

.answer-list {
  display: grid;
  gap: var(--space-10);
}

.answer-btn {
  border: 2px solid #e0e5ed;
  background: var(--white);
  width: 100%;
  min-height: 57px;
  border-radius: var(--radius-15);
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-13);
  font-weight: 700;
  color: var(--ink);
}

.answer-btn:hover:not(:disabled) {
  border-color: #7e9efa;
  background: var(--gray-98);
}

.answer-btn:disabled {
  cursor: default;
}

.answer-btn.correct {
  border-color: #7ab628;
  background: #f0fbdc;
}

.answer-btn.wrong {
  border-color: #e88375;
  background: #fff0ed;
}

.answer-btn.correct .option-letter {
  background: var(--lime);
}

.answer-btn.wrong .option-letter {
  background: #ffd0c8;
}

.option-letter {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #eef2f7;
  color: #485165;
  border-radius: var(--radius-10);
  font-size: var(--fs-082);
  font-weight: 900;
}

.answer-feedback {
  margin: var(--space-16) 0;
  padding: var(--space-17);
  border: 1px solid #e6d5a1;
  background: #fff9e5;
  border-radius: var(--radius-14);
}

.answer-feedback.good {
  background: #eef9dc;
  border-color: #c7e59c;
}

.answer-feedback h3 {
  margin: 0 0 var(--space-7);
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-22);
}

.quiz-hint {
  background: #f1f4ff;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-10);
  padding: var(--space-13);
  font-size: var(--fs-085);
  margin-top: var(--space-14);
  color: #263d7c;
}

.tnt-compact .card {
  padding-top: var(--space-22);
}

.tnt-compact .quiz-steps {
  margin-bottom: var(--space-15);
}

.tnt-compact .question-title {
  margin: var(--space-8) 0 var(--space-15);
}

.tnt-compact .quiz-footer {
  margin-top: var(--space-14);
}

.tnt-compact .answer-list {
  gap: var(--space-7);
}

body.gdmm-in-exercise,
body.gdmm-in-exercise #app {
  background: var(--slate-97d);
  min-height: 100dvh;
}

.exercise-screen {
  background: var(--slate-97d);
  min-height: 100dvh;
  padding: clamp(16px,4vw,35px) 14px max(36px,env(safe-area-inset-bottom));
  color: var(--slate-13);
}

.exercise-layout {
  max-width: 770px;
  margin: 0 auto;
}

.exercise-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-18);
}

.exercise-header h1 {
  font-size: clamp(1.3rem,3vw,1.8rem);
  margin: var(--space-6) 0 0;
  line-height: 1.25;
}

.exercise-header .eyebrow {
  color: var(--blue);
}

.exercise-exit {
  border: 1px solid #d7deea;
  border-radius: var(--radius-14);
  background: white;
  display: grid;
  place-items: center;
  flex: none;
  height: 44px;
  width: 44px;
  color: #17243b;
  cursor: pointer;
}

.exercise-progress-top {
  display: flex;
  justify-content: space-between;
  color: #4e5b70;
  font-weight: 800;
  font-size: var(--fs-080);
  margin-bottom: var(--space-8);
}

.exercise-progress {
  background: #dbe2ee;
  height: 7px;
  border-radius: var(--radius-99);
  overflow: hidden;
  margin-bottom: var(--space-16);
}

.exercise-progress>span {
  display: block;
  background: var(--lime);
  height: 100%;
  border-radius: var(--radius-99);
}

.exercise-card {
  border-radius: 23px;
  background: white;
  border: 1px solid #e0e6ef;
  padding: clamp(17px,4vw,30px);
}

.exercise-card h2 {
  font-size: clamp(1.2rem,3vw,1.65rem);
  margin: 0 0 var(--space-19);
  line-height: 1.35;
}

.exercise-answers {
  display: grid;
  gap: var(--space-10);
}

.exercise-answer {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  text-align: left;
  background: var(--white);
  color: #101828;
  width: 100%;
  min-height: 55px;
  border: 1.5px solid #d5ddeb;
  border-radius: var(--radius-15);
  padding: var(--space-12);
  cursor: pointer;
}

.exercise-answer.is-picked {
  background: #ebf9d7;
  border-color: #79b921;
}

.exercise-answer.is-picked .exercise-answer-letter {
  background: var(--lime);
  color: var(--slate-13);
}

.exercise-answer.is-correct {
  background: #e2f6cb;
  border-color: #6aab25;
  color: #152213;
}

.exercise-answer.is-wrong {
  background: #ffe5e5;
  border-color: #c94040;
  color: #8d1b1b;
}

.exercise-answer.is-correct .exercise-answer-letter {
  background: var(--lime);
}

.exercise-answer.is-wrong .exercise-answer-letter {
  background: #f7b0b0;
}

.exercise-answer-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-9);
  background: var(--gray-95);
  color: #3b465b;
  font-size: var(--fs-075);
  font-weight: 900;
}

.exercise-hint {
  background: var(--slate-97b);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-11);
  padding: var(--space-12) var(--space-14);
  margin-top: var(--space-15);
  font-size: var(--fs-086);
  line-height: 1.55;
}

.exercise-hint b {
  color: var(--blue);
  margin-right: var(--space-5);
}

.exercise-feedback {
  border: 1px solid #c5e7a0;
  background: #eff9df;
  border-radius: var(--radius-13);
  padding: var(--space-14);
  margin-top: var(--space-15);
  font-size: var(--fs-084);
  line-height: 1.5;
}

.exercise-feedback.try {
  background: #fff4eb;
  border-color: #f4d6bc;
}

.exercise-feedback p {
  margin: var(--space-7) 0 0;
}

.exercise-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-9);
  flex-wrap: wrap;
  margin-top: var(--space-22);
}

.exercise-actions .btn:disabled {
  background: var(--gray-92);
  border-color: var(--gray-92);
  color: #777f8d;
  cursor: not-allowed;
}

.exercise-action-end {
  display: flex;
  align-items: center;
  gap: var(--space-9);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.exercise-note {
  font-size: var(--fs-077);
  color: #657087;
  margin: var(--space-14) var(--space-4);
}

.exercise-done {
  text-align: center;
  padding: var(--space-40) var(--space-24);
}

.exercise-done p {
  color: #5b6677;
  margin: var(--space-12) 0;
  line-height: 1.6;
}

.exercise-done .exercise-actions {
  justify-content: center;
}

.exercise-trophy {
  width: 60px;
  height: 60px;
  background: var(--lime);
  border-radius: var(--radius-round);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-16);
}

.exercise-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.exercise-note-row .exercise-note {
  flex: 1 1 250px;
}

.exercise-reset-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  font-size: var(--fs-077);
  cursor: pointer;
  padding: var(--space-8);
}

@media (min-width: 470.02px) {
  .tnt-compact .answer-list {
    gap: var(--space-8);
  }

}

@media (min-width: 650.02px) {
  .exercise-actions {
    align-items: center;
  }

}

@media (min-width: 750.02px) {
  .tnt-compact .quiz-steps {
    margin-bottom: var(--space-16);
  }

  .tnt-compact .question-title {
    margin: var(--space-8) 0 var(--space-17);
  }

  .tnt-compact .quiz-footer {
    margin-top: var(--space-16);
  }

}

@media (max-width: 750px) {
  /* Reihenfolge ist Teil der Kaskade: muss nach .tnt-compact .card stehen */
  .tnt-compact .card {
    padding: var(--space-15);
  }

  .tnt-compact .quiz-counter {
    margin-bottom: var(--space-9);
    font-size: var(--fs-075);
  }

  .tnt-compact .question-title {
    font-size: 1.27rem;
    line-height: 1.35;
  }

  .tnt-compact .answer-btn {
    min-height: 51px;
    padding: var(--space-9) var(--space-11);
  }

}

@media (max-width: 650px) {
  .exercise-action-end {
    flex: 1 1 auto;
  }

}

@media (max-width: 470px) {
  .tnt-compact .quiz-footer .btn {
    flex: 1;
  }

}

.tnt-focus-screen {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.content .tnt-focus-screen {
  background: transparent;
  min-height: 0;
  padding: 0;
}
.content .tnt-focus-screen .exercise-layout {
  max-width: none;
}
