/* Exercise container */
.exercise-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68rem;
  max-width: 64rem;
  margin: 0 auto;
}

/* Content container */
.content-container {
  display: flex;
  flex-direction: column;
  width: 68rem;
}

/* Email container */
.email-container {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* Email layout: text left + illustration right */
.email-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Email body – Hinweise (intro) + Sätze (drop) in einem Feld */
.email-body {
  padding: 1.5rem;
  padding-bottom: 0;
  flex: 0 0 42rem;
  width: 42rem;
}

/* Illustration on the right */
.email-illustration {
  flex: 0 0 18rem;
  width: 18rem;
  padding: 1.5rem 1.5rem 0 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.email-illustration img {
  width: 18rem;
  height: auto;
  max-height: 24rem;
  object-fit: contain;
  display: block;
}

/* Intro-Zeilen: kleinerer Zeilenabstand */
.email-body p.intro {
  margin: 0 0 0.2rem 0;
  line-height: 1.25;
  font-size: 1rem;
  color: #333;
}
.email-body p.intro:last-of-type {
  margin-bottom: 1rem;
}

.email-body p:not(.intro) {
  margin-bottom: 1rem;
}

/* Drop element – enaka širina/višina kot .drag_element (prilagojeno najdaljši rešitvi: in den Ferien zu Hause), oblika po E08_U05_1 */
.drop_element {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15rem;
  min-width: 15rem;
  height: 2rem;
  min-height: 2rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 0.15rem solid #F9B002;
  border-radius: 0.9rem;
  background-color: #fff;
  margin: 0 0.3rem;
  vertical-align: middle;
  transition: all 0.2s ease;
  padding: 0 0.4rem;
}

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

/* Drag element – enaka širina/višina kot .drop_element */
.drag_element {
  width: 15rem;
  min-width: 15rem;
  height: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  font-size: 1.2rem;
  user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  box-sizing: border-box;
  border: 0.15rem solid #00699F;
  border-radius: 0.9rem;
  background: #FFF;
  margin: 0.5rem;
  padding: 0 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drag_element.dragging {
  opacity: 0.5;
  cursor: grabbing;
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Answers container */
.answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding: 1rem;
}

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

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

.drop_element .drag_element {
  border: 0;
  background-color: transparent;
}

