/* ===================================================================
   JOLOS KEKSE BACKSTUBE - STYLE.CSS // VERSION 7.3 - "DISCLAIMER POP-UP"
   ===================================================================
   LOG: Wichtiges Hinweis-Popup beim Start der Seite hinzugefügt.
        Weitere mobile Optimierungen vorgenommen.
   =================================================================== */

/* ===================================================================
   [1] SYSTEM-KERNEL: VARIABLEN & GRUNDEINSTELLUNGEN
   =================================================================== */
:root {
    --color-void: #010409;
    --color-abyss: #0D1117;
    --color-matrix-glow: #00F2FF;
    --color-plasma-secondary: #BE26F2;
    --color-plasma-tertiary: #265AF2;
    --color-confirm-green: #28a745;
    --color-border: rgba(100, 116, 139, 0.15);
    --color-border-focus: rgba(0, 242, 255, 0.5);
    --color-text-primary: #E6EDF3;
    --color-text-secondary: #7d8590;
    --color-text-dark: #010409;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Turret Road', sans-serif;
    --shadow-hologram:
        0 0 5px var(--color-matrix-glow),
        0 0 10px var(--color-matrix-glow),
        0 0 20px rgba(0, 242, 255, 0.7),
        0 0 40px rgba(38, 90, 242, 0.5);
    --shadow-deep-space: 0 20px 50px rgba(0, 0, 0, 0.7);
    --transition-speed-fast: 0.3s;
    --transition-speed-slow: 0.6s;
    --transition-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================================================================
   [2] GLOBALE UMGEBUNG & RENDER-ENGINE
   =================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-void);
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    background-color: var(--color-void);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s var(--transition-speed-slow), opacity var(--transition-speed-slow) linear;
}

body.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--transition-speed-slow) linear;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 200%; height: 200%;
    z-index: -2;
    background-image:
        radial-gradient(ellipse at center, transparent 0%, var(--color-void) 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><circle cx="1" cy="1" r="1" fill="rgba(0, 242, 255, 0.3)"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(190, 38, 242, 0.4)"/></svg>');
    animation: space-drift 240s linear infinite;
    transform: translate(var(--mouse-x, -25%), var(--mouse-y, -25%));
    transition: transform 0.2s ease-out;
}

/* ===================================================================
   [3] KEYFRAME-BIBLIOTHEK
   =================================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flicker { 0%, 100% { text-shadow: var(--shadow-hologram); opacity: 1; } 50% { text-shadow: 0 0 5px var(--color-matrix-glow); opacity: 0.95; } }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: 0; } }
@keyframes space-drift { from { background-position: 0 0; } to { background-position: -10000px 5000px; } }
@keyframes pulse-counter { 50% { transform: scale(1.4); } }
@keyframes assemble { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeInChips { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-grid { 50% { opacity: 0.05; } }
@keyframes rotate-cookie { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-2 { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
@keyframes particle-glow { 50% { box-shadow: 0 0 15px 5px var(--color-matrix-glow); } }
@keyframes chromatic-aberration {
    0%, 100% { text-shadow: 1px 0 0 var(--color-plasma-secondary), -1px 0 0 var(--color-matrix-glow); transform: translate(0,0); }
    25% { text-shadow: -1px 0 0 var(--color-plasma-secondary), 1px 0 0 var(--color-matrix-glow); transform: translate(1px,1px); }
    50% { text-shadow: 1px 0 0 var(--color-plasma-secondary), -1px 0 0 var(--color-matrix-glow); transform: translate(-1px,-1px); }
    75% { text-shadow: -1px 0 0 var(--color-plasma-secondary), 1px 0 0 var(--color-matrix-glow); transform: translate(0,0); }
}

/* ===================================================================
   [4] PRELOADER-INTERFACE
   =================================================================== */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-void); z-index: 10000; display: flex; justify-content: center; align-items: center; transition: opacity var(--transition-speed-slow) ease, visibility var(--transition-speed-slow) ease; transition-delay: 0.3s; }
