/* Reset und Grundstile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: #f9f9f9;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header und Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22;
    text-decoration: none !important;
    cursor: pointer;
    display: inline-block;
}

.logo:visited, .logo:active, .logo:hover {
    color: #e67e22;
    text-decoration: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    margin-left: 2rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-links a:hover {
    color: #e67e22;
}

/* Mobile Menu Styles - Modern Version */
.mobile-menu {
    display: none;
    z-index: 1010;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    margin-left: 15px;
}

.mobile-menu-icon {
    width: 24px;
    height: 2px;
    background-color: #2c3e50;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background-color: #2c3e50;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.mobile-menu-icon::before {
    top: -8px;
}

.mobile-menu-icon::after {
    bottom: -8px;
}

/* Active Hamburger Animation */
.mobile-menu.active .mobile-menu-icon {
    background-color: transparent;
}

.mobile-menu.active .mobile-menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu.active .mobile-menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: opacity 0.3s ease, transform 0.3s ease;
        padding: 0;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }
    
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        overflow-y: auto;
    }
    
    .nav-links a {
        margin: 1rem 0;
        font-size: 1.4rem;
        padding: 1rem 0;
        width: 80%;
        text-align: center;
        color: #2c3e50;
        position: relative;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #e67e22;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-links a:hover::after,
    .nav-links a:active::after {
        width: 50%;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        color: #e67e22;
    }
    
    /* Navigation Items Animation */
    .nav-links.active a {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }
    
    .nav-links.active a:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .nav-links.active a:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .nav-links.active a:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .nav-links.active a:nth-child(4) {
        animation-delay: 0.4s;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add branding and background shape to mobile menu - only on mobile */
@media (min-width: 769px) {
    .nav-links::before {
        display: none;
    }
    
    .mobile-nav-branding {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 250px;
        height: 250px;
        background-color: rgba(230, 126, 34, 0.05);
        border-radius: 50%;
        z-index: -1;
    }
}

.mobile-nav-branding {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.nav-links.active .mobile-nav-branding {
    opacity: 0.8;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: none;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5)), url('bilder/S_2.jpeg') no-repeat center center;
    background-size: cover;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1rem;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Produkte Section */
.products {
    padding: 5rem 1rem;
    background-color: #f9f9f9;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.product-card img,
.product-images {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img,
.product-card:hover .product-images img {
    transform: scale(1.05);
}

.product-images {
    position: relative;
    overflow: hidden;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-images img:last-child {
    opacity: 0;
}

.product-images:hover img:first-child {
    opacity: 0;
}

.product-images:hover img:last-child {
    opacity: 1;
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem 1.2rem 1.5rem;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.product-card-footer .price {
    margin-bottom: 0;
    color: #555;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #e67e22;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.product-card h3::before {
    display: none;
}

.product-card p {
    color: #555;
    font-size: 1rem;
    margin: 0.8rem 0 1.2rem 0;
    min-height: 3em;
    line-height: 1.5;
}

.product-card .price {
    color: #555;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.details-button {
    display: block;
    width: auto;
    padding: 0.7rem 1.2rem;
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    overflow: hidden;
    margin-top: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.details-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.details-button:hover::before {
    left: 100%;
}

.details-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230,126,34,0.25);
}

/* Macht Button auf mobilen Geräten sichtbarer */
@media (max-width: 480px) {
    .details-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Über uns Section */
.about {
    padding: 5rem 1rem;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Kontakt Section */
.contact {
    padding: 5rem 1rem;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #e67e22;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.submit-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.contact-info {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.contact-info i {
    margin-right: 0.8rem;
    color: #e67e22;
    width: 20px;
    text-align: center;
}

.contact-info .note {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-style: italic;
    color: #888;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: #ecf0f1;
}

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

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #e67e22;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #e67e22;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 520px;
    width: 95vw;
    position: relative;
    text-align: center;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { transform: translateY(-40px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 3100;
}

.close-modal:hover {
    color: #e67e22;
}

@media (max-width: 600px) {
    .close-modal {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 2rem;
        padding: 0.5rem;
        background: rgba(80, 80, 80, 0.8);
        color: #fff;
        border-radius: 50%;
        z-index: 3200;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .close-modal:hover {
        background: rgba(230, 126, 34, 0.9);
        color: #fff;
    }
    
    .modal-content {
        margin: 24px auto 0 auto !important;
        padding-top: 1.5rem !important;
    }
    
    .product-detail-content {
        overflow: visible;
        position: relative;
        margin: 15px;
    }
    
    .product-detail-content .modal-image {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .product-detail-content .modal-image img {
        background: transparent !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

.email-client-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 2.2rem;
}

.email-client-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1.7rem;
    background: #f7f7f7;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 180px;
    justify-content: center;
}
.email-client-button i {
    font-size: 1.5rem;
    margin-bottom: 0;
}
.email-client-button:hover {
    background: #fff3e6;
    border-color: #e67e22;
    color: #e67e22;
    box-shadow: 0 4px 16px rgba(230,126,34,0.08);
}
.email-client-button:hover i {
    color: #e67e22;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        max-width: 98vw;
    }
    .email-client-options {
        flex-direction: column;
        gap: 0.7rem;
    }
    .email-client-button {
        width: 100%;
        min-width: unset;
        font-size: 1rem;
        padding: 1rem 0.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 5rem 1rem 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        z-index: 999;
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        background-color: #f8f9fa;
    }

    .nav-links a:hover {
        background-color: #e67e22;
        color: #fff;
    }

    .mobile-menu {
        display: block;
        z-index: 1000;
    }

    .hero {
        min-height: 80vh;
    }
    .hero::before {
        background-position: center top;
        background-size: cover;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem;
    }

    .submit-button {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card-content {
        padding: 1rem;
    }
    
    .product-card img,
    .product-images {
        height: 200px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
        padding-left: 0.8rem;
        border-left: 3px solid #e67e22;
    }
    
    .product-card p {
        font-size: 0.95rem;
        margin: 0.7rem 0 1rem 0;
        min-height: auto;
    }
    
    .product-card .price {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-bottom p {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .legal-content {
        margin: 100px 1rem 2rem;
        padding: 1.5rem;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .legal-content p {
        font-size: 0.95rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .nav-links a:hover {
        background-color: transparent;
        color: #2c3e50;
    }

    .nav-links a:active {
        background-color: #e67e22;
        color: #fff;
    }

    .cta-button:hover {
        transform: none;
    }

    .cta-button:active {
        transform: translateY(-2px);
    }

    .details-button:hover {
        transform: none;
    }

    .details-button:active {
        transform: translateY(-2px);
    }

    .submit-button:hover {
        transform: none;
    }

    .submit-button:active {
        transform: translateY(-2px);
    }
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
}

/* Improve scrolling on iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Improve form elements for mobile */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
}

/* Improve button touch targets */
button,
.cta-button,
.details-button,
.submit-button {
    min-height: 44px;
    min-width: 44px;
}

/* Improve modal for mobile */
@media (max-width: 600px) {
    .modal {
        align-items: center !important;
        justify-content: center !important;
        height: 100vh !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        width: 100vw !important;
    }
    .modal-content {
        margin: 32px auto 24px auto !important;
        padding-top: 1.2rem !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    .product-detail-content .modal-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    .product-detail-content .modal-image {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
    }
    .product-detail-content .modal-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 98vw !important;
        max-height: 50vh !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
}

/* Produktseite Styles */
.products-page {
    padding: 120px 1rem 5rem;
    background-color: #f9f9f9;
}

.products-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.products-page h2 {
    text-align: center;
    margin: 4rem 0 3rem;
    color: #2c3e50;
    font-size: 2rem;
}

.product-images {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-images img:last-child {
    opacity: 0;
}

.product-images:hover img:first-child {
    opacity: 0;
}

.product-images:hover img:last-child {
    opacity: 1;
}

@media (max-width: 768px) {
    .products-page {
        padding: 100px 1rem 3rem;
    }

    .products-page h1 {
        font-size: 2rem;
    }

    .products-page h2 {
        font-size: 1.5rem;
        margin: 3rem 0 2rem;
    }
}

.view-all-products {
    text-align: center;
    margin-top: 3rem;
}

.view-all-products .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-all-products .cta-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Formular-Nachrichten als zentrales Popup */
.form-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    max-width: 90vw;
    z-index: 4000;
    margin: 0;
    padding: 1.3rem 2.2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    font-size: 1.1rem;
    opacity: 1;
    animation: popupIn 0.25s cubic-bezier(.4,2,.6,1) both;
}
@keyframes popupIn {
    from { opacity: 0; transform: translate(-50%, -60%) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1.5px solid #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1.5px solid #f5c6cb;
}

/* Optional: halbtransparentes Overlay für Popups */
.form-message-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 3999;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .form-message {
        min-width: 0;
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }
}

/* Submit-Button Styles */
.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* E-Mail-Client Auswahl */
.email-client-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.email-client-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.email-client-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #e67e22;
}

.email-client-button i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.email-client-button:hover i {
    color: #e67e22;
}

.email-client-button:nth-child(1) i { color: #2c3e50; }
.email-client-button:nth-child(2) i { color: #DB4437; }
.email-client-button:nth-child(3) i { color: #0078D4; }
.email-client-button:nth-child(4) i { color: #720E9E; }

.email-client-button:hover:nth-child(1) i { color: #e67e22; }
.email-client-button:hover:nth-child(2) i { color: #e67e22; }
.email-client-button:hover:nth-child(3) i { color: #e67e22; }
.email-client-button:hover:nth-child(4) i { color: #e67e22; }

/* Overlay für Mail-Client-Auswahl: transparent, blockiert nur Klicks */
.email-client-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: transparent;
    z-index: 2999;
    pointer-events: auto;
}

/* Kompakteres und schmaleres Produkt-Detail-Modal */
.product-detail-content {
    max-width: 600px !important;
    width: 98vw !important;
    padding: 1.2rem 0.7rem !important;
    min-width: 0;
    border-radius: 18px;
    margin: 0 auto;
}
.product-detail-content .modal-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative;
    height: auto !important;
}
.product-detail-content .modal-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 0.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}
.product-detail-content .modal-image img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    background: #fff;
}
@media (max-width: 700px) {
    .product-detail-content {
        max-width: 99vw !important;
        padding: 0.7rem 0.2rem !important;
    }
    .product-detail-content .modal-image {
        max-width: 98vw;
    }
}

/* Lightbox Navigation */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalIn 0.2s;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #fff;
    display: block;
    position: relative;
    z-index: 5001;
}

.lightbox-close {
    position: absolute;
    top: 2.5rem;
    right: 3.5rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 5100;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: color 0.2s;
}

.lightbox-navigation {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5002;
}

.lightbox-nav-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 300px;
    max-width: 90%;
    padding: 0 60px;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 5003;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.lightbox-prev {
    left: -5px;
}

.lightbox-next {
    right: -5px;
}

.lightbox-nav:hover {
    background: rgba(230, 126, 34, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    flex-wrap: wrap;
    max-width: 300px;
}

.lightbox-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin: 0 8px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lightbox-dot:hover {
    transform: scale(1.2);
}

.lightbox-dot.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Telefon-Link Styling */
a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit;
    display: inline-block;
}

.contact-info a[href^="tel"] {
    color: #666 !important;
}

.footer-section a[href^="tel"] {
    color: #ecf0f1 !important;
}

/* Verhindern der Default-Mobile-Styles */
@media (max-width: 768px) {
    a[href^="tel"] {
        color: inherit !important;
        text-decoration: none !important;
    }
}

/* Image Navigation for Product Details */
.image-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    position: relative;
    padding: 0;
}

.nav-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    max-width: 300px;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 8px 80px !important;
    border-radius: 40px;
}

.nav-arrow {
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.nav-arrow.prev-image {
    left: 6px;
}

.nav-arrow.next-image {
    right: 6px;
}

.nav-arrow:hover {
    background: #d35400;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.nav-arrow i {
    font-size: 14px;
}

.image-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap;
}

.image-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.image-dot:hover {
    transform: scale(1.3);
    background-color: #999;
}

.image-dot.active {
    background-color: #e67e22;
    transform: scale(1.4);
    box-shadow: 0 1px 4px rgba(230, 126, 34, 0.4);
}

.lightbox-dot.active {
    background-color: white;
    transform: scale(1.3);
}

.lightbox-close:hover {
    color: #e67e22;
}

@media (max-width: 768px) {
    .image-navigation {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .nav-arrows {
        max-width: 260px;
        padding: 8px 40px !important;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
    }
    
    .image-dot {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .nav-arrows {
        max-width: 220px;
        padding: 5px 35px;
    }
    
    .nav-arrow {
        width: 28px;
        height: 28px;
    }
    
    .nav-arrow i {
        font-size: 12px;
    }
}

/* Modernes Styling für rechtliche Seiten (Datenschutz/Impressum) */
.legal-content {
    max-width: 800px;
    margin: 120px auto 50px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    line-height: 1.7;
    font-size: 1.02rem;
    color: #456;
}

.legal-content h1 {
    color: #2c3e50;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.legal-content h1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #e67e22;
    border-radius: 2px;
}

.legal-content h2 {
    color: #2c3e50;
    margin: 2.5rem 0 1rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 18px;
}

.legal-content h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: #e67e22;
    border-radius: 4px;
}

.legal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    margin-left: 18px;
    list-style-type: none;
}

.legal-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}

.legal-content a {
    color: #e67e22;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-content a:hover {
    border-color: #e67e22;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2.5rem;
    color: #e67e22;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: rgba(230, 126, 34, 0.08);
    transition: all 0.2s;
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    background: rgba(230, 126, 34, 0.15);
    text-decoration: none;
    transform: translateX(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-content {
        margin: 100px auto 40px;
        padding: 1.8rem;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
        margin: 2rem 0 0.8rem;
    }
}

/* Globales Scroll-Verhalten */
html {
    scroll-behavior: smooth;
}

/* Anker-Offset für Header-Höhe */
#kontakt {
    scroll-margin-top: 80px; /* Entspricht der Header-Höhe */
}

.kleinanzeigen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    width: 100%;
    padding: 1rem 0;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.13rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.08);
    transition: all 0.2s;
    margin-bottom: 0.2em;
    text-decoration: none;
    margin-top: 0.3em;
}
.kleinanzeigen-button i {
    font-size: 1.2rem;
    margin-right: 0.2em;
}
.kleinanzeigen-button:hover {
    background-color: #219150;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.13);
    text-decoration: none;
}

@media (max-width: 600px) {
    .image-navigation,
    .nav-arrows,
    .image-dots {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* Modernes Styling für die Preisliste im Produkt-Detail-Modal */
.product-pricelist {
    margin: 1.5em 0 1em 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: 1.1em 1.2em 0.7em 1.2em;
    width: 100%;
    overflow-x: auto;
}
.product-pricelist h4 {
    margin: 0 0 0.7em 0;
    color: #e67e22;
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.product-pricelist table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.04rem;
    background: transparent;
}
.product-pricelist tr {
    transition: background 0.18s;
}
.product-pricelist tr:hover {
    background: #f9f6f2;
}
.product-pricelist td {
    padding: 0.45em 0.7em 0.45em 0;
    color: #2c3e50;
    border-bottom: 1px solid #f0ece8;
    font-size: 1.04rem;
}
.product-pricelist td:last-child {
    text-align: right;
    font-weight: 600;
    color: #e67e22;
    white-space: nowrap;
}
.product-pricelist tr:last-child td {
    border-bottom: none;
}
@media (max-width: 600px) {
    .product-pricelist {
        padding: 0.7em 0.3em 0.5em 0.3em;
        font-size: 0.98rem;
    }
    .product-pricelist h4 {
        font-size: 1.01rem;
    }
    .product-pricelist td {
        font-size: 0.98rem;
        padding: 0.35em 0.3em 0.35em 0;
    }
}

/* Modal immer vollständig sichtbar und scrollbar machen */
.modal.product-detail-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    width: 100vw !important;
    padding-top: 2vh;
    padding-bottom: 2vh;
}
.product-detail-content {
    max-height: 98vh !important;
    overflow-y: auto !important;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .modal.product-detail-modal {
        padding-top: 1vh;
        padding-bottom: 1vh;
    }
    .product-detail-content {
        max-height: 99vh !important;
    }
}

/* Moderner, auffälliger Kontaktieren-Button im Modal */
.product-detail-content .contact-button {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 1.1em auto 0.5em auto;
    padding: 1.1em 0;
    background: linear-gradient(90deg, #e67e22 0%, #f2994a 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.18rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(230,126,34,0.13);
    letter-spacing: 0.02em;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
    text-align: center;
    text-decoration: none;
}
.product-detail-content .contact-button i {
    font-size: 1.25rem;
    margin-right: 0.5em;
}
.product-detail-content .contact-button:hover, .product-detail-content .contact-button:focus {
    background: linear-gradient(90deg, #d35400 0%, #e67e22 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(230,126,34,0.18);
    outline: none;
}

/* Bildnavigation im Produkt-Modal immer unter dem Bild, mittig */
.product-detail-content .image-navigation {
    display: block !important;
    width: 100%;
    margin: 0.7em auto 0.2em auto;
    text-align: center;
    position: static !important;
}
.product-detail-content .nav-arrows {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: static !important;
}
.product-detail-content .nav-arrow {
    position: static !important;
    margin: 0 10px !important;
}
.product-detail-content .image-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 8px !important;
    background: transparent !important;
    padding: 0 !important;
} 