Which condition is important for a temperature inversion?

two layers of warm air

two layers of warm air, one on top of the other

a layer of warm air over a
layer of cold air

a layer of cold air over one of warm air