.preloader-container { text-align: center; }
.loader-cookie-v2 { position: relative; width: 100px; height: 100px; margin: 20px auto; animation: rotate-cookie 5s linear infinite; }
.cookie-outline { position: absolute; width: 100%; height: 100%; border: 3px solid var(--color-matrix-glow); border-radius: 50%; box-shadow: var(--shadow-hologram); transition: all 0.5s ease; }
.cookie-part-1 { clip-path: polygon(50% 50%, 0 0, 100% 0); animation: assemble 1.5s 0.5s forwards; opacity: 0; }
.cookie-part-2 { clip-path: polygon(50% 50%, 100% 0, 100% 100%); animation: assemble 1.5s 1s forwards; opacity: 0; }
.cookie-part-3 { clip-path: polygon(50% 50%, 100% 100%, 0 100%); animation: assemble 1.5s 1.5s forwards; opacity: 0; }
.cookie-part-4 { clip-path: polygon(50% 50%, 0 100%, 0 0); animation: assemble 1.5s 2s forwards; opacity: 0; }
.cookie-chip { position: absolute; width: 15px; height: 15px; background: var(--color-matrix-glow); border-radius: 50%; opacity: 0; animation: fadeInChips 1s 2.5s forwards; }
.chip-1 { top: 20px; left: 30px; } .chip-2 { top: 50px; left: 60px; } .chip-3 { top: 65px; left: 25px; }
.loader-text { margin-top: 20px; font-family: var(--font-primary); font-size: 1.2rem; color: var(--color-matrix-glow); text-shadow: var(--shadow-hologram); }
.progress-bar-container { width: 250px; height: 10px; border: 1px solid var(--color-border); margin: 20px auto; border-radius: 5px; }
.progress-bar-fill { width: 0%; height: 100%; background: var(--color-matrix-glow); border-radius: 5px; transition: width var(--transition-speed-fast) ease-out; box-shadow: var(--shadow-hologram); }
.loader-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(var(--color-plasma-secondary) 1px, transparent 1px), linear-gradient(to right, var(--color-plasma-secondary) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.1; animation: pulse-grid 4s infinite; }

/* ===================================================================
   [5] UI-KOMPONENTEN: Header, Cursor, Scrollbar
   =================================================================== */
.cursor-glow { position: fixed; width: 10px; height: 10px; border-radius: 50%; background: var(--color-matrix-glow); box-shadow: var(--shadow-hologram); pointer-events: none; z-index: 9999; transition: transform 0.1s ease-out; transform: translate(-50%, -50%); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-void); }
::-webkit-scrollbar-thumb { background: var(--color-abyss); border: 1px solid var(--color-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-matrix-glow); border: 1px solid var(--color-matrix-glow); box-shadow: var(--shadow-hologram); }

#main-header { text-align: center; padding: 2rem 1rem; border-bottom: 1px solid var(--color-border); position: relative; }
.logo { font-family: var(--font-primary); font-size: 2.5rem; letter-spacing: 2px; color: var(--color-text-primary); animation: flicker 8s infinite linear; position: relative; cursor: pointer; }
.subtitle { font-size: 1rem; color: var(--color-text-secondary); margin-top: 0.5rem; font-style: italic; }

nav { position: relative; margin-top: 1.5rem; display: flex; justify-content: center; }
nav ul { list-style: none; display: flex; justify-content: center; padding: 5px; border: 1px solid var(--color-border); border-radius: 12px; background: rgba(13, 17, 23, 0.5); z-index: 1; flex-wrap: wrap; }
nav ul li a { color: var(--color-text-secondary); text-decoration: none; font-family: var(--font-primary); margin: 0 5px; padding: 8px 16px; border-radius: 8px; transition: all var(--transition-speed-fast) ease; }
nav ul li a:hover { color: var(--color-text-primary); }
nav ul li a.active { color: var(--color-matrix-glow); text-shadow: 0 0 8px var(--color-matrix-glow); background-color: rgba(0, 242, 255, 0.1); }

