/* Newborn Page Styles - 3D KARUSSELL WIE HOMEPAGE */

/* Hero Image Gallery Section */
.leistungen-hero {
    padding: calc(80px + 2rem) 0 0 0;
    background: white;
    overflow: hidden;
}

.leistungen-hero__container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* DESKTOP 3D KARUSSELL - WIE HOMEPAGE */
.leistungen-hero__gallery {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin: 0 auto;
}

.leistungen-hero__carousel-track-desktop {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leistungen-hero__image {
    position: absolute;
    width: 280px;
    height: 380px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 3/4;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.leistungen-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    transform-origin: center center;
}

.leistungen-hero__image:hover img {
    transform: scale(1.08);
}

/* 3D Karussell Positionen - 3 Bilder System */
.leistungen-hero__image.position-0 {
    transform: translateX(0) translateY(0) scale(1.4) translateZ(100px);
    z-index: 10;
    opacity: 1;
    filter: brightness(1) blur(0px) saturate(1.2);
}

.leistungen-hero__image.position-1 {
    transform: translateX(600px) translateY(15px) scale(1.1) translateZ(20px) rotateY(-20deg);
    z-index: 8;
    opacity: 0.85;
    filter: brightness(0.85) blur(0.5px) saturate(0.9);
}

.leistungen-hero__image.position-2 {
    transform: translateX(-600px) translateY(15px) scale(1.1) translateZ(20px) rotateY(20deg);
    z-index: 8;
    opacity: 0.85;
    filter: brightness(0.85) blur(0.5px) saturate(0.9);
}

/* Navigation Pfeile */
.leistungen-hero__arrow-clickable {
    position: absolute;
    width: 100px;
    height: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.leistungen-hero__arrow-clickable--left {
    right: calc(50% - 350px);
    top: 60%;
    transform: translateY(-50%);
}

.leistungen-hero__arrow-clickable--right {
    left: calc(50% - 350px);
    top: 40%;
    transform: translateY(-50%);
}

/* Elegante Pfeile */
.leistungen-hero__arrow {
    width: 80px;
    height: 2px;
    background: var(--primary-beige);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0.8;
    position: relative;
}

.leistungen-hero__arrow--left {
    justify-content: flex-start;
}

.leistungen-hero__arrow--right {
    justify-content: flex-end;
}

.leistungen-hero__arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-beige);
    transition: var(--transition-smooth);
}

.leistungen-hero__arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    transition: var(--transition-smooth);
}

.leistungen-hero__arrow--left::after {
    right: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 12px solid var(--primary-beige);
}

.leistungen-hero__arrow--right::after {
    left: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 12px solid var(--primary-beige);
}

/* MOBILE 3D KARUSSELL - ANGEPASSTES LAYOUT */
.leistungen-hero__carousel {
    display: none;
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 800px;
    margin: 0 auto;
    overflow: visible;
}

.leistungen-hero__carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leistungen-hero__carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leistungen-hero__carousel-slide {
    position: absolute;
    width: 220px;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.leistungen-hero__carousel-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.leistungen-hero__carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.leistungen-hero__carousel-slide:hover img {
    transform: scale(1.05);
}

/* Mobile 3D Positionen */
.leistungen-hero__carousel-slide.position-0 {
    transform: translateX(0) translateY(0) scale(1.05) translateZ(50px);
    z-index: 10;
    opacity: 1;
    filter: brightness(1) blur(0px) saturate(1.1);
}

.leistungen-hero__carousel-slide.position-1 {
    transform: translateX(180px) translateY(20px) scale(0.8) translateZ(10px) rotateY(-15deg);
    z-index: 8;
    opacity: 0.8;
    filter: brightness(0.9) blur(0.5px) saturate(0.95);
}

.leistungen-hero__carousel-slide.position-2 {
    transform: translateX(-180px) translateY(20px) scale(0.8) translateZ(10px) rotateY(15deg);
    z-index: 8;
    opacity: 0.8;
    filter: brightness(0.9) blur(0.5px) saturate(0.95);
}

/* Mobile Navigation */
.leistungen-hero__carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
    background: transparent;
    border: none;
}

.leistungen-hero__carousel-nav--prev {
    right: -10px;
}

.leistungen-hero__carousel-nav--next {
    left: -10px;
}

/* Mobile Pfeile */
.leistungen-hero__carousel-arrow {
    width: 45px;
    height: 2px;
    background: var(--primary-beige);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0.8;
    position: relative;
}

.leistungen-hero__carousel-arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-beige);
    transition: var(--transition-smooth);
}

.leistungen-hero__carousel-arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    transition: var(--transition-smooth);
}

.leistungen-hero__carousel-nav--prev .leistungen-hero__carousel-arrow {
    justify-content: flex-start;
}

.leistungen-hero__carousel-nav--next .leistungen-hero__carousel-arrow {
    justify-content: flex-end;
}

.leistungen-hero__carousel-nav--prev .leistungen-hero__carousel-arrow::after {
    right: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid var(--primary-beige);
}

.leistungen-hero__carousel-nav--next .leistungen-hero__carousel-arrow::after {
    left: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 10px solid var(--primary-beige);
}

/* Content Section */
.leistungen-content {
    padding: var(--section-padding) 0;
    background: white;
}

.leistungen-content__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.leistungen-content__header {
    margin-bottom: 3rem;
}

