<!DOCTYPE html>
<html lang="de" class="h-100" data-bs-theme="light">
<head>
    <!-- Google Tag Manager (DSGVO compliant) -->
    <script>
    window.isLocalDev = false;
    (function() {
        window.dataLayer = window.dataLayer || [];
        
        window.initGoogleTagManager = function() {
            if (window.gtmLoaded) return;
            
            // Bypass tracking in local development environments to prevent console errors
            const hostname = window.location.hostname;
            if (window.isLocalDev ||
                hostname === 'localhost' || 
                hostname === '127.0.0.1' || 
                hostname.endsWith('.local') ||
                hostname.startsWith('192.168.') || 
                hostname.startsWith('10.') || 
                hostname.startsWith('172.')) {
                console.log('[Analytics] GTM bypassed in local development.');
                return;
            }
            
            window.gtmLoaded = true;
            
            // Push GTM start event
            window.dataLayer.push({'gtm.start': new Date().getTime(), event: 'gtm.js'});
            
            // Create script element to load GTM
            var script = document.createElement('script');
            script.async = true;
            script.src = 'https://www.googletagmanager.com/gtm.js?id=GTM-WDVFLQ';
            document.head.appendChild(script);
        };
        
        if (localStorage.getItem('dbde_forum_consent') === 'granted') {
            window.initGoogleTagManager();
        }
    })();
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
        <title>David Bowie Forum – Fan-Community &amp; Archiv</title>
    <meta name="description" content="Das führende deutschsprachige David Bowie Forum: Sammler-Archiv, ausführliche Diskografie, Konzert-Kalender, aktuelle News und aktive Fan-Community.">
    <link rel="canonical" href="https://davidbowieforum.de/">

    <!-- Credibility & Timeliness Metadata for AI & GEO crawlers -->
    <meta name="author" content="David Bowie Forum Community">
    <meta name="date" content="2026-08-16" scheme="YYYY-MM-DD">
    <meta name="last-modified" content="2026-08-17" scheme="YYYY-MM-DD">

        <!-- LCP Image Preload for Home Page -->
    <link rel="preload" href="/assets/images/david-bowie.webp" as="image" type="image/webp" fetchpriority="high">
    
        <!-- Open Graph / Facebook General Fallback -->
    <meta property="og:type" content="website">
    <meta property="og:title" content="David Bowie Forum – Fan-Community &amp; Archiv">
    <meta property="og:description" content="Das führende deutschsprachige David Bowie Forum: Sammler-Archiv, ausführliche Diskografie, Konzert-Kalender, aktuelle News und aktive Fan-Community.">
    <meta property="og:image" content="https://davidbowieforum.de/assets/images/david-bowie-square.png">
    <meta property="og:url" content="https://davidbowieforum.de/">

    <!-- Twitter General Fallback -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="David Bowie Forum – Fan-Community &amp; Archiv">
    <meta name="twitter:description" content="Das führende deutschsprachige David Bowie Forum: Sammler-Archiv, ausführliche Diskografie, Konzert-Kalender, aktuelle News und aktive Fan-Community.">
    <meta name="twitter:image" content="https://davidbowieforum.de/assets/images/david-bowie-square.png">
            <!-- 01 & 02: Validierte Schema.org JSON-LD Auszeichnung -->
            <script type="application/ld+json">
            {
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://davidbowieforum.de/#organization",
            "name": "David Bowie Forum Deutschland",
            "url": "https://davidbowieforum.de",
            "logo": {
                "@type": "ImageObject",
                "url": "https://davidbowieforum.de/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            },
            "sameAs": [
                "https://www.facebook.com/groups/davidbowiede?locale=de_DE",
                "https://www.instagram.com/davidbowieforum.de/",
                "https://www.wikidata.org/wiki/Q5383"
            ]
        },
        {
            "@type": "WebSite",
            "@id": "https://davidbowieforum.de/#website",
            "url": "https://davidbowieforum.de",
            "name": "David Bowie Forum",
            "description": "Unabhängige Community, Archiv und Diskografie rund um David Bowie.",
            "publisher": {
                "@id": "https://davidbowieforum.de/#organization"
            },
            "potentialAction": {
                "@type": "SearchAction",
                "target": {
                    "@type": "EntryPoint",
                    "urlTemplate": "https://davidbowieforum.de/index.php?action=search&q={search_term_string}"
                },
                "query-input": "required name=search_term_string"
            }
        }
    ]
}        </script>
    
            <script type="application/ld+json">
            {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Forum",
            "item": "https://davidbowieforum.de/index.php?action=board"
        }
    ]
}        </script>
    
    <!-- 08: Discovery Links für Crawler und KI-Agenten -->
    <link rel="alternate" type="text/markdown" href="/topic/9738-buch-das-tao-des-bowie-von-mark-edwards-dt/index.php?format=md&amp;msg=245823&amp;format=md" title="Markdown Repräsentation">
    <link rel="help" href="/llms.txt" type="text/plain" title="LLM Agent Manifest">

    <!-- ====================================================
         PWA: Web App Manifest + Meta Tags
         ==================================================== -->
    <link rel="manifest" href="/manifest.json">
    <meta name="theme-color" content="#111622" media="(prefers-color-scheme: dark)">
    <meta name="theme-color" content="#111622">
    <meta name="mobile-web-app-capable" content="yes">

    <!-- Apple PWA (iOS Safari) -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="apple-mobile-web-app-title" content="BowieForum">
    <link rel="apple-touch-icon" sizes="152x152" href="/assets/icons/icon-152.png">
    <link rel="apple-touch-icon" sizes="192x192" href="/assets/icons/icon-192.png">
    <link rel="apple-touch-icon" sizes="512x512" href="/assets/icons/icon-512.png">

    <!-- Favicon -->
    <link rel="icon" type="image/png" sizes="32x32"  href="/assets/icons/icon-96.png">
    <link rel="icon" type="image/png" sizes="192x192" href="/assets/icons/icon-192.png">
    <link rel="shortcut icon" href="/assets/icons/icon-96.png">

    <!-- MS Tiles (Windows / Edge) -->
    <meta name="msapplication-TileColor" content="#0f172a">
    <meta name="msapplication-TileImage" content="/assets/icons/icon-144.png">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
    <link href="/assets/css/style.css?v=1784471912" rel="stylesheet">
    
    <style>
        html {
            scrollbar-gutter: stable;
        }
        
        :root {
            --bowie-red: #b41414;
            --bowie-dark: #0f172a;
            --bowie-nav-bg: #111622;
        }
        
        body {
            margin: 0;
            padding-top: 56px;
            padding-bottom: 65px;
            background-color: #f8fafc;
        }

        @media (min-width: 768px) {
            body { padding-bottom: 0; }
        }

        .navbar-nav .nav-link {
            padding: 0.5rem 0.8rem;
            border-radius: 20px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 550;
            display: flex;
            align-items: center;
        }
        .navbar-nav .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.08);
            color: #ffffff !important;
        }
        .navbar-nav .nav-link:hover .bi {
            transform: scale(1.15);
        }
        .navbar-nav .nav-link .bi {
            transition: transform 0.2s ease-in-out;
            display: inline-block;
        }
        .navbar-nav .nav-link.active-core {
            background-color: var(--bowie-red) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 12px rgba(180, 20, 20, 0.35);
        }

        .pwa-bottom-nav {
            background-color: rgba(15, 23, 42, 0.85); /* var(--bowie-dark) at 85% */
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            height: 60px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        }

        .pwa-nav-item {
            color: #94a3b8;
            font-size: 11px;
            text-decoration: none;
            transition: color 0.15s ease-in-out, opacity 0.1s ease-in-out;
            -webkit-tap-highlight-color: transparent;
        }

        .pwa-nav-item:active {
            opacity: 0.6;
        }

        .pwa-nav-item.active {
            color: #ffffff;
            font-weight: bold;
        }

        .pwa-nav-item .bi {
            font-size: 20px;
            display: block;
            margin-bottom: 2px;
        }

        .pwa-nav-item.active .bi {
            color: var(--bowie-red);
        }
        
        .text-truncate-1 {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        @keyframes pulse-danger {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
            70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
        }
        .badge-pulse {
            animation: pulse-danger 2s infinite ease-in-out;
            border: 2px solid var(--bowie-dark);
        }

        /* Puls-Effekt für das Live-Label in der Navbar */
        @keyframes navPulse {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1); }
        }
        .animate-pulse {
            animation: navPulse 2s infinite ease-in-out;
        }

        .text-muted-gold { color: #cbd5e1 !important; }
        .xsmall { font-size: 11px; }
        .uppercase { text-transform: uppercase; letter-spacing: 0.5px; }
        .tracking-wider { letter-spacing: 1px; }
        .track-row:hover { background-color: #f8fafc; }
        
        .nav-glass {
            background-color: rgba(17, 22, 34, 0.75) !important;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
            transition: all 0.3s ease;
        }

        .dropdown-menu-dark {
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            padding: 0.5rem;
        }
        .dropdown-menu-dark .dropdown-item {
            border-radius: 8px;
            padding: 0.5rem 1rem;
            transition: all 0.2s ease;
        }
        .dropdown-menu-dark .dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.08) !important;
            transform: translateX(4px);
        }
        .dropdown-menu-dark .dropdown-item .bi {
            transition: transform 0.2s ease-in-out;
            display: inline-block;
        }
        .dropdown-menu-dark .dropdown-item:hover .bi {
            transform: scale(1.15) rotate(5deg);
        }
        .dropdown-menu-dark .dropdown-item.active {
            background-color: var(--bowie-red) !important;
        }

        /* ====================================================
           Responsive Breakpoints & Accessibility Overrides
           ==================================================== */
        
        /* Accessibility Contrast Enhancements (WCAG 2.1 Compliance) */
        body {
            color: #1e293b !important; /* Slate 800 (Excellent contrast on light backgrounds) */
            font-size: 15px;
            line-height: 1.6;
        }

        .text-muted, 
        .text-secondary {
            color: #475569 !important; /* Slate 600 (contrast ratio > 4.5:1 on light backgrounds) */
        }
        
        /* Override for elements inside dark-themed containers */
        .bg-dark .text-muted,
        .bg-dark .text-secondary,
        .bg-dark .text-muted *,
        .bg-dark .text-secondary *,
        .user-sidebar .text-muted,
        .user-sidebar .text-secondary,
        .user-sidebar .text-muted *,
        .user-sidebar .text-secondary *,
        .modal-content.bg-dark .text-muted,
        .modal-content.bg-dark .text-secondary,
        .pwa-bottom-nav .text-muted,
        .pwa-bottom-nav .text-secondary,
        .pwa-bottom-nav .pwa-nav-item,
        footer.bg-dark .text-white-50,
        footer.bg-dark a.text-white-50,
        .dropdown-menu-dark .dropdown-item.active {
            color: #cbd5e1 !important; /* Light Slate Gray (contrast ratio > 4.5:1 on dark backgrounds) */
        }

        /* Link readability & focus indicators */
        main a:not(.btn):not(.nav-link):not(.pwa-nav-item):not(.dropdown-item):not(.badge):not(.page-link) {
            color: #0b5ed7;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        main a:not(.btn):not(.nav-link):not(.pwa-nav-item):not(.dropdown-item):not(.badge):not(.page-link):hover {
            color: #b41414 !important;
            text-decoration: underline;
        }
        .hover-info-link:hover {
            color: #097d95 !important;
        }
        .hover-underline:hover {
            text-decoration: underline !important;
        }

        /* Better contrast for navbar items */
        .navbar-dark .navbar-nav .nav-link.text-white-50 {
            color: #cbd5e1 !important; /* MUCH higher contrast than text-white-50 (rgba(255,255,255,0.5)) */
        }
        .navbar-dark .navbar-nav .nav-link.text-white-50:hover {
            color: #ffffff !important;
        }
        .dropdown-menu-dark .dropdown-item {
            color: #e2e8f0 !important;
        }
        .dropdown-menu-dark .dropdown-item:hover {
            color: #ffffff !important;
            background-color: rgba(255, 255, 255, 0.1) !important;
        }
        
        /* Better contrast for PWA bottom navigation active/inactive items */
        .pwa-bottom-nav .pwa-nav-item {
            color: #cbd5e1 !important;
        }
        .pwa-bottom-nav .pwa-nav-item.active {
            color: #ffffff !important;
        }
        .pwa-bottom-nav .pwa-nav-item.active .bi {
            color: #ef4444 !important;
        }

        /* Input fields and placeholder contrast */
        .form-control::placeholder {
            color: #64748b !important;
            opacity: 1;
        }
        .form-control {
            border-color: #cbd5e1 !important;
            color: #1e293b !important;
        }
        .form-control:focus {
            border-color: #b41414 !important;
            box-shadow: 0 0 0 0.25rem rgba(180, 20, 20, 0.25) !important;
        }

        /* Breadcrumb styling for higher visibility */
        .breadcrumb-item a {
            color: #475569 !important;
        }
        .breadcrumb-item a:hover {
            color: #b41414 !important;
        }
        .breadcrumb-item.active {
            color: #1e293b !important;
            font-weight: 500;
        }

        /* Einheitliche Typografie-Definitionen */
        .xsmall, small, .font-monospace.x-small {
            font-size: 0.75rem !important; /* Entspricht 12px bei 16px Basis */
            line-height: 1.4;
        }
        
        /* Desktop Hover Effects (Only active on pointer devices with hover support) */
        @media (hover: hover) {
            .card:hover, .stat-card:hover, .board-card:hover, .topic-card:hover, .disco-card:hover, .transition-card:hover { 
                transform: translateY(-4px) !important; 
                box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important; 
                transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease-in-out !important;
            }
        }

        /* Mobile/Tablet Touch Interaction (Active state instead of hover) */
        @media (hover: none) {
            .card:active, .stat-card:active, .board-card:active, .topic-card:active, .disco-card:active, .transition-card:active {
                transform: scale(0.98) !important;
                transition: transform 0.1s ease-in-out !important;
            }
        }

        /* Mobile Viewport Optimizations (< 768px) */
        @media (max-width: 767.98px) {
            /* Solve the h-100 height trap on mobile single column layout */
            .card, .stat-card, .board-card, .topic-card, .disco-card {
                height: auto !important;
            }
            
            /* Minimum touch target size (44px x 44px) for touch interfaces on buttons and nav elements */
            .btn, 
            .nav-link, 
            .pwa-nav-item, 
            .pagination a, 
            .btn-group a, 
            .dropdown-item, 
            .sidebar-link {
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding-top: 10px !important;
                padding-bottom: 10px !important;
            }
        }

        /* Mobile collapse menu background & spacing for high contrast */
        @media (max-width: 991.98px) {
            .navbar-collapse {
                background-color: #111622 !important;
                padding: 1.25rem;
                border-radius: 12px;
                border: 1px solid rgba(255, 255, 255, 0.1);
                margin-top: 10px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            }
            .navbar-collapse .nav-link {
                padding: 0.75rem 1rem !important;
                color: #cbd5e1 !important;
            }
            .navbar-collapse .nav-link:hover,
            .navbar-collapse .nav-link.active-core {
                background-color: var(--bowie-red) !important;
                color: #ffffff !important;
            }
        }
    </style>