.header-icons { position: absolute; top: 2rem; right: 2rem; display: flex; align-items: center; gap: 1rem; }
#discord-icon, #cart-icon { position: relative; width: 40px; height: 40px; cursor: pointer; transition: all var(--transition-speed-fast) ease; }
#discord-icon:hover, #cart-icon:hover { transform: scale(1.1); }
#discord-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%;}
#cart-icon svg { width: 100%; height: 100%; fill: var(--color-text-secondary); transition: all var(--transition-speed-fast) ease; }
#discord-icon:hover img { box-shadow: var(--shadow-hologram); }
#cart-icon:hover svg { fill: var(--color-matrix-glow); filter: drop-shadow(0 0 10px var(--color-matrix-glow)); }

#cart-counter { position: absolute; top: -5px; right: -10px; background: var(--color-matrix-glow); color: var(--color-text-dark); width: 25px; height: 25px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 0.9rem; box-shadow: var(--shadow-hologram); transform: scale(1); }
#cart-counter.updated { animation: pulse-counter 0.4s; }

/* ===================================================================
   [6] KERN-INTERFACE: Sektionen & Banner
   =================================================================== */
main { padding: 2rem; max-width: 1400px; margin: 0 auto; }
.page-section { display: none; animation: fadeIn 0.8s ease-out; }
.page-section.active { display: block; }
.welcome-banner { text-align: center; margin-bottom: 4rem; }
.welcome-banner h2 { font-family: var(--font-primary); font-size: 2.8rem; color: var(--color-text-primary); text-shadow: var(--shadow-hologram); margin-bottom: 0.5rem; }
.welcome-banner p { font-size: 1.2rem; color: var(--color-text-secondary); }

/* ===================================================================
   [7] PRODUKT-MODUL
   =================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.product-card { background: var(--color-abyss); border: 1px solid var(--color-border); border-radius: 16px; padding: 1.5rem; text-align: center; position: relative; overflow: hidden; transition: all var(--transition-speed-slow) var(--transition-easing); z-index: 1; }
.product-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-deep-space); border-color: var(--color-border-focus); }
.product-card.hidden { transform: scale(0.9); opacity: 0; font-size: 0; height: 0; padding: 0; margin: 0; border: none; }
.product-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(0, 242, 255, 0.3), transparent 30%); animation: orbit-1 15s linear infinite; z-index: -1; }
.product-card::after { content: ''; position: absolute; top: -25%; left: -25%; width: 150%; height: 150%; background: conic-gradient(transparent, rgba(190, 38, 242, 0.2), transparent 40%); animation: orbit-2 20s linear infinite reverse; z-index: -1; }
.product-card .price-info::before { content: ''; position: absolute; top: 20%; left: -10px; width: 8px; height: 8px; background: var(--color-matrix-glow); border-radius: 50%; box-shadow: var(--shadow-hologram); transform-origin: 190px 100px; animation: orbit-1 12s linear infinite, particle-glow 3s infinite; }
.product-card:hover h3 { animation: chromatic-aberration 0.2s linear; }
.product-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid var(--color-border); transition: transform var(--transition-speed-fast) ease; background: var(--color-void); }
.product-card h3 { font-family: var(--font-primary); color: var(--color-text-primary); margin-bottom: 1rem; font-size: 1.6rem; text-shadow: var(--shadow-hologram); transition: text-shadow var(--transition-speed-fast) ease; }
.product-card .description { font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.5rem; min-height: 60px; color: var(--color-text-secondary); }
.product-card .price-info { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 1.5rem; font-weight: 500; position: relative; }
.purchase-options { display: flex; justify-content: space-around; margin-bottom: 1.5rem; gap: 1rem; }

/* ===================================================================
   [8] STEUERELEMENTE: Buttons & Filter
   =================================================================== */
