My Problem: how can i open a popup on click

Hello,

I would like to open a popup when I press on a card.
In detail: I have a meteoalarm card and when I press on the map, the warning (markdown) should be displayed.

I have tried to implement it with various existing codes of other cards. But I am not successful
Unfortunately I am not a professional programmer

Here is the code
Basic card
- type: custom:meteoalarm-card
entity: sensor.dwd_weather_warnings_current_warning_level
integration: automatic
hide_when_no_warning: false

When clicked, this map should open as a popup:
- type: markdown
title: Wetterwarnungen
content: >-
{% set current_count =
state_attr(“sensor.dwd_weather_warnings_current_warning_level”,
“warning_count”) %} {% set advance_count =
state_attr(“sensor.dwd_weather_warnings_advance_warning_level”,
“warning_count”) %} {% if ((current_count == 0 or current_count ==
None) and (advance_count == 0 or advance_count == None)) %} Keine Warnungen {% else %}
{% for i in range(current_count) %}
{% set headline = state_attr(“sensor.dwd_weather_warnings_current_warning_level”,
“warning_” ~ loop.index ~ “headline") %}
{% set description = state_attr(“sensor.dwd_weather_warnings_current_warning_level”,
"warning
” ~ loop.index ~ “description") %}
{% set level = state_attr(“sensor.dwd_weather_warnings_current_warning_level”, "warning

~ loop.index ~ “level") %}
{% set time_start = state_attr(“sensor.dwd_weather_warnings_current_warning_level”,
"warning
” ~ loop.index ~ “start") %}
{% set weekday_start = as_timestamp(time_start) | timestamp_custom("%w", True) | int %}
{% set time_end = state_attr(“sensor.dwd_weather_warnings_current_warning_level”,
"warning
” ~ loop.index ~ “end") %}
{% set weekday_end = as_timestamp(time_end) | timestamp_custom("%w", True) | int %}
{% set color = state_attr(“sensor.dwd_weather_warnings_current_warning_level”, "warning

~ loop.index ~ “color") %}
<font color={{ color }}>{{ headline }}
{{ [‘Montag’,‘Dienstag’,‘Mittwoch’,‘Donnerstag’,‘Freitag’,‘Samstag’,‘Sonntag’][weekday_start-1] ~
“, " ~ time_start.strftime(”%H:%M") ~ " - " ~
[‘Montag’,‘Dienstag’,‘Mittwoch’,‘Donnerstag’,‘Freitag’,‘Samstag’,‘Sonntag’][weekday_end-1] ~ “, "
~ time_end.strftime(”%H:%M") }}
{{ description|trim }}
{% if not loop.last %}{% endif %}
{% endfor %}
{% if ((current_count != 0) and (advance_count != 0)) %}
{% endif %}
{% for i in range(advance_count) %}
{% set headline = state_attr(“sensor.dwd_weather_warnings_advance_warning_level”, "warning
” ~ loop.index ~ “headline") %}
{% set description = state_attr(“sensor.dwd_weather_warnings_advance_warning_level”, "warning
” ~ loop.index ~ “description") %}
{% set level = state_attr(“sensor.sensor.dwd_weather_warnings_advance_warning_level”, "warning
” ~ loop.index ~ “level") %}
{% set time_start = state_attr(“sensor.dwd_weather_warnings_advance_warning_level”, "warning
” ~ loop.index ~ “start") %}
{% set weekday_start = as_timestamp(time_start) | timestamp_custom("%w", True) | int %}
{% set time_end = state_attr(“sensor.dwd_weather_warnings_advance_warning_level”, "warning
” ~ loop.index ~ “end") %}
{% set weekday_end = as_timestamp(time_end) | timestamp_custom("%w", True) | int %}
{% set color = state_attr(“sensor.dwd_weather_warnings_advance_warning_level”, "warning
” ~ loop.index ~ “_color”) %}
<font color={{ color }}>{{ headline }}
{{ [‘Montag’,‘Dienstag’,‘Mittwoch’,‘Donnerstag’,‘Freitag’,‘Samstag’,‘Sonntag’][weekday_start-1] ~ “, " ~ time_start.strftime(”%H:%M") ~ " - " ~ [‘Montag’,‘Dienstag’,‘Mittwoch’,‘Donnerstag’,‘Freitag’,‘Samstag’,‘Sonntag’][weekday_end-1] ~ “, " ~ time_end.strftime(”%H:%M") }}
{{ description|trim }}
{% if not loop.last %}***{% endif %}
{% endfor %}
{% endif %}

I hope someone can help me. Unfortunately I can’t do it.

Many greetings
Nicole

Translated with www.DeepL.com/Translator (free version)

You cannot open pop-ups with basic home assistant. This can only be done with browser-mod which is a custom integration.

Also, please take time to learn how to properly format code. See step 11 in the FAQ.

Hello, thanks for the info. I forgot to mention that. Browser Mode is installed.

Let me show you what I have so far!