/* CSS Fixes für Zentrierung und Abstände */

/* Moderner, eleganterer Header */
header {
    margin: 0 30px 30px 30px !important;
    text-align: center !important;
    width: calc(100% - 60px) !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    
    /* Glasmorphismus-Effekt */
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    /* Elegante Schatten und Effekte */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    
    /* Plastischer 3D-Effekt */
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid rgba(200, 200, 200, 0.8) !important;
    border-radius: 16px !important;
    
    /* Weiche Übergänge */
    transition: all 0.3s ease-in-out !important;
    
    /* Leichter Innenabstand */
    padding: 20px 35px !important;
}

/* Eleganteres Logo */
.logo h1 a {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
}

.logo h1 a:hover {
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Modernere Navigationslinks */
nav ul li a {
    position: relative !important;
    color: var(--secondary-color) !important;
    font-weight: 500 !important;
    padding: 8px 4px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

nav ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

nav ul li a:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color)) !important;
    transition: all 0.3s ease !important;
    opacity: 0.8 !important;
    border-radius: 2px !important;
}

nav ul li a:hover:after {
    width: 100% !important;
}

/* Scrolleffekt für den Header */
@media (min-width: 769px) {
    body.scrolled header {
        padding: 15px 35px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                    0 4px 8px rgba(0, 0, 0, 0.05) !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

.logo {
    text-align: left !important;
    margin: 0 !important;
    width: auto !important;
}

.logo h1 {
    font-size: 2.4rem !important;
    white-space: nowrap !important;
    width: auto !important;
}

nav {
    width: auto !important;
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
}

nav ul {
    justify-content: flex-end !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
}

nav ul li {
    margin: 0 15px !important;
    text-align: center !important;
}

/* Allgemeine Abschnitte */
section {
    padding: 100px 0;
    text-align: center !important;
}

.section-header {
    text-align: center !important;
    margin-bottom: 60px;
}

/* About Section */
.about-content {
    padding: 0 40px !important;
    text-align: center !important;
}

.about-text {
    padding: 20px !important;
    text-align: center !important;
}

/* Products Section */
.products {
    text-align: center !important;
    padding: 100px 0 !important;
}

.products-grid {
    padding: 0 40px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    text-align: center !important;
    justify-content: center !important;
}

@media (max-width: 1200px) {
    .products-grid {
        justify-content: center !important;
    }
    
    .product-card {
        width: calc(33.333% - 30px) !important;
        max-width: 280px !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        justify-content: center !important;
    }
    
    .product-card {
        width: calc(50% - 30px) !important;
        max-width: 280px !important;
    }
}

@media (max-width: 576px) {
    .products-grid {
        justify-content: center !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 280px !important;
    }
}

.product-card {
    text-align: center !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.product-info {
    text-align: center !important;
    padding: 25px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.product-info h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.product-info h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px !important;
    height: 2px !important;
    background: linear-gradient(to right, var(--primary-color), transparent) !important;
}

.product-info p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* Zusätzliche Produktkarten-Fixes */
.product-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.product-image img {
    transition: transform 0.5s ease !important;
}

.product-card:hover .product-image img {
    transform: scale(1.05) !important;
}

/* Shops Section */
.shops {
    text-align: center !important;
}

.shops-container {
    padding: 0 40px !important;
    margin: 0 auto !important;
    text-align: center !important;
    justify-content: center !important;
}

.shop-card {
    text-align: center !important;
    margin: 10px !important;
}

.shop-info {
    text-align: center !important;
    padding: 0 15px !important;
}

/* Testimonials Section */
.testimonials {
    text-align: center !important;
}

.testimonials-slider {
    padding: 10px 40px 40px !important;
    margin: 0 auto !important;
    justify-content: flex-start !important;
    -ms-overflow-style: auto !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    width: calc(100% - 80px) !important;
}

.testimonial-card {
    text-align: center !important;
    margin: 10px !important;
    flex: 0 0 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    box-sizing: border-box !important;
}

.testimonial-text {
    text-align: center !important;
}

/* Contact Section */
.contact-content {
    padding: 0 40px !important;
    text-align: center !important;
    justify-content: center !important;
}

.contact-info {
    text-align: center !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.contact-info p {
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.social-links {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
}

.social-icons {
    justify-content: center !important;
    display: flex !important;
}

/* Footer */
footer {
    margin: 50px 30px 30px 30px !important;
    padding: 40px !important;
    text-align: center !important;
}

.footer-content {
    text-align: center !important;
    padding: 0 20px !important;
    justify-content: center !important;
}

.copyright, .footer-links {
    text-align: center !important;
    width: 100% !important;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        margin: 0 20px 20px 20px !important;
        flex-direction: column !important;
    }
    
    .logo {
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    nav {
        width: 100% !important;
        justify-content: center !important;
    }
    
    nav ul {
        justify-content: center !important;
    }
    
    .about-content, .contact-content, .shops-container {
        padding: 0 25px !important;
    }
    
    .products-grid, .testimonials-slider {
        padding: 0 25px 40px !important;
    }
    
    footer {
        margin: 40px 20px 20px 20px !important;
    }
}

@media (max-width: 480px) {
    header {
        margin: 0 15px 15px 15px !important;
    }
    
    .about-content, .contact-content, .shops-container, 
    .products-grid, .testimonials-slider {
        padding: 0 20px !important;
    }
    
    footer {
        margin: 30px 15px 15px 15px !important;
    }
}

/* Spezielle Fixes für Produktüberschriften */
#produkte .product-info h3::after {
    display: none !important;
}

#produkte .product-info h3 {
    position: relative !important;
    padding-bottom: 15px !important;
}

#produkte .product-info h3::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px !important;
    height: 2px !important;
    background: linear-gradient(to right, var(--primary-color), transparent) !important;
}

/* Direktes Überschreiben des Produktbereichs */
#produkte {
    text-align: center !important;
}

#produkte .products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    padding: 0 40px !important;
    margin: 0 auto !important;
    justify-content: center !important;
}