.filter-bar { margin-bottom: 3rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.option-btn, .add-to-cart-btn, .filter-btn, .checkout-btn, .popup-content button { font-family: var(--font-primary); padding: 10px 20px; border: 1px solid var(--color-border); background-color: transparent; color: var(--color-text-secondary); cursor: pointer; transition: all var(--transition-speed-fast) ease; font-size: 0.9rem; border-radius: 8px; }
.option-btn:hover, .filter-btn:hover, .checkout-btn:hover, .popup-content button:hover { color: var(--color-text-primary); border-color: var(--color-border-focus); background-color: rgba(0, 242, 255, 0.05); }
.filter-btn.active { color: var(--color-text-primary); border-color: var(--color-matrix-glow); background-color: rgba(0, 242, 255, 0.1); box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.2); }
.option-btn.selected { color: var(--color-text-dark); background: var(--color-matrix-glow); border-color: var(--color-matrix-glow); font-weight: bold; box-shadow: var(--shadow-hologram); }
.add-to-cart-btn { width: 100%; padding: 15px; font-size: 1.1rem; border-color: var(--color-border); color: var(--color-text-secondary); background-color: rgba(13, 17, 23, 0.5); }
.add-to-cart-btn:disabled { cursor: not-allowed; opacity: 0.3; background-color: transparent; }
.add-to-cart-btn:not(:disabled):hover { border-color: var(--color-matrix-glow); color: var(--color-matrix-glow); background-color: rgba(0, 242, 255, 0.1); }
.add-to-cart-btn.added { background-color: var(--color-matrix-glow); color: var(--color-text-dark); border-color: var(--color-matrix-glow); }

/* ===================================================================
   [9] FORMULARE & NEUE SEKTIONEN
   =================================================================== */
