/**
 * E07_U08_1 – Wie ist das Wetter in diesen Städten?
 * Končni izgled: levo besedilo + tabela (enaka širina), desno 4 ikone, brez drsnikov.
 */

@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

.exercise-container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  font-family: "League Spartan", sans-serif;
  overflow-x: hidden;
}

.two-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.content-left {
  flex: 0 0 auto;
  width: 26rem;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-right {
  flex: 0 0 auto;
}

/* Blok s stavki – sivo ozadje, zaobljeni robovi */
.info-text {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  background-color: #f0f0f0;
  border-radius: 0.5rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.08);
}

.info-text p {
  font-size: 1.15rem;
  line-height: 1.45;
  color: #222;
  margin: 0 0 0.4rem 0;
}

.info-text p:last-child {
  margin-bottom: 0;
}

/* Tabela – belo ozadje, modra zgornja obroba */
.table-container {
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 0.1rem solid #ddd;
  border-top: 0.25rem solid #00699F;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.08);
}

.weather-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
  table-layout: fixed;
}

.weather-table th,
.weather-table td {
  padding: 0.6rem 0.8rem;
  border: 0.1rem solid #e0e0e0;
  vertical-align: middle;
}

/* Stolpec Stadt – dovolj širine za Berlin, Wien, Lugano, London, München (12ch) */
.weather-table .col-stadt {
  width: 12ch;
  min-width: 12ch;
  text-align: left;
  font-weight: bold;
  color: #00699F;
  background-color: #fff;
  border-bottom: 0.2rem solid #00699F;
  overflow: visible;
}

.weather-table td:first-child {
  text-align: left;
  color: #333;
  white-space: nowrap;
  overflow: visible;
}

.weather-table .col-wetter {
  width: 22ch;
  text-align: center;
  font-weight: bold;
  color: #00699F;
  background-color: #fff;
  border-bottom: 0.2rem solid #00699F;
}

.weather-table td:last-child {
  text-align: center;
}

/* Vnosna polja – najdaljši odgovor "Die Sonne scheint." (18) + 4 = 22ch */
.fill-in {
  width: 100%;
  max-width: 22ch;
  min-width: 10ch;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 1.05rem;
  font-family: "League Spartan", sans-serif;
  border: 0.2rem solid #F9B002;
  border-radius: 2rem;
  background-color: #fff;
  box-sizing: border-box;
  display: inline-block;
}

.fill-in:focus {
  outline: none;
  border-color: #00699f;
  box-shadow: 0 0 0.25rem rgba(0, 105, 159, 0.35);
}

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

.fill-in.incorrect {
  background-color: rgba(255, 0, 0, 0.08);
  border-color: #e00;
}

/* Desna kolona – ikone vremena */
.images-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.images-row img {
  width: 10rem;
  height: 7.5rem;
  object-fit: contain;
}

/* Brez drsnikov na mobilnih */
@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .content-left {
    width: 100%;
    max-width: 100%;
  }

  .weather-table .col-stadt {
    width: 12ch;
    min-width: 12ch;
  }

  .weather-table .col-wetter {
    width: 22ch;
  }

  .weather-table {
    font-size: 1rem;
  }

  .fill-in {
    max-width: 22ch;
    min-width: 10ch;
    font-size: 1rem;
  }

  .images-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .images-row img {
    width: 7rem;
    height: 5.25rem;
  }
}