</head>
<body class="d-flex flex-column h-100">
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDVFLQ"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->

    <nav class="navbar navbar-expand-lg navbar-dark fixed-top py-2 shadow-sm nav-glass">
        <div class="container" style="max-width: 1248px;">
            <a class="navbar-brand d-flex align-items-center gap-1 fw-bold font-monospace text-uppercase tracking-wider" href="/index.php?action=home">
                <span class="text-white">David Bowie</span><span style="color: var(--bowie-red);"><i class="bi bi-lightning-fill text-warning mx-1"></i>Forum</span>
            </a>
            <button class="navbar-toggler border-0 p-1" type="button" data-bs-toggle="collapse" data-bs-target="#mainNavbar" aria-controls="mainNavbar" aria-expanded="false" aria-label="Navigation umschalten">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="mainNavbar">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0 mt-2 mt-lg-0 gap-1 small">
                    
                    <!-- 1. Foren & Austausch -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-white-50" 
                           href="#" id="forumDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            <i class="bi bi-chat-left-text me-1"></i> Foren & Austausch
                        </a>
                        <ul class="dropdown-menu dropdown-menu-dark border-secondary shadow mt-1" aria-labelledby="forumDropdown" style="background-color: var(--bowie-dark);">
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=forum">
                                     <i class="bi bi-layers me-2 text-info"></i> Foren-Übersicht
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=unread">
                                     <i class="bi bi-newspaper me-2 text-danger"></i> Neue & Ungelesene Beiträge
                                </a>
                            </li>
                                                        <li><hr class="dropdown-divider border-secondary"></li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=memberlist">
                                     <i class="bi bi-people-fill me-2 text-primary"></i> Mitgliederverzeichnis
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=search">
                                     <i class="bi bi-search me-2 text-warning"></i> Foren-Suche
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 2. Magazin & Info -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-white-50" 
                           href="#" id="blogDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            <i class="bi bi-journal-text me-1"></i> Magazin & Info
                        </a>
                        <ul class="dropdown-menu dropdown-menu-dark border-secondary shadow mt-1" aria-labelledby="blogDropdown" style="background-color: var(--bowie-dark);">
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=blog">
                                     <i class="bi bi-journal-text me-2 text-info"></i> Das Magazin
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=about">
                                     <i class="bi bi-person-bounding-box me-2 text-warning"></i> Über das Projekt
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 3. Archiv-Zentrale -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-white-50" 
                           href="#" id="archiveDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            <i class="bi bi-archive me-1"></i> Archiv-Zentrale
                        </a>
                        <ul class="dropdown-menu dropdown-menu-dark border-secondary shadow mt-1" aria-labelledby="archiveDropdown" style="background-color: var(--bowie-dark);">
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=archive&sa=discography">
                                     <i class="bi bi-disc-fill me-2 text-info"></i> Chronologische Diskografie
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=lineups">
                                     <i class="bi bi-people-fill text-warning me-2"></i> Besetzungshistorie (Line-ups)
                                 </a>
                             </li>
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=archive&sa=concerts">
                                     <i class="bi bi-calendar3 me-2 text-success"></i> Tour-Archiv (Setlist.fm)
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=archive&sa=history">
                                     <i class="bi bi-clock-fill text-warning me-2"></i> "Living History" Chronik
                                 </a>
                             </li>
                             <li>
                                 <a class="dropdown-item py-2 small " 
                                    href="/index.php?action=va_archive">
                                       <i class="bi bi-bank me-2 text-danger"></i> V&A David Bowie Archiv
                                  </a>
                             </li>
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=va_archive&sa=gallery">
                                     <i class="bi bi-images me-2 text-warning"></i> V&A Online-Galerie (Live)
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=books">
                                     <i class="bi bi-book-fill me-2 text-warning"></i> Bowies Top 100 Bücher
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " 
                                   href="/index.php?action=genius">
                                     <i class="bi bi-music-note-list me-2 text-danger"></i> Songtexte
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 4. Entertainment & Interaktion -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-white-50" 
                           href="#" id="funDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            <i class="bi bi-play-circle me-1"></i> Entertainment
                        </a>
                        <ul class="dropdown-menu dropdown-menu-dark border-secondary shadow mt-1" aria-labelledby="funDropdown" style="background-color: var(--bowie-dark);">
                            <li>
                                <a class="dropdown-item py-2 small d-flex align-items-center gap-1 " 
                                   href="#" 
                                   onclick="window.open('/index.php?action=radio', 'BowieRadio', 'width=500,height=600,scrollbars=no,resizable=no,status=no,menubar=no'); return false;">
                                    <span class="badge bg-danger me-1 tracking-wider text-uppercase animate-pulse" style="font-size: 0.65rem; padding: 3px 5px;">Live</span>
                                    <i class="bi bi-radio me-2 text-danger"></i> Bowie-Radio (Pop-up)
                                </a>
                            </li>

                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=musiccup">
                                     <i class="bi bi-trophy me-2 text-warning"></i> Bowie Music Cup
                                </a>
                            </li>

                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=chat">
                                     <i class="bi bi-chat-dots me-2 text-success"></i> Live Chat & PM
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=video_lounge">
                                     <i class="bi bi-camera-video-fill me-2 text-danger"></i> Video-Stammtisch
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=calendar">
                                     <i class="bi bi-calendar-event me-2 text-danger"></i> Live-Kalender
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 5. Support & Statistiken -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-white-50" 
                           href="#" id="supportDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            <i class="bi bi-info-circle me-1"></i> Support & Infos
                        </a>
                        <ul class="dropdown-menu dropdown-menu-dark border-secondary shadow mt-1" aria-labelledby="supportDropdown" style="background-color: var(--bowie-dark);">
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=help">
                                     <i class="bi bi-question-circle me-2 text-info"></i> Hilfe & FAQ
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=stats">
                                     <i class="bi bi-graph-up me-2 text-success"></i> Forum-Statistik
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small " href="/index.php?action=handbuch">
                                     <i class="bi bi-book me-2 text-warning"></i> Benutzerhandbuch
                                </a>
                            </li>
                            <li><hr class="dropdown-divider border-secondary"></li>
                            <li class="dropdown-header text-uppercase tracking-wider text-muted-gold xsmall">Social Media</li>
                            <li>
                                <a class="dropdown-item py-2 small" href="https://www.instagram.com/davidbowieforum/" target="_blank" rel="noopener noreferrer">
                                     <i class="bi bi-instagram me-2" style="color: #e1306c !important;"></i> Instagram (@davidbowieforum)
                                </a>
                            </li>
                            <li>
                                <a class="dropdown-item py-2 small" href="https://www.facebook.com/profile.php?id=61592906173847" target="_blank" rel="noopener noreferrer">
                                     <i class="bi bi-facebook me-2" style="color: #1877f2 !important;"></i> Facebook-Seite
                                </a>
                            </li>
                        </ul>
                    </li>

                </ul>
                
                <div class="d-flex align-items-center gap-3 mt-3 mt-lg-0">
                                            <div class="d-none d-lg-flex align-items-center gap-2">
                            <a class="btn btn-sm btn-outline-light px-3" href="/index.php?action=login">Anmelden</a>
                            <a class="btn btn-sm btn-danger px-3 text-white" href="/index.php?action=register">Registrieren</a>
                        </div>
                                    </div>

                <!-- Mobile Action Buttons inside collapse -->
                <div class="d-flex d-lg-none flex-column gap-2 mt-3 w-100 border-top border-secondary pt-3">
                                            <a class="btn btn-outline-light w-100" href="/index.php?action=login">Anmelden</a>
                        <a class="btn btn-danger w-100 text-white" href="/index.php?action=register">Registrieren</a>
                                    </div>
            </div>
        </div>
    </nav>

    <!-- ====================================================
         MODIFIZIERT: PWA Bottom Nav für Mobilgeräte
         ==================================================== -->
    <div class="pwa-bottom-nav fixed-bottom d-md-none z-3">
        <div class="container h-100 px-0">
            <div class="row h-100 g-0 text-center align-items-center">
                <div class="col">
                    <a href="/index.php?action=forum" class="pwa-nav-item d-block ">
                        <i class="bi bi-layers"></i>
                        <span class="text-truncate-1">Foren</span>
                    </a>
                </div>
                <div class="col">
                    <a href="/index.php?action=unread" class="pwa-nav-item d-block ">
                        <i class="bi bi-clock-history"></i>
                        <span class="text-truncate-1">Neu</span>
                    </a>
                </div>
                <div class="col">
                    <!-- Öffnet das Radio auf Smartphones als neues, isoliertes Browser-Tab ohne Foren-Ballast -->
                    <a href="#" 
                       onclick="window.open('/index.php?action=radio', '_blank'); return false;" 
                       class="pwa-nav-item d-block ">
                        <i class="bi bi-radio"></i>
                        <span class="text-truncate-1">Radio</span>
                    </a>
                </div>
                                <div class="col">
                                            <a href="/index.php?action=login" class="pwa-nav-item d-block ">
                            <i class="bi bi-box-arrow-in-right"></i>
                            <span class="text-truncate-1">Login</span>
                        </a>
                                    </div>
            </div>
        </div>
    </div>

    <main class="flex-shrink-0">
