<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta property="og:title" content="FiveM Moddingstore - NeroV">
    <meta property="og:description" content="Erhalte zuerst die Ware, dann bezahle – anonym, schnell, risikofrei! Keine Lust mehr auf stundenlanges Farmen? Bestelle noch heute anonym und werde reich auf NeroV. Auf unserer Seite findest du alles: Geld, Waffen, Aufsätze, Schutzwesten, Munitionsboxen und jedes Item des Servers in unbegrenzter Anzahl!">
    <meta property="og:image" content="https://i.ibb.co/QPbZXCn/image.png">
    <meta property="og:url" content="http://moddingshop.free.nf/">
    <meta property="og:type" content="website">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <title>Moddingstore</title>
</head>
<style>
    html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    width: 100%; /* Stellt sicher, dass keine Elemente die Breite des Viewports überschreiten */
}

* {
    box-sizing: border-box; /* Verhindert, dass Padding/Margin die Breite eines Elements vergrößert */
}
    /* Allgemeine Stile */
    body {
        font-family: 'Roboto', Arial, sans-serif;
        background-color: #101010;
        color: #f0f0f0;
        margin: 0;
        padding: 0;
        
    }

    header {
        background-color: #101010;
        color: white;
        text-align: center;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background: url(https://i.imgur.com/Z7qJ0pT.png);
    width: 100%;
    height: 50%;
    background-repeat: no-repeat;
    left: 0;
    right: 0;
    background-position: center;
    top: 0;
    background-attachment: local;
    background-size: 100% 100%;
    margin-top: 110px; /* Platz für Sale-Header + Navbar */
    text-align: center;
    }

    .container {
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 130px;
    }

    h2 {
        text-align: center;
        margin-bottom: 30px;
        color: #ff5100;
    }

    /* Produktkarten */
    .sale-badge {
        position: absolute;
        top: 10px;
        left: 42px;
        background: linear-gradient(180deg, rgb(143 152 243 / 0%) 0%, rgba(202, 101, 7, 0.8) 100%);
        color: white;
        font-size: 14px;
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 5px;
        z-index: 10;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    }

    .product-card {
        position: relative;
        background: #1a1a1a;
        border: 1px solid #444;
        margin: 15px;
        padding: 20px;
        text-align: center;
        border-radius: 12px;
        width: 200px;
        display: inline-block;
        vertical-align: top;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        overflow: hidden;
    }

    .price {
    font-size: 18px;
    font-weight: bold;
    color: #ff5100; /* Goldfarbig */
    margin: 10px 0; /* Abstand zum Rest */
    text-align: center; /* Zentriert */
    background-color: rgba(255, 255, 255, 0.062); /* Leicht durchsichtiger Hintergrund */
    padding: 5px 10px;
    border-radius: 8px;
    /* display: inline-block; */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    }

    .product-card img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .product-card h3 {
        margin: 10px 0;
        font-size: 18px;
        color: #ff5100;
    }

    .product-card button {
        background-color: #ff5100;
        color: #101010;
        border: none;
        padding: 10px;
        cursor: pointer;
        border-radius: 4px;
        margin-top: 10px;
        font-weight: bold;
        font-size: 14px;
        transition: background-color 0.3s;
    }

    .product-card button:hover {
        background-color: #ee9e78;
    }

    /* Produktbeschreibung */
    .product-description {
        display: block;
        text-align: left;
        margin-top: 10px;
        font-size: 14px;
        color: #ccc;
    }

    .product-description img {
        width: 25px;
        height: 25px;
        vertical-align: middle;
        margin-right: 5px;
    }

    /* Warenkorb */
    .cart {
        position: fixed;
        top: 130px;
        right: 20px;
        background-color: #2e2e2ec0;
        color: white;
        padding: 20px;
        border: 1px solid #272626;
        border-radius: 8px;
        max-width: 300px;
        width: 100%;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }

    .cart h3 {
        margin-top: 0;
    }

    .cart ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .cart ul li {
        margin: 5px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #ff5100;
    }

    .cart .total {
        font-weight: bold;
        margin-top: 10px;
        font-size: 16px;
    }

    .cart .remove {
        cursor: pointer;
        color: #ff6f61;
        font-size: 14px;
    }

    /* Navigation */
    nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Deckt die gesamte Breite ab */
    background-color: #ff5100ce;
    padding: 13px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Stellt sicher, dass die Navbar über anderen Elementen liegt */
}

nav {
    position: fixed;
    top: 50px; /* Platz für den Sale-Header */
    left: 0;
    width: 100%;
    background-color: #ff5100ce;
    padding: 13px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3d3a38;
    text-decoration: underline;
}

    /* Scrollverhalten */
    html {
        scroll-behavior: smooth;
    }

    /* Icons Styling */
    .icon {
        margin-right: 10px;
    }
        html {
            scroll-behavior: smooth;
        }
        .order-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .order-popup-content {
            background: #1b1b1b;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        .order-popup-content h2 {
            margin-top: 0;
        }
        .order-popup-content label {
            color: #ffffff;
            display: block;
            margin-top: 10px;
            font-weight: bold;
        }
        .order-popup-content input,
        .order-popup-content textarea {
            width: calc(100% - 20px);
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #9e9e9e;
    border-radius: 4px;
    background: #7d7d7d33;
        }
        .order-popup-content button {
            margin-top: 20px;
            padding: 10px;
            width: 100%;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        .order-popup-content button:first-child {
            background: #333;
            color: white;
        }
        .order-popup-content button:last-child {
            background: #ccc;
            color: black;
        }
        @keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
.sale-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #000, #444);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sale-header a {
    color: #ff4c4c;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.sale-header a:hover {
    text-decoration: underline;
}

