In a bowl, beat the butter with the sugar until foamy, add the egg and continue beating until smooth, finally add the flour and baking powder.
In a buttered pie dish we put the dough stretching / flattening it with the fingertips, we make a slight edge and we reserve a little dough to make some lines of dough with which we will decorate the kuchen.
Bake for 20 minutes until the dough is lightly golden.
Remove from the oven and let cool.
We made the custard:
In a small saucepan we mix the milk, cornstarch, sugar and vanilla, we dissolve the cornstarch well, beating with a wire whisk, we heat over medium heat stirring occasionally until it starts to boil, at that moment start stirring constantly and cook for 1 minute , to thicken.
We remove from the fire.
Pour half of the milk mixture over the pre-baked dough, layer the raspberries on top of it, and then add the rest of the milk mixture.
With the remains of the dough we make some threads with which we will decorate the upper part of the kuchen.
Bake for 25 minutes or until the surface is golden (could puff up a bit).