/**
 * Zwei Interviews – D&D, table shape from reference image
 * 4 columns: section id (rowspan) | image | dialogue (question + drop) | ref
 * Thick horizontal separator between the two sections
 */

.exercise-container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.25rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.interview-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  table-layout: fixed;
}

.interview-table td {
  padding: 0.2rem 0.4rem;
  vertical-align: middle;
  text-align: left;
}

/* Column widths: ~18% | ~18% | ~50% | ~14% */
.col-section {
  width: 18%;
  font-size: 0.9rem;
  vertical-align: middle;
  text-align: center;
}

.col-section img {
  max-width: 100%;
  max-height: 13rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.col-img {
  width: 18%;
  text-align: center;
}

.col-img img {
  max-width: 100%;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Narrow so cell ends soon after drop zone (drop = 24rem) */
.col-dialogue {
  width: 28rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.col-ref {
  width: 14%;
  font-size: 0.85rem;
  text-align: center;
}

.col-ref img {
  max-width: 100%;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


.dialogue-line {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.dialogue-line .bullet {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.dialogue-line .text {
  flex-grow: 1;
}

/* Bullets: Dialogmarkierung 1 = blue, 2 = yellow, 3 = marker3 */
.bullet.blue {
  background-color: #0c6aa0;
}

.bullet.yellow {
  background-color: #F9B002;
}

.bullet.marker3 {
  background-color: #258174;
}

.bullet {
  display: inline-block;
  width: 1.25rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Drop zone in dialogue – height matches drag_element (2.25rem min-height) */
.col-dialogue .drop_element {
  width: 24rem;
  min-width: 24rem;
  max-width: 24rem;
  min-height: 2.25rem;
  height: 2.25rem;
  border: 0.15rem solid #F9B002;
  border-radius: 0.9rem;
  background-color: #fff;
  padding: 0.25rem 0.5rem;
  box-sizing: border-box;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.col-dialogue .drop_element.dragover {
  background-color: rgba(249, 176, 2, 0.15);
}

.col-dialogue .drop_element.correct {
  border-color: #258174;
  background-color: rgba(37, 129, 116, 0.1);
}

.col-dialogue .drop_element.incorrect {
  border-color: #e00;
  background-color: rgba(255, 0, 0, 0.08);
}

.col-dialogue .drop_element .drag_element {
  border: 0;
  background-color: transparent;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex: 1;
}

/* Answers container – compact so it does not overlap footer */
.answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.25rem;
}

/* Drag elements: bullet (Dialogmarkierung 2/3) + text, uniform width = longest sentence */
.drag_element {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: grab;
  font-size: 0.95rem;
  user-select: none;
  padding: 0.3rem 0.6rem;
  min-height: 2.25rem;
  width: 24rem;
  min-width: 24rem;
  max-width: 100%;
  background-color: #fff;
  border: 0.15rem solid #00699F;
  border-radius: 0.9rem;
  box-sizing: border-box;
}

.drag_element .drag_text {
  flex-grow: 1;
}

.drag_element.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.drag_element.correct {
  border-color: #258174;
}

.drag_element.incorrect {
  border-color: #e00;
}

@media (hover: none) {
  .drag_element {
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}
