I'm thinking about buying a camera, I want to bring it with my while hiking/camping to photograph nice landscapes (mostly) since my phone camera does not satisfy me anymore.
I was thinking DSLR mainly for the battery duration and the cost, mirrorless seems to be too expensive for an entry level like me, even if they are lighter to carry. I also have to learn basically everything, I know a bit of "theory" but I still have to try with a good camera.
I searched around a bit and I found out that I could afford a Canon 200D with 18-55 for around 500€, but a friend of mine would sell me his Canon 1300D with the same lens for around 300€ and therefore I would have more money to buy maybe another lens or tripod or wathever.
What are your thoughts? Do you have maybe another model that would better fit my needs?
I have the 200D and the 1200D (which I believe is the 1300D's pre-decessor).
I would without any hesitation recommend the 200D to anyone, for the price I personally think it's one of the best value cameras that Canon has created for a while. It's also one of the smallest/lightest DSLRs they make which is an obvious advantage for carrying around whilst hiking etc. Finally, not necessarily relevant to your question, but the video capabilities and in-camera tools are much better on the 200D.
If you're willing to go a tiny bit higher on budget you can probably find a portrait kit that is the 200D + 18-55mm kit lens + 50mm f/1.8 prime lens.
The prime lens will no doubt get better quality images - but if you're doing landscape you're probably going to need a tripod too. From my experience my best landscape shots have been using a smaller aperture (f/8.0 +) and an ND filter with a longer exposure.
All this depends on the location, subject, lighting etc. so keep that in mind when looking at the kind of gear you want to purchase.