/* ================================================
   LEISTUNGEN PAGE - Premium Styles
   ================================================ */

/* Hero Section */
.leistungen-hero {
    position: relative;
    padding: 12rem 0 6rem;
    background: var(--black-pure);
    overflow: hidden;
}

.leistungen-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 10, 43, 0.08) 0%, transparent 60%);
}

.leistungen-hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 10, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 10, 43, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center top, black 20%, transparent 70%);
}

.leistungen-hero-content {
    position: relative;
    max-width: 800px;
}

.leistungen-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.leistungen-hero .breadcrumb svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

.leistungen-hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}

.leistungen-hero > .container > .leistungen-hero-content > p {
    font-size: 1.25rem;
    max-width: 600px;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.1s forwards;
    opacity: 0;
}

/* Service Navigation */
.service-nav {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.service-nav-inner {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-nav-inner::-webkit-scrollbar {
    display: none;
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out-expo);
}

.service-nav-item svg {
    width: 18px;
    height: 18px;
}

.service-nav-item:hover {
    border-color: var(--red-border);
    color: var(--text-primary);
}

.service-nav-item.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
}

/* Service Sections */
.service-section {
    padding: 8rem 0;
    background: var(--black-rich);
    position: relative;
    overflow: hidden;
}

.service-section.alt {
    background: var(--black-elevated);
}

.service-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    transform: translateY(-50%);
    opacity: 0.5;
}

.service-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
}

.service-section-grid.reverse {
    direction: rtl;
}

.service-section-grid.reverse > * {
    direction: ltr;
}

/* Service Tag */
.service-section-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--red-primary);
}

.tag-line {
    width: 40px;
    height: 1px;
    background: var(--red-primary);
}

.tag-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Service Content */
.service-section-content h2 {
    margin-bottom: 1rem;
}

.service-section-desc {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

/* Service Features */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.4s var(--ease-out-expo);
}

.service-feature:hover {
    border-color: var(--red-border);
    transform: translateX(8px);
    background: rgba(255, 10, 43, 0.03);
}

.service-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
}

.service-feature:hover .service-feature-icon {
    background: var(--red-primary);
    border-color: var(--red-primary);
}

.service-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--red-primary);
    transition: color 0.3s;
}

.service-feature:hover .service-feature-icon svg {
    color: white;
}

.service-feature-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.service-feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Service Visual */
.service-section-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.service-visual-card {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-visual-icon {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-card);
    border: 1px solid var(--red-border);
    border-radius: 24px;
    animation: float 6s ease-in-out infinite;
}

.service-visual-icon svg {
    width: 50px;
    height: 50px;
    color: var(--red-primary);
}

.service-visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 10, 43, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.service-visual-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px solid var(--red-border);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

.service-visual-ring.ring-2 {
    width: 280px;
    height: 280px;
    animation-delay: 0.5s;
    opacity: 0.5;
}

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

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.5; }
}

/* Service Feature Active & Clickable */
.service-feature {
    cursor: pointer;
}

.service-feature.active {
    border-color: var(--red-primary);
    background: rgba(255, 10, 43, 0.06);
    border-left: 3px solid var(--red-primary);
}

.service-feature.active .service-feature-icon {
    background: var(--red-primary);
    border-color: var(--red-primary);
}

.service-feature.active .service-feature-icon svg {
    color: white;
}

/* Service Detail Panel */
.service-section-visual {
    position: relative;
}

.service-detail-panel {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--red-border);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s var(--ease-out-expo);
    z-index: 5;
}

.service-detail-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.service-detail-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.service-detail-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.leistungen-cta {
    position: relative;
    padding: 8rem 0;
    background: var(--black-pure);
    text-align: center;
    overflow: hidden;
}

.leistungen-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 10, 43, 0.1) 0%, transparent 60%);
}

.leistungen-cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.leistungen-cta-content h2 {
    margin-bottom: 1rem;
}

.leistungen-cta-content > p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.leistungen-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .service-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-section-grid.reverse {
        direction: ltr;
    }
    
    .service-section-visual {
        min-height: 280px;
    }

    .service-visual-card {
        width: 220px;
        height: 220px;
    }

    .service-visual-icon {
        width: 80px;
        height: 80px;
    }

    .service-visual-icon svg {
        width: 40px;
        height: 40px;
    }

    .service-visual-ring {
        width: 160px;
        height: 160px;
    }

    .service-visual-ring.ring-2 {
        width: 220px;
        height: 220px;
    }

    .service-detail-panel {
        position: relative;
        inset: auto;
    }

    .service-section-visual:has(.service-detail-panel.visible) .service-visual-card {
        display: none;
    }

    .service-section-visual:has(.service-detail-panel:not(.visible)) {
        order: -1;
    }
}

@media (max-width: 768px) {
    .leistungen-hero {
        padding: 10rem 0 4rem;
    }
    
    .service-nav-item span {
        display: none;
    }
    
    .service-nav-item {
        padding: 0.75rem;
    }
    
    .service-section {
        padding: 5rem 0;
    }
    
    .service-feature {
        padding: 1rem;
    }
    
    .leistungen-cta {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .leistungen-cta-buttons {
        flex-direction: column;
    }
    
    .leistungen-cta-buttons .btn {
        width: 100%;
    }
}
