der Pfiff
whistle
A short, high-pitched sound produced with the mouth or a whistle.
Mit einem lauten Pfiff machte der Trainer auf sich aufmerksam.
With a loud whistle, the coach drew attention to himself.

whistle / flair
Loading your saved state.
whistle
A short, high-pitched sound produced with the mouth or a whistle.
Mit einem lauten Pfiff machte der Trainer auf sich aufmerksam.
With a loud whistle, the coach drew attention to himself.

'Der Pfiff' (the whistle) is the noun related to the verb 'pfeifen' (to whistle). A 'Pfiff' is therefore the result of the action of whistling.
Der Hund reagiert sofort, wenn er das Pfeifen seines Besitzers hört.
The dog reacts immediately when it hears its owner's whistling.
When referring to the sound, 'Pfiff' is often combined with adjectives like 'laut' (loud), 'leise' (quiet), 'kurz' (short), or 'schrill' (shrill). A common phrase is also 'der Pfiff des Schiedsrichters' (the referee's whistle).
Ein schriller Pfiff ertönte und der Zug fuhr ab.
A shrill whistle sounded, and the train departed.
In this figurative meaning, 'Pfiff' refers to a small but crucial detail that makes something special or interesting. It is often used in the expression 'der letzte Pfiff' (the final touch).
Die Soße ist gut, aber ihr fehlt noch der letzte Pfiff.
The sauce is good, but it is still missing that final flair.
In the meaning of 'Intelligenz' (intelligence), 'Pfiff' is colloquial. It is usually used in the construction 'jemand hat Pfiff' (someone has cleverness/flair) or as a description, 'eine Person mit Pfiff' (a person with cleverness/flair).
Sie hat wirklich Pfiff und findet für jedes Problem eine kreative Lösung.
She really has cleverness and finds a creative solution for every problem.
joke
'der Witz' and 'der Pfiff' can both mean the special, clever core of something. With 'Witz', the focus is often on the funny, absurd, or ironic point. 'Pfiff' is more about a clever idea or a special touch that makes something more interesting. It does not necessarily have to be funny. Learners may confuse the words when they want to express that something has a special idea behind it. When it is about humor or irony, 'Witz' fits better. When something is cleverly done or has a special appeal, 'Pfiff' sounds more natural.

Mit den bunten Kissen bekommt das kleine Wohnzimmer richtig Pfiff.
With the colorful cushions, the small living room really gets some flair.
Der Witz an der Sache ist, dass der teuerste Plan am Ende am wenigsten gebracht hat.
The joke of the matter is that the most expensive plan ended up achieving the least.