/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-alt: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--gradient);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Produkte Section */
.produkte {
    background: var(--bg-light);
}

.produkte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.produkt-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.produkt-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.produkt-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.produkt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produkt-card:hover .produkt-image img {
    transform: scale(1.1);
}

.produkt-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.produkt-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.produkt-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.produkt-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.produkt-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.produkt-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.preis-tag {
    background: var(--gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.preis-tag.coming-soon {
    background: var(--text-light);
    opacity: 0.8;
}

/* Preise Section */
.preise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.preis-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
}

.preis-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.preis-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.preis-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.preis-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.preis-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.preis {
    margin-bottom: 2rem;
}

.preis-betrag {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preis-zeitraum {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.preis-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.preis-features li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #eee;
}

.preis-features li:last-child {
    border-bottom: none;
}

.preise-hinweis {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Über uns Section */
.ueber-uns {
    background: var(--bg-light);
}

.ueber-uns-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ueber-uns-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ueber-uns-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.ueber-uns-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.ueber-uns-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Kontakt Section */
.kontakt {
    background: var(--white);
}

.kontakt-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.kontakt-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.kontakt-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.kontakt-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.kontakt-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.kontakt-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.kontakt-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Kontakt Form */
.kontakt-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.kontakt-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .produkte-grid {
        grid-template-columns: 1fr;
    }

    .preise-grid {
        grid-template-columns: 1fr;
    }

    .preis-card.featured {
        transform: scale(1);
    }

    .ueber-uns-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ueber-uns-stats {
        grid-template-columns: 1fr;
    }

    .kontakt-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Product Page Mobile Styles */
@media (max-width: 768px) {
    /* Product Hero Mobile */
    .product-hero h1 {
        font-size: 2rem !important;
    }
    
    .product-hero p {
        font-size: 1.1rem !important;
    }
    
    .product-hero {
        padding: 40px 0 !important;
    }
    
    /* Breadcrumb Mobile - Make it more clickable */
    .breadcrumb {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .breadcrumb a {
        padding: 5px 8px !important;
        border-radius: 5px !important;
        background-color: rgba(255,255,255,0.2) !important;
        margin-right: 5px !important;
    }
    
    /* Product Detail Grid - Make it single column on mobile */
    .product-detail-grid {
        display: block !important;
        gap: 2rem !important;
    }
    
    /* Price Box Mobile */
    .preis-box h2 {
        font-size: 2rem !important;
    }
    
    .preis-box p {
        font-size: 1rem !important;
    }
    
    .preis-box {
        padding: 20px !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Features List Mobile */
    .features-list li {
        padding: 0.8rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .features-list li span:first-child {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Optional Extras Grid Mobile */
    .extras-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .extras-grid > div {
        padding: 20px !important;
    }
    
    .extras-grid h4 {
        font-size: 1.3rem !important;
    }
    
    /* Technical Details Grid Mobile */
    .tech-details-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .tech-details-grid > div {
        padding: 20px !important;
    }
    
    /* More Products Grid Mobile */
    .more-products-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Gallery Mobile */
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Sections Padding Mobile */
    .product-section {
        padding: 40px 0 !important;
    }
    
    /* CTA Button Mobile */
    .cta-button {
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .product-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
    
    .preis-box {
        padding: 15px !important;
    }
    
    .features-list li {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }
    
    .extras-grid > div,
    .tech-details-grid > div {
        padding: 15px !important;
    }
    
    .tech-details-grid h4 {
        font-size: 1.1rem !important;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Mobile Image Optimization */
    .main-product-image img {
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    .more-products-grid img {
        height: 150px !important;
    }
    
    /* Mobile Text Sizing */
    .product-hero .breadcrumb {
        font-size: 0.8rem !important;
    }
    
    /* Mobile Button Sizing */
    .cta-button {
        width: 100% !important;
        max-width: 300px !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

/* General Image Responsiveness for all screens */
@media (max-width: 768px) {
    /* Image Gallery Mobile Optimization */
    .gallery-main {
        margin-bottom: 2rem !important;
    }
    
    .main-product-image {
        margin-bottom: 1rem !important;
    }
    
    .main-product-image img {
        width: 100% !important;
        max-height: 400px !important;
        object-fit: cover !important;
        border-radius: 15px !important;
    }
    
    .gallery-thumbnails img {
        width: 100% !important;
        height: 80px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
    /* Product Cards Mobile */
    .more-products-grid img {
        height: 180px !important;
        object-fit: cover !important;
    }
    
    .more-products-grid h4 {
        font-size: 1.1rem !important;
    }
    
    .more-products-grid p {
        font-size: 0.9rem !important;
    }
}

/* 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(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    background: #48bb78;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

/* Error Message */
.error-message {
    background: #f56565;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}