
/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container-simple {
    margin-top: 2rem;
     padding: 1.5rem;
     background: #f9f9f9;
     border-radius: 8px;
     border: 1px solid #eee;
}


.bg-primary{

 background-color:#282828!important;
 color:#ffffff!important;
	background-image:url("N1_farbverlauf_menu.png");
	background-position:-63px;
	background-repeat:no-repeat;
		background-position-y: 3px;
}	
.navbar {
 position: sticky;
 top: 0px;
 z-index: 1030;
 color:white!important;
	font-weight:bold;
	font-family:Arial Black;
}

.navbar-nav{ height:1.8rem;padding-left:30px; }

.nav-item a{
    color: white !important;
    padding: 1.8rem 1.5rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #e9ecef !important; /* Grauweiße Farbe bei Hover */
    transform: scale(1.05);
}

.dropdown-menu {
 display: none;
 opacity: 0;
 visibility: hidden;
 transform: translateY(-10px);
 transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.nav-item:hover .dropdown-menu {
 display: block;
 opacity: 1;
 visibility: visible;
 transform: translateY(0);
}
.nav-item.inactive a.nav-link{
	color:#888888!important;
}

#orders-btn{
 display:none;
}
.orders-section{
 display:none;
}

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


/* Login Bar Styles */
.login-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left:2rem;
}

.not-logged-in {
    font-size: 14px;
    color: #e9ecef; /* Dezente Textfarbe für nicht angemeldete Benutzer */
}

#login-btn {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Product Section */
.product-section {
    padding: 2rem 0;
}

.product-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.form-control {
    padding-left: 0.4rem!important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    /*padding: 0.8rem;*/
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.radio-label:hover {
    background-color: #f1f8ff;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a6fa5;
    padding: 1rem;
    background-color: #eef7ff;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary {
    background-color: #4a6fa5;
    color: white;
    border: none;
    font-weight:normal!important;
/*    padding: 1rem 2rem; */
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s, transform 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #3a5a80;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cart Section */
.cart-section, .order-succes-section {
    padding: 2rem 0;
    display: none;
}

#cart-items {
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-price {
    font-weight: bold;
    color: #4a6fa5;
    font-size: 1.2rem;
    margin-right: 1rem;
}

#transfer-button{
 width:750px;
 height:55px;
 font-size:1.4rem;
 font-weight:700;
}

.btn-primary {
    background-color: #e73b27;
    border-color: #e73b27;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
	 		margin-bottom:4px;
}
.btn-primary:hover {
    background-color: #ff3b27;
    transform: scale(1.05);
}
        
.footer-btn {
    width: 100%;
    margin-bottom: 10px;
}

.footer-btns-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-btn-group-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.footer-btn-group-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}        

.remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn:hover {
    background-color: #c0392b;
}

#cart-total, #cart-shipping-costs {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
    //padding: 1rem;
    //margin-bottom: 1rem;
    color: #4a6fa5;
}

#cart-shipping-costs {
    font-size: 1.3rem;
    font-weight: normal;
}

/* Auth Section */
.auth-section {
    padding: 2rem 0;
    display: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 400px;
    margin: 2rem auto;
}

.auth-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#auth-form input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#show-register {
    text-align: center;
    display: block;
    margin-top: 0.5rem;
    color: #4a6fa5;
    text-decoration: none;
    font-weight: bold;
}

#show-register:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header nav {
        flex-direction: column;
        align-items: stretch;
    }
        
    .product-card {
        flex-direction: column;
    }
    
    #cart-total {
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    
    .product-card h3 {
        font-size: 1.5rem;
    }
    
    .btn-primary, #login-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

