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%; } .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(53, 202, 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: 60px; 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 ul { list-style-type: none; margin: 0; padding: 0; } nav ul li { display: inline; margin: 0 15px; } nav ul li a { color: white; text-decoration: none; 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); } }