{% extends '@StartPlatzStyleBundle/Bootstrap4/base.homepage.oneColumn.html.twig' %}
{% block title %}{{ pageTitle }}{% endblock %}
{% block additionalHead %}
<link rel="stylesheet" href="{{ asset('bundles/startplatzstyle/css/startplatz.accelerator.css') }}">
{% if layout is defined and layout != 'v1' %}
{# For subversions (v7a, v7b), also load the base version (v7) first #}
{% set baseLayout = layout|replace({'a':'','b':'','c':'','d':'','e':'','f':''}) %}
{% if baseLayout != layout %}
<link rel="stylesheet" href="{{ asset('bundles/startplatzstyle/css/startplatz.accelerator.startups-' ~ baseLayout ~ '.css') }}">
{% endif %}
<link rel="stylesheet" href="{{ asset('bundles/startplatzstyle/css/startplatz.accelerator.startups-' ~ layout ~ '.css') }}">
{% endif %}
{% endblock %}
{% block navigation %}
{{ menu|raw }}
{% endblock %}
{% block content %}
<div class="layout-{{ layout|default('v1') }}">
{# Hero Section #}
<section class="startups-hero">
{# Canvas particles for default layout and v7a #}
{% if layout is not defined or layout == 'v1' or layout == 'v7a' %}
<canvas id="particle-canvas"></canvas>
{% endif %}
{# Layout-specific hero elements #}
{% if layout is defined and layout == 'v7' %}
<div class="particle-layer"></div>
{% endif %}
{% if layout is defined and layout == 'v3' %}
<div id="tsparticles"></div>
{% endif %}
<div class="container text-center">
<h1 class="display-3 font-weight-bold text-white mb-3">{{ pageTitle }}</h1>
<p class="lead text-white">
{{ isEnglish ? 'Meet the startups from our AI Accelerator program' : 'Lernen Sie die Startups aus unserem KI-Accelerator-Programm kennen' }}
</p>
</div>
</section>
{# Startup Cards Section #}
<section class="startups-section">
<div class="container">
<div class="row" id="startups-grid">
{% if startups is empty %}
<div class="col-lg-8 mx-auto">
<div class="empty-state text-center">
<i class="fas fa-rocket fa-4x mb-3 text-success"></i>
<h3>
{{ isEnglish ? 'Startups will be presented soon' : 'Startups werden bald vorgestellt' }}
</h3>
<p>
{{ isEnglish
? 'We are currently working on presenting our portfolio. More information coming soon.'
: 'Wir arbeiten aktuell an der Präsentation unseres Portfolios. Weitere Informationen folgen in Kürze.' }}
</p>
</div>
</div>
{% else %}
{% for startup in startups %}
{% set team = attribute(teams, startup.teamId) %}
{% set detailRoute = isEnglish ? 'accelerator_startup_detail_en' : 'accelerator_startup_detail' %}
<div class="col-lg-4 col-md-6 mb-4">
<a href="{{ path(detailRoute, {id: startup.id, slug: startup.slug}) }}" class="startup-card-link">
<div class="startup-card">
<div class="card-gradient-overlay"></div>
<div class="startup-visual">
{% if startup.logoUrl %}
<img src="{{ startup.logoUrl }}"
alt="{{ startup.name }}"
class="startup-logo{% if startup.logoBackground %} logo-bg-{{ startup.logoBackground }}{% endif %}">
{% else %}
<div class="d-flex align-items-center justify-content-center bg-light text-success"
style="width: 80px; height: 80px; border-radius: 50%; font-size: 32px; font-weight: bold;">
{{ startup.name|slice(0, 1)|upper }}
</div>
{% endif %}
</div>
<div class="startup-content">
<h3 class="startup-name">{{ startup.name }}</h3>
{% if startup.industry %}
<p class="startup-industry">{{ startup.industry }}</p>
{% endif %}
{% set pitch = isEnglish and startup.oneSentencePitchEn ? startup.oneSentencePitchEn : startup.oneSentencePitch %}
{% if pitch %}
<p class="startup-pitch">
{{ pitch|striptags|slice(0, 120) }}{% if pitch|striptags|length > 120 %}...{% endif %}
</p>
{% endif %}
{% if startup.kiAccelerator %}
<span class="startup-batch">
{{ isEnglish ? 'Batch' : 'Batch' }} {{ startup.kiAccelerator }}
</span>
{% endif %}
</div>
</div>
</a>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</section>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('bundles/startplatzstyle/js/startplatz.accelerator.js') }}"></script>
{# Canvas particles for default layout and v7a #}
{% if layout is not defined or layout == 'v1' or layout == 'v7a' %}
<script src="{{ asset('bundles/startplatzstyle/js/startplatz.accelerator.startups-v7a.js') }}"></script>
{% endif %}
{% if layout is defined and layout == 'v3' %}
<script src="https://cdn.jsdelivr.net/npm/tsparticles@2.12.0/tsparticles.bundle.min.js"></script>
<script src="{{ asset('bundles/startplatzstyle/js/startplatz.accelerator.startups-v3.js') }}"></script>
{% endif %}
{% endblock %}