<!-- Sektion: F&ouml;rderungen (Legacy) -->
{% if foerderungen %}
<div class="section">
  <h2>F&ouml;rderungen {{ jahr }}</h2>
  <table>
    <thead>
      <tr>
        <th>Beg&uuml;nstigter</th>
        <th>Kategorie</th>
        <th>Betrag</th>
        <th>Status</th>
        <th>Antragsdatum</th>
      </tr>
    </thead>
    <tbody>
      {% for f in foerderungen %}
      <tr>
        <td>
          {% if f.destinataer %}{{ f.destinataer.get_full_name }}
          {% elif f.person %}{{ f.person.get_full_name }}
          {% else %}&ndash;{% endif %}
        </td>
        <td>{{ f.get_kategorie_display }}</td>
        <td class="amount">&#8364;{{ f.betrag|floatformat:2 }}</td>
        <td>
          <span class="status-badge status-{{ f.status }}">{{ f.get_status_display }}</span>
        </td>
        <td>{{ f.antragsdatum|date:"d.m.Y" }}</td>
      </tr>
      {% endfor %}
    </tbody>
    <tfoot>
      <tr style="font-weight: bold; background: #f0f7f4;">
        <td colspan="2">Summe</td>
        <td class="amount">&#8364;{{ total_foerderungen_legacy|floatformat:2 }}</td>
        <td colspan="2"></td>
      </tr>
    </tfoot>
  </table>
</div>
{% endif %}
