Disable toggle function in custom:mushroom-template-card

Hi all,

I wanted to disabel the toggle fuction during DST. if a specific sensor becomes False. I tried to use my if clause I also used for the color, but it doesn´t work. Maybe someone knows, how to disable the toggle fucntion with cardmod.

Here is my code:

type: custom:mushroom-template-card
primary: |-
  {%if states('sensor.winterzeit')=='True' %}
    {{'ein' if (states(entity) == 'on')}}
    {{'standby' if (states(entity) == 'off')}}
  {%else%}
   {{'inaktiv'}}
  {%endif%}
multiline_secondary: true
secondary: ""
icon: mdi:fountain
icon_color: |-
  {%if states('sensor.winterzeit')=='True' %}
    {{'#3CAAF7' if (states(entity) == 'on')}}
    {{'#185abd' if (states(entity) == 'off')}}
  {%else%}
   {{'#636363'}}
  {%endif%}
tap_action:
  action: toggle
entity: switch.kg_ev_k01_wasserspiel
layout: vertical
card_mod:
  style:
    mushroom-shape-icon$: |
      .shape 
       {       
         --icon-symbol-size: 22px;
         --icon-size: 22px;
         --shape-color: transparent !important;      
       }
    mushroom-state-info$: |
      .container {
        --card-primary-font-size: 12px;
              }
    .: |
      ha-card  {
       margin-top: 0px;
       margin-bottom: 0px;
       border: none !important;
       {%if states('sensor.winterzeit')=='True' %}
         {%if states(config.entity)=='on' %}
         --card-primary-color:#00CC00;
         --card-secondary-color:;
         {%else%}
         --card-primary-color:#826204;
         --card-secondary-color:#DC143C;         
         {%endif%}
       {%else%}
         --card-primary-color:#7E7E7E;
         --card-secondary-color:#7E7E7E;
       {%endif%}
      }
       {%if states('sensor.winterzeit')=='True' %}
        ha-state-icon:hover
       {%endif%} 
      {
       --icon-symbol-size: 30px;
      }
      }

Hi,

pointer-events: none; seems to be working!

            .: |
              ha-card  {
               {%if states('sensor.winterzeit')=='True' %}
                 pointer-events: none; 
               {%endif%} 
               margin-top: 10px;
               margin-bottom: 0px;
               border: none !important;