/**
 * Immersive Diensten (Services) Single Page Styling
 */

/* Dienst Hero Immersive */
.dienst-hero-immersive {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-dark);
}

.dienst-hero-immersive__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.dienst-hero-immersive__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52, 30, 50, 0.85) 0%, rgba(113, 84, 109, 0.75) 100%);
}

.dienst-hero-immersive__content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.dienst-title-immersive {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

.dienst-categories-immersive {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s both;
    margin-bottom: 2rem;
}

.dienst-category-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-default);
}

.dienst-category-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Dienst Intro & Content Sections */
.dienst-intro-section,
.dienst-content-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.dienst-intro-immersive {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.dienst-body-immersive {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Highlights Section */
.dienst-highlights-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-gray-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.highlight-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(158, 117, 151, 0.1);
    border-radius: 50%;
    color: var(--color-secondary);
    font-size: 1.8rem;
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.highlight-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Dienst Gallery Slider */
.dienst-gallery-slider {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.dienst-gallery-swiper {
    position: relative;
    padding: 0 60px;
}

.dienst-gallery-swiper .swiper-button-prev,
.dienst-gallery-swiper .swiper-button-next {
    color: var(--color-secondary);
    background: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.dienst-gallery-swiper .swiper-button-prev:after,
.dienst-gallery-swiper .swiper-button-next:after {
    font-size: 1.25rem;
    font-weight: bold;
}

.dienst-gallery-swiper .swiper-pagination-bullet {
    background: var(--color-secondary);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.dienst-gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-secondary);
}

/* Process Timeline */
.dienst-process-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-gray-light);
}

.process-timeline {
    display: grid;
    gap: 3rem;
    margin-top: var(--spacing-lg);
    position: relative;
}

.process-step {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Desktop: 4 columns with horizontal lines */
@media (min-width: 1024px) {
    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Horizontal lines between items in same row */
    .process-step:not(:nth-child(4n))::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1.5rem;
        width: 3rem;
        height: 2px;
        background: var(--color-secondary);
        opacity: 0.3;
        transform: translateY(-50%);
    }
}

/* Tablet: 2 columns without connecting lines */
@media (min-width: 768px) and (max-width: 1023px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column with vertical lines */
@media (max-width: 767px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -1.5rem;
        left: 50%;
        width: 2px;
        height: 3rem;
        background: var(--color-secondary);
        opacity: 0.3;
        transform: translateX(-50%);
    }
}

.process-step__number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(158, 117, 151, 0.3);
}

.process-step__icon {
    width: 80px;
    height: 80px;
    margin: 1rem auto 1.5rem;
}

.process-step__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.process-step p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Dienst Projects Slider */
.dienst-projects-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.dienst-projects-swiper {
    position: relative;
    padding: 0 60px;
}

.dienst-projects-swiper .swiper-button-prev,
.dienst-projects-swiper .swiper-button-next {
    color: var(--color-secondary);
    background: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.dienst-projects-swiper .swiper-button-prev:after,
.dienst-projects-swiper .swiper-button-next:after {
    font-size: 1.25rem;
    font-weight: bold;
}

.dienst-projects-swiper .swiper-pagination-bullet {
    background: var(--color-secondary);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.dienst-projects-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-secondary);
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .dienst-gallery-swiper,
    .dienst-projects-swiper {
        padding: 0 40px;
    }
    
    .dienst-gallery-swiper .swiper-button-prev,
    .dienst-gallery-swiper .swiper-button-next,
    .dienst-projects-swiper .swiper-button-prev,
    .dienst-projects-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .dienst-gallery-swiper .swiper-button-prev:after,
    .dienst-gallery-swiper .swiper-button-next:after,
    .dienst-projects-swiper .swiper-button-prev:after,
    .dienst-projects-swiper .swiper-button-next:after {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .dienst-hero-immersive {
        min-height: 70vh;
    }
    
    .dienst-title-immersive {
        font-size: 2rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dienst-gallery-swiper,
    .dienst-projects-swiper {
        padding: 0 20px;
    }
    
    .dienst-gallery-swiper .swiper-button-prev,
    .dienst-gallery-swiper .swiper-button-next,
    .dienst-projects-swiper .swiper-button-prev,
    .dienst-projects-swiper .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .dienst-gallery-swiper .swiper-button-prev:after,
    .dienst-gallery-swiper .swiper-button-next:after,
    .dienst-projects-swiper .swiper-button-prev:after,
    .dienst-projects-swiper .swiper-button-next:after {
        font-size: 0.9rem;
    }
}

@media (max-width: 478px) {
    .dienst-hero-immersive {
        min-height: 60vh;
    }
    
    .dienst-title-immersive {
        font-size: 1.75rem;
    }
}