/* Icon styles */
.fas, .far {
    display: inline-block;
    text-align: center;
    width: 1.25em;
}


	
	/* Modal Styles */
	.modal {
	    display: none;
	    position: fixed;
	    top: 0;
	    left: 0;
	    width: 100%;
	    height: 100%;
	    background-color: rgba(0,0,0,0.5);
	    z-index: 2000;
	}
	
	.modal-content {
	    background-color: white;
	    padding: 2rem;
	    border-radius: 10px;
	    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
	    max-width: 400px;
	    width: 90%;
	    margin: auto;
	    position: relative;
	    top: 20px;
	}
	
	.modal-close {
	    position: absolute;
	    top: 15px;
	    right: 15px;
	    color: #aaa;
	    font-size: 28px;
	    font-weight: bold;
	    cursor: pointer;
	}
	
	.modal-close:hover {
	    color: black;
	}
	
	.modal-buttons {
	    margin-top: 20px;
	    text-align: right;
	}
	
	#status-ok-btn, #status-cancel-btn {
	    margin-left: 10px;
	}
	
	#invoice-modal .modal-content{
	 
	 max-width:1080px;
	 height:90%;
	}
	#invoice-iframe-container{
	 width:100%;
	 height:100%;
	}
	
	/* Responsive adjustments for modal */
	@media (max-width: 480px) {
	    .modal-content {
	        padding: 1.5rem;
	        margin: 1rem;
	    }
	    
	    .modal-close {
	        top: 10px;
	        right: 10px;
	        font-size: 24px;
	    }
	}

	
	/* Layout für den Adressbereich */
	
	#address-form-container{
	 display:none;
	}
	
	.address-grid {
	    display: grid;
	    grid-template-columns: repeat(2, 1fr); /* Erzeugt zwei Spalten */
	    gap: 1rem;
	}
	
	/* Damit die Felder sich automatisch anpassen und nichterfüllen */
	#address-form input {
	    width: 100%;
	    padding: 0.8rem;
	     border: 1px solid #ddd;
	     border-radius: 5px;
	}
	
	/* Die Zeile mit Straße soll die ganze Breite einnehmen (Spannt beide Spalten) */
	.input-group:nth-child(2),.input-group:nth-child(4) {
	    grid-column: span 2;
	}
	
	/* Der Bereich für die Rechnungsadresse */
	.billing-address-toggle {
	    margin-top: 1rem;
	     display: flex;
	     align-items: center;
	     gap: 0.5rem;
	     font-size: 0.9rem;
	}
	
	#separate-billing-form {
	     margin-top: 1rem;
	     padding: 1rem;
	     border: 1px dashed #ccc;
	     background: #f9f9f9;
	}
	
	
	
	#address-form h3 {
	     font-size: 1.2rem;
	     margin-bottom: 1rem;
	     color: #2c3e50;
	}
	
	.input-group {
	     display: flex;
	     gap: 10px;
	     flex-wrap: nowrap;
	}
	
	
	.billing-toggle-container {
	     margin: 1.5rem 0;
	     padding: 10px;
	     background: #fff;
	     border: 1px dashed #bbb;
	}
	
	.checkbox-label {
	     display: flex;
	     align-items: center;
	     gap: 10px;
	     cursor: pointer;
	     font-size: 0.9rem;
	}
	
	#billing-address-extra {
	     padding: 15px;
	     background: #fff;
	     border: 1px solid #ddd;
	     margin-top: 10px;
	     border-radius: 4px;
	}
	
	

	
	/* Image container with preview images */
	.image-container {
	    flex: 1;
	    min-width: 300px;
	    position: relative;
	}
	
	#main-image {
	    width: 100%;
	    height: auto;
	    cursor: pointer;
	    border-radius: 8px;
	    transition: transform 0.3s ease;
	}
	
	#main-image:hover {
	    transform: scale(1.02);
	}
	
	.image-preview {
	    display: flex;
	    gap: 10px;
	    margin-top: 15px;
	    justify-content: center;
	    align-items: center;
	}
	
	.image-preview img {
	    width: 120px;
	    height: auto;
	    object-fit: cover;
	    border-radius: 4px;
	    cursor: pointer;
	    transition: all 0.3s ease;
	    border: 2px solid transparent;
	}
	
	.image-preview img:hover {
	    transform: scale(1.1);
	    border-color: #4a6fa5;
	}
	
	/* Description with separator */
	.description {
	    margin-bottom: 1.5rem;
	    color: #666;
	    position: relative;
	    padding-bottom: 10px;
	}
	
	.description::after {
	    content: "";
	    position: absolute;
	    bottom: 0;
	    left: 0;
	    width: 100%;
	    height: 1px;
	    background-color: #ddd;
	}
	
	/* Slideshow styles */
	.slideshow-container {
	    display: none;
	    position: fixed;
	    top: 0;
	    left: 0;
	    width: 100%;
	    height: 100%;
	    background-color: rgba(0,0,0,0.9);
	    z-index: 2000;
	    justify-content: center;
	    align-items: center;
	}
	
	.slideshow-content {
	    position: relative;
	    max-width: 90vw;
	    max-height: 90vh;
	}
	
	.slideshow-image {
	    width: 100%;
	    height: auto;
	    max-height: 80vh;
	    object-fit: contain;
	}
	
	.close-btn {
	    position: absolute;
	    top: 20px;
	    right: 30px;
	    color: white;
	    font-size: 40px;
	    cursor: pointer;
	}
	
	.prev, .next {
	    cursor: pointer;
	    position: absolute;
	    top: 50%;
	    transform: translateY(-50%);
	    padding: 16px;
	    color: white;
	    font-weight: bold;
	    font-size: 24px;
	    transition: 0.3s ease;
	    user-select: none;
	}
	
	.next {
	    right: 0;
	    border-radius: 0 3px 3px 0;
	}
	
	.prev {
	    left: 0;
	    border-radius: 3px 0 0 3px;
	}
	
	/* Responsive adjustments */
	@media (max-width: 768px) {
	    .image-preview img {
	        width: 60px;
	        height: 60px;
	    }
	    
	    .slideshow-content {
	        max-width: 95vw;
	        max-height: 95vh;
	    }
	}
	
	@media (max-width: 480px) {
	    .image-preview img {
	        width: 50px;
	        height: 50px;
	    }
	    
	    .close-btn {
	        font-size: 30px;
	        top: 10px;
	        right: 15px;
	    }
	}
	

	
	.order-table-container {
	    overflow-x: auto;
	    margin-top: 1rem;
	}
	
	.order-table {
	    width: 100%;
	    border-collapse: collapse;
	    background-color: white;
	    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	    border-radius: 8px;
	    overflow: hidden;
	}
	
	.order-table thead {
	    background-color: #2c3e50;
	    color: white;
	}
	
	.order-table th,
	.order-table td {
	    padding: 1rem;
	    text-align: left;
	    border-bottom: 1px solid #eee;
	}
	
	.order-table th {
	    font-weight: 600;
	    text-transform: uppercase;
	    font-size: 0.85rem;
	    letter-spacing: 0.5px;
	}
	
	.order-table tbody tr:nth-child(even) {
	    background-color: #f8f9fa;
	}
	
	.order-table tbody tr:nth-child(odd) {
	    background-color: white;
	}
	
	.order-table tbody tr:hover {
	    background-color: #e3f2fd !important;
	    transform: scale(1.005);
	    transition: all 0.2s ease-in-out;
	    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	}
	
	.order-table tbody tr:hover td {
	    border-color: #bbdefb;
	}
	
	.status-pending {
	    background-color: #fff3e0;
	    color: #ef6c00;
	    padding: 0.25rem 0.5rem;
	    border-radius: 4px;
	    font-size: 0.8rem;
	    font-weight: 500;
	}
	
	.status-completed,.status-paid {
	    background-color: #e8f5e9;
	    color: #2e7d32;
	    padding: 0.25rem 0.5rem;
	    border-radius: 4px;
	    font-size: 0.8rem;
	    font-weight: 500;
	}
	
	.status-failed, .status-cancelled {
	    background-color: #ffebee;
	    color: #c62828;
	    padding: 0.25rem 0.5rem;
	    border-radius: 4px;
	    font-size: 0.8rem;
	    font-weight: 500;
	}
	
	.order-table .btn {
	    padding: 0.3rem 0.6rem;
	    font-size: 0.8rem;
	}
	


