.variation-drill-group {
  margin-bottom: 2.5rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 1.25rem;
}

.variation-drill-group:first-child {
  border-top: none;
  padding-top: 0;
}

.variation-drill-number {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 0.75rem;
}

.variation-drill-base {
  display: flex;
  gap: 2rem;
  padding: 0.35rem 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.variation-drill-base .text-en {
  flex: 1;
}

.variation-drill-base .text-de {
  flex: 1;
  font-style: italic;
}

.variation-drill-context {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 0.4rem;
  text-align: center;
}

.variation-drill-item {
  margin-bottom: 2rem;
}

.variation-drill-sentences {
  width: 100%;
  border-collapse: collapse;
}

.variation-drill-sentences td {
  padding: 0.2rem 0.4rem;
  vertical-align: top;
}

.variation-label {
  width: 1.75rem;
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
}

.variation-drill-sentences .text-en {
  width: 50%;
}

.variation-drill-sentences .text-de {
  width: 50%;
}

.variation-drill-sentences td:last-child {
  width: 1%;
  white-space: nowrap;
  padding-right: 0;
}

.variation-drill-sentences tr:hover {
  background: #e3f2fd;
}

.variation-drill-base:hover {
  background: #e3f2fd;
  border-radius: 4px;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

@media (max-width: 600px) {
  /* Stack EN/DE in the base row */
  .variation-drill-base {
    flex-direction: column;
    gap: 0.2rem;
  }

  /* Reflow sentence rows: label+EN on row 1, DE on row 2 */
  .variation-drill-sentences,
  .variation-drill-sentences tbody {
    display: block;
  }

  .variation-drill-sentences tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.4rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
  }

  .variation-drill-sentences td {
    display: block;
    padding: 0;
  }

  .variation-label {
    flex-shrink: 0;
    width: 1.75rem;
  }

  .variation-drill-sentences .text-en {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .variation-drill-sentences .text-de {
    flex-basis: 100%;
    width: auto;
    padding-left: 2.15rem; /* align with EN text */
    padding-top: 0.2rem;
  }

}
