I'll answer the third questions posed in the question in reverse order, and finally return to the third.
- And sometimes I read that it's just an axiom that we need to accept.
What's wrong with axioms? Einstein himself listed the constancy of the speed of light as a postulate (aka axiom; they're synonyms). Newton's laws of motion are axioms. Hilbert's sixth problem, announced in 1900, addressed the need to axiomatize physics. There's nothing wrong with axioms.
To the contrary; axioms in physics are a very good thing. They form the mathematical basis from which physicists predict the outcomes of experiments. One or more of the underlying assumptions (another name for axioms) are falsified if the outcome disagrees with the prediction.
- Sometimes I read that he derived it from Maxwell's equations. I still
need to study those, so I can't judge about that.
At the time Einstein developed special relativity, Maxwell's equations were consistent with experiments of an electromagnetic nature while Newtonian mechanics appeared to be inconsistent with such experiments. This was one of the key conundrums of late 19th century physics. One of those axiomatizations appears to be incorrect.
One of the many face-value consequences of Maxwell's equation is that the one-way speed of electromagnetic radiation (which includes light) is the same to all inertial observers. In particular, the expression for the speed of a wave of electromagnetic wave in vacuum depends on neither the speed of the source nor the receiver. It's simply $c = 1/\sqrt{\mu_0 \varepsilon_0}$, where $\mu_0$ and $\varepsilon_0$ are the magnetic permeability and electrical permittivity of space. Einstein simply took Maxwell's equations at face value, that the speed of light in vacuum is the same to all observers.
- Sometimes I read it's because of the Michelson-Morley experiment. But that only proves there's no aether/medium for light to travel through.
The Michelson-Morley experiment disproves the existence of a luminiferous aether as conceived of at the time of that experiment. It does not disprove the existence of an ether. A competing axiomatization, Lorenz Ether Theory, developed at the same time Einstein developed his special theory of relativity, maintained the concept of a preferred frame of reference and of an ether. More on this later.
As Grayscale noted in his answer, the Michelson-Morley experiment had little if any influence on Einstein's thinking. Einstein was much more influenced by the Fizeau experiment, which looked at the speed of light in a moving medium such as flowing water. If Newtonian mechanics was true, such a medium should have a linear affect on the speed of electromagnetic waves, just as blowing air linearly effects the speed of sound waves. This was not what the Fizeau experiment found. It instead found a relationship that, after the fact, was found to be consistent with special relativity (and also Lorenz Ether Theory).
- And sometimes I read that it's just an axiom that we need to accept.
You don't need to accept the constancy of the one-way speed of light as axiomatic. You could accept Lorenz Ether Theory instead. It is indistinguishable from special relativity in terms of predicted experimental outcomes. The problem with Lorenz Ether Theory is that it is chock full of "where did that come from" (WTF) assumptions. It makes length contraction, time dilation, a preferred frame of reference, and an ether that acts as a medium for electromagnetic radiation in empty space axiomatic. Length contraction and time dilation nicely hide the preferred frame of reference and the ether from any experimental test designed to detect them. Nice. (That was a sarcastic "nice".)
Special relativity only has one "where did that come from" assumption, the constancy of the one-way speed of light, and that is only a ""where did that come from" assumption because we are too preconditioned by Newtonian thinking. The one-way constancy of the speed of light is a beautiful thing that speaks directly about the geometry of space-time. In contrast, Lorenz Ether Theory is a rather ugly thing that fails Occam's razor that does not speak directly to the mathematics that underlies space and time.
That's the answer I'm looking for ;-)
– Sam Jul 01 '18 at 08:30