﻿/* --- Shared Subpage / Service Page Styles --- */
/* Extracted from websites.html to be used across all service pages */

.service-page-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.service-page-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    max-width: 900px;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 25px;
    text-transform: uppercase;
    animation: hero-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
    /* Deep precise drop shadows for sharp legibility */
    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.service-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 500;
    animation: hero-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
    /* High contrast shadow */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 1);
    position: relative;
    z-index: 3;
}

.hero-cta {
    animation: hero-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
}

.all-inclusive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 45px 100px;
    max-width: 1400px;
    margin: 0 auto;
    background: #000;
}

.feature-card {
    flex: 0 0 auto;
    width: 100%;
    /* Default 1 column */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(26, 209, 206, 0.2);
    padding: 25px 20px;
    border-radius: 4px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(5px);
}

@media (min-width: 550px) {
    .feature-card {
        width: calc((100% - 15px) / 2 - 1px);
        /* 2 columns, -1px for rounding safety */
    }
}

@media (min-width: 1100px) {
    .feature-card {
        width: calc((100% - 45px) / 4 - 1px);
        /* 4 columns, -1px for rounding safety */
    }
}

@media (min-width: 1600px) {
    .feature-card {
        width: calc((100% - 60px) / 5 - 1px);
        /* 5 columns, -1px for rounding safety */
    }
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 209, 206, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 209, 206, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, background-image 0.6s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card>* {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    background: rgba(26, 209, 206, 0.04);
    transform: translateY(-5px);
    border-color: rgba(26, 209, 206, 0.3);
    border-top-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(26, 209, 206, 0.1);
    background-image: linear-gradient(135deg, rgba(26, 209, 206, 0.05) 0%, transparent 100%);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
    /* Harmonized color: Cyan gradient feel */
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.95;
    transition: all 0.4s ease;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(26, 209, 206, 0.3));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--accent-cyan-glow));
    opacity: 1;
}

.feature-title {
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
}

.feature-p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-size: 0.85rem;
    transition: color 0.4s ease;
}

.feature-card:hover .feature-p {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1100px) {
    .all-inclusive-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px 30px 80px;
    }
}

@media (max-width: 700px) {
    .all-inclusive-grid {
        grid-template-columns: 1fr;
        padding: 30px 15px 40px;
        gap: 10px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-p {
        font-size: 0.8rem;
    }

    .feature-card::before {
        font-size: 4rem;
    }
}

.service-page-hero .video-overlay {
    background:
        /* Extreme edge darkening */
        linear-gradient(to right, #000 0%, #000 13%, transparent 35%, transparent 65%, #000 87%, #000 100%),
        linear-gradient(to bottom, #000 0%, transparent 15%, transparent 85%, #000 100%),
        /* Subtle darkened 'well' for text center */
        radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, transparent 60%),
        /* Overall vignette */
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 70%, #000 100%);
    z-index: 1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 45px;
    position: relative;
}

.section-highlight {
    padding: 120px 0 160px 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Technical accent consistent with Home */
.section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-cyan), transparent);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.highlight-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: stretch;
}

.highlight-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.highlight-text .label {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.highlight-text h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

#project-description {
    display: grid;
    grid-template-areas: "stack";
    margin-bottom: 30px;
    min-height: 120px;
    /* Force minimum height for stability */
    flex-grow: 1;
}

.desc-item {
    grid-area: stack;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(10px);
}

.desc-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.highlight-text p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0;
}

.highlight-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 0;
    background: #000;
}

.highlight-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(26, 209, 206, 0.2), transparent);
    transform: translateY(-100%);
    animation: scan-line 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(333%);
    }
}

.highlight-image-wrapper:hover {
    border-color: rgba(26, 209, 206, 0.2);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.highlight-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.8s ease;
}

.highlight-image-wrapper:hover .highlight-image {
    filter: saturate(1.1);
}

/* Showcase Slider Styles */
.showcase-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
}

.showcase-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.showcase-slide.active {
    opacity: 1;
}

.slider-nav {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(26, 209, 206, 0.05);
    box-shadow: 0 0 15px rgba(26, 209, 206, 0.2);
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    transform: scale(1.2);
}

.project-links-wrapper {
    margin-top: auto;
    position: relative;
    display: grid;
    grid-template-areas: "stack";
}

.project-link {
    grid-area: stack;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    white-space: nowrap;
}

.project-link.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

