<!-- Registration Section - Language: {{ lang|default('undefined') }} -->
<section id="{{ isEnglish ? 'registration' : 'anmeldung' }}" class="bg-registration py-3">
<div class="container">
<!-- Custom content-wrapper class to limit content width and improve readability -->
<div class="content-wrapper content-background">
{% if event.alert == "Anfrage" %}
<!-- start part anfrage and registering -->
{% include "@StartPlatzEvent/Default/_registration.anfrage.html.twig"%}
<!-- end part anfrage and registering -->
{% else %}
<!-- start part ticketing and registering -->
{% if event.ticketing %}
<h2 class="text-center">{{ phrases.registration_title }}</h2>
<p>
{{ event.ticketing|raw }}
</p>
{% elseif event.applicationUrl and 'startplatz.de' not in event.applicationUrl %}
{# External URL always takes precedence, even with batch #}
<h2 class="text-center">{{ phrases.registration_title }}</h2>
{% include "@StartPlatzEvent/Default/_registration.appicationUrl.html.twig"%}
{% elseif event.applicationUrl and not batch%}
{# Internal startplatz.de URL only when no batch exists #}
<h2 class="text-center">{{ phrases.registration_title }}</h2>
{% include "@StartPlatzEvent/Default/_registration.appicationUrl.html.twig"%}
{% elseif event.ctaContent or (settings.doNotshowApplicationSection is defined and settings.doNotshowApplicationSection) %}
<!-- Application Section will not be shown -->
{% elseif batch and batchIsOpen %}
{% if batch.priceInEuroCent > 0 %}
{% include "@StartPlatzEvent/Default/_registration.batch.html.twig"%}
{% else %}
{% if settings.isPreRegistration is defined and settings.isPreRegistration %}
{% include "@StartPlatzEvent/Default/_registration.pre-registration-batch.html.twig"%}
{% else %}
{% include "@StartPlatzEvent/Default/_registration.batch.html.twig"%}
{% endif%}
{% endif %}
{% else %}
<h2 class="text-center">{{ phrases.registration_not_possible }}</h2>
{% endif %}
<!-- end part ticketing and registering -->
{% endif %}
<!-- start cta content -->
{% if event.ctaContent %}
{{ include(template_from_string(event.ctaContent)) }}
{% endif %}
<!-- end cta content -->
</div> <!-- End of content-wrapper -->
</div>
</section>