/* ================================================================
   leistung-detail.css - Leistung detail page sections only
   Depends on: styles.css, home.css
   Does NOT style: .navbar, .hero*, .site-footer
   ================================================================ */

/* ----- FOUC-safe reveal gate ----- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

.js [data-reveal].is-visible,
.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
}

.js [data-reveal].is-visible {
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Shared section shell ----- */
.lp-section {
    position: relative;
    padding: clamp(3.5rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 72rem;
    margin: 0 auto;
}

.lp-section-header {
    max-width: 44rem;
    margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
    text-align: center;
}

.lp-section-intro {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ----- Metrics band ----- */
.lp-metrics-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 72rem;
    margin: 0 auto;
}

.lp-metric {
    text-align: center;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(0.75rem, 2vw, 1rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: 0 8px 28px rgba(19, 4, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lp-metric-value {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.lp-metric-label {
    display: block;
    font-size: clamp(0.72rem, 1.6vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ----- Challenges grid ----- */
.lp-challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.lp-challenge-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 10px 36px rgba(19, 4, 234, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-normal);
}

.lp-challenge-card:hover {
    border-color: rgba(129, 55, 255, 0.35);
    box-shadow: 0 16px 48px rgba(19, 4, 234, 0.14);
    transform: translateY(-4px);
}

.lp-challenge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(19, 4, 234, 0.14), rgba(129, 55, 255, 0.14));
    color: var(--neon-blue);
}

.lp-challenge-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.lp-challenge-title {
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.lp-challenge-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    flex-grow: 1;
}

.lp-challenge-solution {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-primary);
    background: rgba(19, 4, 234, 0.06);
    border-left: 3px solid var(--neon-blue);
    border-radius: 0 0.75rem 0.75rem 0;
}

.lp-challenge-solution strong {
    color: var(--neon-blue);
    font-weight: 700;
}

/* ----- Migration roadmap ----- */
.lp-roadmap-section {
    padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 5vw, 4rem);
    scroll-margin-top: var(--nav-scroll-offset);
}

.lp-roadmap-header {
    max-width: 44rem;
    margin: 0 auto clamp(3rem, 6vh, 4rem);
    text-align: center;
}

.lp-roadmap-wrap {
    position: relative;
    max-width: 52rem;
    margin: 0 auto;
}

.lp-roadmap-rail {
    position: absolute;
    top: 0;
    left: 1.75rem;
    width: 4rem;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.lp-roadmap-track,
.lp-roadmap-progress {
    fill: none;
}

.lp-roadmap-track {
    stroke: rgba(129, 55, 255, 0.22);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.lp-roadmap-progress {
    stroke: url(#lp-roadmap-gradient);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.lp-roadmap-steps {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    padding-left: 5rem;
    list-style: none;
    margin: 0;
    padding-right: 0;
}

.lp-roadmap-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: 0 8px 28px rgba(19, 4, 234, 0.08);
    opacity: 0.72;
    transition:
        opacity 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.45s ease;
}

.lp-roadmap-step.is-active {
    opacity: 1;
    border-color: rgba(19, 4, 234, 0.35);
    box-shadow: 0 14px 40px rgba(19, 4, 234, 0.14);
}

.lp-roadmap-node {
    position: absolute;
    left: -3.35rem;
    top: 1.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--dark-base);
    border: 2px solid rgba(129, 55, 255, 0.35);
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.lp-roadmap-step.is-active .lp-roadmap-node {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-color: transparent;
    box-shadow: 0 0 16px rgba(19, 4, 234, 0.45);
    transform: scale(1.15);
}

.lp-roadmap-phase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(19, 4, 234, 0.12), rgba(129, 55, 255, 0.12));
    color: var(--neon-purple);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.lp-roadmap-body h3 {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.lp-roadmap-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.lp-roadmap-body h3 a:hover,
.lp-roadmap-body h3 a:focus-visible {
    color: var(--neon-blue);
}

.lp-roadmap-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ----- Principles ----- */
.lp-principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.lp-principle-card {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    text-align: center;
    transition:
        border-color var(--transition-normal),
        transform var(--transition-normal);
}

.lp-principle-card:hover {
    border-color: rgba(19, 4, 234, 0.35);
    transform: translateY(-3px);
}

.lp-principle-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.lp-principle-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.lp-principle-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* ----- Tech cards with tilt ----- */
.lp-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.tech-card {
    position: relative;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: 0 8px 28px rgba(19, 4, 234, 0.08);
    transform-style: preserve-3d;
    transition: box-shadow var(--transition-normal);
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.5) * 100%),
        rgba(19, 4, 234, 0.12) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.tech-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-blue);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(19, 4, 234, 0.15);
}

.tech-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tech-card-list li {
    font-size: 0.86rem;
    color: var(--text-muted);
    padding-left: 0.85rem;
    position: relative;
}

.tech-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--neon-purple);
}