.product-card.custom-border {
    border: 1px solid #ff5722; /* Orange Border */
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.6); /* Leuchtender Schein */
    transform: scale(1.05); /* Leicht größer als andere Karten */
    background: #222; /* Optional: Etwas dunklerer Hintergrund */
    z-index: 1; /* Damit es über anderen Karten liegt */
    transition: all 0.3s ease; /* Smooth Transition */
}


.coupon-section {
    margin-bottom: 15px; /* Abstand zum "Bestellen"-Button */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coupon-section label {
    font-weight: bold;
    color: #ffffff; /* Passe die Farbe nach Bedarf an */
}

.coupon-section input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.coupon-section button {
    padding: 5px 10px;
    background-color: #ff5100;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.coupon-section button:hover {
    background-color: #963407;
}




.styled-button {
    padding: 5px 10px;
    background-color: #ff5100;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.styled-button:hover {
    background-color: #a53704;
}


.styledb-button {
    padding: 8px 10px;
    background-color: #ff5100;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.styledb-button:hover {
    background-color: #a53704;
}

#coupon-message {
    color: green;
    display: none; /* Standardmäßig ausblenden */
}

    </style>
<link rel="icon" type="image/x-icon" href="img/logo.png">


<body>

<!-- Tutorial-Popup -->
<div id="tutorial-popup" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 9999; align-items: center; justify-content: center;">
    <div style="background: #101010; width: 90%; max-width: 600px; padding: 20px; border-radius: 10px; text-align: center; position: relative; color: black;">
        <h2 style="margin-top: 0; color: #c8c7c7;">Willkommen im Moddingstore!</h2>
        <h2 style="margin-top: 0; color: rgb(239 255 0); font-size: 16px">Du Zahlst erst nachdem du deine Bestellung Ingame erhalten hast!</h2>
        <p style="color: #c8c7c7; font-size: 16px;">In diesem Video zeigen wir dir, wie du Bestellungen aufgibst und was du beachten musst:</p>
                        <h4 style="margin-top: 0; font-size: 16px; color: #c8c7c7;">(UNBEDINGT ANSCHAUEN)</h4>
        <div style="width: 100%; border-radius: 10px; overflow: hidden;">
            <iframe id="tutorial-video" src="https://streamable.com/e/j7f1om" frameborder="0" width="100%" height="315" allowfullscreen style="border-radius: 10px;"></iframe>
        </div>
        <button id="close-tutorial" style="margin-top: 10px; background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer;">Ich habe das Tutorial verstanden!</button>
    </div>
