/* =========================================================
   1CC IT - LEISTUNGEN
========================================================= */

:root {
    --services-yellow: #f3c623;
    --services-yellow-dark: #d5a400;

    --services-text: #202833;
    --services-muted: #68737e;
    --services-line: #dce1e5;

    --services-bg: #f7f7f5;
    --services-white: #ffffff;

    --services-dark: #202c3c;

    --services-shadow:
        0 14px 38px rgba(25, 35, 48, .07);
}


html {
    scroll-behavior: smooth;
}


/* =========================================================
   CONTAINER
========================================================= */

.services-container {
    width: min(1380px, calc(100% - 80px));

    margin: 0 auto;
}


/* =========================================================
   LABELS
========================================================= */

.services-kicker,
.services-section-label {
    position: relative;

    display: inline-block;

    padding-top: 17px;

    color: var(--services-text);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
}

.services-kicker::before,
.services-section-label::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 44px;
    height: 2px;

    background: var(--services-yellow);
}


/* =========================================================
   HERO
========================================================= */

.services-hero {
    position: relative;

    min-height: 610px;

    overflow: hidden;

    background: var(--services-bg);
}

.services-hero-image {
    position: absolute;

    inset: 0 0 0 auto;

    width: 67%;

    background:
        url("/assets/leistungen/leistungen-hero-it.png")
        center center / cover
        no-repeat;
}

.services-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            var(--services-bg) 0%,
            var(--services-bg) 31%,
            rgba(247, 247, 245, .97) 41%,
            rgba(247, 247, 245, .76) 52%,
            rgba(247, 247, 245, .24) 72%,
            rgba(247, 247, 245, 0) 100%
        );
}

.services-hero-inner {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    min-height: 610px;

    padding: 72px 0;
}

.services-hero-content {
    max-width: 610px;
}

.services-hero-content h1 {
    max-width: 650px;

    margin: 21px 0 23px;

    color: var(--services-text);

    font-size: 58px;
    line-height: 1.02;

    letter-spacing: -2.6px;
}

.services-hero-content h1 span {
    display: block;

    color: var(--services-yellow);
}

.services-hero-content p {
    max-width: 545px;

    margin: 0;

    color: #596572;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.75;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.services-primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    min-height: 50px;

    margin-top: 31px;

    padding: 0 25px;

    border-radius: 999px;

    background: var(--services-yellow);

    color: var(--services-text);

    font-size: 13px;
    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.services-primary-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px
        rgba(243, 198, 35, .24);
}


/* =========================================================
   SERVICES LIST
========================================================= */

.services-list {
    padding: 80px 0 115px;

    background: #ffffff;
}


/* =========================================================
   SERVICE DETAIL
========================================================= */

.service-detail {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 85px;

    align-items: center;

    min-height: 500px;

    padding: 78px 0;

    border-bottom:
        1px solid
        var(--services-line);

    scroll-margin-top: 125px;
}

.service-detail:first-child {
    padding-top: 20px;
}

.service-detail:last-child {
    border-bottom: 0;
}


/* =========================================================
   REVERSE
========================================================= */

.service-detail-reverse .service-detail-image {
    order: 2;
}

.service-detail-reverse .service-detail-content {
    order: 1;
}


/* =========================================================
   IMAGE
========================================================= */

.service-detail-image {
    position: relative;

    overflow: hidden;

    border-radius: 22px;

    background: #eef1f3;

    box-shadow: var(--services-shadow);
}

.service-detail-image::after {
    content: "";

    position: absolute;

    inset: 0;

    border:
        1px solid
        rgba(255, 255, 255, .28);

    border-radius: inherit;

    pointer-events: none;
}

.service-detail-image img {
    display: block;

    width: 100%;

    aspect-ratio: 1.43 / 1;

    object-fit: cover;
}


/* =========================================================
   CONTENT
========================================================= */

.service-detail-content {
    position: relative;

    max-width: 570px;
}

.service-detail-number {
    display: block;

    margin-bottom: 22px;

    color: #c6ccd1;

    font-size: 56px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -2px;
}

.service-detail-content h2 {
    max-width: 570px;

    margin: 18px 0 20px;

    color: var(--services-text);

    font-size: 42px;
    line-height: 1.08;

    letter-spacing: -1.5px;
}

.service-detail-content > p {
    max-width: 540px;

    margin: 0;

    color: var(--services-muted);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   LIST
========================================================= */

.service-detail-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px 24px;

    margin: 28px 0 0;

    padding: 0;

    list-style: none;
}

