HI Marie @delama ,
There are countless ways of doing that.
Here’s an example of a simple Shader that does that (all Lights use the same Material):

Graph Editor uses T > Linear Interpolation and SHIFT+E > Linear Extrapolation and then a Stepped Interpolation Modifier.
I think the rest is clear, but feel free to ask if you have any questions left.