/* ----- Extended CTA (lp-cta-box) ----- */
.lp-cta-box .cta-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lp-cta-box .cta-title {
    margin-bottom: 1rem;
    max-width: 36rem;
}

.lp-cta-desc {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

.lp-cta-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lp-cta-contact a {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
}

.lp-cta-contact a:hover,
.lp-cta-contact a:focus-visible {
    text-decoration: underline;
}

.lp-cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(19, 4, 234, 0.12);
}

.lp-cta-trust span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ----- Related services ----- */
.lp-section--related {
    max-width: 80rem;
    padding-bottom: clamp(4rem, 10vh, 7rem);
}

.lp-related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: stretch;
}

.lp-related-card:nth-child(1) { grid-column: 1 / 3; }
.lp-related-card:nth-child(2) { grid-column: 3 / 5; }
.lp-related-card:nth-child(3) { grid-column: 5 / 7; }
.lp-related-card:nth-child(4) { grid-column: 2 / 4; }
.lp-related-card:nth-child(5) { grid-column: 4 / 6; }

.lp-related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.35rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow:
        0 8px 28px rgba(19, 4, 234, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-normal);
}

.lp-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lp-related-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        rgba(19, 4, 234, 0.07) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.lp-related-card:hover,
.lp-related-card:focus-visible {
    border-color: rgba(19, 4, 234, 0.38);
    box-shadow:
        0 18px 48px rgba(19, 4, 234, 0.16),
        0 4px 16px rgba(129, 55, 255, 0.08);
    transform: translateY(-5px);
    outline: none;
}

.lp-related-card:hover::before,
.lp-related-card:focus-visible::before,
.lp-related-card:hover::after,
.lp-related-card:focus-visible::after {
    opacity: 1;
}

.lp-related-tag {
    position: relative;
    z-index: 1;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-purple);
    background: rgba(129, 55, 255, 0.08);
    border: 1px solid rgba(129, 55, 255, 0.18);
    border-radius: 999px;
}

.lp-related-card h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(0.78rem, 1.4vw, 0.88rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--neon-blue);
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.lp-related-card p {
    position: relative;
    z-index: 1;
    font-size: clamp(0.82rem, 1.5vw, 0.88rem);
    line-height: 1.58;
    color: var(--text-muted);
    margin: 0 0 1.35rem;
    flex-grow: 1;
}

.lp-related-arrow {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--neon-purple);
    background: rgba(129, 55, 255, 0.08);
    border-radius: 50%;
    transition:
        background var(--transition-normal),
        color var(--transition-normal),
        transform var(--transition-normal);
}

.lp-related-arrow svg {
    width: 1rem;
    height: 1rem;
}

.lp-related-card:hover .lp-related-arrow,
.lp-related-card:focus-visible .lp-related-arrow {
    transform: translateX(3px);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal],
    .js [data-reveal].is-revealed {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .lp-roadmap-progress {
        stroke-dashoffset: 0 !important;
    }

    .lp-roadmap-step {
        opacity: 1;
    }

    .tech-card,
    .lp-dash {
        transform: none !important;
    }

    .lp-dash-line,
    .lp-dash-area,
    .lp-dash-ring-progress {
        stroke-dashoffset: 0 !important;
    }

    .lp-dash-area-fill {
        opacity: 1 !important;
    }

    .lp-dash-bars .lp-dash-bar::before {
        transform: scaleY(1) !important;
        transition-delay: 0s !important;
    }

    .cta-box::before {
        animation: none;
    }

    .net-flow {
        stroke-dashoffset: 0 !important;
    }

    .lp-network-svg.is-drawn .net-hub-core {
        animation: none;
    }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .lp-metrics-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2.5vw, 1.25rem);
    }
    .lp-related-card:nth-child(n) { grid-column: auto; }
}

