/* =========================
   Startseite / Reihentraining
   ========================= */

/* Box-Design */
.reihen-wrapper,
.umfang-wrapper {
  border: 2px solid rgba(44, 149, 229, 0.35);
  border-radius: 14px;
  padding: 20px;
  background: rgba(44, 149, 229, 0.05);
}

/* Box-Titel */
.reihen-titel,
.umfang-titel {
  font-size: 22px;
  font-weight: 700;
  color: #1b6fb8;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(44, 149, 229, 0.35);
}

/* Reihen-Auswahl */
.alle-reihen {
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(44, 149, 229, 0.25);
}

.reihen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 18px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper:hover {
  background: rgba(44, 149, 229, 0.12);
}

.checkbox-input {
  margin: 0;
}

/* Trainingsumfang */
.umfang-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.umfang-zeile + .umfang-zeile {
  border-top: 1px solid rgba(44, 149, 229, 0.25);
}

.anzahl-input {
  width: 140px;
  padding: 10px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #bbb;
}

/* Fehleranzeige */
#errorBox {
  background: #fdeaea;
  border: 2px solid #c62828;
  color: #8a1f1f;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Mobile */
@media (max-width: 700px) {
  .umfang-zeile {
    flex-direction: column;
    align-items: flex-start;
  }

  .anzahl-input {
    width: 100%;
  }

  .reihen-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
