Just did a quick hack to check feasibility.
(Used some online tool in German language)
10 kW, 400V-3P -> 14,43 A
500 m cable lengt, 10 mm²
-> 5,3 % voltage drop
This is more than recommendet for fixed installations in DIN 18015, but still OK I think.
I even might live with more,
4mm² -> 13,25%...