<div class="container my-4" style="max-width: 1248px; font-family: 'Inter', system-ui, sans-serif;">

    <!-- HERO PORTAL (2026 Glass & Neon aesthetic) -->
    <div class="hero-portal position-relative overflow-hidden mb-5 rounded-4 shadow-lg text-white" 
         style="background: linear-gradient(135deg, #09090b 10%, #1a103c 50%, #450a0a 100%); min-height: 480px; border: 1px solid rgba(255, 255, 255, 0.08);">
        
        <!-- Glowing Lightning bolt grid background -->
        <div class="position-absolute end-0 top-0 bottom-0 opacity-15 d-none d-md-block" style="width: 45%; pointer-events: none;">
            <svg viewBox="0 0 100 100" class="w-100 h-100 glow-pulse" fill="none" stroke="#dc3545" stroke-width="0.5">
                <polygon points="60,0 20,60 50,60 30,100 80,40 50,40" />
            </svg>
        </div>

        <!-- Ambient floating glowing circles -->
        <div class="position-absolute rounded-circle bg-danger opacity-10 filter-blur" style="width: 300px; height: 300px; top: -50px; left: -50px; filter: blur(80px);"></div>
        <div class="position-absolute rounded-circle bg-primary opacity-10 filter-blur" style="width: 300px; height: 300px; bottom: -50px; right: 10%; filter: blur(80px);"></div>

        <div class="p-4 p-md-5 d-flex flex-column align-items-center justify-content-center text-center h-100 position-relative z-1" style="min-height: 480px;">
            <div class="w-100">
                <div class="d-flex align-items-center justify-content-center gap-2 mb-3">
                    <span class="badge bg-danger text-uppercase font-monospace tracking-widest px-3 py-1.5 border border-danger border-opacity-50" style="font-size: 0.7rem;">
                        Est. 1999
                    </span>
                </div>

                <h1 class="display-4 fw-black text-uppercase tracking-tight text-white mb-3" style="font-family: 'Outfit', sans-serif; font-weight: 900; line-height: 1.1;">
                    DAVID BOWIE<br>
                    <span class="text-transparent bg-clip-text" style="background: linear-gradient(to right, #ff4e50, #f9d423); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">FORUM & ARCHIV</span>
                </h1>
                
                <p class="lead mb-4 mx-auto text-light-50" style="font-size: 1.15rem; max-width: 650px; color: #cbd5e1 !important; line-height: 1.6;">
                    Das David Bowie Forum Deutschland bietet eine unabhängige Community, ein historisches Konzert-Archiv, Diskografien und Live-Besetzungen von 1972 bis 2004. Tausche dich mit hunderten Sammlern aus, stelle Fragen und durchsuche unser umfangreiches Archiv.
                </p>

                <!-- Hero Actions -->
                <div class="d-flex flex-wrap justify-content-center gap-3 mb-4">
                    <a href="index.php?action=forum" class="btn btn-danger btn-lg px-4 py-2.5 fw-bold uppercase font-monospace rounded-3 shadow border-0 btn-hover-neon" style="font-size: 0.9rem;">
                        <i class="bi bi-chat-left-text-fill me-2"></i> Zum Forum
                    </a>
                    <a href="index.php?action=handbuch" class="btn btn-outline-light btn-lg px-4 py-2.5 fw-bold uppercase font-monospace rounded-3" style="font-size: 0.9rem; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2);">
                        <i class="bi bi-book me-2 text-warning"></i> Wegweiser
                    </a>
                </div>
            </div>

            <!-- Famous Bowie Quote Box -->
            <div class="d-flex align-items-center gap-3 p-3 rounded-4 shadow-sm position-relative mt-4 mx-auto" 
                 style="max-width: 600px; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.08); border-left: 4px solid #b41414 !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);">
                
                <div class="flex-shrink-0 d-none d-sm-block" style="width: 60px; height: 60px; overflow: hidden; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15);">
                    <img src="assets/images/david-bowie.webp" alt="David Bowie" class="w-100 h-100 object-fit-cover" fetchpriority="high" loading="eager">
                </div>

                <div class="flex-grow-1 text-start">
                    <i class="bi bi-quote position-absolute text-danger opacity-10" style="font-size: 2.2rem; top: -5px; right: 15px;"></i>
                    <blockquote class="blockquote mb-1 font-monospace" style="font-size: 0.88rem; color: #f1f5f9 !important; font-style: italic; font-weight: 500; line-height: 1.4; border: none; margin: 0; padding: 0;">
                        "Tomorrow belongs to those who can hear it coming."
                    </blockquote>
                    <div class="text-danger font-monospace fw-bold" style="font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;">
                        &mdash; David Bowie, 1977
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- MAIN DISCOVERY KACHEL-GRID (Archiv-Zentrale Features) -->
    <div class="mb-5">
        <div class="d-flex align-items-center gap-2 mb-4">
            <span class="badge bg-danger rounded-circle p-1" style="width: 10px; height: 10px;"></span>
            <h2 class="h5 fw-bold text-dark mb-0 font-monospace text-uppercase tracking-wider">Die Archiv-Zentrale & Highlights</h2>
        </div>

        <div class="row g-4">
            <!-- Card 1: Line-ups -->
            <div class="col-6 col-md-4">
                <a href="index.php?action=lineups" class="text-decoration-none">
                    <div class="card h-100 border-0 shadow-sm rounded-4 grid-action-card overflow-hidden bg-white border border-light-subtle">
                        <div class="card-body p-3 p-md-4 text-center">
                            <div class="icon-circle bg-warning-subtle text-warning mx-auto mb-3">
                                <i class="bi bi-people-fill"></i>
                            </div>
                            <h3 class="h6 fw-bold text-dark mb-1">Besetzungshistorie</h3>
                            <p class="text-muted mb-0 xsmall">Bands & Begleitmusiker</p>
                        </div>
                    </div>
                </a>
            </div>

            <!-- Card 2: Concerts -->
            <div class="col-6 col-md-4">
                <a href="index.php?action=archive&sa=concerts" class="text-decoration-none">
                    <div class="card h-100 border-0 shadow-sm rounded-4 grid-action-card overflow-hidden bg-white border border-light-subtle">
                        <div class="card-body p-3 p-md-4 text-center">
                            <div class="icon-circle bg-success-subtle text-success mx-auto mb-3">
                                <i class="bi bi-calendar3"></i>
                            </div>
                            <h3 class="h6 fw-bold text-dark mb-1">Konzert-Archiv</h3>
                            <p class="text-muted mb-0 xsmall">Setlists & Shows</p>
                        </div>
                    </div>
                </a>
            </div>

            <!-- Card 3: Discography -->
            <div class="col-6 col-md-4">
                <a href="index.php?action=archive&sa=discography" class="text-decoration-none">
                    <div class="card h-100 border-0 shadow-sm rounded-4 grid-action-card overflow-hidden bg-white border border-light-subtle">
                        <div class="card-body p-3 p-md-4 text-center">
                            <div class="icon-circle bg-info-subtle text-info mx-auto mb-3">
                                <i class="bi bi-disc-fill"></i>
                            </div>
                            <h3 class="h6 fw-bold text-dark mb-1">Diskografie</h3>
                            <p class="text-muted mb-0 xsmall">Releases & Studioalben</p>
                        </div>
                    </div>
                </a>
            </div>

            <!-- Card 4: V&A Archiv -->
            <div class="col-6 col-md-4">
                <a href="index.php?action=va_archive" class="text-decoration-none">
                    <div class="card h-100 border-0 shadow-sm rounded-4 grid-action-card overflow-hidden bg-white border border-light-subtle">
                        <div class="card-body p-3 p-md-4 text-center">
                            <div class="icon-circle bg-danger-subtle text-danger mx-auto mb-3">
                                <i class="bi bi-bank"></i>
                            </div>
                            <h3 class="h6 fw-bold text-dark mb-1">V&A Sammlungs-Archiv</h3>
                            <p class="text-muted mb-0 xsmall">90.000 Exponate online</p>
                        </div>
                    </div>
                </a>
            </div>

            <!-- Card 5: Top 100 Books -->
            <div class="col-6 col-md-4">
                <a href="index.php?action=books" class="text-decoration-none">
                    <div class="card h-100 border-0 shadow-sm rounded-4 grid-action-card overflow-hidden bg-white border border-light-subtle">
                        <div class="card-body p-3 p-md-4 text-center">
                            <div class="icon-circle bg-secondary-subtle text-secondary mx-auto mb-3">
                                <i class="bi bi-book-fill"></i>
                            </div>
                            <h3 class="h6 fw-bold text-dark mb-1">Literatur & Buchempfehlungen</h3>
                            <p class="text-muted mb-0 xsmall">Bowies Top 100 Bücher<br>Sekundärliteratur über Bowie</p>
                        </div>
                    </div>
                </a>
            </div>

            <!-- Card 6: Magazin -->
            <div class="col-6 col-md-4">
                <a href="index.php?action=blog" class="text-decoration-none">
                    <div class="card h-100 border-0 shadow-sm rounded-4 grid-action-card overflow-hidden bg-white border border-light-subtle">
                        <div class="card-body p-3 p-md-4 text-center">
                            <div class="icon-circle bg-dark-subtle text-dark-emphasis mx-auto mb-3">
                                <i class="bi bi-journal-richtext"></i>
                            </div>
                            <h3 class="h6 fw-bold text-dark mb-1">Magazin & Reviews</h3>
                            <p class="text-muted mb-0 xsmall">Ausführliche Blogartikel</p>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>

    <!-- CONTENT COLUMNS -->
    <div class="row g-4">
        
        <!-- Left Side: Latest Conversations -->
        <div class="col-lg-8 col-12">
            <!-- Mobile-Only Highlights (SOTD & Radio) -->
                            <div class="d-block d-lg-none mb-4">
                    <div class="row g-3">
                        <div class="col-12 col-md-6">
                            <div class="card border-0 shadow-sm rounded-4 p-3 text-center bg-dark text-white border border-secondary border-opacity-25 sotd-premium">
                                <div class="d-flex align-items-center gap-2 justify-content-center mb-2">
                                    <i class="bi bi-music-note-beamed text-danger animate-pulse"></i>
                                    <h4 class="h6 fw-bold mb-0 text-white uppercase tracking-wider small">Song des Tages</h4>
                                </div>
                                <strong class="text-white small d-block mb-1 text-truncate" title="87 and Cry | SdT 26.05.2021">
                                    87 and Cry | SdT 26.05.2021                                </strong>
                                <p class="text-white-50 xsmall mb-2" style="display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.75rem; line-height: 1.4;">
                                    87 and Cry Betreff: EIGHTYSEVEN and Cry | SdT “TWENTY SIX dollars in my hand”. TVC one FIVE.2021. We live for just these TWENTY years till the TWENTY-FIRST century lose “EIGHTY-SEVEN and cry“ and Cry Was gab es Schöneres, als in den Tagen, der nun...                                </p>
                                <a href="index.php?topic=9230.0" class="btn btn-xs btn-danger w-100 font-monospace py-1.5 small uppercase tracking-wider">
                                    Diskussion
                                </a>
                            </div>
                        </div>
                        <div class="col-12 col-md-6">
                            <div class="card border-0 shadow-sm rounded-4 p-3 text-center bg-white border border-light-subtle">
                                <div class="d-flex align-items-center gap-2 justify-content-center mb-2">
                                    <i class="bi bi-radio text-danger"></i>
                                    <h4 class="h6 fw-bold mb-0 text-dark uppercase tracking-wider small">Bowie-Radio</h4>
                                </div>
                                <p class="text-muted xsmall mb-2">Musik rund um die Uhr direkt im Browser.</p>
                                <a href="#" onclick="window.open('/index.php?action=radio', 'BowieRadio', 'width=500,height=600,scrollbars=no,resizable=no,status=no,menubar=no'); return false;" 
                                   class="btn btn-xs btn-outline-danger w-100 font-monospace py-1.5 small uppercase tracking-wider">
                                    Zum Radio
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            
            <div class="d-flex justify-content-between align-items-center mb-4 pb-2 border-bottom border-light-subtle">
                <h2 class="h6 fw-bold text-dark mb-0 font-monospace text-uppercase tracking-wider">
                    <i class="bi bi-chat-left-dots-fill text-danger me-1"></i> Aktuelle Unterhaltungen im Forum
                </h2>
                <a href="index.php?action=forum" class="btn btn-xs btn-outline-danger font-monospace px-2.5 py-1" style="font-size: 11px;">
                    Alles sehen <i class="bi bi-arrow-right ms-1"></i>
                </a>
            </div>

                            <div class="d-flex flex-column gap-3 mb-4">
                                                                    <div class="card border-0 shadow-sm hover-row transition-all bg-white rounded-4 overflow-hidden border border-light-subtle">
                            <div class="card-body p-3">
                                <div class="row align-items-center g-3">
                                    <div class="col-md-9 d-flex align-items-center">
                                        <div class="w-100">
                                            <a href="/topic/10294-bochum-rebel-rebel-ruhrtriennale-2026/msg-265733#msg-265733" 
                                               class="text-dark fw-bold text-decoration-none hover-info-link h6 d-block mb-2 text-wrap text-md-truncate">
                                                                                                    <i class="bi bi-pin-angle-fill text-danger me-1" title="Angepinnt"></i>
                                                                                                [Bochum] „Rebel Rebel“ - Ruhrtriennale 2026                                            </a>
                                            <div class="text-muted small d-flex align-items-center flex-wrap gap-2 font-monospace" style="font-size: 11px;">
                                                <span><i class="bi bi-person-fill text-danger me-1"></i>von <strong class="text-dark fw-semibold">Reinhold</strong></span>
                                                <span>&bull;</span>
                                                <span><i class="bi bi-calendar3 text-muted me-1"></i>16.08.2026 11:10 Uhr</span>
                                                <span>&bull;</span>
                                                <span class="badge rounded-pill border px-2 py-1 text-dark" 
                                                      style="border-color: hsla(38, 70%, 40%, 1) !important; background-color: hsla(38, 70%, 40%, 0.08) !important; font-size: 0.65rem; font-weight: 600;">
                                                    db:Events                                                </span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 d-flex justify-content-start justify-content-md-end text-muted font-monospace xsmall uppercase gap-2 flex-shrink-0">
                                        <div class="bg-light px-3 py-1 rounded-pill border">
                                            <strong class="text-dark">17</strong> Antworten
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                                                                    <div class="card border-0 shadow-sm hover-row transition-all bg-white rounded-4 overflow-hidden border border-light-subtle">
                            <div class="card-body p-3">
                                <div class="row align-items-center g-3">
                                    <div class="col-md-9 d-flex align-items-center">
                                        <div class="w-100">
                                            <a href="/topic/10309-voe-18-09-2026-david-bowie-the-shel-talmy-recordings/msg-265730#msg-265730" 
                                               class="text-dark fw-bold text-decoration-none hover-info-link h6 d-block mb-2 text-wrap text-md-truncate">
                                                                                                    <i class="bi bi-pin-angle-fill text-danger me-1" title="Angepinnt"></i>
                                                                                                [VÖ 18.09.2026] David Bowie – The Shel Talmy Recordings                                            </a>
                                            <div class="text-muted small d-flex align-items-center flex-wrap gap-2 font-monospace" style="font-size: 11px;">
                                                <span><i class="bi bi-person-fill text-danger me-1"></i>von <strong class="text-dark fw-semibold">Reinhold</strong></span>
                                                <span>&bull;</span>
                                                <span><i class="bi bi-calendar3 text-muted me-1"></i>14.08.2026 16:51 Uhr</span>
                                                <span>&bull;</span>
                                                <span class="badge rounded-pill border px-2 py-1 text-dark" 
                                                      style="border-color: hsla(67, 70%, 40%, 1) !important; background-color: hsla(67, 70%, 40%, 0.08) !important; font-size: 0.65rem; font-weight: 600;">
                                                    db::Aktuelles                                                </span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 d-flex justify-content-start justify-content-md-end text-muted font-monospace xsmall uppercase gap-2 flex-shrink-0">
                                        <div class="bg-light px-3 py-1 rounded-pill border">
                                            <strong class="text-dark">1</strong> Antworten
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                                                                    <div class="card border-0 shadow-sm hover-row transition-all bg-white rounded-4 overflow-hidden border border-light-subtle">
                            <div class="card-body p-3">
                                <div class="row align-items-center g-3">
                                    <div class="col-md-9 d-flex align-items-center">
                                        <div class="w-100">
                                            <a href="/topic/10319-musikpavillon-auf-dem-croydon-road-recreation-ground/msg-265734#msg-265734" 
                                               class="text-dark fw-bold text-decoration-none hover-info-link h6 d-block mb-2 text-wrap text-md-truncate">
                                                                                                Musikpavillon auf dem Croydon Road Recreation Ground                                            </a>
                                            <div class="text-muted small d-flex align-items-center flex-wrap gap-2 font-monospace" style="font-size: 11px;">
                                                <span><i class="bi bi-person-fill text-danger me-1"></i>von <strong class="text-dark fw-semibold">Reinhold</strong></span>
                                                <span>&bull;</span>
                                                <span><i class="bi bi-calendar3 text-muted me-1"></i>16.08.2026 12:24 Uhr</span>
                                                <span>&bull;</span>
                                                <span class="badge rounded-pill border px-2 py-1 text-dark" 
                                                      style="border-color: hsla(101, 70%, 40%, 1) !important; background-color: hsla(101, 70%, 40%, 0.08) !important; font-size: 0.65rem; font-weight: 600;">
                                                    db::Wallfahrtsorte für den Bowiefan                                                </span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 d-flex justify-content-start justify-content-md-end text-muted font-monospace xsmall uppercase gap-2 flex-shrink-0">
                                        <div class="bg-light px-3 py-1 rounded-pill border">
                                            <strong class="text-dark">0</strong> Antworten
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                                                                    <div class="card border-0 shadow-sm hover-row transition-all bg-white rounded-4 overflow-hidden border border-light-subtle">
                            <div class="card-body p-3">
                                <div class="row align-items-center g-3">
                                    <div class="col-md-9 d-flex align-items-center">
                                        <div class="w-100">
                                            <a href="/topic/10318-buch-david-bowie-alle-songs-die-geschichten-hinter-den-tracks/msg-265729#msg-265729" 
                                               class="text-dark fw-bold text-decoration-none hover-info-link h6 d-block mb-2 text-wrap text-md-truncate">
                                                                                                [Buch] David Bowie - Alle Songs: Die Geschichten hinter den Tracks                                            </a>
                                            <div class="text-muted small d-flex align-items-center flex-wrap gap-2 font-monospace" style="font-size: 11px;">
                                                <span><i class="bi bi-person-fill text-danger me-1"></i>von <strong class="text-dark fw-semibold">Reinhold</strong></span>
                                                <span>&bull;</span>
                                                <span><i class="bi bi-calendar3 text-muted me-1"></i>14.08.2026 14:19 Uhr</span>
                                                <span>&bull;</span>
                                                <span class="badge rounded-pill border px-2 py-1 text-dark" 
                                                      style="border-color: hsla(329, 70%, 40%, 1) !important; background-color: hsla(329, 70%, 40%, 0.08) !important; font-size: 0.65rem; font-weight: 600;">
                                                    db::Bowielogie                                                </span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 d-flex justify-content-start justify-content-md-end text-muted font-monospace xsmall uppercase gap-2 flex-shrink-0">
                                        <div class="bg-light px-3 py-1 rounded-pill border">
                                            <strong class="text-dark">0</strong> Antworten
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                                                                    <div class="card border-0 shadow-sm hover-row transition-all bg-white rounded-4 overflow-hidden border border-light-subtle">
                            <div class="card-body p-3">
                                <div class="row align-items-center g-3">
                                    <div class="col-md-9 d-flex align-items-center">
                                        <div class="w-100">
                                            <a href="/topic/9718-you-belong-in-rock-n-apos-roll-sdt-27-11-2022/msg-265727#msg-265727" 
                                               class="text-dark fw-bold text-decoration-none hover-info-link h6 d-block mb-2 text-wrap text-md-truncate">
                                                                                                You Belong In Rock N&apos; Roll | SdT 27.11.2022                                            </a>
                                            <div class="text-muted small d-flex align-items-center flex-wrap gap-2 font-monospace" style="font-size: 11px;">
                                                <span><i class="bi bi-person-fill text-danger me-1"></i>von <strong class="text-dark fw-semibold">Volker</strong></span>
                                                <span>&bull;</span>
                                                <span><i class="bi bi-calendar3 text-muted me-1"></i>13.08.2026 08:43 Uhr</span>
                                                <span>&bull;</span>
                                                <span class="badge rounded-pill border px-2 py-1 text-dark" 
                                                      style="border-color: hsla(195, 70%, 40%, 1) !important; background-color: hsla(195, 70%, 40%, 0.08) !important; font-size: 0.65rem; font-weight: 600;">
                                                    Song des Tages                                                </span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 d-flex justify-content-start justify-content-md-end text-muted font-monospace xsmall uppercase gap-2 flex-shrink-0">
                                        <div class="bg-light px-3 py-1 rounded-pill border">
                                            <strong class="text-dark">6</strong> Antworten
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                                    </div>
            
            <!-- CTA Community Call -->
            <div class="card border-0 shadow-lg text-white rounded-4 p-4 p-md-5 mb-4 position-relative overflow-hidden" 
                 style="background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%); border: 1px solid rgba(255, 255, 255, 0.1);">
                <div class="position-relative z-2">
                    <h3 class="fw-bold mb-2" style="font-family: 'Outfit', sans-serif;">Werde Teil der David Bowie Community</h3>
                    <div class="text-white-50 small mb-4" style="max-width: 600px;">
                        Tausche dich mit hunderten Sammlern über Konzerte, Bücher, Songtexte und Raritäten aus. Folge diesen 3 einfachen Schritten zur Teilnahme:
                        <ul class="mt-2 ps-3 text-start text-white-50" style="list-style-type: decimal;">
                            <li>Klicke unten auf den gelben Button <strong>"Registrieren"</strong>.</li>
                            <li>Wähle einen Benutzernamen und trage deine E-Mail-Adresse ein.</li>
                            <li>Bestätige dein Konto über den Link in deiner E-Mail und erstelle sofort deinen ersten Beitrag.</li>
                        </ul>
                    </div>
                                            <div class="d-flex flex-wrap gap-2">
                            <a href="index.php?action=register" class="btn btn-warning fw-bold uppercase font-monospace px-4 py-2 shadow border-0">
                                Registrieren
                            </a>
                            <a href="index.php?action=login" class="btn btn-outline-light fw-bold uppercase font-monospace px-4 py-2">
                                Zur Anmeldung
                            </a>
                        </div>
                                    </div>
            </div>
        </div>

        <!-- Right Side: History & Stats -->
        <div class="col-lg-4 col-12">
            
            <!-- Song des Tages Card (Desktop only) -->
                            <div id="sotd" class="card border-0 shadow-sm rounded-4 p-4 text-center bg-dark text-white border border-secondary border-opacity-25 mb-4 transition-card sotd-premium d-none d-lg-block">
                    <i class="bi bi-music-note-beamed text-danger fs-1 mb-2 animate-pulse"></i>
                    <h4 class="h6 fw-bold text-white mb-1 uppercase tracking-wider">Song des Tages</h4>
                    <p class="text-white-50 xsmall mb-2 font-monospace uppercase" style="font-size: 0.65rem;">Täglich neu &bull; Board 105</p>
                    <div class="border-top border-secondary border-opacity-50 pt-3 mt-2 text-start">
                        <strong class="text-white small d-block mb-1 text-truncate" title="87 and Cry | SdT 26.05.2021">
                            87 and Cry | SdT 26.05.2021                        </strong>
                        <p class="text-white-50 xsmall mb-3" style="display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.75rem; line-height: 1.4;">
                            87 and Cry Betreff: EIGHTYSEVEN and Cry | SdT “TWENTY SIX dollars in my hand”. TVC one FIVE.2021. We live for just these TWENTY years till the TWENTY-FIRST century lose “EIGHTY-SEVEN and cry“ and Cry Was gab es Schöneres, als in den Tagen, der nun...                        </p>
                    </div>
                    <a href="index.php?topic=9230.0" 
                       class="btn btn-sm btn-danger w-100 fw-bold font-monospace py-2">
                        <i class="bi bi-chat-fill me-1"></i> Zur Diskussion
                    </a>
                </div>
            
            <!-- Webradio Floating Card (Desktop only) -->
            <div class="card border-0 shadow-sm rounded-4 p-4 text-center bg-white border border-light-subtle mb-4 d-none d-lg-block">
                <i class="bi bi-radio text-danger fs-1 mb-2"></i>
                <h4 class="h6 fw-bold text-dark mb-1">Bowie-Radio Live</h4>
                <p class="text-muted xsmall mb-3">Musik rund um die Uhr direkt in deinem Browser.</p>
                <a href="#" onclick="window.open('/index.php?action=radio', 'BowieRadio', 'width=500,height=600,scrollbars=no,resizable=no,status=no,menubar=no'); return false;" 
                   class="btn btn-sm btn-outline-danger w-100 fw-bold font-monospace py-2">
                    <span class="badge bg-danger me-1.5 animate-pulse" style="width: 6px; height: 6px; display: inline-block; vertical-align: middle;"></span> Zum Radio
                </a>
            </div>

            <!-- Widget: Heute in der Bowie-Geschichte -->
                            <div class="card border-0 shadow-sm rounded-4 overflow-hidden mb-4 bg-dark text-white border border-secondary border-opacity-25">
                    <div class="p-3 uppercase font-monospace xsmall tracking-wider fw-bold border-bottom border-secondary d-flex justify-content-between align-items-center" 
                         style="background-color: rgba(220, 53, 69, 0.12);">
                        <span><i class="bi bi-calendar-event text-danger me-2"></i>Heute in der Bowie-Geschichte</span>
                        <span class="badge bg-danger">17.08.</span>
                    </div>
                    <div class="card-body p-3 font-sans">
                        <div class="timeline-v2 position-relative ps-2">
                            <div class="timeline-line position-absolute start-0 top-0 bottom-0 bg-secondary opacity-25" style="width: 2px; left: 9px !important;"></div>
                            <div class="d-flex flex-column gap-3 position-relative">
                                                                                                        <div class="timeline-item position-relative ps-4">
                                        <div class="timeline-dot position-absolute bg-danger rounded-circle" style="width: 10px; height: 10px; left: 5px; top: 6px; box-shadow: 0 0 8px #dc3545;"></div>
                                        <div class="small fw-bold text-light">Konzert: Serious Moonlight</div>
                                        <div class="xsmall font-monospace mt-1 text-white-50">
                                            <span class="badge bg-secondary-subtle text-light-50 font-monospace me-1.5 px-2 py-0.5" style="font-size: 0.65rem;">1983</span>
                                                                                            &bull; <i class="bi bi-geo-alt-fill text-danger me-0.5"></i> Arizona Veterans Memorial Coliseum, Phoenix (United States)                                                                                    </div>
                                    </div>
                                                                                                        <div class="timeline-item position-relative ps-4">
                                        <div class="timeline-dot position-absolute bg-danger rounded-circle" style="width: 10px; height: 10px; left: 5px; top: 6px; box-shadow: 0 0 8px #dc3545;"></div>
                                        <div class="small fw-bold text-light">Konzert: Glass Spider</div>
                                        <div class="xsmall font-monospace mt-1 text-white-50">
                                            <span class="badge bg-secondary-subtle text-light-50 font-monospace me-1.5 px-2 py-0.5" style="font-size: 0.65rem;">1987</span>
                                                                                            &bull; <i class="bi bi-geo-alt-fill text-danger me-0.5"></i> Commonwealth Stadium, Edmonton (Canada)                                                                                    </div>
                                    </div>
                                                            </div>
                        </div>
                        <div class="border-top border-secondary border-opacity-50 pt-2.5 mt-3 text-center">
                            <a href="index.php?action=archive&sa=history" class="text-danger small font-monospace text-decoration-none hover-underline">
                                Ganzen Kalender ansehen <i class="bi bi-arrow-right ms-1"></i>
                            </a>
                        </div>
                    </div>
                </div>
            
            <!-- Global Stats Card -->
            <div class="card border-0 shadow-sm mb-4 bg-dark text-white overflow-hidden rounded-4 border border-secondary border-opacity-25">
                <div class="p-3 uppercase font-monospace xsmall tracking-wider fw-bold border-bottom border-secondary" style="background-color: rgba(0,0,0,0.25);">
                    <i class="bi bi-bar-chart-fill text-danger me-2"></i>Archiv-Statistik
                </div>
                <div class="card-body font-monospace small">
                    <div class="d-flex justify-content-between mb-2">
                        <span>Registrierte Sammler:</span>
                        <strong class="text-info">260</strong>
                    </div>
                    <div class="d-flex justify-content-between mb-2">
                        <span>Diskussions-Themen:</span>
                        <strong class="text-light">9.004</strong>
                    </div>
                    <div class="d-flex justify-content-between mb-2">
                        <span>Beiträge & Reviews:</span>
                        <strong class="text-danger">258.517</strong>
                    </div>
                    <div class="border-top border-secondary pt-2 mt-2 xsmall text-white-50 text-truncate">
                        Neuestes Mitglied: <strong class="text-white">ArnoldCorns</strong>
                    </div>
                </div>
            </div>

        </div>

    </div>

    <!-- FAQ SECTION (Answer-First Q&A for SEO/GEO crawlers) -->
    <div class="mt-5 pt-4 border-top border-light-subtle">
        <div class="d-flex align-items-center gap-2 mb-4">
            <span class="badge bg-danger rounded-circle p-1" style="width: 10px; height: 10px;"></span>
            <h2 class="h5 fw-bold text-dark mb-0 font-monospace text-uppercase tracking-wider">Häufig gestellte Fragen (FAQ)</h2>
        </div>
        
        <div class="row g-4 text-start mb-4">
            <div class="col-md-6 col-12">
                <div class="p-3 bg-white rounded-4 shadow-sm border border-light-subtle h-100">
                    <h3 class="h6 fw-bold text-dark mb-2">Was bietet das David Bowie Forum Deutschland?</h3>
                    <p class="text-muted small mb-0">
                        Das Forum ist eine unabhängige, deutschsprachige Fan-Community. Es bietet ein detailliertes Konzert-Archiv, Diskografien, Live-Besetzungen von 1972 bis 2004 sowie ein Diskussionsforum für den täglichen Sammler-Austausch.
                    </p>
                </div>
            </div>
            
            <div class="col-md-6 col-12">
                <div class="p-3 bg-white rounded-4 shadow-sm border border-light-subtle h-100">
                    <h3 class="h6 fw-bold text-dark mb-2">Ist die Anmeldung im Forum kostenlos?</h3>
                    <p class="text-muted small mb-0">
                        Ja, die Registrierung und die Nutzung aller Archiv- und Foren-Funktionen sind komplett kostenlos.
                    </p>
                </div>
            </div>
            
            <div class="col-md-6 col-12">
                <div class="p-3 bg-white rounded-4 shadow-sm border border-light-subtle h-100">
                    <h3 class="h6 fw-bold text-dark mb-2">Wo finde ich Setlists und Tour-Daten?</h3>
                    <p class="text-muted small mb-0">
                        Alle Konzertdaten und Setlists sind in der <strong>Archiv-Zentrale</strong> unter dem Menüpunkt "Tour-Archiv" chronologisch aufgelistet und mit Setlist.fm abgeglichen.
                    </p>
                </div>
            </div>
            
            <div class="col-md-6 col-12">
                <div class="p-3 bg-white rounded-4 shadow-sm border border-light-subtle h-100">
                    <h3 class="h6 fw-bold text-dark mb-2">Wie kann ich mich an Diskussionen beteiligen?</h3>
                    <p class="text-muted small mb-0">
                        Nach einer kurzen Registrierung mit E-Mail-Bestätigung kannst du sofort eigene Beiträge verfassen, Themen erstellen, Fotos in der Galerie hochladen und mit anderen Fans chatten.
                    </p>
                </div>
            </div>
        </div>
    </div>

    <!-- FAQ JSON-LD Schema.org -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Was bietet das David Bowie Forum Deutschland?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Das Forum ist eine unabhängige, deutschsprachige Fan-Community. Es bietet ein detailliertes Konzert-Archiv, Diskografien, Live-Besetzungen von 1972 bis 2004 sowie ein Diskussionsforum für den täglichen Sammler-Austausch."
          }
        },
        {
          "@type": "Question",
          "name": "Ist die Anmeldung im Forum kostenlos?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Ja, die Registrierung und die Nutzung aller Archiv- und Foren-Funktionen sind komplett kostenlos."
          }
        },
        {
          "@type": "Question",
          "name": "Wo finde ich Setlists und Tour-Daten?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Alle Konzertdaten und Setlists sind in der Archiv-Zentrale unter dem Menüpunkt 'Tour-Archiv' chronologisch aufgelistet und mit Setlist.fm abgeglichen."
          }
        },
        {
          "@type": "Question",
          "name": "Wie kann ich mich an Diskussionen beteiligen?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Nach einer kurzen Registrierung mit E-Mail-Bestätigung kannst du sofort eigene Beiträge verfassen, Themen erstellen, Fotos in der Galerie hochladen und mit anderen Fans chatten."
          }
        }
      ]
    }
    </script>

