/* ==========================================================================
   ARL Beratung — Seiten-CSS: Dienstleistungen
   Baut ausschließlich auf den Tokens des Design-Systems (style.css) auf.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero (inner)
   -------------------------------------------------------------------------- */
.services-hero .orb {
    width: 26rem;
    height: 26rem;
    bottom: -10rem;
    left: -8rem;
    opacity: 0.55;
}

.services-hero .trust-bar {
    justify-content: flex-start;
    padding: 1.7rem 0 0;
    gap: 0.9rem 2.2rem;
}

.services-hero__media { position: relative; }
.services-hero__media .img-frame { aspect-ratio: 4 / 3; }
.services-hero__media .img-frame img { height: 100%; }

.services-hero__facts {
    position: absolute;
    left: -1.6rem;
    bottom: -1.9rem;
    max-width: 350px;
    padding: 1.4rem 1.6rem;
}
.services-hero__facts .facts-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-primary);
    margin-bottom: 0.8rem;
}
.services-hero__facts .check-list { margin: 0; }
.services-hero__facts .check-list li {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    padding-left: 1.7rem;
}
.services-hero__facts .check-list li:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
    .services-hero__facts {
        position: static;
        max-width: none;
        margin: -2.2rem 1rem 0;
    }
}

/* --------------------------------------------------------------------------
   Scroll-Spy-Navigation (sticky unter der Haupt-Nav)
   -------------------------------------------------------------------------- */
.service-nav {
    position: sticky;
    top: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--dur-base) var(--ease-out);
}
.service-nav.is-stuck { box-shadow: 0 14px 34px rgba(9, 17, 35, 0.08); }

.service-nav__track {
    display: flex;
    align-items: center;
    gap: clamp(1.15rem, 2.6vw, 2.1rem);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.service-nav__track::-webkit-scrollbar { display: none; }

.service-nav__track a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    white-space: nowrap;
    flex: none;
    transition: color var(--dur-fast) var(--ease-out);
}
.service-nav__track a .idx {
    font-size: 0.68rem;
    color: var(--brand-primary);
    opacity: 0.7;
}
.service-nav__track a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s var(--ease-out);
}
.service-nav__track a:hover { color: var(--brand-primary); }
.service-nav__track a.is-active { color: var(--brand-secondary); }
.service-nav__track a.is-active::after,
.service-nav__track a:hover::after { transform: scaleX(1); }

.service-nav__track .push { margin-left: auto; }

/* --------------------------------------------------------------------------
   Leistungs-Überblick
   -------------------------------------------------------------------------- */
.card-service .link-arrow { font-size: 0.92rem; margin-top: auto; }
.overview-grid .card-service {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.overview-grid .card-service p { flex: 0 0 auto; }
.overview-grid .card-service .card-gap { flex: 1 1 auto; min-height: 0.6rem; }

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 1rem;
}
.addon-item {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}
.addon-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 91, 255, 0.22);
}
.addon-item i { color: var(--brand-primary); font-size: 1.35rem; flex: none; margin-top: 0.1rem; }
.addon-item strong { display: block; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }
.addon-item small { display: block; color: var(--ink-mute); font-size: 0.83rem; margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   Deep-Dives
   -------------------------------------------------------------------------- */
.service-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}
.service-media img {
    position: absolute;
    left: 0;
    top: -7%;
    width: 100%;
    height: 114%;
    object-fit: cover;
    will-change: transform;
}
.service-media__chip {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(9, 17, 35, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    padding: 0.38rem 0.95rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

/* Nutzen / Vorgehen / Ergebnis */
.nve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-strong);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: clamp(2.2rem, 4vw, 3.2rem);
}
.nve-cell { background: var(--surface); padding: 1.7rem 1.8rem; }
.nve-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-secondary);
    margin-bottom: 1.05rem;
}
.nve-head i {
    width: 38px;
    height: 38px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: linear-gradient(140deg, rgba(31, 91, 255, 0.12), rgba(0, 196, 255, 0.12));
    border: 1px solid rgba(31, 91, 255, 0.16);
    color: var(--brand-primary);
    font-size: 1.05rem;
}
.nve-cell ul { margin: 0; padding: 0; list-style: none; }
.nve-cell li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.nve-cell li:last-child { margin-bottom: 0; }
.nve-cell li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.55rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-hero);
}

