{% set orderIsDefined = order is defined %}
{% set linkIsDefined = link is defined %}
{% set hasSvg = icon is defined %}
{% if (linkIsDefined) %}
<a href="{{ link.href|default('javascript:void(0)') }}" {{ attributes|default('') }} {% if link.external is defined and link.external %} target="_blank" {% endif %}>
{% endif %}
<span class="button d-inline-flex align-items-center justify-content-center {{ order.text == '1' ? 'slide-to-right-icon' }} {{ disabled is defined ? 'disabled' : '' }} {{ color is defined ? color : 'darker-blue' }}" {{ attributes|default('')|raw }}>
{% if (orderIsDefined) %}
<span class="{{ 'order-%s'|format(order.text) }} {{ order.text == '1' ? 'me-2' : 'ms-2' }}">{{ text|default('Mehr erfahren') }}</span>
{% if (hasSvg and icon.svg is defined) %}
{{ icon.svg|raw }}
{% else %}
<i class="icon {{ order.text == '1' ? 'target-icon' }} {{ iconColor is defined ? iconColor : 'text-yellow' }} fa-solid {{ 'order-%s'|format(order.icon) }} {{ icon|default('fa-arrow-right') }}"></i>
{% endif %}
{% endif %}
</span>
{% if (linkIsDefined) %}
</a>
{% endif %}