{% set more_services = pimcore_relations('more_services').getElements()|default([]) %}
<div class="toolbox-element toolbox-container {{ additionalClassesData|join(' ') }}">
<div class="overflow-hidden">
<div class="relative mx-auto px-4 sm:px-6 lg:px-8{% if not editmode %} max-w-md sm:max-w-3xl lg:max-w-7xl{% endif %}">
<div>
<h3 class="text-center text-white text-4xl tracking-tight sm:text-4xl">
<span class="my-8 block text-left {% if not editmode %} max-w-max{% endif %}">
{{ pimcore_input("headline") }}
</span>
</h3>
</div>
<div class="{% if (more_services|length ) < 4 %}grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3{% else %}service-slider swiper overflow-visible">
<div class="swiper-wrapper{% endif %}">
{% for service in more_services %}
{% if(loop.index is even) %}{% set color = "rs-red" %}{% else %}{% set color = "white" %}{% endif %}
<div class="swiper-slide h-[41rem] max-w-[25rem] relative border-8 mb-4 border-{{ color }}">
{% if service.teaserImg|length %}
<img class="absolute top-0 left-0 w-full h-[40rem] object-cover" src="{{ service.teaserImg.getThumbnail('jumpstartImage') }}" />
{% endif %}
<div class="relative flex flex-col p-7 w-full h-[40rem] bg-gradient-to-l from-[#66666650] to-[#000000]">
<h3 class="py-2 text-2xl tracking-tight text-{{ color }} sm:leading-none lg:mt-2 lg:text-3xl break-words">
<span class="md:block font-bold">{{ service.title|upper }}</span>
<span class="md:block">{{ (service.tags|upper)|replace({"|":", "}) }}</span>
</h3>
<div class="relative grow">
<p class="text-lg text-white sm:text-m lg:text-m xl:text-l">{{ service.teaserDescription }}</p>
</div>
<a href="/dienstleistungen/{% if service.url|length %}{{ service.url }}{% else %}sid-{{ service.id }}{% endif %}">
<button class="robotics-button mb-8 mr-auto">
Mehr zu {{ service.title }}
</button>
</a>
</div>
</div>
{% endfor %}
{% if (more_services|length ) > 3 %}</div>
<div id="service-pagination" class="swiper-pagination"></div>{% endif %}
</div>
</div>
</div>
</div>