</div>

<!-- Styles for 2026 Grid Aesthetics -->
<style>
    .fw-black {
        font-weight: 900 !important;
    }
    .xsmall {
        font-size: 0.75rem;
    }
    .text-light-50 {
        color: rgba(241, 245, 249, 0.85) !important;
    }
    .icon-circle {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        transition: transform 0.3s ease;
    }
    .grid-action-card {
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
    }
    .grid-action-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(220, 53, 69, 0.4) !important;
    }
    .grid-action-card:hover .icon-circle {
        transform: scale(1.1);
    }
    .hover-info-link {
        transition: color 0.15s ease-in-out;
    }
    .hover-info-link:hover {
        color: var(--bowie-red) !important;
        text-decoration: underline !important;
    }
    .hover-row {
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .hover-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05) !important;
        border-color: #cbd5e1 !important;
    }
    .btn-hover-neon {
        transition: all 0.3s ease;
    }
    .btn-hover-neon:hover {
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.6) !important;
        transform: translateY(-1px);
    }
    @keyframes glowPulseAnimation {
        0% { opacity: 0.12; }
        50% { opacity: 0.22; }
        100% { opacity: 0.12; }
    }
    .glow-pulse {
        animation: glowPulseAnimation 4s infinite ease-in-out;
    }
    @media (max-width: 768px) {
        .hero-portal h1 {
            font-size: 2.2rem !important;
        }
        .hero-portal p.lead {
            font-size: 1rem !important;
        }
        .hero-portal {
            min-height: auto !important;
            padding-top: 3rem !important;
            padding-bottom: 3rem !important;
        }
    }
    .sotd-premium {
        background: linear-gradient(135deg, #111622 0%, #1a103c 100%) !important;
        border: 1px solid rgba(220, 53, 69, 0.25) !important;
        box-shadow: 0 8px 32px rgba(220, 53, 69, 0.15) !important;
        position: relative;
        overflow: hidden;
    }
    .sotd-premium::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(220, 53, 69, 0.08) 0%, transparent 70%);
        pointer-events: none;
    }
    .timeline-v2 {
        padding-left: 5px;
    }
    .timeline-dot {
        transition: transform 0.2s ease;
    }
    .timeline-item:hover .timeline-dot {
        transform: scale(1.3);
    }