.service-detail-list li {
    position: relative;

    padding-left: 28px;

    color: #4f5d69;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.55;
}

.service-detail-list li::before {
    content: "✓";

    position: absolute;

    top: 1px;
    left: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background:
        rgba(243, 198, 35, .22);

    color: #a87d00;

    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   LINK
========================================================= */

.service-detail-link {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    margin-top: 31px;

    color: var(--services-text);

    font-size: 13px;
    font-weight: 700;

    transition:
        color .2s ease;
}

.service-detail-link span {
    color: var(--services-yellow-dark);

    font-size: 18px;

    transition:
        transform .2s ease;
}

.service-detail-link:hover {
    color: #b88900;
}

.service-detail-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   LINK TARGET
========================================================= */

.service-detail:target {
    position: relative;
}

.service-detail:target::before {
    content: "";

    position: absolute;

    top: 40px;
    left: -22px;

    width: 3px;
    height: 54px;

    border-radius: 999px;

    background: var(--services-yellow);
}


/* =========================================================
   CTA
========================================================= */

.services-cta {
    padding: 95px 0 105px;

    background: #eef1f3;
}

.services-cta-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 70px;

    align-items: center;

    padding: 54px 58px;

    border-radius: 24px;

    background: #ffffff;

    box-shadow: var(--services-shadow);
}

.services-cta-card > div {
    max-width: 780px;
}

.services-cta-card h2 {
    max-width: 730px;

    margin: 18px 0 16px;

    color: var(--services-text);

    font-size: 39px;
    line-height: 1.1;

    letter-spacing: -1.3px;
}

.services-cta-card p {
    max-width: 690px;

    margin: 0;

    color: var(--services-muted);

    font-size: 15px;

    line-height: 1.7;
}

.services-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    min-height: 52px;

    padding: 0 27px;

    border-radius: 999px;

    background: var(--services-dark);

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.services-cta-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px
        rgba(25, 35, 48, .14);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .services-hero-content h1 {
        font-size: 51px;
    }

    .services-hero-image {
        width: 72%;
    }

    .service-detail {
        gap: 55px;
    }

    .service-detail-content h2 {
        font-size: 37px;
    }

    .services-cta-card {
        gap: 40px;

        padding: 46px;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .services-container {
        width:
            calc(100% - 48px);
    }

    .services-hero {
        min-height: auto;
    }

    .services-hero-image {
        position: relative;

        width: 100%;
        height: 360px;

        background-position: center;
    }

    .services-hero-overlay {
        display: none;
    }

    .services-hero-inner {
        min-height: auto;

        padding:
            58px 0 70px;
    }

    .services-hero-content {
        max-width: none;
    }

    .service-detail,
    .service-detail-reverse {
        grid-template-columns: 1fr;

        gap: 38px;

        min-height: 0;

        padding: 65px 0;
    }

    .service-detail-reverse .service-detail-image,
    .service-detail-reverse .service-detail-content {
        order: initial;
    }

    .service-detail-content {
        max-width: none;
    }

    .service-detail-content h2 {
        max-width: 650px;
    }

    .services-cta-card {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .services-cta-button {
        width: max-content;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .services-container {
        width:
            calc(100% - 32px);
    }

    .services-hero-image {
        height: 285px;
    }

    .services-hero-inner {
        padding:
            48px 0 60px;
    }

    .services-kicker,
    .services-section-label {
        font-size: 10px;

        letter-spacing: 2.4px;
    }

    .services-hero-content h1 {
        margin-top: 18px;

        font-size: 41px;

        letter-spacing: -1.7px;
    }

    .services-hero-content p {
        font-size: 15px;
    }

    .services-list {
        padding:
            48px 0 75px;
    }

    .service-detail {
        gap: 30px;

        padding: 52px 0;

        scroll-margin-top: 100px;
    }

    .service-detail:first-child {
        padding-top: 10px;
    }

    .service-detail-number {
        margin-bottom: 16px;

        font-size: 44px;
    }

    .service-detail-content h2 {
        font-size: 32px;

        letter-spacing: -1px;
    }

    .service-detail-content > p {
        font-size: 14px;
    }

    .service-detail-list {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .service-detail:target::before {
        display: none;
    }

    .services-cta {
        padding:
            65px 0 75px;
    }

    .services-cta-card {
        padding: 30px 24px;

        border-radius: 18px;
    }

    .services-cta-card h2 {
        font-size: 31px;
    }

    .services-cta-button {
        width: 100%;

        white-space: normal;

        text-align: center;
    }

}