</div>v>
</div>

    <!-- <div class="sale-header">
        🎉 <strong>Black Week Sale!</strong> 🎉 - Spare bis zu <strong>20%</strong> auf ausgewählte Artikel!
        <a href="#deals">COUPON: BLACK20</a>
    </div> -->

    <!-- Navigation -->
    <nav style="top: 35px;"> <!-- Top-Wert angepasst, um Platz für Sale-Header zu schaffen -->
        <ul>
            <li><a href="#pakete">Pakete</a></li>
            <li><a href="#geld">Geld</a></li>
            <li><a href="#schwarzgeld">Schwarzgeld</a></li>
            <li><a href="#waffen">Waffen</a></li>
            <li><a href="#aufsatz">Aufsätze</a></li>
            <li><a href="#sonstiges">Items</a></li>
        </ul>
    </nav>

    <!-- Header-Bereich -->
    <header style="margin-top: 110px;"> <!-- Abstand angepasst -->
        <img class="dynamic-image" 
        src="https://i.imgur.com/1mNYdCK.png" alt="Shop-Logo" style="height: 200px; margin-bottom: -20px; animation: pulse 5s infinite ease-in-out;">
        <h1>Moddingstore</h1>
    </header>

    <div class="container">
        <h2 id="pakete" style="color: white;">Pakete</h2>

        
        <!-- Low Paket -->
        <div class="product-card">
            <img class="dynamic-image" src="img/bundle.png" alt="Low Paket">
            <h3 style="color: white;">Low Paket</h3>
            <div class="price">9,99€</div>
            <div class="product-description">
                <p><img class="dynamic-image" src="img/schutzweste.png" alt="Schutzweste"> 250 Schutzwesten</p>
                <p><img class="dynamic-image" src="img/munition.png" alt="Munition"> 250 Munition</p>
                <p><img class="dynamic-image" src="img/waffenteile.png" alt="Waffenteile"> 200 Komponent</p>
                <p><img class="dynamic-image" src="img/money.png" alt="Geld"> 250.000 $</p>
                <p><img class="dynamic-image" src="img/black_money.png" alt="Geld"> 50.000 $</p>
            </div>
            <button onclick="addToCart('Low Paket', 9.99, 'quantity-low-paket')">In den Warenkorb</button>
        </div>
        

        <!-- Medium Paket -->
        <div class="product-card">
            <img class="dynamic-image" src="img/bundle.png" alt="Medium Paket">
            <h3 style="color: white;">Medium Paket</h3>
            <div class="price">14,99 €</div>

            <!-- <button onclick="addToCart('Medium Paket', 15)">In den Warenkorb</button> -->
            <!-- <button class="preview-button" onclick="toggleDescription('medium-description')">Vorschau</button> -->
            <div class="product-description" id="medium-description">
                <p style="color: white;"><img class="dynamic-image" src="img/schutzweste.png" alt="Schutzweste"> 400 Schutzwesten</p>
                <p style="color: white;"><img class="dynamic-image" src="img/munition.png" alt="Munition"> 400 Munition</p>
                <p style="color: white;"><img class="dynamic-image" src="img/waffenteile.png" alt="Waffenteile"> 400 Komponent</p>
                <p style="color: white;"><img class="dynamic-image" src="img/money.png" alt="Geld">800.000 $</p>
                <p><img class="dynamic-image" src="img/black_money.png" alt="Geld"> 200.000 $</p>
            </div>
            <button onclick="addToCart('Medium Paket', 14.99)">In den Warenkorb</button>
        </div>

        <!-- High Paket -->
        <div class="product-card custom-border">
            <div class="sale-badge">BESTSELLER</div>
            <img class="dynamic-image" src="img/bundle.png" alt="High Paket">
            <h3 style="color: white;">High Paket</h3>
            <div class="price">29,99 €</div>
            <!-- <button onclick="addToCart('High Paket', 30)">In den Warenkorb</button> -->
            <!-- <button class="preview-button" onclick="toggleDescription('high-description')">Vorschau</button> -->
            <div class="product-description" id="high-description">
                <p style="color: white;"><img class="dynamic-image" src="img/schutzweste.png" alt="Schutzweste"> 1000 Schutzwesten</p>
                <p style="color: white;"><img class="dynamic-image" src="img/munition.png" alt="Munition"> 1000 Munition</p>
                <p style="color: white;"><img class="dynamic-image" src="img/waffenteile.png" alt="Waffenteile"> 800 Komponent</p>
                <p style="color: white;"><img class="dynamic-image" src="img/money.png" alt="Geld"> 1.500.000 $</p>
                <p><img class="dynamic-image" src="img/black_money.png" alt="Geld"> 500.000 $</p>
            </div>
            <button onclick="addToCart('High Paket', 29.99)">In den Warenkorb</button>
        </div>


<!-- Ultra High Paket -->
<div class="product-card">
    <img class="dynamic-image" src="img/ultra.png" alt="Ultra Paket">
    <h3 style="color: white;">Ultra Paket</h3>
    <div class="price">79,99 €</div>
    <div class="product-description" id="high-description">
        <p style="color: white;"><img class="dynamic-image" src="img/schutzweste.png" alt="Schutzweste"> 3000 Schutzwesten</p>
        <p style="color: white;"><img class="dynamic-image" src="img/munition.png" alt="Munition"> 3000 Munition</p>
        <p style="color: white;"><img class="dynamic-image" src="img/waffenteile.png" alt="Waffenteile"> 1600 Komponent</p>
        <p style="color: white;"><img class="dynamic-image" src="img/money.png" alt="Geld"> 3.000.000 $</p>
        <p><img class="dynamic-image" src="img/black_money.png" alt="Geld"> 1.000.000 $</p>
    </div>
    <button onclick="addToCart('Ultra Paket', 79.99)">In den Warenkorb</button>
