/* =======================================================
 *  Modern Navigation & Header
 * ======================================================= */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 31, 31, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.nav-logo img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-base);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: all var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gemarkt-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: visible;
}

/* Force language dropdown to show on desktop even if legacy styles hide it */
.modern-nav .language-switcher-group {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.nav-search-btn,
.nav-lang-btn {
    padding: 0.5rem;
    background: rgba(255, 31, 31, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--gemarkt-red);
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-search-btn:hover,
.nav-lang-btn:hover {
    background: var(--gemarkt-red);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-bar {
    width: 25px;
    height: 3px;
    background: var(--gemarkt-red);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 1rem;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .language-switcher-group,
    .nav-actions .lang-dropdown {
        display: none !important;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-lang-switcher {
        display: flex;
    }

    .mobile-lang-switcher .language-switcher {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.75rem;
        background: rgba(255, 31, 31, 0.05);
        border: 2px solid transparent;
        border-radius: var(--radius-md);
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-base);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-transform: none;
    }

    .mobile-lang-switcher .language-switcher .lang-flag-emoji {
        font-size: 1.1rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-lang-switcher .language-switcher .lang-flag-emoji svg {
        width: 20px;
        height: 14px;
        display: block;
    }

    .mobile-lang-switcher .language-switcher:hover {
        background: rgba(255, 31, 31, 0.1);
        border-color: var(--gemarkt-red);
    }

    .mobile-lang-switcher .language-switcher.active {
        background: var(--gemarkt-red);
        color: var(--color-white);
        border-color: var(--gemarkt-red);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1414 50%, #1a0a0a 100%);
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 31, 31, 0.2), transparent 50%),
        radial-gradient(circle at bottom left, rgba(255, 31, 31, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-scroll {
    position: absolute;
    bottom: 4.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    color: var(--color-white);
    text-align: center;
    width: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    position: relative;
}

.hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Services, Footer, etc - keeping existing styles */
.services-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 31, 31, 0.1);
    color: var(--gemarkt-red);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.8;
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 31, 31, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gemarkt-red);
    font-weight: 600;
    transition: all var(--transition-base);
}

.service-link:hover {
    gap: 1rem;
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 31, 31, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--gemarkt-red);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--gemarkt-red);
    transform: translateY(-3px);
    color: var(--color-white);
}

/* Search Modal & Language Dropdown */
.product-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.product-search-modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.product-search-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-gray-600);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.product-search-modal-close:hover {
    background: var(--color-gray-100);
    color: var(--gemarkt-red);
}

.product-search-modal-header h2 {
    margin: 0 0 1.5rem;
    color: var(--color-gray-900);
    font-size: 2rem;
}

.product-search-modal-input-wrapper {
    position: relative;
    width: 100%;
}

.product-search-modal-input-wrapper input {
    width: 100%;
    padding: 1rem 140px 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    outline: none;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.product-search-modal-input-wrapper input:focus {
    border-color: var(--gemarkt-red);
    box-shadow: 0 0 0 3px rgba(255, 31, 31, 0.1);
}

.product-search-modal-input-wrapper button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-search-modal-input-wrapper button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-red);
}

/* Language Switcher Group */
.language-switcher-group {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 31, 31, 0.05);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.language-switcher {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.language-switcher:hover {
    background: rgba(255, 31, 31, 0.1);
    color: var(--gemarkt-red);
}

.language-switcher.active {
    background: var(--gemarkt-red);
    color: var(--color-white);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    z-index: 2500;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 31, 31, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-dropdown-trigger:hover {
    background: rgba(255, 31, 31, 0.15);
    color: var(--gemarkt-red);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 14px;
}

.lang-code {
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-dropdown-trigger i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.lang-dropdown-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 2000;
    display: none;
    pointer-events: auto;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.lang-dropdown.open .lang-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-option:hover {
    background: rgba(255, 31, 31, 0.1);
}

.lang-option.active {
    background: rgba(255, 31, 31, 0.15);
    color: var(--gemarkt-red);
}

.lang-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Mobile Language Switcher Wrapper */
.mobile-lang-switcher-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-lang-switcher {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .mobile-lang-switcher {
        display: flex;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .hero-scroll {
        bottom: 3rem !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        z-index: 5;
    }

    .hero-section {
        padding: 0;
    }

    .hero-content {
        padding: 1rem;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-bar {
    width: 25px;
    height: 3px;
    background: var(--gemarkt-red);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .language-switcher-group,
    .nav-actions .lang-dropdown {
        display: none !important;
    }

    .nav-actions .btn {
        display: none;
    }
}