.contact-form { max-width: 800px; margin: 0 auto; padding: 2rem; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-abyss); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--color-text-secondary); font-family: var(--font-primary); }
.form-group input[type="text"], .form-group input[type="number"], .form-group textarea { width: 100%; padding: 12px; background: var(--color-void); border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-primary); font-family: var(--font-secondary); font-size: 1rem; transition: all var(--transition-speed-fast) ease; }
.form-group input[type="text"]:focus, .form-group input[type="number"]:focus, .form-group textarea:focus { outline: none; border-color: var(--color-border-focus); box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
.captcha-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.captcha-group input { width: 120px; }
.form-submit-btn { width: 100%; padding: 15px; background: var(--color-matrix-glow); color: var(--color-text-dark); font-size: 1.2rem; border: none; font-weight: bold; box-shadow: var(--shadow-hologram); border-radius: 8px; cursor: pointer; }
.form-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.star-rating { display: flex; gap: 0.5rem; }
.star { font-size: 2rem; color: var(--color-border); cursor: pointer; transition: all var(--transition-speed-fast) ease; }
.star:hover, .star.selected { color: var(--color-matrix-glow); text-shadow: var(--shadow-hologram); transform: scale(1.2); }

/* ===================================================================
   [10] MODAL-SYSTEM: Warenkorb & Popups
   =================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(1, 4, 9, 0.8); backdrop-filter: blur(10px); z-index: 1000; display: none; justify-content: center; align-items: center; animation: fadeIn var(--transition-speed-fast) ease; }
.modal-overlay.visible { display: flex; }
.modal-content, .popup-content { background: var(--color-abyss); border: 1px solid var(--color-border); box-shadow: var(--shadow-deep-space); border-radius: 10px; padding: 2rem; width: 90%; max-width: 600px; position: relative; max-height: 80vh; overflow-y: auto; }
.close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 2rem; color: var(--color-text-secondary); cursor: pointer; transition: all var(--transition-speed-fast) ease; }
.close-btn:hover { color: var(--color-matrix-glow); transform: rotate(90deg); }
.modal-content h2 { font-family: var(--font-primary); text-align: center; margin-bottom: 1.5rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.cart-item-details .item-type { font-size: 0.8rem; color: var(--color-text-secondary); }
.cart-item-controls button { background: none; border: 1px solid var(--color-border); color: var(--color-text-secondary); width: 30px; height: 30px; cursor: pointer; margin: 0 5px; border-radius: 5px; }
.cart-item-controls .remove-btn { border-color: #ff4d4d; color: #ff4d4d; }
.cart-summary { text-align: right; font-size: 1.2rem; margin-bottom: 1.5rem; }
#cart-total { color: var(--color-matrix-glow); font-weight: bold; }
#cart-user-info { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
#cart-user-info input { width: 100%; padding: 12px; background: var(--color-void); border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-primary); font-family: var(--font-secondary); font-size: 1rem; transition: all var(--transition-speed-fast) ease; }
#cart-user-info input:focus { outline: none; border-color: var(--color-border-focus); box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
#checkout-btn { width: 100%; padding: 15px; background: var(--color-matrix-glow); color: var(--color-text-dark); font-size: 1.2rem; border: none; font-weight: bold; box-shadow: var(--shadow-hologram); }
#checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; background: var(--color-text-secondary); box-shadow: none; }
.popup-content h3 { color: var(--color-matrix-glow); font-family: var(--font-primary); margin-bottom: 1rem; }
.popup-content .small-text { font-size: 0.8rem; color: var(--color-text-secondary); margin-top: 1rem; margin-bottom: 1.5rem; }

/* ===================================================================
   [10A] NEUES DISCLAIMER POP-UP
   =================================================================== */
#disclaimer-popup { z-index: 10001; } /* Muss über allem anderen liegen */
.disclaimer-content { background: var(--color-abyss); border: 1px solid var(--color-border); box-shadow: var(--shadow-deep-space); border-radius: 10px; padding: 2rem; width: 90%; max-width: 600px; text-align: center; }
.disclaimer-content h2 { font-family: var(--font-primary); color: var(--color-matrix-glow); margin-bottom: 1rem; }
.disclaimer-content p { color: var(--color-text-secondary); margin-bottom: 1.5rem; }
.disclaimer-content ul { list-style: none; margin-bottom: 2rem; padding-left: 0; text-align: left; max-width: 400px; margin-left: auto; margin-right: auto;}
.disclaimer-content ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.disclaimer-content ul li:last-child { border-bottom: none; }
.disclaimer-content ul li::before { content: '✓'; color: var(--color-confirm-green); margin-right: 10px; font-weight: bold; }
#accept-disclaimer-btn { width: 100%; padding: 15px; border: none; border-radius: 8px; background-color: var(--color-confirm-green); color: var(--color-text-primary); font-family: var(--font-primary); font-size: 1rem; font-weight: bold; cursor: pointer; transition: all var(--transition-speed-fast) ease; }
#accept-disclaimer-btn:hover { background-color: #218838; transform: scale(1.02); box-shadow: 0 0 15px rgba(40, 167, 69, 0.5); }


/* ===================================================================
   [11] FOOTER & RESPONSIVE ANPASSUNGEN
   =================================================================== */
footer { text-align: center; padding: 2rem; margin-top: 3rem; border-top: 1px solid var(--color-border); font-size: 0.8rem; color: var(--color-text-secondary); }
footer strong { color: var(--color-plasma-tertiary); }
@media (max-width: 768px) {
    .logo { font-size: 2rem; }
    nav ul { flex-direction: column; gap: 10px; width: 90%; padding: 10px; }
    .header-icons { top: 1rem; right: 1rem; }
    /* Discord Icon auf kleinen Bildschirmen ausblenden, um Platz zu sparen */
    .about-content { flex-direction: column; }
    main { padding: 1rem; }
    .product-grid { grid-template-columns: 1fr; }
    #discord-icon { display: none; }
}

@media (max-width: 480px) {
    .welcome-banner h2 { font-size: 2rem; }
    .product-card { padding: 1rem; }
    .product-card h3 { font-size: 1.3rem; }
    .purchase-options { flex-direction: column; }
    nav ul li a { padding: 10px; width: 100%; text-align: center;}
    .disclaimer-content { padding: 1.5rem; }
    .disclaimer-content h2 { font-size: 1.5rem; }
    #accept-disclaimer-btn { font-size: 0.9rem; }
}