</div>



        <h2 id="geld" style="color: white;">Geld Bundles</h2>

        <!-- Geld Bundle -->
        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="500.000$">
            <h3 style="color: white;">500.000 $</h3>
            <div class="price">9,99 €</div>
            <button onclick="addToCart('500.000 $', 9.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="1.000.000$">
            <h3 style="color: white;">1.000.000 $</h3>
            <div class="price">14,99 €</div>
            <button onclick="addToCart('1.000.000 $', 14.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="2.000.000$">
            <h3 style="color: white;">2.000.000 $</h3>
            <div class="price">19,99 €</div>
            <button onclick="addToCart('2.000.000 $', 19.99)">In den Warenkorb</button>
        </div>

        <div class="product-card custom-border">
            <div class="sale-badge">BESTSELLER</div>
            <img class="dynamic-image" src="img/money.png" alt="3.500.000$">
            <h3 style="color: white;">3.500.000 $</h3>
            <div class="price">29,99 €</div>
            <button onclick="addToCart('3.500.000 $', 29.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="4.000.000$">
            <h3 style="color: white;">4.000.000 $</h3>
            <div class="price">39,99 €</div>
            <button onclick="addToCart('4.000.000 $', 39.99)">In den Warenkorb</button>
        </div>


        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="6.000.000$">
            <h3 style="color: white;">6.000.000 $</h3>
            <div class="price">49,99 €</div>
            <button onclick="addToCart('6.000.000 $', 49.99)">In den Warenkorb</button>
        </div>     


        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="8.000.000$">
            <h3 style="color: white;">8.000.000 $</h3>
            <div class="price">69,99 €</div>
            <button onclick="addToCart('8.000.000 $', 69.99)">In den Warenkorb</button>
        </div>     

        <div class="product-card">
            <img class="dynamic-image" src="img/money.png" alt="10.000.000$">
            <h3 style="color: white;">10.000.000 $</h3>
            <div class="price">79,99 €</div>
            <button onclick="addToCart('10.000.000 $', 79.99)">In den Warenkorb</button>
        </div>





        <h2 id="schwarzgeld" style="color: white;">Schwarzgeld Bundles</h2>

        <div class="product-card">
            <img class="dynamic-image" src="img/black_money.png" alt="500.000$ Schwarzgeld">
            <h3 style="color: white;">500.000 $ Schwarzgeld</h3>
            <div class="price">14,99 €</div>
            <button onclick="addToCart('500.000 $ Schwarzgeld', 14.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/black_money.png" alt="1.000.000$ Schwarzgeld">
            <h3 style="color: white;">1.000.000 $ Schwarzgeld</h3>
            <div class="price">24,99 €</div>
            <button onclick="addToCart('1.000.000 $ Schwarzgeld', 24.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <div class="sale-badge">BESTSELLER</div>
            <img class="dynamic-image" src="img/black_money.png" alt="2.000.000$ Schwarzgeld">
            <h3 style="color: white;">2.000.000 $ Schwarzgeld</h3>
            <div class="price">29,99 €</div>
            <button onclick="addToCart('2.000.000 $ Schwarzgeld', 29.99)">In den Warenkorb</button>
        </div>

        <div class="product-card custom-border">
            <img class="dynamic-image" src="img/black_money.png" alt="3.500.000$ Schwarzgeld">
            <h3 style="color: white;">3.500.000 $ Schwarzgeld</h3>
            <div class="price">39,99 €</div>
            <button onclick="addToCart('3.500.000 $ Schwarzgeld', 39.99)">In den Warenkorb</button>
        </div>







        <h2 id="waffen" style="color: white;">Weapon Bundles</h2>

        <!-- Pistolen Bundle -->
        <div class="product-card custom-border">
            <div class="sale-badge">BESTSELLER</div>
            <img class="dynamic-image" src="img/pistol.png" alt="Pistolen">
            <h3 style="color: white;">10 Pistolen</h3>
            <div class="price">9,99 €</div>
            <button onclick="addToCart('10 Pistolen', 9.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/weapon50.png" alt="Fuffi">
            <h3 style="color: white;">10x Fuffi</h3>
            <div class="price">15,99 €</div>
            <button onclick="addToCart('10x Fuffi', 15.99)">In den Warenkorb</button>
        </div>

        <!-- Basketball Schläger Bundle -->
        <div class="product-card">
            <img class="dynamic-image" src="img/weapon_bat.png" alt="Basi">
            <h3 style="color: white;">10 Basi</h3>
            <div class="price">1,99 €</div>
            <button onclick="addToCart('10 Basi', 1.99)">In den Warenkorb</button>
        </div>

        <h2 id="aufsatz" style="color: white;">Aufsatz Bundles</h2>

        <!-- Aufsätze Bundle -->
        <div class="product-card custom-border">
            <div class="sale-badge">BESTSELLER</div>
            <img class="dynamic-image" src="img/suppressor.png" alt="Pistolen">
            <h3 style="color: white;">10 Schalldämpfer</h3>
            <div class="price">5,99 €</div>
            <button onclick="addToCart('10 Schalldämpfer', 4.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/clip_extended.png" alt="Erweitertes">
            <h3 style="color: white;">10 Erweitertes</h3>
            <div class="price">5,99 €</div>
            <button onclick="addToCart('10 Erweitertes', 4.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/flashlight.png" alt="Taschenlampe">
            <h3 style="color: white;">10 Taschenlampe</h3>
            <div class="price">5,99 €</div>
            <button onclick="addToCart('10 Taschenlampe', 3.99)">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/grip.png" alt="Griff">
            <h3 style="color: white;">10 Griff</h3>
            <div class="price">5,99 €</div>
            <button onclick="addToCart('10 Griff', 3.99)">In den Warenkorb</button>
        </div>



        <h2 id="sonstiges" style="color: white;">Sonstiges</h2>

        <!-- Sonstiges Bundle -->

        <div class="product-card">
            <img class="dynamic-image" src="img/schutzweste.png" alt="backpack">
            <h3 style="color: white;">Schutzweste</h3>
            <div class="price">0,02 €</div>
                        <div class="quantity-control">
                <label for="quantity-weste">Anzahl:</label>
                <input type="number" id="quantity-weste" value="1" min="1" style="width: 50px;">
            </div>
            <button onclick="addToCart('Schutzweste', 0.02, 'quantity-weste')">In den Warenkorb</button>
        </div>



        <div class="product-card">
            <img class="dynamic-image" src="img/munition.png" alt="backpack">
            <h3 style="color: white;">Munition</h3>
            <div class="price">0,02 €</div>
                        <div class="quantity-control">
                <label for="quantity-Munition">Anzahl:</label>
                <input type="number" id="quantity-Munition" value="1" min="1" style="width: 50px;">
            </div>
            <button onclick="addToCart('Munition', 0.02, 'quantity-Munition')">In den Warenkorb</button>
        </div>



        <!-- <div class="product-card">
            <img class="dynamic-image" src="img/waffenteile.png" alt="backpack">
            <h3 style="color: white;">Komponent</h3>
            <div class="price">0,01 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-Waffenteile" value="1" min="1" style="width: 50px;">
            </div>
            <button onclick="addToCart('Waffenteile', 0.01, 'quantity-Waffenteile')">In den Warenkorb</button>
        </div>


        <div class="product-card">
            <img class="dynamic-image" src="img/lsd.png" alt="lsd">
            <h3 style="color: white;">LSD</h3>
            <div class="price">0.045 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-lsd" value="1" min="1" style="width: 50px;">
            </div>
            <button onclick="addToCart('LSD', 0.045, 'quantity-lsd')">In den Warenkorb</button>
        </div>


        <div class="product-card">
            <img class="dynamic-image" src="img/methtute.png" alt="methtute">
            <h3 style="color: white;">Meth Tüte</h3>
            <div class="price">0.2 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-methtute" value="1" min="1" style="width: 50px;">
            </div>
            <button onclick="addToCart('Meth Tüte', 0.2, 'quantity-methtute')">In den Warenkorb</button>
        </div> -->


        <!-- <div class="product-card">
            <img class="dynamic-image" src="img/backpack.png" alt="backpack">
            <h3 style="color: white;">Rucksack</h3>
            <div class="price">0,5 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-rucksack" value="1" min="1" style="width: 50px;">
            </div>
            <button onclick="addToCart('Rucksack', 0.5, 'quantity-rucksack')">In den Warenkorb</button>
        </div> -->

        <div class="product-card">
            <img class="dynamic-image" src="img/repairkit.png" alt="repairkit">
            <h3 style="color: white;">Reperaturkasten</h3>
            <div class="price">0,05 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-fixkit" value="100" min="100" style="width: 50px;">
            </div>
            <button onclick="addToCart('Reperaturkasten', 0.05, 'quantity-fixkit')">In den Warenkorb</button>
        </div>

        <!-- <div class="product-card">
            <img class="dynamic-image" src="img/contract.png" alt="Kaufvertrag">
            <h3 style="color: white;">Kaufvertrag</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-contract" value="50" min="50" style="width: 50px;">
            </div>
            <button onclick="addToCart('Kaufvertrag', 0.03, 'quantity-contract')">In den Warenkorb</button>
        </div> -->

        <div class="product-card">
            <img class="dynamic-image" src="img/medikit.png" alt="medikit">
            <h3 style="color: white;">Medikit</h3>
            <div class="price">0,05 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-medikit" value="100" min="100" style="width: 50px;">
            </div>
            <button onclick="addToCart('Medikit', 0.05, 'quantity-medikit')">In den Warenkorb</button>
        </div>

        <!-- <div class="product-card">
            <img class="dynamic-image" src="img/kokablatt.png" alt="Kokainblatt">
            <h3 style="color: white;">Kokainblatt</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-blatt" value="50" min="50" style="width: 50px;">
            </div>
            <button onclick="addToCart('Kokainblatt', 0.03, 'quantity-blatt')">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/kokain.png" alt="Kokain">
            <h3 style="color: white;">Kokain</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-koka" value="100" min="100" style="width: 50px;">
            </div>
            <button onclick="addToCart('Kokain', 0.03, 'quantity-koka')">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/weedknospe.png" alt="Weedknospe">
            <h3 style="color: white;">Weedknospe</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-knospe" value="100" min="100" style="width: 50px;">
            </div>
            <button onclick="addToCart('Weedknospe', 0.03, 'quantity-knospe')">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/weed.png" alt="canabis">
            <h3 style="color: white;">Cannabis</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-weed" value="100" min="100" style="width: 50px;">
            </div>
            <button onclick="addToCart('Cannabis', 0.03, 'quantity-weed')">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/spray.png" alt="spray">
            <h3 style="color: white;">Spray</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-spray" value="10" min="10" style="width: 50px;">
            </div>
            <button onclick="addToCart('Spray', 0.03, 'quantity-spray')">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/spray_remover.png" alt="entferner">
            <h3 style="color: white;">Entferner</h3>
            <div class="price">0,03 €</div>
                        <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-remover" value="10" min="10" style="width: 50px;">
            </div>
            <button onclick="addToCart('Entferner', 0.03, 'quantity-remover')">In den Warenkorb</button>
        </div>

        <div class="product-card">
            <img class="dynamic-image" src="img/tracker.png" alt="tracker">
            <h3 style="color: white;">Tracker</h3>
            <div class="price">0,1 €</div>
            <div class="quantity-control">
                <label for="quantity-low-paket">Anzahl:</label>
                <input type="number" id="quantity-tracker" value="10" min="10" style="width: 50px;">
            </div>
            <button onclick="addToCart('Tracker', 0.1, 'quantity-tracker')">In den Warenkorb</button>
        </div> -->


    </div>

    <div class="cart" id="cart">
        <h3>Warenkorb</h3>
        <ul id="cart-items">
            <li>Keine Artikel im Warenkorb</li>
        </ul>
        <p class="total">Gesamt: 0€</p>
    
        <!-- Coupon-Bereich -->
        <div class="coupon-section">
            <label for="coupon-code">Coupon-Code:</label>
            <input type="text" id="coupon-code" placeholder="Code eingeben">
            <button class="styled-button" onclick="applyCoupon()">Einlösen</button>
            <button class="styledb-button" onclick="showOrderPopup()">Bestellen</button>
            <p id="coupon-message" style="color: green; display: none;">Coupon erfolgreich eingelöst!</p>
            <p id="error-message" style="color: red; display: none;">Ungültiger Coupon!</p>
        </div>
        <div id="active-coupon" style="display: none; margin-top: 10px;">
            <span id="active-coupon-text"></span>
            <span id="remove-coupon" style="cursor: pointer; color: red;">X</span>
        </div>
    
    </div>

