Thanks very much for your help!
including
global $post;
didn’t help. But
$post->ID;
makes the magic happen!
that global $post;
didn’t work quite surprised me pretty much.
whats about this arrow ->
notation? is it like $post is an object with attributes and one of these atts is ID?