@media (max-width: 768px) {
    .lp-challenges-grid {
        grid-template-columns: 1fr;
    }

    .lp-related-grid {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin: 0 auto;
    }

    .lp-roadmap-rail {
        left: 0.85rem;
    }

    .lp-roadmap-steps {
        padding-left: 3.25rem;
    }

    .lp-roadmap-node {
        left: -2.15rem;
    }
}

@media (max-width: 640px) {
    .lp-metrics-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-principles-grid,
    .lp-tech-grid {
        grid-template-columns: 1fr;
    }

    .lp-roadmap-step {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .lp-roadmap-phase {
        justify-self: start;
    }
}

@media (min-width: 1440px) {
    .lp-section,
    .lp-metrics-band,
    .lp-roadmap-wrap {
        max-width: 76rem;
    }

    .lp-section--related {
        max-width: 84rem;
    }

    .lp-related-grid {
        gap: 1.5rem;
    }
}

/* ----- Hub page compat (leistungen/index.html) ----- */
.leistung-section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.leistung-section-intro {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.65;
    text-align: center;
    color: var(--text-muted);
    max-width: 44rem;
    margin: 0 auto 2.5rem;
}

/* ----- Roadmap interlink (daten-reporting) ----- */
.lp-interlink {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neon-blue);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.lp-interlink:hover,
.lp-interlink:focus-visible {
    color: var(--neon-purple);
    text-decoration: underline;
    outline: none;
}

/* ----- Daten-Reporting dashboard showcase (scoped) ----- */
.lp-showcase {
    max-width: 80rem;
}

.lp-dash {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow:
        0 20px 60px rgba(19, 4, 234, 0.14),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform-style: preserve-3d;
    overflow: hidden;
}

.lp-dash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.5) * 100%),
        rgba(19, 4, 234, 0.1) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lp-dash:hover::before {
    opacity: 1;
}

.lp-dash-chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(19, 4, 234, 0.1);
}