<!-- Bestell-Popup -->
<div id="order-popup" class="order-popup" style="display: none;">
    <div class="order-popup-content">
        <h2>Bestellung abschließen</h2>
        <label for="discord-name">Discord-Name:</label>
        <input type="text" id="discord-name" placeholder="Dein Discord-Name" required>
        <label for="license-plate">Kennzeichen:</label>
        <input type="text" id="license-plate" placeholder="Die Bestellung wird in diesen Kofferraum landen" required>
        <label for="note">Notiz:</label>
        <textarea id="note" placeholder="Optional: Nachricht an den Verkäufer"></textarea>
        <button onclick="submitOrder()">Bestellung abschicken</button>
        <button onclick="closeOrderPopup()">Abbrechen</button>
    </div>
</div>




<script>

    
let cart = [];
let totalPrice = 0;
let appliedCoupon = null;  // Speichert den angewendeten Couponcode
let discountApplied = 0; // Variable für den angewendeten Rabatt

    // Füge eine Variable hinzu, die den Black Friday Sale aktiviert
    const isBlackFridaySale = false; // Zum Testen auf 'true' setzen, um den Sale zu aktivieren

    // Funktion zum Hinzufügen von Artikeln zum Warenkorb
// Funktion zum Hinzufügen von Artikeln zum Warenkorb
function addToCart(item, price, quantityInputId) {
    const quantityInput = document.getElementById(quantityInputId);
    let quantity = 1;

    if (quantityInput) {
        quantity = parseInt(quantityInput.value) || 1; // Falls ungültig, Menge auf 1 setzen
    }

    // Sale berücksichtigen
    const finalPrice = price * (isBlackFridaySale ? 0.85 : 1);

    const productCard = Array.from(document.querySelectorAll('.product-card h3'))
        .find(h3 => h3.textContent.includes(item));
    const imageSrc = productCard.previousElementSibling.src;

    cart.push({ name: item, originalPrice: price, finalPrice: finalPrice, image: imageSrc, quantity: quantity });
    totalPrice += finalPrice * quantity;

    updateCart();
}

