/* 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(--v0-font-size-small);
  font-weight: var(--v0-weight-heavy);
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-small);
}

.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: var(--v0-font-size-title);
  line-height: var(--v0-line-height-card);
  margin: var(--space-9) 0 var(--space-21);
  font-family: var(--v0-font-family);
}

.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(--v0-radius-control);
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-13);
  font-weight: var(--v0-weight-bold);
  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(--v0-font-size-small);
  font-weight: var(--v0-weight-black);
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-small);
}

.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(--v0-font-size-standard);
  margin-top: var(--space-14);
  color: #263d7c;
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-standard);
}

.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: var(--v0-font-size-title);
  margin: var(--space-6) 0 0;
  line-height: var(--v0-line-height-standard);
  font-family: var(--v0-font-family);
  font-weight: var(--v0-weight-bold);
}

.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: var(--v0-weight-heavy);
  font-size: var(--v0-font-size-small);
  margin-bottom: var(--space-8);
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-small);
}

.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: var(--v0-radius-card);
  background: white;
  border: 1px solid #e0e6ef;
  padding: clamp(17px,4vw,30px);
}

.exercise-card h2 {
  font-size: var(--v0-font-size-title);
  margin: 0 0 var(--space-19);
  line-height: var(--v0-line-height-card);
  font-family: var(--v0-font-family);
  font-weight: var(--v0-weight-bold);
}

.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 {
  border-width: var(--v0-answer-border-width);
  background: var(--v0-answer-correct-surface);
  border-color: var(--v0-answer-correct-border);
  color: var(--v0-answer-correct-text);
}

.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(--v0-font-size-small);
  font-weight: var(--v0-weight-black);
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-small);
}

.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(--v0-font-size-standard);
  line-height: var(--v0-line-height-standard);
  font-family: var(--v0-font-family);
}

.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(--v0-font-size-small);
  line-height: var(--v0-line-height-small);
  font-family: var(--v0-font-family);
}

.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(--v0-font-size-small);
  color: #657087;
  margin: var(--space-14) var(--space-4);
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-small);
}

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

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

.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: var(--v0-weight-heavy);
  font-size: var(--v0-font-size-small);
  cursor: pointer;
  padding: var(--space-8);
  font-family: var(--v0-font-family);
  line-height: var(--v0-line-height-small);
}

@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(--v0-font-size-small);
    font-family: var(--v0-font-family);
    line-height: var(--v0-line-height-small);
  }

  .tnt-compact .question-title {
    font-size: var(--v0-font-size-title);
    line-height: var(--v0-line-height-card);
    font-family: var(--v0-font-family);
  }

  .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;
}

/* TNT welcome uses the same available width and padding as the challenge library. */
[data-tnt-intro] .exercise-layout { max-width: none; }
[data-tnt-intro] .exercise-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--v0-space-large);
  padding: var(--v0-page-content-padding);
}
[data-tnt-intro] .exercise-card h2 { margin: 0; }
[data-tnt-intro] [data-study=begin] { justify-self: end; }
[data-tnt-intro] [role=alert] { grid-column: 1 / -1; }
@media (max-width: 900px) {
  [data-tnt-intro] .exercise-card { grid-template-columns: minmax(0, 1fr); padding: var(--v0-page-content-padding-compact); }
}

/* Compact TNT completion; use the existing type roles when a single line needs more room. */
[data-tnt-completed] { padding: var(--v0-space-large); }
[data-study-completion-heading] { display: flex; align-items: center; gap: var(--v0-space-small); }
[data-study-completion-heading] .mini-icon { flex-shrink: 0; }
[data-study-completion-heading] h2 { margin: 0; text-align: left; }
[data-study-fit-heading] { display: block; min-width: 0; white-space: nowrap; }
[data-study-completion-heading] [data-study-fit-heading] { flex: 1; }
[data-study-fit-heading][data-study-fit-size="standard"] { font-size: var(--v0-font-size-standard); line-height: var(--v0-line-height-standard); }
[data-study-fit-heading][data-study-fit-size="small"] { font-size: var(--v0-font-size-small); line-height: var(--v0-line-height-small); }