</style>
    </main>

    <footer class="footer mt-auto py-4 bg-dark text-white-50 border-top border-secondary">
        <div class="container text-center" style="max-width: 1248px;">
            <div class="row align-items-center g-3">
                
                <div class="col-md-6 text-md-start small">
                    <span class="d-block">&copy; 2026 <strong class="text-white">David Bowie Forum</strong></span>
                    <span class="xsmall text-white-50">Powered by ADR-Framework &bull; Service Worker Active</span>
                </div>
                
                <div class="col-md-6 text-md-end mt-2 mt-md-0 small">
                    <a href="/index.php?action=board" class="text-white-50 text-decoration-none me-3 hover-link">Forum</a>
                    <a href="/index.php?action=about" class="text-white-50 text-decoration-none me-3 hover-link">Über mich & das Projekt</a>
                    <a href="/index.php?action=impressum" class="text-white-50 text-decoration-none me-3 hover-link">Impressum</a>
                    <a href="/index.php?action=datenschutz" class="text-white-50 text-decoration-none hover-link">Datenschutz</a>
                </div>
                
            </div>
            <div class="row mt-3 border-top border-secondary border-opacity-25 pt-2">
                <div class="col-12 text-center xsmall text-white-50">
                    Diese Website steht in keiner Verbindung zum Bowie-Nachlass (Bowie Estate) oder dessen Vertretern.
                </div>
            </div>
        </div>
    </footer>

    <div id="cookie-consent-banner" class="cookie-banner fixed-bottom p-3 bg-dark text-white border-top border-secondary shadow-lg d-none animate-fade-in" style="z-index: 1060;">
        <div class="container">
            <div class="row align-items-center g-3">
                <div class="col-12 col-md-8 col-lg-9">
                    <h5 class="h6 text-warning mb-1 uppercase tracking-wider">
                        <i class="bi bi-shield-check me-2"></i>Datenschutz & Sammler-Privatsphäre
                    </h5>
                    <div class="xsmall text-muted mb-0">
                        Dieses Archiv nutzt Cookies und Dienste zur Optimierung der Performance und Sammler-Privatsphäre:
                        <ul class="mb-0 mt-1 ps-3 text-start" style="list-style-type: disc;">
                            <li><strong>Technisch notwendig:</strong> Sichern des Login-Status und Betrieb des schnellen ADR-Frameworks.</li>
                            <li><strong>Spam-Schutz:</strong> Cloudflare Turnstile zur Absicherung von Formularen.</li>
                            <li><strong>Reichweitenmessung (Optional):</strong> Google Analytics zur anonymen Reichweitenmessung (nur bei Einwilligung).</li>
                        </ul>
                    </div>
                </div>
                <div class="col-12 col-md-4 col-lg-3 text-md-end d-grid d-md-block">
                    <button id="btn-accept-cookies" class="btn btn-sm btn-outline-warning uppercase xsmall tracking-wider px-3 py-2 w-100 w-md-auto transition-card">
                        Einverstanden
                    </button>
                </div>
            </div>
        </div>
    </div>

