<?php if (!defined('ABSPATH')) exit; ?>

    <footer class="footer">
      <div class="footer__inner">
        <nav class="footer__nav" aria-label="<?php esc_attr_e('Footer Navigation', 'juconnect'); ?>">
          <?php if (has_nav_menu('footer')): ?>
            <div class="navgroup__title"><?php esc_html_e('Weiterführende Links', 'juconnect'); ?></div>
          <?php endif; ?>
          <?php
            wp_nav_menu([
              'theme_location' => 'footer',
              'container' => false,
              'menu_class' => 'footer__menu',
              'fallback_cb' => false,
              'depth' => 1,
            ]);
          ?>
        </nav>
        <span class="muted">(c) 2026 JuConnect GbR</span>
      </div>
    </footer>
  </main>
</div>

<!-- Toast container (for app.js) -->
<div class="toasts" aria-live="polite" aria-relevant="additions"></div>

<?php wp_footer(); ?>
</body>
</html>