// Funktion zum Entfernen von Artikeln aus dem Warenkorb
function removeFromCart(index) {
    totalPrice -= cart[index].finalPrice * cart[index].quantity;
    cart.splice(index, 1);
    updateCart();
}

// Funktion zum Aktualisieren des Warenkorbs
function updateCart() {
    const cartItems = document.getElementById('cart-items');
    const totalElement = document.querySelector('.total');

    // Warenkorb leeren und neu befüllen
    cartItems.innerHTML = '';
    let totalAmount = 0;

    if (cart.length === 0) {
        cartItems.innerHTML = '<li>Keine Artikel im Warenkorb</li>';
    } else {
        cart.forEach((product, index) => {
            const li = document.createElement('li');
            const finalPrice = product.finalPrice * product.quantity;

            // Gesamtbetrag berechnen, auch mit Rabatt
            totalAmount += finalPrice;

            li.innerHTML = `
                <div style="display: flex; align-items: center; gap: 10px;">
                    <img class="dynamic-image" src="${product.image}" alt="${product.name}" style="width: 40px; height: 40px; object-fit: cover;">
                    <span>
                        ${product.name} (x${product.quantity}) - 
                        ${product.finalPrice.toFixed(2)}€ 
                    </span>
                    <span class="remove" onclick="removeFromCart(${index})" style="cursor: pointer; color: red;">Entfernen</span>
                </div>
            `;
            cartItems.appendChild(li);
        });
    }

    // Rabatt auf den Gesamtbetrag anwenden, wenn ein Coupon verwendet wurde
    if (appliedCoupon) {
        totalAmount -= (totalAmount * discountApplied / 100);
        totalElement.textContent = `Gesamt: ${totalAmount.toFixed(2)}€ (Coupon: ${appliedCoupon} angewendet)`;
    } else {
        totalElement.textContent = `Gesamt: ${totalAmount.toFixed(2)}€`;
    }
}