<style>
/* Consolidated Velvet-Gold & Blackstar UI Core Styles */
.cookie-banner {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.tracking-wider { 
    letter-spacing: 1px; 
}
.uppercase { 
    text-transform: uppercase; 
}
.cookie-banner .text-muted { 
    color: #cbd5e1 !important; 
}
.hover-link:hover {
    color: #0dcaf0 !important;
    text-decoration: underline !important;
}
.animate-fade-in {
    animation: fadeInCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInCookie {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
</style>
 
<script>
document.addEventListener('DOMContentLoaded', function () {
    const consentStorageKey = 'dbde_forum_consent';
    const banner = document.getElementById('cookie-consent-banner');
    const acceptBtn = document.getElementById('btn-accept-cookies');

    if (!localStorage.getItem(consentStorageKey) && banner) {
        setTimeout(() => {
            banner.classList.remove('d-none');
        }, 800);
    }

    if (acceptBtn && banner) {
        acceptBtn.addEventListener('click', function (e) {
            e.preventDefault();
            localStorage.setItem(consentStorageKey, 'granted');

            // Google Tag Manager nach Einwilligung laden
            if (typeof window.initGoogleTagManager === 'function') {
                window.initGoogleTagManager();
            }

            banner.style.transition = 'transform 0.3s ease, opacity 0.3s ease';
            banner.style.transform = 'translateY(100%)';
            banner.style.opacity = '0';

            setTimeout(() => {
                banner.remove();
            }, 300);
        });
    }
});
</script>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>

<script src="/assets/js/app.js"></script>
<script src="/assets/js/upload.js"></script>
<script src="/assets/js/composer.js"></script>

<!-- ============================================================
     PWA: Service Worker Registration + Install Prompt
     ============================================================ -->
<script>
(function () {
    'use strict';

    // --- 1. Service Worker registrieren ---
    if ('serviceWorker' in navigator) {
        window.addEventListener('load', function () {
            navigator.serviceWorker.register('/service-worker.js', { scope: '/' })
                .then(function (reg) {
                    console.log('[PWA] Service Worker registriert:', reg.scope);

                    // Auf neue Version prüfen
                    reg.addEventListener('updatefound', function () {
                        const newWorker = reg.installing;
                        if (!newWorker) return;
                        newWorker.addEventListener('statechange', function () {
                            if (newWorker.state === 'installed' && navigator.serviceWorker.controller) {
                                // Neues Update verfügbar – Toast anzeigen
                                showUpdateToast();
                            }
                        });
                    });
                })
                .catch(function (err) {
                    console.warn('[PWA] Service Worker Fehler:', err);
                });

            // SW-Nachrichten empfangen (z.B. SYNC_COMPLETE)
            navigator.serviceWorker.addEventListener('message', function (event) {
                if (event.data && event.data.type === 'SYNC_COMPLETE') {
                    console.log('[PWA] Offline-Sync abgeschlossen.');
                }
            });
        });
    }

    // --- 2. PWA Install Prompt ---
    let deferredInstallPrompt = null;
    const INSTALL_DISMISSED_KEY = 'bowie_pwa_install_dismissed';

    window.addEventListener('beforeinstallprompt', function (e) {
        e.preventDefault();
        deferredInstallPrompt = e;

        // Nur zeigen wenn nicht bereits dismissed
        const dismissed = localStorage.getItem(INSTALL_DISMISSED_KEY);
        if (!dismissed) {
            setTimeout(showInstallBanner, 3000);
        }
    });

    window.addEventListener('appinstalled', function () {
        deferredInstallPrompt = null;
        hideInstallBanner();
        localStorage.setItem(INSTALL_DISMISSED_KEY, 'installed');
        console.log('[PWA] App erfolgreich installiert!');
    });

    function showInstallBanner() {
        const banner = document.getElementById('pwa-install-banner');
        if (banner) {
            banner.classList.remove('d-none');
            setTimeout(() => banner.classList.add('pwa-banner-visible'), 50);
        }
    }

    function hideInstallBanner() {
        const banner = document.getElementById('pwa-install-banner');
        if (banner) {
            banner.classList.remove('pwa-banner-visible');
            setTimeout(() => banner.classList.add('d-none'), 350);
        }
    }

    // Install-Button Click
    document.addEventListener('DOMContentLoaded', function () {
        const btnInstall = document.getElementById('btn-pwa-install');
        if (btnInstall) {
            btnInstall.addEventListener('click', function () {
                if (!deferredInstallPrompt) return;
                deferredInstallPrompt.prompt();
                deferredInstallPrompt.userChoice.then(function (choice) {
                    if (choice.outcome === 'accepted') {
                        console.log('[PWA] Nutzer hat Installation bestätigt.');
                    } else {
                        localStorage.setItem(INSTALL_DISMISSED_KEY, 'dismissed');
                    }
                    deferredInstallPrompt = null;
                    hideInstallBanner();
                });
            });
        }

        const btnDismiss = document.getElementById('btn-pwa-dismiss');
        if (btnDismiss) {
            btnDismiss.addEventListener('click', function () {
                localStorage.setItem(INSTALL_DISMISSED_KEY, 'dismissed');
                hideInstallBanner();
            });
        }
    });

    // --- 3. Update-Toast ---
    function showUpdateToast() {
        const toast = document.getElementById('pwa-update-toast');
        if (toast && window.bootstrap) {
            const bsToast = new bootstrap.Toast(toast, { autohide: false });
            bsToast.show();
        }
    }

    document.addEventListener('DOMContentLoaded', function () {
        const btnUpdate = document.getElementById('btn-pwa-update');
        if (btnUpdate) {
            btnUpdate.addEventListener('click', function () {
                navigator.serviceWorker.getRegistration().then(function (reg) {
                    if (reg && reg.waiting) {
                        reg.waiting.postMessage({ type: 'SKIP_WAITING' });
                    }
                    window.location.reload();
                });
            });
        }
    });
}());
</script>

<!-- PWA Install Banner -->
<div id="pwa-install-banner" class="d-none" style="
    position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 2rem); max-width: 420px;
    background: linear-gradient(135deg, #111622 0%, #1e293b 100%);
    border: 1px solid rgba(180,20,20,0.4);
    border-radius: 16px; padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 2000;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
    opacity: 0; transform: translateX(-50%) translateY(20px);">
    <style>
        #pwa-install-banner.pwa-banner-visible {
            opacity: 1 !important;
            transform: translateX(-50%) translateY(0) !important;
        }
    </style>
    <div class="d-flex align-items-center gap-3">
        <img src="/assets/icons/icon-72.png" width="48" height="48"
             alt="BowieForum Icon" style="border-radius:12px; flex-shrink:0;">
        <div class="flex-grow-1 min-w-0">
            <div class="fw-bold text-white" style="font-size:.9rem;">
                ⚡ BowieForum als App installieren
            </div>
            <div class="text-white-50 xsmall mt-1">
                Schneller Zugriff, Offline-Modus & Push-Benachrichtigungen
            </div>
        </div>
        <button id="btn-pwa-dismiss" class="btn-close btn-close-white flex-shrink-0"
                aria-label="Schließen" style="font-size:.7rem;"></button>
    </div>
    <div class="d-flex gap-2 mt-3">
        <button id="btn-pwa-install"
                class="btn btn-danger btn-sm flex-grow-1 fw-semibold"
                style="border-radius:10px;">
            <i class="bi bi-download me-1"></i> Jetzt installieren
        </button>
        <button onclick="document.getElementById('pwa-install-banner').classList.add('d-none')"
                class="btn btn-outline-secondary btn-sm"
                style="border-radius:10px; color:#94a3b8; border-color:rgba(255,255,255,0.15);">
            Später
        </button>
    </div>
</div>

<!-- PWA Update Toast -->
<div id="pwa-update-toast" class="toast align-items-center text-white border-0"
     role="alert" aria-live="assertive" aria-atomic="true"
     style="position:fixed; bottom:80px; right:1rem; z-index:2001;
            background: linear-gradient(135deg,#111622,#1e293b);
            border:1px solid rgba(180,20,20,0.4) !important; border-radius:12px;">
    <div class="d-flex">
        <div class="toast-body xsmall">
            <i class="bi bi-arrow-clockwise me-1 text-warning"></i>
            <strong>Neue Version verfügbar!</strong><br>
            <span class="text-white-50">Forum-Update bereit zum Laden.</span>
        </div>
        <div class="d-flex align-items-center me-2 ms-auto flex-column gap-1 justify-content-center">
            <button id="btn-pwa-update" type="button"
                    class="btn btn-warning btn-sm fw-semibold" style="font-size:11px; border-radius:8px; white-space:nowrap;">
                Neu laden
            </button>
            <button type="button" class="btn btn-sm btn-outline-secondary"
                    data-bs-dismiss="toast" aria-label="Close"
                    style="font-size:10px; border-radius:8px; color:#94a3b8; border-color:rgba(255,255,255,0.15); white-space:nowrap;">
                Später
            </button>
        </div>
    </div>
</div>

<!-- Cloudflare Web Analytics -->
<script type="module">
(function() {
    const hostname = window.location.hostname;
    if (window.isLocalDev ||
        hostname === 'localhost' || 
        hostname === '127.0.0.1' || 
        hostname.endsWith('.local') ||
        hostname.startsWith('192.168.') || 
        hostname.startsWith('10.') || 
        hostname.startsWith('172.')) {
        console.log('[Analytics] Cloudflare Web Analytics bypassed in local development.');
        return;
    }
    const script = document.createElement('script');
    script.type = 'module';
    script.src = 'https://static.cloudflareinsights.com/beacon.min.js';
    script.setAttribute('data-cf-beacon', '{"token": "898cc0a551964fdb8ec83eb20cfacb70"}');
    document.head.appendChild(script);
})();
</script>
<!-- End Cloudflare Web Analytics -->

</body>
</html>