With around €500 and peripherals already sorted, the sensible target is an AMD Ryzen 5 or Intel Core i5 from a current generation. Skip the older Core 2 Duo and i3 lines entirely — they're a decade out of date and will feel slow immediately.
At that budget a prebuilt with a decent GPU usually beats a self-build, since the graphics card eats a large share of the cost. Prioritise the GPU and SSD over anything else on the list.