.lp-dash-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.lp-dash-dot--red { background: #ff5f57; }
.lp-dash-dot--yellow { background: #febc2e; }
.lp-dash-dot--green { background: #28c840; }

.lp-dash-title {
    margin-left: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.lp-dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.65rem, 2vw, 1rem);
    margin-bottom: 1.25rem;
}

.lp-dash-kpi {
    padding: clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(19, 4, 234, 0.12);
    border-radius: 0.85rem;
    text-align: center;
}

.lp-dash-kpi-value {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.lp-dash-kpi-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-dash-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: stretch;
}

.lp-dash-chart-wrap {
    padding: clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(19, 4, 234, 0.1);
    border-radius: 0.85rem;
}

.lp-dash-chart-label,
.lp-dash-bars-label {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-dash-chart {
    display: block;
    width: 100%;
    height: clamp(7rem, 18vw, 9.5rem);
}

.lp-dash-line,
.lp-dash-area {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.lp-dash-area-fill {
    transition: opacity 0.8s ease;
}

.lp-dash-side {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.lp-dash-ring-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(19, 4, 234, 0.1);
    border-radius: 0.85rem;
}

.lp-dash-ring-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(5.5rem, 14vw, 7rem);
    height: clamp(5.5rem, 14vw, 7rem);
    flex-shrink: 0;
}

.lp-dash-ring {
    width: 100%;
    height: 100%;
}

.lp-dash-ring-progress {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.lp-dash-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lp-dash-ring-value {
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.lp-dash-ring-caption {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-blue);
    line-height: 1.25;
}

.lp-dash-bars-wrap {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(19, 4, 234, 0.1);
    border-radius: 0.85rem;
}

.lp-dash-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.45rem;
    height: clamp(4.5rem, 12vw, 5.5rem);
}

.lp-dash-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.35rem;
}

.lp-dash-bar::before {
    content: '';
    display: block;
    width: 100%;
    height: var(--h, 50%);
    border-radius: 0.35rem 0.35rem 0 0;
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-blue));
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-dash-bars.is-drawn .lp-dash-bar::before {
    transform: scaleY(1);
}

.lp-dash-bars.is-drawn .lp-dash-bar:nth-child(1)::before { transition-delay: 0.05s; }
.lp-dash-bars.is-drawn .lp-dash-bar:nth-child(2)::before { transition-delay: 0.12s; }
.lp-dash-bars.is-drawn .lp-dash-bar:nth-child(3)::before { transition-delay: 0.19s; }
.lp-dash-bars.is-drawn .lp-dash-bar:nth-child(4)::before { transition-delay: 0.26s; }

.lp-dash-bar span {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .lp-dash-kpis {
        grid-template-columns: 1fr;
    }

    .lp-dash-body {
        grid-template-columns: 1fr;
    }

    .lp-dash-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lp-dash-ring-wrap,
    .lp-dash-bars-wrap {
        flex: 1 1 45%;
        min-width: 9rem;
    }
}

@media (max-width: 480px) {
    .lp-dash-side {
        flex-direction: column;
    }

    .lp-dash-ring-wrap,
    .lp-dash-bars-wrap {
        flex: 1 1 100%;
    }
}

/* BUG 1 FIX: Desktop/tablet flex-row behavior for metrics band */
.lp-metrics-band--flex-row {
    display: flex;
    justify-content: center;
}

.lp-metrics-band__row {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

/* BUG 1 FIX: Mobile-only stack vertical */
@media (max-width: 767px) {
    .lp-metrics-band__row {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .lp-metrics-band__row .lp-metric {
        width: 100%;
    }
}

/* Hero headline tuning for service detail pages */
.hero--leistung .hero-headline {
    font-size: clamp(1.9rem, 5.6vw, 3.85rem);
}

/* ----- Interlinking & cross-silo CTAs ----- */
.interlinking-cta,
.cross-silo-link {
    max-width: 44rem;
    margin: clamp(2.5rem, 5vh, 3.5rem) auto 0;
    text-align: center;
}

.interlinking-cta p,
.cross-silo-link p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-decoration: none;
    transition: color var(--transition-normal), transform var(--transition-normal);
}

.btn-link:hover,
.btn-link:focus-visible {
    color: var(--neon-purple);
    outline: none;
}

.btn-link:hover {
    transform: translateX(3px);
}

/* ===== Signature: Schnittstellen-Netzwerk ===== */
.lp-network-section {
    position: relative;
    padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 72rem;
    margin: 0 auto;
}

.lp-network-stage {
    margin: 0 auto;
    max-width: 56rem;
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 14px 48px rgba(19, 4, 234, 0.12), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lp-network-svg {
    display: block;
    width: 100%;
    height: auto;
}

.lp-network-svg.is-drawn .net-flow {
    stroke-dashoffset: 0;
}

.net-link {
    fill: none;
    stroke: rgba(129, 55, 255, 0.22);
    stroke-width: 2;
}

.net-flow {
    fill: none;
    stroke: url(#net-flow-grad);
    stroke-width: 3;
    stroke-linecap: round;
}

.net-dot {
    fill: var(--card-surface);
    stroke: rgba(19, 4, 234, 0.30);
    stroke-width: 2;
    transition: stroke 0.4s ease, filter 0.4s ease;
}

.net-dot-core {
    fill: url(#net-flow-grad);
    opacity: 0.5;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.net-node.is-live .net-dot {
    stroke: var(--neon-blue);
    filter: drop-shadow(0 0 10px rgba(19, 4, 234, 0.45));
}

.net-node.is-live .net-dot-core {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(19, 4, 234, 0.55));
}

/* Inline labels - short names (e.g. integration hub) */
.net-label {
    fill: var(--text-primary);
    font: 700 14px var(--font-sans);
    text-anchor: middle;
    letter-spacing: 0.04em;
}

/* External pill labels - long module names */
.net-label-pill {
    fill: rgba(248, 251, 255, 0.97);
    stroke: rgba(19, 4, 234, 0.16);
    stroke-width: 1;
    filter: drop-shadow(0 2px 10px rgba(19, 4, 234, 0.08));
    transition: stroke 0.4s ease, filter 0.4s ease;
}

.net-label-wrap .net-label {
    font: 600 11.5px var(--font-sans);
    letter-spacing: 0.02em;
    dominant-baseline: central;
}

.net-node.is-live .net-label-pill {
    stroke: rgba(19, 4, 234, 0.38);
    filter: drop-shadow(0 0 14px rgba(19, 4, 234, 0.16));
}

.net-node.is-live .net-label-wrap .net-label {
    fill: var(--neon-blue);
}

.net-hub-ring {
    fill: none;
    stroke: rgba(129, 55, 255, 0.35);
    stroke-width: 2;
}

.net-hub-core {
    fill: url(#net-hub-grad);
    filter: drop-shadow(0 0 22px rgba(19, 4, 234, 0.4));
    transition: filter 0.4s ease;
}

.lp-network-svg.is-drawn .net-hub-core {
    animation: net-hub-glow 2.8s ease-in-out infinite;
}

.net-hub-label-pill {
    fill: url(#net-hub-grad);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1;
    filter: drop-shadow(0 4px 20px rgba(19, 4, 234, 0.32));
}

.net-hub-label-wrap .net-hub-label {
    fill: #fff;
    font: 700 13px var(--font-sans);
    text-anchor: middle;
    letter-spacing: 0.03em;
    dominant-baseline: central;
}

/* Legacy hub label - text inside core (integration page) */
.net-hub > .net-hub-label {
    fill: #fff;
    font: 800 16px var(--font-sans);
    text-anchor: middle;
    letter-spacing: 0.02em;
}

@keyframes net-hub-glow {
    0%, 100% { filter: drop-shadow(0 0 22px rgba(19, 4, 234, 0.4)); }
    50%      { filter: drop-shadow(0 0 34px rgba(129, 55, 255, 0.55)); }
}

@media (max-width: 640px) {
    .net-label {
        font-size: 16px;
    }

    .net-label-wrap .net-label {
        font-size: 12px;
    }

    .net-hub > .net-hub-label {
        font-size: 18px;
    }

    .net-hub-label-wrap .net-hub-label {
        font-size: 14px;
    }
}

/* Network loops are paused while the stage is off screen (leistung-detail.js
   toggles .is-offscreen), so the infinite filter animation never repaints
   during scrolling elsewhere on the page. */
.lp-network-stage.is-offscreen .net-hub-core {
    animation-play-state: paused;
}

/* ----- Projektmanagement detail additions ----- */
.lp-dash--projekt {
    min-height: 22rem;
}

.lp-principle-icon svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.75rem;
    color: var(--neon-blue);
}

/* ----- Scroll stability (Leistung detail pages) -----
   Programmatic scrolls (ScrollTrigger refresh, scroll restoration) must be
   instant: with the global `scroll-behavior: smooth` every internal
   refresh became a visible glide back towards the top of the page.
   In-page anchor links keep their smooth scroll via main.js (explicit
   behavior: 'smooth'). overflow-x: clip (instead of hidden) stops
   <html>/<body> from becoming nested scroll containers, which breaks
   momentum scrolling on iOS Safari. Mirrors projektphasen.css. */
html {
    scroll-behavior: auto;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* Stable hero height on mobile: 100dvh follows the address bar as it
   collapses/expands mid-scroll and shifted every section below the hero
   by ~60px each time. svh is the stable (small) viewport height.
   Only the box height changes - the hero animation is untouched. */
@supports (height: 100svh) {
    .hero {
        min-height: 100svh;
    }
}