@media (max-width: 1100px) {
    .highlight-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .highlight-text {
        display: contents;
    }

    .highlight-visual {
        display: contents;
    }

    /* Custom Ordering for Mobile */
    .highlight-text .label {
        order: 1;
        text-align: center;
    }

    .highlight-text h2 {
        order: 2;
        text-align: center;
        margin-bottom: 20px;
    }

    .slider-nav {
        order: 3;
        justify-content: center;
        margin: 10px 0;
    }

    .highlight-visual .highlight-image-wrapper {
        order: 4;
    }

    #project-description {
        order: 5;
        text-align: center;
        margin: 20px 0 0 0;
        display: grid;
        grid-template-areas: "stack";
        min-height: 100px;
    }

    .desc-item {
        grid-area: stack;
        display: block;
        position: relative;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: opacity 0.4s ease;
    }

    .desc-item.active {
        opacity: 1;
        visibility: visible;
    }

    #project-description p {
        margin: 0 auto;
    }

    .project-links-wrapper {
        order: 6;
        margin: 20px auto 0 auto;
        display: block;
    }

    .project-link {
        grid-area: stack;
        display: none;
        position: relative;
        justify-content: center;
        transform: none;
        opacity: 0;
    }

    .project-link.active {
        display: flex;
        opacity: 1;
    }
}

.project-link::after {
    content: '\2192';
    /* → */

    transition: transform 0.3s ease;
}

.project-link:hover {
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.project-link:hover::after {
    transform: translateX(5px);
}



/* --- Placeholder Specific Styles (Marken & Automatisierung) --- */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 209, 206, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 209, 206, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    opacity: 0.5;
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.6) contrast(1.1);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Stacking Cards Effect (Silencio Premium Style) --- */
.stacking-container {
    padding: 100px 0 100px;
    /* Reset container padding */
    background: #000;
    position: relative;
    z-index: 10;
}

.stacking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Force a long track at the bottom so the last card CAN stick properly */
.stacking-wrapper::after {
    content: "";
    display: block;
    height: 15vh;
    /* Reduced to 15vh to bring Fazit closer */
    width: 100%;
}

.stacking-card {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* Default fallback */
    min-height: 500px;
    margin-bottom: 0px;
    background: #000;
    /* Solid Black */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    box-shadow: 0 -40px 80px rgba(0, 0, 0, 1);
    /* Max opacity */
    z-index: 1;
    overflow: hidden;
}

/* 
   STRICT OFFSET LOGIC - REF IMAGE MATCH (THIN STRIPS)
   Constraint: Start at 200px (HIGHER UP as requested).
   Constraint: 30px steps (Thin strips).
   Constraint: Final card lands at 290px.
   Constraint: 50vh Fly-in Gap (Reduced from 70vh for shorter scroll).
   Constraint: FORCE values with !important.
*/

.stacking-card:nth-child(1) {
    top: 200px !important;
    z-index: 10;
    margin-top: 0;
}

.stacking-card:nth-child(2) {
    top: 230px !important;
    /* 200 + 30 */
    z-index: 20;
    margin-top: 50vh;
    /* Reduced from 70vh */
    /* Fly-in Gap */
    box-shadow: 0 -40px 80px #000;
}

.stacking-card:nth-child(3) {
    top: 260px !important;
    /* 230 + 30 */
    z-index: 30;
    margin-top: 50vh;
    /* Reduced from 70vh */
    box-shadow: 0 -40px 80px #000;
}

.stacking-card:nth-child(4) {
    top: 290px !important;
    /* 260 + 30 */
    z-index: 40;
    margin-top: 50vh;
    /* Reduced from 70vh */
    box-shadow: 0 -40px 80px #000;
}

.card-content h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.card-content .italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    text-transform: none;
    color: var(--accent-cyan);
    font-weight: 400;
}

.card-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}

.card-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

.card-visual {
    width: 100%;
    height: 100%;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .stacking-container {
        padding: 60px 0 0 0;
        /* No bottom padding */
    }

    .stacking-card {
        position: relative !important;
        /* Disable sticky for mobile readability */
        grid-template-columns: 1fr;
        padding: 40px 25px;
        min-height: auto;
        gap: 30px;
        margin-bottom: 30px !important;
        /* Space between cards */
        top: auto !important;
        margin-top: 0 !important;
        /* Remove fly-in gaps on mobile */
    }

    .stacking-card:last-child {
        margin-bottom: 0 !important;
    }

    .card-visual {
        order: -1;
        max-height: 250px;
        /* Reduced to leave more space for text */
    }

    /* Reset specific card overrides for mobile */
    .stacking-card:nth-child(n) {
        top: auto !important;
        margin-top: 0 !important;
    }

    /* Remove the artificial sticky-track spacer on mobile */
    .stacking-wrapper::after {
        display: none !important;
    }

    /* Tighten gap to Fazit section */
    .workflow-statement {
        padding-top: 30px !important;
    }
}

/* --- Partner Marquee Styles --- */
.partner-marquee-container {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.marquee-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 20px));
    }
}