/* --- Basis --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: block;
}
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

/* --- Glasmorphismus --- */
.glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

/* --- Buttons --- */
.neon-button {
    transition: all 0.2s ease;
}
.neon-button:hover {
    box-shadow: 0 0 12px rgba(59,130,246,0.5);
    transform: scale(1.02);
}

/* --- Scroll-Fade --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header & Navigation --- */
.header-glow {
    border-bottom: 1px solid rgba(59,130,246,0.3);
    backdrop-filter: blur(12px);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* --- Floating Icons --- */
.float-icon {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* --- Textfarben --- */
.text-light { color: #e2e8f0; }
.text-muted-light { color: #94a3b8; }

/* --- Warenkorb Sidebar --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}
.cart-sidebar {
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-family: 'Orbitron', monospace;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    max-height: calc(100vh - 280px);
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-item-image {
    font-size: 2rem;
    width: 48px;
    text-align: center;
}
.cart-item-details {
    flex: 2;
}
.cart-item-name {
    font-weight: 600;
    color: white;
}
.cart-item-price {
    font-size: 0.8rem;
    color: #94a3b8;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.qty-btn {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.qty-btn:hover {
    background: #3b82f6;
    transform: scale(1.05);
}
.cart-item-total {
    font-weight: 600;
    color: #3b82f6;
    min-width: 70px;
    text-align: right;
}
.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.cart-item-remove:hover {
    opacity: 1;
}
.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(0, 0, 0, 0.3);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}
.summary-row.total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}
.cart-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}
.primary-btn, .secondary-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}
.primary-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

/* --- Checkout Form innerhalb Sidebar (optional) --- */
.checkout-form-section {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(0, 0, 0, 0.3);
}
.checkout-form-section input:focus,
.checkout-form-section select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
