/* ============================================
   LEISTUNGEN PAGE SPECIFIC STYLES
   ============================================ */

/* Hero Section - Matching KI-Beratung Style */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../images/erika-U6GYjO-9jBM-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.4);
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    padding: 0 1.5rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: var(--step-4);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero h1 .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow), 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: var(--step-1);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero h1 .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow), 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: var(--step-1);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* Subnav */
.subnav {
    position: sticky;
    top: 80px;
    z-index: 90;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

[data-theme="light"] .subnav {
    background: rgba(255, 255, 255, 0.95);
}

.subnav-links {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subnav-links::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: var(--step--1);
    white-space: nowrap;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.subnav-link:hover,
.subnav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Service Sections */
.service-section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-section:first-of-type {
    padding-top: 3rem;
}

.service-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.service-intro h2 {
    font-size: var(--step-3);
    margin-bottom: 1rem;
}

.service-tagline {
    font-size: var(--step-1);
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.column-text h3 {
    font-size: var(--step-2);
    margin-bottom: 1rem;
}

.column-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--muted);
}

.column-text p strong {
    color: var(--fg);
}

/* Metric Cards */
.column-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--glow);
    transform: translateY(-2px);
}

.metric-number {
    font-size: var(--step-3);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: var(--step--1);
    color: var(--muted);
    line-height: 1.4;
}

/* Service Offerings */
.service-offerings {
    margin-bottom: 4rem;
}

.service-offerings h3 {
    font-size: var(--step-2);
    margin-bottom: 2rem;
    text-align: center;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.offering-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.offering-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--glow);
    transform: translateY(-4px);
}

.offering-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.offering-item h4 {
    font-size: var(--step-0);
    margin-bottom: 0.75rem;
}

.offering-item p {
    color: var(--muted);
    font-size: var(--step--1);
    line-height: 1.6;
}

/* Service Process Timeline - 2 COLUMN LAYOUT */
.service-process {
    margin-top: 4rem;
}

.service-process h3 {
    font-size: var(--step-2);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
}

/* Remove horizontal line but keep vertical connectors between items */
.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding-left: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vertical line below markers (except last items in each column) */
.timeline-item:not(:nth-child(3)):not(:nth-child(4))::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 60px;
    width: 2px;
    height: calc(100% + 3rem);
    background: var(--border);
}

.timeline-marker {
    position: relative;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--step-0);
    color: #000;
    margin-bottom: 1rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-content h4 {
    font-size: var(--step-1);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--muted);
    line-height: 1.6;
}

/* Mobile: Stack timeline items */
@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Show vertical line on mobile for all except last */
    .timeline-item::after {
        display: none;
    }

    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 19px;
        top: 52px;
        width: 2px;
        height: calc(100% + 2rem);
        background: var(--border);
        display: block;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Accordion (FAQ) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--fg);
    font-size: var(--step-0);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    color: var(--primary);
    font-size: var(--step--1);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    line-height: 1.7;
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, rgba(155, 127, 196, 0.1), rgba(184, 159, 219, 0.1));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.cta-band h2 {
    font-size: var(--step-2);
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: var(--step-0);
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .leistungen-hero {
        padding: 3rem 0 2rem;
    }

    .leistungen-hero h1 {
        font-size: var(--step-3);
    }

    .subnav {
        top: 70px;
    }

    .subnav-links {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-section {
        padding: 3rem 0;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .cta-band {
        padding: 2rem;
    }

    .cta-band h2 {
        font-size: var(--step-1);
    }

    .breadcrumb {
        margin-top: 80px;
    }
}

/* Animation Delays for Timeline Items */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }

/* Print Styles */
@media print {
    .subnav,
    .cta-band,
    header,
    footer {
        display: none;
    }

    .service-section {
        page-break-inside: avoid;
    }
}



/* ============================================
   LEISTUNGEN PAGE SPECIFIC STYLES
   ============================================ */

/* Leistungen Hero with Background Image + Particle Network */
.leistungen-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.leistungen-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../images/erika-U6GYjO-9jBM-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.4);
}

