Celtic’s hopes of progressing in the Europa League were dashed in agonising fashion as a late fightback from Bayer Leverkusen denied them a famous victory in Germany.
Ange Postecoglou’s spirited side knew they would probably require a win to keep their last-32 dream alive and they were on course for this outcome until the closing stages after a Josip Juranovic penalty and a strike from Jota cancelled out Robert Andrich’s early goal for the hosts.
However, Leverkusen hit back twice in the closing eight minutes to win 3-2 and top the group.
The result means Celtic will drop into the Conference League after Christmas, with Real Betis going through in the Europa League as runners-up.
Celtic made one change to the side that defeated St Johnstone in last weekend’s Premier Sports Cup semi-final, with Hampden goal hero James Forrest coming in for his first start in more than three months in place of Liel Abada.
The Germans signalled their intent in the 10th minute when Andrich headed over from a Florian Wirtz corner.
Celtic were looking reasonably comfortable in the early stages, although Cameron Carter-Vickers had to make a vital clearance from inside his own six-yard box when former Hoops right-back Jeremie Frimpong darted into the box and drilled a dangerous low ball across the face of goal in the 12th minute.
The visitors failed to heed the warning from Leverkusen’s earlier corner, and they fell behind in the 16th minute when Andrich got in front of Stephen Welsh to head in another Wirtz delivery.
Celtic had a rare foray forward in the 35th minute which resulted in David Turnbull threading a through ball in behind for Kyogo Furuhashi but the offside flag was raised as the Japanese attacker burst into the box and fired a low angled shot just behind the far post.
Having been pegged back for long periods of the match, the visitors got themselves level in the 39th minute with a penalty awarded following a VAR review after Leverkusen goalkeeper Lukas Hradecky clattered recklessly into Kyogo while trying to defend a cross into the box from Jota.
Hradecky was booked and Juranovic produced an outrageously nonchalant finish as he chipped a Panenka-style spot-kick in off the underside of the crossbar.
Juranovic was fortunate to get away with a lapse in the 44th minute when he gave the ball away cheaply just outside his area allowing Moussa Diaby to fire a powerful angled half-volley off the junction of post and bar before Wirtz sent the rebound crashing against the opposite post.
Celtic had another major let-off eight minutes after the break when Joe Hart made a brilliant double save to deny Diaby and then Amine Adli.
Remarkably, Celtic took the lead in the 56th minute when Jota drilled in a clinical low angled shot from just inside the box after being teed up by Kyogo following some brilliant play by Forrest and Nir Bitton.
Hart made a couple of saves to deny Adli as the Scots started to believe they might be closing in on their first victory in Germany.
But Andrich dashed their hopes in the 82nd minute when he drilled a low shot through the legs of Hart from 12 yards out after being set up by substitute Nadiem Amiri.
And the hosts claimed victory in the 87th minute when Diaby volleyed home after being picked out by a chipped pass from Wirtz.