/* =====================================================
   ENHANCEVISION AI - MAIN STYLESHEET
   Modern Dark Theme für KI-Bildbearbeitung Shop
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #06d6a0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: var(--font-size-base);
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo i {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn, .user-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover, .user-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: visible !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.before-after {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-box {
    position: relative;
    width: 280px;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.image-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.image-box.before {
    border: 3px solid var(--border-color);
}

.image-box.after {
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.3);
}

.image-box.after:hover {
    box-shadow: 0 15px 40px rgba(6, 214, 160, 0.5);
}

.comparison-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-box:hover .comparison-image {
    transform: scale(1.1);
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    pointer-events: none;
}

.arrow-transform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.arrow-transform i {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.arrow-transform span {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Comparison Modal */
.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.comparison-modal.active {
    display: flex;
}

.comparison-container {
    position: relative;
    width: 95%;
    max-width: 1600px;
    height: 90vh;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

.comparison-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.comparison-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.comparison-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.comparison-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.zoom-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.zoom-info i {
    color: var(--primary-color);
}

.comparison-images {
    flex: 1;
    display: flex;
    gap: 2px;
    background: var(--border-color);
    overflow: hidden;
}

.comparison-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
}

.comparison-label {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-label.after-label {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(6, 214, 160, 0.1));
    border-bottom-color: var(--accent-color);
}

.zoom-container {
    flex: 1;
    overflow: auto;
    position: relative;
    cursor: grab;
    background: #000;
}

.zoom-container:active {
    cursor: grabbing;
}

.zoomable-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.comparison-divider {
    width: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.5);
}

.zoom-controls {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-tertiary);
    border-top: 2px solid var(--border-color);
}

.zoom-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.zoom-level {
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Responsive Comparison Modal */
@media (max-width: 768px) {
    .comparison-images {
        flex-direction: column;
    }
    
    .comparison-divider {
        width: 100%;
        height: 2px;
    }
    
    .zoom-controls {
        flex-wrap: wrap;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive für Bildvergleich */
@media (max-width: 1024px) {
    .image-box {
        width: 240px;
        height: 360px;
    }
    
    .before-after {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .before-after {
        flex-direction: column;
        gap: 2rem;
    }
    
    .arrow-transform i {
        transform: rotate(90deg);
    }
    
    .image-box {
        width: 100%;
        max-width: 350px;
        height: 500px;
    }
    
    .lightbox-close,
    .lightbox-label {
        position: fixed;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .lightbox-label {
        bottom: 1rem;
    }
}

/* Sections */
section {
    padding: var(--section-padding);
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    background: var(--bg-secondary);
    overflow: visible !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Responsive: Auf kleineren Bildschirmen weniger Spalten */
@media (max-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Section */
.products {
    background: var(--bg-primary);
    overflow: visible;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    overflow: visible;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.product-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(59, 130, 246, 0.05));
    transform: none;
}

.product-card.featured:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.product-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-image i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.product-features i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.product-features i.fa-star {
    color: var(--warning-color);
}

.product-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-note {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.add-to-cart {
    width: 100%;
    justify-content: center;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning-color);
    margin-right: 0.25rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.875rem;
}
/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.contact-method div strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-method div span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    text-align: right;
}

.footer-section ul {
    list-style: none;
    text-align: right;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-secondary);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close-modal {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Cart Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.cart-item-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-total {
    text-align: right;
    padding: 1rem 0;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .before-after {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ===================================================== */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .navbar .nav-links {
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        height: auto;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    /* Navigation bleibt auf Tablet wie Desktop */
    
    /* Hero Section */
    .hero {
        padding: 60px 0 40px;
        overflow: visible;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Keep images on tablet */
    
    /* Grids */
    .features-grid,
    .products-grid,
    .pricing-grid,
    .testimonial-grid,
    .stats-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    
    /* HTML & BODY - Nur eine Scrollbar */
    html, body {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        height: auto !important;
        width: 100% !important;
    }
    
    /* SECTIONS - Normale Blöcke mit viel Abstand */
    section {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        padding: 4rem 0 !important;
        margin-bottom: 3rem !important;
    }
    
    /* Typography */
    h1 { 
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }
    
    body {
        font-size: 14px;
    }
    
    /* Container mit Padding */
    .container,
    .hero-container {
        padding: 0 1.5rem !important;
        max-width: 100%;
    }
    
    /* Navigation */
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
        height: 60px;
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        flex-direction: row !important;
    }
    
    .nav-logo {
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
        justify-content: flex-start;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    .nav-logo img {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Hide navigation menu on mobile */
    .nav-menu {
        display: none !important;
    }
    
    .nav-list {
        display: none !important;
    }
    
    .nav-toggle {
        display: none !important;  /* Hamburger-Menü ausblenden */
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: auto;
    }
    
    .cart-btn, .user-btn {
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    /* Hero */
    .hero {
        padding: 7.5rem 0 0 !important;
        overflow: visible !important;
        margin-top: 0;
        margin-bottom: 0 !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: left;
        padding: 0;
    }
    
    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle br {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Hero Visual - Bilder SAUBER */
    .hero-visual {
        display: block !important;
        margin: 2rem 0;
        width: 100%;
        padding: 0 1rem;
    }
    
    .preview-container {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
    }
    
    .before-after {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }
    
    .image-box {
        width: 85%;
        max-width: 260px;
        height: 350px !important;
        overflow: hidden !important;
        margin: 0 auto;
        border-radius: 12px;
        border: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .image-box.before,
    .image-box.after {
        border: none !important;
    }
    
    .comparison-image {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }
    
    .image-box:hover {
        transform: none;
    }
    
    .image-box:hover .comparison-image {
        transform: none;
    }
    
    .arrow-transform {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .arrow-transform i {
        font-size: 1.5rem;
    }
    
    .arrow-transform span {
        display: none;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .btn-small {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .feature-card,
    .product-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .feature-card h3,
    .product-card h3,
    .pricing-card h3 {
        font-size: 1.1rem;
    }
    
    /* ALLE SECTIONS - Einheitlich */
    .products,
    .features, 
    .testimonials,
    .contact {
        padding: 4rem 0 !important;
        margin-bottom: 4rem !important;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        overflow: visible !important;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .product-image i {
        font-size: 3rem;
    }
    
    .product-features li {
        font-size: 0.85rem;
    }
    
    .product-price .price {
        font-size: 1.75rem;
    }
    
    /* Contact Section */
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        padding: 0.875rem;
    }
    
    .contact-method i {
        font-size: 1.25rem;
        width: 35px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    
    /* Footer */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-copy {
        font-size: 0.85rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    h1 { 
        font-size: 1.35rem !important;
    }
    h2 { font-size: 1.2rem; }
    
    .container,
    .hero-container {
        padding: 0 0.75rem !important;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.35rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .stat {
        padding: 0.6rem 0.4rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
    }
}