/* Particle Canvas - positioned within hero-background */
.leistungen-hero #particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.leistungen-hero .hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.leistungen-hero .hero-content-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
}

.leistungen-hero h1 {
    font-size: var(--step-4);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-lead {
    font-size: var(--step-1);
    color: var(--fg);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Subnav */
.subnav {
    position: sticky;
    top: 80px;
    z-index: 90;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

[data-theme="light"] .subnav {
    background: rgba(255, 255, 255, 0.95);
}

.subnav-links {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subnav-links::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: var(--step--1);
    white-space: nowrap;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.subnav-link:hover,
.subnav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Service Sections */
.service-section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-section:first-of-type {
    padding-top: 3rem;
}

.service-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.service-intro h2 {
    font-size: var(--step-3);
    margin-bottom: 1rem;
}

.service-tagline {
    font-size: var(--step-1);
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.column-text h3 {
    font-size: var(--step-2);
    margin-bottom: 1rem;
}

.column-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--muted);
}

.column-text p strong {
    color: var(--fg);
}

/* Metric Cards */
.column-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--glow);
    transform: translateY(-2px);
}

.metric-number {
    font-size: var(--step-3);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: var(--step--1);
    color: var(--muted);
    line-height: 1.4;
}

/* Service Offerings */
.service-offerings {
    margin-bottom: 4rem;
}

.service-offerings h3 {
    font-size: var(--step-2);
    margin-bottom: 2rem;
    text-align: center;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.offering-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.offering-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--glow);
    transform: translateY(-4px);
}

.offering-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.offering-item h4 {
    font-size: var(--step-0);
    margin-bottom: 0.75rem;
}

.offering-item p {
    color: var(--muted);
    font-size: var(--step--1);
    line-height: 1.6;
}

/* Service Process Timeline - 2 COLUMN LAYOUT */
.service-process {
    margin-top: 4rem;
}

.service-process h3 {
    font-size: var(--step-2);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
}

/* Remove horizontal line but keep vertical connectors between items */
.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding-left: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vertical line below markers (except last items in each column) */
.timeline-item:not(:nth-child(3)):not(:nth-child(4))::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 60px;
    width: 2px;
    height: calc(100% + 3rem);
    background: var(--border);
}

.timeline-marker {
    position: relative;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--step-0);
    color: #000;
    margin-bottom: 1rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-content h4 {
    font-size: var(--step-1);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--muted);
    line-height: 1.6;
}

/* Mobile: Stack timeline items */
@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Show vertical line on mobile for all except last */
    .timeline-item::after {
        display: none;
    }

    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 19px;
        top: 52px;
        width: 2px;
        height: calc(100% + 2rem);
        background: var(--border);
        display: block;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Accordion (FAQ) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--fg);
    font-size: var(--step-0);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    color: var(--primary);
    font-size: var(--step--1);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    line-height: 1.7;
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, rgba(155, 127, 196, 0.1), rgba(184, 159, 219, 0.1));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.cta-band h2 {
    font-size: var(--step-2);
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: var(--step-0);
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsive Design */
@media (max-width: 968px) {
    .hero-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: var(--step-3);
    }

    .hero-subtitle {
        font-size: var(--step-0);
    }

    .hero-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .subnav {
        top: 70px;
    }

    .subnav-links {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-section {
        padding: 3rem 0;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .cta-band {
        padding: 2rem;
    }

    .cta-band h2 {
        font-size: var(--step-1);
    }

    .breadcrumb {
        margin-top: 80px;
    }
}

/* Animation Delays for Timeline Items */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }

/* Print Styles */
@media print {
    .subnav,
    .cta-band,
    header,
    footer {
        display: none;
    }

    .service-section {
        page-break-inside: avoid;
    }
}