An embodiment of the invention relates to an X-ray device, more particularly for phase-contrast imaging in the medical sector. In at least one embodiment, the X-ray device includes an X-ray radiation source, a coherence grid, a phase grid and an X-ray detector from a number of pixels arranged in a matrix, the pixels including a lens grid.