@media (max-width: 991.98px) {
    .nve-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Methoden & Technologie (dunkle Sektion)
   -------------------------------------------------------------------------- */
.method-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: transform var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out),
                background var(--dur-base) var(--ease-out);
}
.method-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 196, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}
.method-card > i { color: var(--brand-accent); font-size: 1.7rem; display: inline-block; }
.method-card h3 { font-size: 1.14rem; color: #fff; margin: 0.95rem 0 0.5rem; }
.method-card p { font-size: 0.94rem; margin: 0; }

.tech-stack {
    margin-top: clamp(2.2rem, 4vw, 3.2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: clamp(1.8rem, 3vw, 2.6rem);
    display: grid;
    gap: 1.3rem;
}
.tech-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}
.tech-group__label {
    flex: 0 0 190px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.52);
}
.tech-chip {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    padding: 0.38rem 0.9rem;
    transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.tech-chip:hover { border-color: rgba(0, 196, 255, 0.45); background: rgba(0, 196, 255, 0.08); }

@media (max-width: 767.98px) {
    .tech-group__label { flex-basis: 100%; }
}

/* --------------------------------------------------------------------------
   Ablauf & Pakete
   -------------------------------------------------------------------------- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 2rem 1.7rem;
}
.flow-grid .process-step h3 {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}
.flow-grid .process-step p { font-size: 0.92rem; margin: 0; }

.package-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2.1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(31, 91, 255, 0.25);
}
.package-card__type {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-primary);
}
.package-card h3 { font-size: 1.42rem; margin: 0.65rem 0 0.35rem; }
.package-card__meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
    margin-bottom: 0.9rem;
}
.package-card > p { font-size: 0.95rem; }
.package-card .check-list { margin: 1.1rem 0 1.7rem; flex: 1 1 auto; }
.package-card .check-list li { margin-bottom: 0.6rem; font-size: 0.94rem; }
.package-card .btn { align-self: flex-start; }

.package-card--featured {
    background: var(--gradient-deep);
    border-color: rgba(0, 196, 255, 0.35);
    box-shadow: var(--shadow-lg);
}
.package-card--featured h3 { color: #fff; }
.package-card--featured .package-card__type { color: var(--brand-accent); }
.package-card--featured .package-card__meta { color: rgba(255, 255, 255, 0.55); }
.package-card--featured > p,
.package-card--featured .check-list li { color: rgba(255, 255, 255, 0.82); }
.package-card--featured .check-list li::before { color: var(--brand-accent); }

.package-card__flag {
    position: absolute;
    top: -0.95rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: var(--radius-pill);
    padding: 0.4rem 1.05rem;
    box-shadow: var(--shadow-glow);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Referenzen & CTA
   -------------------------------------------------------------------------- */
.testimonial-card { height: 100%; display: flex; flex-direction: column; }
.testimonial-card blockquote { margin: 0.4rem 0 0; flex: 1 1 auto; }
.testimonial-person {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}
.testimonial-person strong { display: block; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.testimonial-person small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
    margin-top: 0.15rem;
}

.cta-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.9rem;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}
.cta-contact i { color: var(--brand-accent); margin-right: 0.45rem; }
.cta-contact a { color: #fff; font-weight: 600; }
.cta-contact a:hover { color: var(--brand-accent); }

/* --------------------------------------------------------------------------
   Conversion-Politur (additiv)
   -------------------------------------------------------------------------- */

/* Micro-Trust direkt unter den Hero-CTAs */
.hero-microtrust {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.95rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
}
.hero-microtrust i { color: var(--brand-primary); font-size: 0.9rem; flex: none; }

/* Persistenter Erstgespräch-CTA in der Scroll-Spy-Leiste (nur Desktop) */
.service-nav__cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex: none;
    margin-left: 1.4rem;
    padding: 0.46rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-hero);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
}
.service-nav__cta:hover,
.service-nav__cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
@media (min-width: 992px) {
    .service-nav__cta { display: inline-flex; }
}

/* „Für wen"-Zeile in den Überblickskarten */
.card-fit {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: var(--ink-mute);
}
.card-fit i { color: var(--brand-primary); font-size: 0.92rem; flex: none; margin-top: 0.05em; }

/* Sektions-CTA nach jedem Deep-Dive: „Passt zu Ihnen, wenn …" */
.service-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem 2.2rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
    padding: 1.35rem 1.7rem;
    background: linear-gradient(135deg, rgba(31, 91, 255, 0.055), rgba(0, 196, 255, 0.055));
    border: 1px solid rgba(31, 91, 255, 0.14);
    border-radius: var(--radius-md);
}
.service-cta__fit {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    flex: 1 1 380px;
    min-width: 0;
}
.service-cta__fit > i {
    width: 40px;
    height: 40px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: rgba(31, 91, 255, 0.1);
    border: 1px solid rgba(31, 91, 255, 0.18);
    color: var(--brand-primary);
    font-size: 1.1rem;
}
.service-cta__fit p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.service-cta__fit strong { color: var(--ink); }
.service-cta__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: none;
}
.service-cta__action small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
}

/* „Ideal, wenn …"-Hinweis in den Paketkarten */
.package-card__fit {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.2rem 0 0;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-soft);
    background: rgba(31, 91, 255, 0.05);
    border: 1px solid rgba(31, 91, 255, 0.11);
    border-radius: var(--radius-xs);
}
.package-card__fit i { color: var(--brand-primary); flex: none; margin-top: 0.1em; }
.package-card--featured .package-card__fit {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}
.package-card--featured .package-card__fit i { color: var(--brand-accent); }

/* Paket-Vergleichstabelle */
.compare-wrap { margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}
.table-scroll:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    color: var(--ink-soft);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}
.compare-table tbody th[scope="row"] {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    white-space: nowrap;
}
.compare-table .is-featured { background: rgba(31, 91, 255, 0.05); }
.compare-table thead .is-featured {
    color: var(--brand-primary);
    box-shadow: inset 0 3px 0 var(--brand-primary);
}
.compare-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.15rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.compare-note > i { color: var(--brand-primary); font-size: 1.25rem; flex: none; }
.compare-note .link-arrow { font-size: 0.92rem; white-space: nowrap; }

/* Ergebnis-Chip über den Referenzstimmen */
.testimonial-kpi {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    padding: 0.34rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    background: rgba(31, 91, 255, 0.07);
    border: 1px solid rgba(31, 91, 255, 0.16);
    border-radius: var(--radius-pill);
    margin-bottom: 0.4rem;
}
.testimonial-kpi i { color: var(--brand-primary); font-size: 0.8rem; }

/* Mobile-Feinschliff */
@media (max-width: 575.98px) {
    .services-hero .trust-bar { padding-top: 1.3rem; }
    .hero-microtrust { align-items: flex-start; }
    .hero-microtrust i { margin-top: 0.1em; }
    .service-cta { padding: 1.2rem 1.15rem; }
    .service-cta__action { width: 100%; }
    .service-cta__action .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    .compare-table th,
    .compare-table td { padding: 0.75rem 0.9rem; }
    .nve-cell { padding: 1.45rem 1.3rem; }
}