.leistungen-content__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-beige);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.leistungen-content__text {
    margin: 0 auto;
}

.leistungen-content__text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.leistungen-content__text p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--primary-dark);
}

/* Contact CTA Section */
.leistungen-contact-cta {
    padding: calc(var(--section-padding) * 0.8) 0;
    background: var(--primary-cream);
    position: relative;
    overflow: hidden;
}

.leistungen-contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-cream) 0%, rgba(240, 235, 225, 0.8) 100%);
    z-index: 1;
}

.leistungen-contact-cta__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.leistungen-contact-cta__content {
    text-align: center;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.leistungen-contact-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.leistungen-contact-cta__subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.leistungen-contact-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-beige);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.leistungen-contact-cta__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.leistungen-contact-cta__button:hover::before {
    left: 100%;
}

.leistungen-contact-cta__button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.leistungen-contact-cta__button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.leistungen-contact-cta__button:hover svg {
    transform: translateX(4px);
}

/* FAQ Section */
.leistungen-faq {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.leistungen-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.leistungen-faq__header {
    text-align: center;
    margin-bottom: 3rem;
}

.leistungen-faq__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.leistungen-faq__accordion {
    max-width: 800px;
    margin: 0 auto;
}

.leistungen-faq__item {
    border-bottom: 1px solid rgba(188, 156, 124, 0.2);
    margin-bottom: 0;
    background: var(--white);
    transition: var(--transition-smooth);
    will-change: transform;
}

.leistungen-faq__item.active {
    background: var(--primary-cream);
}

.leistungen-faq__item:last-child {
    border-bottom: none;
}

.leistungen-faq__question {
    padding: 1.5rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.leistungen-faq__question:hover {
    background: var(--primary-cream);
}

.leistungen-faq__question h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
    transition: var(--transition-smooth);
}

.leistungen-faq__icon {
    width: 24px;
    height: 24px;
    color: var(--primary-beige);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.leistungen-faq__item.active .leistungen-faq__icon {
    transform: rotate(180deg);
    color: var(--primary-dark);
}

/* FAQ answer animation */
.leistungen-faq__answer {
    overflow: hidden;
    background: var(--primary-cream);
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 0;
}

.leistungen-faq__answer-content {
    padding: 0 1rem 2rem 1rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leistungen-faq__item.active .leistungen-faq__answer {
    max-height: 1000px;
}

.leistungen-faq__item.active .leistungen-faq__answer-content {
    transform: translateY(0);
    opacity: 1;
}

.leistungen-faq__answer p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.leistungen-faq__answer p:last-child {
    margin-bottom: 0;
}

.leistungen-faq__answer strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .leistungen-hero__gallery {
        height: 500px;
    }
    
    .leistungen-hero__image {
        width: 240px;
        height: 320px;
    }
    
    .leistungen-hero__image.position-1 {
        transform: translateX(260px) translateY(12px) scale(0.85) translateZ(15px) rotateY(-18deg);
    }
    
    .leistungen-hero__image.position-2 {
        transform: translateX(-260px) translateY(12px) scale(0.85) translateZ(15px) rotateY(18deg);
    }
    
    .leistungen-hero__arrow-clickable--left {
        left: calc(50% - 280px);
    }
    
    .leistungen-hero__arrow-clickable--right {
        right: calc(50% - 280px);
    }

    .leistungen-contact-cta__content {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .leistungen-hero {
        padding: calc(80px + 1rem) 0 0 0;
    }
    
    /* Hide desktop gallery, show mobile carousel */
    .leistungen-hero__gallery {
        display: none;
    }

    .leistungen-hero__carousel {
        display: block;
    }
    
    .leistungen-content__text p {
        text-align: left;
        font-size: 1rem;
    }

    .leistungen-contact-cta__content {
        padding: 2rem 1rem;
    }

    .leistungen-contact-cta__button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .leistungen-faq__question {
        padding: 1.2rem 0.5rem;
    }

    .leistungen-faq__answer-content {
        padding: 0 0.5rem 1.5rem 0.5rem;
    }

    .leistungen-faq__answer p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .leistungen-hero__carousel {
        height: 400px;
    }

    .leistungen-hero__carousel-slide {
        width: 200px;
        height: 280px;
    }

    .leistungen-hero__carousel-slide.position-1 {
        transform: translateX(250px) translateY(15px) scale(0.75) translateZ(5px) rotateY(-12deg);
    }

    .leistungen-hero__carousel-slide.position-2 {
        transform: translateX(-250px) translateY(15px) scale(0.75) translateZ(5px) rotateY(12deg);
    }

    .leistungen-hero__carousel-nav--prev {
        top: 60%;
        right: 5%;
    }

    .leistungen-hero__carousel-nav--next {
        top: 40%;
        left: 5%;
    }
    
    .leistungen-content__title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .leistungen-contact-cta__content {
        padding: 1.5rem 0.8rem;
    }

    .leistungen-contact-cta__title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .leistungen-contact-cta__subtitle {
        font-size: 1.1rem;
    }

    .leistungen-contact-cta__button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .leistungen-faq__title {
        font-size: 2rem;
    }
    
    .leistungen-faq__question h3 {
        font-size: 1.3rem;
    }
    
    .leistungen-faq__answer p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .leistungen-faq__icon {
        width: 20px;
        height: 20px;
        margin-left: 0.5rem;
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}