Flexible Strategies -- Controlled Reachability Analysis in AI Planning: Theory and