A spectral sensor having at least a first and a second photodetector (13, PD), in front of which a layer stack is formed from dielectric and structured metal layers, wherein in the layer stack
- a first nanostructured Layer, which forms a first transmission grating (2) from grating wires extending parallel to each other is arranged over the first photodetector (13, PD), and
- a second nanostructured layer, which forms a second transmission grating (3) from grating wires extending parallel to each other is arranged over the second photodetector (13, PD), and wherein
- the grating wires of the first transmission grating (2) are aligned at an angle with the grating wires of the second transmission grating (3), and
- an optical polariser (1) which linearly polarises incident optical radiation parallel to the grating wires of one of the two transmission gratings (2, 3) is arranged over the two nanostructured layers.