{% assign enrolled_events = 0 %}
{% assign upcoming_webinars = 0 %}
{% for training_event in training_events.enrolled %}
  {% assign enrolled_events = enrolled_events | plus: 1 %}
{% endfor %}
{% for training_event in training_events.available %}
  {% assign upcoming_webinars = upcoming_webinars | plus: 1 %}
{% endfor %}
{% include "header" %}
<div class="page-hero-container">
  <div class="hero-text-wrapper">
    <div class="hero-heading lang-en">Webinars</div>
    <div class="hero-heading lang-de">Webinare</div>
    <div class="hero-desc lang-en">Live and recorded webinars, hosted by in-house experts at DeepL.<br>Get invaluable insights from the people who created our products.</div>
    <div class="hero-desc lang-de">Live- und aufgezeichnete Webinare, die von internen DeepL-Experten veranstaltet werden.<br>Lassen Sie sich von den Leuten schulen, die unsere Produkte entwickelt haben.</div>
  </div>
</div>
<div class="np-homepage-featured np-max-width page-spacing">
  {% if enrolled_events > 0 %}
    <section>
      {% include "your_webinars" %}
    </section>
  {% endif %}
  {% if upcoming_webinars > 0 %}    
    <section>
      {% include "upcoming_webinars" %}
    </section>
  {% endif %}
  <section>
    {% include "on_demand" %}
  </section>
</div>
{% include "footer" %}
