</main>
<footer class="cw-footer">
    <div class="container-xxl px-3 px-lg-4">
        <div class="row g-5 py-5">
            <div class="col-lg-5">
                <a class="cw-footer-brand" href="<?= cw_h(cw_url('home')) ?>">
                    <img src="<?= cw_h(cw_asset('img/cw-control-watch-logo.svg')) ?>" alt="CW – Control & Watch" width="210" height="79">
                </a>
                <p class="mt-3 mb-0">Zentrale Sicherheit, Verwaltung und Auswertung für Websites, Landingpages und kompakte Webanwendungen.</p>
            </div>
            <div class="col-6 col-lg-2 offset-lg-1">
                <h2>Produkt</h2>
                <ul class="list-unstyled">
                    <li><a href="<?= cw_h(cw_url('funktionen')) ?>">Funktionen</a></li>
                    <li><a href="<?= cw_h(cw_url('im-einsatz')) ?>">CW im Einsatz</a></li>
                    <li><a href="<?= cw_h(cw_url('sicherheit')) ?>">Sicherheit</a></li>
                    <li><a href="<?= cw_h(cw_url('tracking')) ?>">Tracking</a></li>
                </ul>
            </div>
            <div class="col-6 col-lg-2">
                <h2>Ressourcen</h2>
                <ul class="list-unstyled">
                    <li><a href="<?= cw_h(cw_url('entwickler')) ?>">Für Entwickler</a></li>
                    <?php if (function_exists('cw_blog_url')): ?><li><a href="<?= cw_h(cw_blog_url()) ?>">Blog &amp; News</a></li><?php endif; ?>
                    <li><a href="<?= cw_h(cw_url('kontakt')) ?>">Kontakt</a></li>
                    <li><a href="<?= cw_h(cw_base_path()) ?>/admin/">Administration</a></li>
                </ul>
            </div>
            <div class="col-lg-2">
                <h2>Rechtliches</h2>
                <ul class="list-unstyled">
                    <li><a href="<?= cw_h(cw_url('impressum')) ?>">Impressum</a></li>
                    <li><a href="<?= cw_h(cw_url('datenschutz')) ?>">Datenschutz</a></li>
                    <li><button type="button" data-cw-consent-settings>Statistik-Einstellungen</button></li>
                </ul>
            </div>
        </div>
        <div class="cw-footer-bottom d-flex flex-column flex-md-row justify-content-between gap-2 py-4">
            <span>© <?= date('Y') ?> CW – Control &amp; Watch</span>
            <span>Self-hosted · Bootstrap 5 · PHP 8</span>
        </div>
    </div>
</footer>
<script src="<?= cw_h(cw_base_path()) ?>/assets/js/bootstrap.bundle.min.js?v=5.3.6"></script>
<script src="<?= cw_h(cw_asset('js/site.js')) ?>" defer></script>
<?php if ($currentRoute === 'home' && is_file(project_root() . '/project/assets/js/blog.js')): ?><script src="<?= cw_h(cw_asset('js/blog.js')) ?>" defer></script><?php endif; ?>
<script src="<?= cw_h(cw_base_path()) ?>/assets/js/analytics.js?v=3.0.0-dev5" defer></script>
<?= cw_search_frontend_script_html() ?>
<?php foreach ((array)($pageScripts ?? []) as $script): ?><script src="<?= cw_h((string)$script) ?>" defer></script><?php endforeach; ?>
<?php if (!empty($pageInlineJs)): ?><script><?= (string)$pageInlineJs ?></script><?php endif; ?>
</body>
</html>