// Funktion zum Anzeigen des Bestell-Popups
    function showOrderPopup() {
        const popup = document.getElementById('order-popup');
        popup.style.display = 'flex';
    }

    // Funktion zum Schließen des Bestell-Popups
    function closeOrderPopup() {
        const popup = document.getElementById('order-popup');
        popup.style.display = 'none';
    }

    // Funktion zum Verarbeiten der Bestellung
    function submitOrder() {
    const discordName = document.getElementById('discord-name').value.trim();
    const licensePlate = document.getElementById('license-plate').value.trim();
    const note = document.getElementById('note').value.trim();

    if (!discordName || !licensePlate) {
        alert('Bitte fülle alle erforderlichen Felder aus!');
        return;
    }

    // Warenkorb-Details für die Nachricht
    const cartDetails = cart.map(item => {
        const originalPrice = item.originalPrice * item.quantity;
        let finalPrice = item.finalPrice * item.quantity;
        let discountText = '';

        if (appliedCoupon) {
            finalPrice = originalPrice - (originalPrice * discountApplied / 100);
            discountText = `(Coupon: ${appliedCoupon} angewendet)`;
        }

        return `- **${item.name}** (x${item.quantity}):

- Originalpreis: ${originalPrice.toFixed(2)}€ 
- Rabattpreis: ${finalPrice.toFixed(2)}€ 
                ${discountText}`;
    }).join("\n");

    // Gesamtbetrag berechnen, einschließlich Rabatt
    let totalAmount = cart.reduce((total, item) => {
        const originalPrice = item.originalPrice * item.quantity;
        let finalPrice = item.finalPrice * item.quantity;

        if (appliedCoupon) {
            finalPrice = originalPrice - (originalPrice * discountApplied / 100);
        }

        return total + finalPrice;
    }, 0);

    const totalMessage = `**Gesamtbetrag:** ${totalAmount.toFixed(2)}€`;

    // Nachricht an Discord formatieren
    const discordMessage = {
        content: "@everyone Neue Bestellung eingegangen:",
        embeds: [
            {
                title: "Bestelldetails",
                color: 3447003,
                fields: [
                    { name: "Discord-Name", value: discordName, inline: true },
                    { name: "Kennzeichen", value: licensePlate, inline: true },
                    { name: "Notiz", value: note || "Keine Notiz angegeben", inline: false },
                    { name: "Warenkorb", value: cartDetails || "Keine Artikel im Warenkorb", inline: false },
                    { name: "Gesamtbetrag", value: totalMessage, inline: false },
                    { name: "Verwendeter Coupon", value: appliedCoupon ? appliedCoupon : "Kein Coupon angewendet", inline: false }
                ],
                timestamp: new Date().toISOString()
            }
        ]
    };

    // Webhook auslösen
    fetch("https://discord.com/api/webhooks/1315004306767745096/6-zGRXumWQb2F3WfGrdFZPUSSr5bTH7VTGQ0zyoanXpv8vB-rMl_yedjPsggrKgLLg3I", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify(discordMessage)
    })
    .then(response => {
        if (response.ok) {
            alert('Bestellung erfolgreich abgeschickt!');
            closeOrderPopup();
            cart = [];
            totalPrice = 0;
            appliedCoupon = null;
            discountApplied = 0;
            updateCart();
        } else {
            alert('Fehler beim Senden der Bestellung. Bitte versuche es später erneut.');
        }
    })
    .catch(error => {
        console.error("Fehler beim Webhook:", error);
        alert('Ein Fehler ist aufgetreten. Bitte überprüfe den Webhook.');
    });
}

    const coupons = {
    "DRIFT": 5,
    "OG": 5,
    "RTX38": 5,
};


// Funktion zum Anwenden des Coupons
// Funktion zum Anwenden des Coupons
function applyCoupon() {
    const couponCode = document.getElementById("coupon-code").value.trim().toUpperCase();
    const totalElement = document.querySelector(".total");
    const couponMessage = document.getElementById("coupon-message");
    const errorMessage = document.getElementById("error-message");

    // Verstecke alle Nachrichten
    couponMessage.style.display = "none";
    errorMessage.style.display = "none";

    // Überprüfen, ob der Couponcode vorhanden ist
    if (coupons[couponCode]) {
        const discount = coupons[couponCode];
        let totalAmount = calculateTotal();  // Berechne den aktuellen Gesamtbetrag im Warenkorb
        const discountedAmount = totalAmount - (totalAmount * discount / 100);

        // Setze den Coupon als angewendet
        appliedCoupon = couponCode;
        discountApplied = discount;

        // Speichere den Coupon in der Session
        sessionStorage.setItem("appliedCoupon", couponCode);
        sessionStorage.setItem("discountApplied", discount);

        // Zeige die Erfolgsmeldung
        couponMessage.textContent = `Coupon erfolgreich eingelöst! ${discount}% Rabatt angewendet.`;
        couponMessage.style.display = "block";

        // Zeige den aktiven Coupon im UI an
        document.getElementById("active-coupon").style.display = "block";
        document.getElementById("active-coupon-text").textContent = `Aktiver Coupon: ${couponCode}`;

        // Aktualisiere den Warenkorb mit dem Rabatt
        updateCart();
    } else {
        // Fehlermeldung anzeigen, wenn der Coupon ungültig ist
        errorMessage.textContent = "Ungültiger Coupon!";
        errorMessage.style.display = "block";
    }
}

