/**
 * MechinTeq - Service Detail Pages CSS
 * MechinTeq 4-Farben-Palette
 */

/* ─────────────────────────────────────────────────────────────
   1. BREADCRUMB NAVIGATION
   ───────────────────────────────────────────────────────────── */

.breadcrumb-section {
    background: var(--bg-secondary);
    padding: 6rem 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   2. SERVICE HERO SECTION
   ───────────────────────────────────────────────────────────── */

.service-hero {
    background: var(--gradient-hero);
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.service-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-hero .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.service-hero .badge-it {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.service-hero .badge-industry {
    background: rgba(0, 26, 192, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ─────────────────────────────────────────────────────────────
   3. CONTENT SECTIONS (Light theme)
   ───────────────────────────────────────────────────────────── */

.content-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.dark {
    background: var(--bg-secondary);
}

.content-section.light {
    background: var(--bg-light);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.content-section.dark h2 {
    color: var(--text-dark);
}

.content-section.light h2 {
    color: var(--text-dark);
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark-secondary);
}

.content-section.dark p {
    color: var(--text-dark-secondary);
}

.content-section.light p {
    color: var(--text-dark-secondary);
}

.content-section ul,
.content-section ol {
    margin: 1.5rem 0 1.5rem 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.content-section.dark ul li,
.content-section.dark ol li {
    color: var(--text-dark-secondary);
}

.content-section.light ul li,
.content-section.light ol li {
    color: var(--text-dark-secondary);
}

/* ─────────────────────────────────────────────────────────────
   3b. FEATURE LIST
   ───────────────────────────────────────────────────────────── */

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.feature-list li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark-secondary);
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.feature-list li strong {
    color: var(--text-dark);
}

/* ─────────────────────────────────────────────────────────────
   4. BENEFITS GRID
   ───────────────────────────────────────────────────────────── */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 26, 192, 0.12);
}

.benefit-card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   5. PREREQUISITES LIST
   ───────────────────────────────────────────────────────────── */

.prereq-item {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prereq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 26, 192, 0.1);
}

.prereq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.prereq-item p {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   6. PROCESS TIMELINE
   ───────────────────────────────────────────────────────────── */

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 80px;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 26, 192, 0.3);
}

.timeline-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   7. REFERENCES/TECHNOLOGIES GRID
   ───────────────────────────────────────────────────────────── */

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.reference-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.reference-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 26, 192, 0.12);
}

.reference-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tech-badge {
    background: rgba(0, 26, 192, 0.08);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.ref-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ref-link:hover {
    color: var(--accent-light);
    gap: 0.8rem;
}

.ref-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────
   8. RELATED SERVICES GRID
   ───────────────────────────────────────────────────────────── */

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

.related-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 26, 192, 0.12);
}

.related-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.related-card p {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.related-card .cta-arrow {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.related-card:hover .cta-arrow {
    gap: 0.8rem;
}

/* ─────────────────────────────────────────────────────────────
   9. PAGE CTA SECTION
   ───────────────────────────────────────────────────────────── */

.page-cta {
    background: linear-gradient(135deg, #006EA3 0%, #005580 100%);
    padding: 3.5rem 1rem;
    text-align: center;
    margin: 3rem 0 0 0;
}

.page-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.page-cta .cta-button {
    display: inline-block;
    background: #FFFFFF;
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #F0F4F8;
}

/* ─────────────────────────────────────────────────────────────
   10. OVERVIEW PAGE — SERVICE CARD GRID
   ───────────────────────────────────────────────────────────── */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.overview-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent, linear-gradient(90deg, var(--accent), #4d94ff));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 26, 192, 0.14);
}

.overview-card:hover::before {
    opacity: 1;
}

.overview-card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow, rgba(0, 102, 255, 0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.overview-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.overview-card p {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.overview-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.overview-card .cta-arrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.overview-card:hover .cta-arrow {
    gap: 0.8rem;
}

/* ─────────────────────────────────────────────────────────────
   11. IMAGE GALLERY
   ───────────────────────────────────────────────────────────── */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.image-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,26,192,0.12);
}

.image-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.image-gallery-item .image-caption {
    padding: 1rem 1.25rem;
    background: #fff;
}

.image-gallery-item .image-caption h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.image-gallery-item .image-caption p {
    font-size: 0.85rem;
    color: var(--text-dark-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   12. SERVICE DETAIL CARDS
   ───────────────────────────────────────────────────────────── */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.service-detail-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-detail-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,26,192,0.1);
}

.service-detail-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-detail-card .card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--accent-glow, rgba(0,102,255,0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-card .card-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.service-detail-card .card-title .card-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.service-detail-card .card-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark-secondary);
    margin-bottom: 0.75rem;
}

.service-detail-card .card-body p:last-child {
    margin-bottom: 0;
}

.service-detail-card .card-body {
    flex: 1;
}

/* ─────────────────────────────────────────────────────────────
   13. SERVICE MODEL BADGES
   ───────────────────────────────────────────────────────────── */

.service-models {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    flex-wrap: wrap;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.model-badge.setup {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.model-badge.ongoing {
    background: rgba(0, 102, 255, 0.08);
    color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   14. TWO SERVICE MODELS GRID
   ───────────────────────────────────────────────────────────── */

.models-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.model-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,26,192,0.12);
}

.model-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.model-card p {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   15. RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .benefits-grid,
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .references-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .image-gallery-item img {
        height: 200px;
    }

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

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

    .service-detail-card .card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-cta {
        padding: 2.5rem 1rem;
    }

    .page-cta h2 {
        font-size: 1.5rem;
    }

    .page-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
    }

    .breadcrumb .separator {
        margin: 0 0.25rem;
    }

    .service-hero {
        padding: 2.5rem 1rem;
    }

    .service-hero h1 {
        font-size: 1.6rem;
    }

    .service-hero p {
        font-size: 0.95rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .benefit-card,
    .prereq-item,
    .related-card,
    .overview-card {
        padding: 1.25rem;
    }

    .tech-badges {
        gap: 0.5rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .page-cta h2 {
        font-size: 1.3rem;
    }

    .page-cta .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}
