/* Moderne Animationen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Utility Klassen für Animationen */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Basis Styles */
html {
    scroll-behavior: smooth;
}

::selection {
    @apply bg-accent text-white;
}

/* Form Inputs */
.input {
    @apply w-full px-4 py-3 border-2 border-gray-200 rounded-lg transition-all duration-300 bg-white focus:outline-none focus:border-accent focus:ring-4 focus:ring-accent/10;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-link {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-link.active {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered Animation Delays */
.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

/* Navigation Styles */
.nav-link {
    position: relative;
    color: #2A2A2A;
    font-weight: 500;
    transition: all 0.4s ease;
    padding: 0.5rem 0;
    margin: 0 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #D4AF37;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

/* Moderne Navigation */
#main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-nav.scrolled {
    height: 4rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-family: 'Marcellus', serif;
    color: #2A2A2A;
    padding: 1.25rem 1.75rem;
    margin: 0.5rem 1rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    text-align: left;
    transform: translateX(50px);
    opacity: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #D4AF37, #F5D76E);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.1);
}

.mobile-nav-link:hover::before {
    opacity: 1;
}

/* Anpassung der Container-Abstände für die Links */
#mobile-menu nav {
    padding: 1rem;
}

#mobile-menu nav .space-y-4 {
    margin-top: 2rem;
}

/* Hover Effekt mit Gradient Overlay */
.mobile-nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.05), rgba(245, 215, 110, 0.05));
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-link:hover::after {
    opacity: 1;
}

#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu .container {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#mobile-menu-close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2A2A2A;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

#mobile-menu-close:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: rotate(90deg) scale(1.1);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.3);
}

.mobile-menu-header {
    padding: 2.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

#mobile-menu.active .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer {
    padding: 2rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

#mobile-menu.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Button */
#mobile-menu-button {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
}

.menu-button-span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px 0;
    background: #2A2A2A;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 1px;
}

#mobile-menu-button:hover .menu-button-span {
    background: #D4AF37;
}

/* Glasmorphismus */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #2A2A2A, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Hover-Strich beim Logo entfernt */
.gradient-text::after {
    display: none;
}

/* Logo-Größe für mobile Geräte */
@media (max-width: 768px) {
    #main-nav img {
        height: 3.5rem !important;
        width: auto;
    }
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card h3 {
    transition: all 0.4s ease;
}

.service-card:hover h3 {
    color: #D4AF37;
    transform: translateX(5px);
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #D4AF37;
    transition: all 0.4s ease;
}

.service-card:hover .price {
    transform: scale(1.1);
}

.service-card .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .service-card {
        padding: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .mobile-nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 0;
    }
}

/* Loading Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.review-card:hover::before {
    transform: translateX(100%);
}

/* Star Rating */
.star-rating {
    color: #D4AF37;
    display: inline-flex;
}

/* Instagram Feed */
.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 1;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-post::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover::after {
    opacity: 1;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

/* Instagram Link */
.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4AF37;
    transition: all 0.3s ease;
    position: relative;
}

.instagram-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.instagram-link:hover {
    color: #2A2A2A;
}

.instagram-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* About Section Enhancements */
.about-content {
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border-top: 2px solid #D4AF37;
    border-left: 2px solid #D4AF37;
}

.about-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #D4AF37;
    border-right: 2px solid #D4AF37;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
}

/* Mobile Optimierungen für neue Sektionen */
@media (max-width: 768px) {
    .review-card {
        padding: 1.5rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Moderne Buttons */
.btn-primary {
    background: linear-gradient(45deg, #D4AF37, #F5D76E);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #F5D76E, #D4AF37);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    letter-spacing: 0.5px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #F5D76E, transparent, #D4AF37);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
    animation: shimmerGold 2s linear infinite;
}

.btn-primary:hover::after {
    opacity: 0.5;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    color: #D4AF37;
    background: transparent;
    border: 2px solid #D4AF37;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #D4AF37, #F5D76E);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    letter-spacing: 0.5px;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #D4AF37, transparent, #F5D76E);
    opacity: 0.3;
    z-index: -2;
    animation: shimmerGold 4s linear infinite;
}

@keyframes shimmerGold {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Elfsight Branding vollständig ausblenden */
[href*="elfsight.com"],
[onclick*="elfsight.com"],
a[href*="utm_source=websites"],
.eapps-link,
.eapps-widget-toolbar,
.eapps-instagram-feed-title,
.eapps-instagram-feed-copyright,
[class*="eapps-instagram-feed"][class*="branding"],
[class*="eapps-widget"][class*="branding"],
[title*="Remove Elfsight logo"],
[href*="elfsight"][style*="display:inline-flex"],
[href*="elfsight"][style*="display: inline-flex"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    -webkit-transform: scale(0) !important;
    transform: scale(0) !important;
    max-height: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    z-index: -1 !important;
}

/* Zusätzliche Regeln für dynamisch eingefügte Elemente */
.elfsight-app-* [href*="elfsight"],
.elfsight-app-* [class*="branding"],
.elfsight-app-* [title*="Elfsight"],
.elfsight-app-* [style*="margin: 8px auto"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Container-Anpassungen */
.elfsight-app-* {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Image slider styles */
.slider-container {
    width: 100%;
    padding: 0;
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slider-item {
    will-change: transform;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .slider-item {
        height: 400px;
        min-width: 280px;
    }
    
    .slider-container {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .slider-item {
        height: 300px;
        min-width: 220px;
    }
}

/* Partner Section Styles */
.partner-logo-card {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: white;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.partner-logo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(120deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-logo-card:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.partner-logo-card:hover::before {
    opacity: 1;
}

.partner-logo-card img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.partner-logo-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .partner-logo-card {
        aspect-ratio: auto;
        height: 80px;
    }
}

