<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LiveComponent Infinite Scroll Demo</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            padding: 2rem;
            background: #f5f5f5;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        h1 {
            margin-bottom: 1rem;
            color: #333;
        }

        .intro {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .intro h2 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            color: #444;
        }

        .feature-list {
            line-height: 1.8;
            color: #666;
        }

        .feature-list li {
            margin-bottom: 0.5rem;
        }

        .demo-section {
            margin-bottom: 2rem;
        }
    </style>
</head>
<body data-module="livecomponent">
    <div class="container">
        <h1>♾️ LiveComponent Infinite Scroll Demo</h1>

        <div class="intro">
            <h2>Lazy Loading Content Feed with Performance Tracking</h2>
            <ul class="feature-list">
                <li>✅ <strong>Infinite Scroll:</strong> Load more content as you scroll or click "Load More"</li>
                <li>✅ <strong>Lazy Loading:</strong> Images load on-demand with <code>loading="lazy"</code></li>
                <li>✅ <strong>Configurable Batch Size:</strong> Choose 10, 20, 30, or 50 items per load</li>
                <li>✅ <strong>Performance Metrics:</strong> Track load times and items loaded</li>
                <li>✅ <strong>End Detection:</strong> Visual feedback when all content is loaded</li>
                <li>✅ <strong>Reset Functionality:</strong> Start over from the beginning</li>
                <li>✅ <strong>Responsive Grid:</strong> Adapts to screen size with CSS Grid</li>
                <li>✅ <strong>100 Demo Items:</strong> Rich content with images, metadata, and stats</li>
            </ul>
        </div>

        <div class="demo-section">
            {{infinite_scroll}}
        </div>
    </div>
</body>
</html>
