/* 
* N.O. Immobilien - Services Page Optimized Styles
* Author: NAXII | ZamZob
* Version: 1.2 (Verbesserte Touch-Interaktion für mobile Geräte)
*/

/* Globale Regeln für besseres Scrolling auf Mobilgeräten */
* {
    -webkit-overflow-scrolling: touch; /* Verbessert das Scrolling auf iOS-Geräten */
}

/* Verhindert, dass Touch-Events "gefangen" werden */
.services-detail * {
    touch-action: pan-y; /* Erlaubt vertikales Scrollen auf allen Elementen */
}

/* ===== SERVICES HERO SECTION ===== */
.services-hero {
    height: 60vh;
    min-height: 500px;
}

.services-hero-heading {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.services-hero-tagline {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    color: var(--white);
}

/* ===== SERVICES INTRO SECTION ===== */
.services-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.services-intro-content {
    padding-right: var(--spacing-xl);
}

.services-intro-image {
    text-align: center;
}

.services-intro-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.services-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-mix);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.services-badge span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
}

.services-badge span:last-child {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SERVICES DETAIL SECTION ===== */
.services-detail {
    margin-top: var(--spacing-xxl);
}

/* Wrapper für service-item, um Scrolling-Probleme zu vermeiden */
.service-item-wrapper {
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    border-bottom: 1px solid var(--light-dark);
    touch-action: pan-y; /* Erlaubt vertikales Scrollen */
    -webkit-overflow-scrolling: touch; /* Verbessert das Scrolling auf iOS-Geräten */
}

.service-item-wrapper:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    touch-action: pan-y; /* Erlaubt vertikales Scrollen */
}

.service-item-wrapper:nth-child(even) .service-content {
    order: 2;
}

.service-item-wrapper:nth-child(even) .service-image {
    order: 1;
}

.service-content {
    padding: 0 var(--spacing-xl);
    touch-action: pan-y; /* Erlaubt vertikales Scrollen */
}

.service-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.service-icon-large {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

.service-title1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.service-description {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
}

.service-features {
    margin-top: var(--spacing-lg);
    touch-action: pan-y; /* Erlaubt vertikales Scrollen */
}

.service-features-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    touch-action: pan-y; /* Erlaubt vertikales Scrollen, aber verhindert, dass das Element das Scrollen "fängt" */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    touch-action: pan-y; /* Erlaubt vertikales Scrollen auf dem Element */
    pointer-events: auto; /* Stellt sicher, dass Klick-Events funktionieren */
}

.feature-icon {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.feature-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== SERVICES CTA SECTION ===== */
.services-cta {
    background: var(--gradient-mix);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-intro {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .services-intro-content {
        padding-right: 0;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .service-content {
        padding: 0;
        order: 2 !important;
    }
    
    .service-image {
        order: 1 !important;
    }
    
    .services-hero-heading {
        font-size: 3rem;
    }
    
    .services-hero-tagline {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-cta {
        padding: var(--spacing-xl);
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-hero-heading {
        font-size: 2.5rem;
    }
    
    .services-hero-tagline {
        font-size: 1.25rem;
    }
    
    .service-title1 {
        font-size: 1.75rem;
    }
    
    .service-icon-large {
        font-size: 3rem;
    }
    
    .services-badge {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .services-badge span:first-child {
        font-size: 1.25rem;
    }
    
    /* Verbesserte Touch-Interaktion für mobile Geräte */
    .service-item-wrapper,
    .service-item,
    .service-content,
    .service-features,
    .features-grid,
    .feature-item {
        touch-action: pan-y !important; /* Erzwingt vertikales Scrollen auf allen Elementen */
        -webkit-overflow-scrolling: touch !important; /* Verbessert das Scrolling auf iOS-Geräten */
    }
}