@media (max-width: 1200px) {
    #produkte .products-grid {
        justify-content: center !important;
    }
    
    #produkte .product-card {
        width: calc(33.333% - 30px) !important;
        max-width: 280px !important;
    }
}

@media (max-width: 768px) {
    #produkte .products-grid {
        justify-content: center !important;
    }
    
    #produkte .product-card {
        width: calc(50% - 30px) !important;
        max-width: 280px !important;
    }
}

@media (max-width: 576px) {
    #produkte .products-grid {
        justify-content: center !important;
    }
    
    #produkte .product-card {
        width: 100% !important;
        max-width: 280px !important;
    }
}

#produkte .product-card {
    margin: 0 auto 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    float: none !important;
    vertical-align: top !important;
}

.stock-info {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: auto !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.in-stock {
    color: #2e7d32 !important;
    background-color: rgba(46, 125, 50, 0.1) !important;
}

.out-of-stock {
    color: #c62828 !important;
    background-color: rgba(198, 40, 40, 0.1) !important;
}

/* Produkt-Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    transform: scale(1.2);
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.modal-product-image {
    flex: 0 0 250px;
    max-width: 100%;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-details {
    flex: 1;
    min-width: 250px;
}

.modal-product-details p {
    line-height: 1.6;
    margin-bottom: 15px;
}

#modal-product-stock.in-stock {
    color: #2e7d32;
    background-color: rgba(46, 125, 50, 0.1);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

#modal-product-stock.out-of-stock {
    color: #c62828;
    background-color: rgba(198, 40, 40, 0.1);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-product-image {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .modal-product-image img {
        max-width: 250px;
    }
}

/* Produkt-Bildergalerie im Modal */
.modal-product-gallery {
    flex: 0 0 250px;
    max-width: 100%;
}

.modal-main-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid #eee;
    transition: all 0.2s ease;
}

.gallery-thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Anpassungen für die Responsivität */
@media (max-width: 768px) {
    .gallery-thumbnails {
        justify-content: center;
    }
    
    .modal-product-gallery {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .modal-main-image {
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
    }
} 