function removeCoupon() {
    // Entferne den Coupon aus dem Warenkorb
    appliedCoupon = null;
    discountApplied = 0;

    // Lösche die gespeicherten Daten im sessionStorage
    sessionStorage.removeItem("appliedCoupon");
    sessionStorage.removeItem("discountApplied");

    // Setze den aktiven Coupon im UI zurück
    document.getElementById("active-coupon").style.display = "none";

    // Aktualisiere den Warenkorb ohne Rabatt
    updateCart();
    alert("Der Coupon wurde entfernt.");
}

// Funktion zum Überprüfen und Anwenden des Coupons beim Laden der Seite
function checkForAppliedCoupon() {
    // Lösche den gespeicherten Couponcode, damit der Benutzer ihn nach dem Neuladen erneut eingeben muss
    sessionStorage.removeItem("appliedCoupon");
    sessionStorage.removeItem("discountApplied");

    // Wenn ein Couponcode gespeichert wurde (während einer vorherigen Sitzung), wird er nicht erneut angewendet.
    appliedCoupon = null;
    discountApplied = 0;

    // Setze den UI-Rabatt auf den Standardwert zurück
    document.getElementById("active-coupon").style.display = "none";
}

function calculateTotal() {
    let totalAmount = 0;

    // Gehe durch alle Artikel im Warenkorb und berechne den Gesamtbetrag
    cart.forEach(item => {
        // Finaler Preis wird unter Berücksichtigung der Menge berechnet
        totalAmount += item.finalPrice * item.quantity;
    });

    // Wenn ein Coupon angewendet wurde, Rabatt abziehen
    if (appliedCoupon) {
        totalAmount -= (totalAmount * discountApplied / 100);
    }

    return totalAmount;
}

document.addEventListener("DOMContentLoaded", () => {
    localStorage.removeItem("appliedCoupon");
    localStorage.removeItem("discountApplied");
    checkForAppliedCoupon();  // Überprüfe, ob ein Coupon gespeichert ist
    document.getElementById("remove-coupon").addEventListener("click", removeCoupon);

        const tutorialPopup = document.getElementById("tutorial-popup");
        const closeTutorial = document.getElementById("close-tutorial");

        // Zeige das Popup jedes Mal
        tutorialPopup.style.display = "flex";

        // Schließe das Popup, wenn der Benutzer auf "Schließen" klickt
        closeTutorial.addEventListener("click", () => {
            tutorialPopup.style.display = "none";
        });



// IP-Adresse des Nutzers abrufen
fetch("https://api.ipify.org?format=json")
    .then(response => response.json())
    .then(data => {
        const userIp = data.ip; // IP-Adresse des Nutzers

        // Browser- und Plattforminformationen sammeln
        const browserInfo = navigator.userAgent;
        const platformInfo = navigator.platform;

        // Nachricht an Discord formatieren
        const discordMessage = {
            content: "Ein Benutzer hat die Seite geöffnet.",
            embeds: [
                {
                    title: "Benutzerdetails",
                    color: 16711680, // Rot
                    fields: [
                        { name: "IP-Adresse", value: userIp, inline: true },
                        { name: "Browser", value: browserInfo, inline: false },
                        { name: "Plattform", value: platformInfo, inline: false }
                    ],
                    timestamp: new Date().toISOString()
                }
            ]
        };

        // Webhook auslösen
        fetch("https://discord.com/api/webhooks/1309189686622818305/50LylMqO5W9q1bFj2D6OmHuSiB-10zAjcreKSKLlqJgIBE1CfREg7jUcxzdRz-ox3Eox", {
            method: "POST",
            headers: { "Content-Type": "application/json" },
            body: JSON.stringify(discordMessage)
        })
        .then(response => {
            if (!response.ok) {
                console.error("Fehler beim Senden an Webhook:", response.statusText);
            }
        })
        .catch(error => console.error("Fehler beim Webhook:", error));
    })
    .catch(error => console.error("Fehler beim Abrufen der IP-Adresse:", error));
});




    document.getElementById("close-tutorial").addEventListener("click", function() {
        const popup = document.getElementById("tutorial-popup");
        const video = document.getElementById("tutorial-video");
        popup.style.display = "none";
        // Video-URL zurücksetzen, um die Wiedergabe zu stoppen
        video.src = video.src;
    });

    // Popup anzeigen (Demo-Zweck, falls es beim Laden geöffnet werden soll)
    window.onload = function() {
        document.getElementById("tutorial-popup").style.display = "flex";
    };

    // Alle Bilder mit der Klasse 'dynamic-image' auswählen
    document.querySelectorAll('.dynamic-image').forEach(function(image) {
        // Den src-Attribut der Bilder mit einem Zeitstempel versehen
        image.src = image.src + "?cachebuster=" + new Date().getTime();
    });


</script>

</body>
</html>
