:root {
    --pfg-green: #79B82A;
    --pfg-green-dark: #5F991F;
    --pfg-green-soft: #F0F7E9;

    --pfg-blue: #008B95;
    --pfg-blue-soft: #EAF6F7;

    --pfg-dark: #1C2520;
    --pfg-text: #56635C;
    --pfg-muted: #7A867F;

    --pfg-border: #DFE6E1;
    --pfg-soft: #F8FAF8;
    --pfg-white: #FFFFFF;

    --pfg-font: "Inter", Arial, sans-serif;
    --pfg-width: 1380px;
}


.pfg-goals,
.pfg-goals * {
    box-sizing: border-box;
}


.pfg-goals {
    --pfg-progress: 20%;

    position: relative;

    width: 100%;

    margin: 0;
    padding: 115px 0 135px;

    overflow: visible;

    font-family: var(--pfg-font);

    background: #FFFFFF;
}


.pfg-goals__inner {
    width:
        min(
            calc(100% - 60px),
            var(--pfg-width)
        );

    margin: 0 auto;

    display: grid;

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

    align-items: start;

    gap: 95px;
}


/* =========================================================
   LEFT
========================================================= */

.pfg-goals__aside {
    position: sticky;

    top: 115px;

    padding-top: 10px;
}


.pfg-goals__eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 600;

    letter-spacing: .075em;
    text-transform: uppercase;

    color: var(--pfg-blue);
}


.pfg-goals__eyebrow::before {
    content: "";

    width: 34px;
    height: 2px;

    flex: 0 0 34px;

    border-radius: 20px;

    background: var(--pfg-blue);
}


.pfg-goals__title {
    max-width: 520px;

    margin: 0;

    font-size:
        clamp(40px,4vw,53px);

    line-height: 1.07;

    letter-spacing: -.045em;

    font-weight: 600;

    color: var(--pfg-dark);
}


.pfg-goals__title span {
    display: block;

    color: var(--pfg-green-dark);
}


.pfg-goals__intro {
    max-width: 525px;

    margin: 27px 0 0;

    font-size: 18px;
    line-height: 1.72;

    color: var(--pfg-text);
}


/* =========================================================
   STATUS
========================================================= */

.pfg-goals__status {
    max-width: 390px;

    margin-top: 39px;

    padding: 23px 24px 22px;

    border:
        1px solid #E4EAE6;

    border-radius: 18px;

    background: var(--pfg-soft);
}


.pfg-goals__status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 17px;
}


.pfg-goals__counter {
    display: flex;
    align-items: baseline;

    gap: 7px;
}


.pfg-goals__counter-current {
    font-size: 27px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: -.035em;

    color: var(--pfg-blue);
}


.pfg-goals__counter-divider,
.pfg-goals__counter-total {
    font-size: 14px;

    color: #97A29B;
}


.pfg-goals__status-label {
    font-size: 12px;
    line-height: 1.2;

    font-weight: 600;

    letter-spacing: .06em;
    text-transform: uppercase;

    color: #8A9690;
}


.pfg-goals__rail {
    position: relative;

    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #DFE7E1;
}


.pfg-goals__rail::after {
    content: "";

    position: absolute;

    inset: 0 auto 0 0;

    width: var(--pfg-progress);

    border-radius: inherit;

    background: var(--pfg-blue);

    transition:
        width .42s cubic-bezier(.2,.75,.2,1);
}


.pfg-goals__nav {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 17px;
}


.pfg-goals__dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #CED8D1;

    cursor: pointer;

    transition:
        width .25s ease,
        background-color .25s ease,
        border-radius .25s ease,
        transform .25s ease;
}


.pfg-goals__dot:hover {
    transform: scale(1.15);
}


.pfg-goals__dot.is-active {
    width: 30px;

    border-radius: 999px;

    background: var(--pfg-blue);
}


.pfg-goals__hint {
    display: flex;
    align-items: center;

    gap: 10px;

    max-width: 380px;

    margin-top: 22px;

    font-size: 14px;
    line-height: 1.6;

    color: var(--pfg-muted);
}


.pfg-goals__hint svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    color: var(--pfg-blue);
}


/* =========================================================
   CARDS
========================================================= */

.pfg-goals__stack {
    position: relative;

    padding-bottom: 80px;
}


.pfg-card {
    position: sticky;

    top:
        calc(
            92px +
            (var(--pfg-index) * 18px)
        );

    z-index:
        calc(
            1 +
            var(--pfg-index)
        );

    min-height: 405px;

    margin-bottom: 86px;

    padding: 45px 45px 42px;

    display: grid;

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

    align-items: start;

    gap: 29px;

    overflow: hidden;

    border:
        1px solid var(--pfg-border);

    border-radius: 26px;

    background: var(--pfg-white);

    box-shadow:
        0 12px 36px rgba(24,42,31,.065);

    transform-origin:
        center top;

    transition:
        transform .4s cubic-bezier(.2,.75,.2,1),
        opacity .35s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.pfg-card.is-active {
    border-color:
        rgba(0,139,149,.34);

    box-shadow:
        0 26px 65px rgba(24,43,31,.13),
        0 0 0 1px rgba(0,139,149,.05);

    transform: scale(1);
}


.pfg-card.is-past {
    opacity: .95;

    transform: scale(.972);

    box-shadow:
        0 9px 27px rgba(24,42,31,.045);
}


.pfg-card::before,
.pfg-card::after {
    display: none !important;
}


/* NUMBER */

.pfg-card__number {
    position: absolute;

    top: 30px;
    right: 31px;

    min-width: 45px;
    height: 45px;

    padding: 0 11px;

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

    border-radius: 14px;

    background: #F5F8F6;

    border:
        1px solid #E6ECE8;

    font-size: 13px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: .04em;

    color: #8B9790;

    transition:
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}


.pfg-card.is-active
.pfg-card__number {
    color: var(--pfg-blue);

    border-color:
        rgba(0,139,149,.14);

    background:
        var(--pfg-blue-soft);

    transform:
        translateY(-2px);
}


/* ICON */

.pfg-card__icon {
    width: 76px;
    height: 76px;

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

    border-radius: 21px;

    background:
        var(--pfg-green-soft);

    color:
        var(--pfg-green-dark);

    transition:
        background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}


.pfg-card__icon svg {
    width: 35px;
    height: 35px;
}


.pfg-card.is-active
.pfg-card__icon {
    color: var(--pfg-blue);

    background:
        var(--pfg-blue-soft);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,139,149,.09);
}


/* CONTENT */

.pfg-card__content {
    padding-top: 2px;
}


.pfg-card__label {
    display: block;

    max-width:
        calc(100% - 70px);

    margin-bottom: 11px;

    font-size: 13px;
    line-height: 1.25;

    font-weight: 600;

    letter-spacing: .07em;
    text-transform: uppercase;

    color: var(--pfg-blue);
}


.pfg-card h3 {
    max-width: 610px;

    margin: 0;

    padding-right: 55px;

    font-size: 29px;
    line-height: 1.18;

    letter-spacing: -.035em;

    font-weight: 600;

    color: var(--pfg-dark);
}


.pfg-card__text {
    max-width: 640px;

    margin: 17px 0 0;

    font-size: 17px;
    line-height: 1.72;

    color: var(--pfg-text);
}


.pfg-card__benefit {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-top: 27px;

    padding:
        8px 13px 8px 8px;

    border:
        1px solid #E5EBE7;

    border-radius: 999px;

    background: #FAFBFA;

    font-size: 15px;
    line-height: 1.4;

    font-weight: 500;

    color: #65726B;
}


.pfg-card__check {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

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

    border-radius: 50%;

    color:
        var(--pfg-green-dark);

    background:
        var(--pfg-green-soft);
}


.pfg-card__check svg {
    width: 13px;
    height: 13px;
}


/* =========================================================
   ENTRANCE
========================================================= */

.pfg-goals.pfg-ready
.pfg-goals__aside,

.pfg-goals.pfg-ready
.pfg-card {
    opacity: 0;
}


.pfg-goals.pfg-ready
.pfg-goals__aside {
    transform:
        translateY(28px);
}


.pfg-goals.pfg-ready
.pfg-card {
    transform:
        translateY(42px)
        scale(.985);
}


.pfg-goals.pfg-ready.is-visible
.pfg-goals__aside {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.2,.75,.2,1);
}


.pfg-goals.pfg-ready.is-visible
.pfg-card {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.75,.2,1),
        box-shadow .3s ease,
        border-color .3s ease;
}


.pfg-goals.pfg-ready.is-visible
.pfg-card.is-past {
    opacity: .95;

    transform:
        scale(.972);
}


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

@media (max-width: 1100px) {

    .pfg-goals__inner {
        grid-template-columns:
            325px
            minmax(0,1fr);

        gap: 52px;
    }


    .pfg-goals__title {
        font-size: 43px;
    }


    .pfg-card {
        min-height: 390px;

        padding:
            38px 34px;

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

        gap: 22px;
    }


    .pfg-card__icon {
        width: 65px;
        height: 65px;

        border-radius: 18px;
    }


    .pfg-card__icon svg {
        width: 30px;
        height: 30px;
    }


    .pfg-card h3 {
        font-size: 26px;
    }

}


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

@media (max-width: 800px) {

    .pfg-goals {
        padding:
            80px 0 90px;
    }


    .pfg-goals__inner {
        width:
            min(
                calc(100% - 40px),
                var(--pfg-width)
            );

        grid-template-columns:
            1fr;

        gap: 46px;
    }


    .pfg-goals__aside {
        position: relative;

        top: auto;

        max-width: 720px;
    }


    .pfg-goals__status {
        max-width: 100%;
    }


    .pfg-goals__stack {
        padding-bottom: 0;
    }


    .pfg-card {
        position: relative;

        top: auto;

        margin-bottom: 18px;

        transform: none;
    }


    .pfg-card.is-past {
        opacity: 1;

        transform: none;
    }

}


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

@media (max-width: 600px) {

    .pfg-goals {
        padding:
            65px 0 72px;
    }


    .pfg-goals__inner {
        width:
            calc(100% - 30px);

        gap: 34px;
    }


    .pfg-goals__eyebrow {
        margin-bottom: 15px;

        font-size: 12px;
    }


    .pfg-goals__eyebrow::before {
        width: 27px;

        flex-basis: 27px;
    }


    .pfg-goals__title {
        font-size: 34px;
        line-height: 1.1;
    }


    .pfg-goals__intro {
        margin-top: 19px;

        font-size: 17px;
        line-height: 1.7;
    }


    .pfg-goals__status {
        margin-top: 28px;

        padding:
            19px 18px 18px;

        border-radius: 16px;
    }


    .pfg-card {
        min-height: 0;

        padding:
            28px 23px 29px;

        grid-template-columns:
            1fr;

        gap: 20px;

        border-radius: 21px;
    }


    .pfg-card__icon {
        width: 60px;
        height: 60px;

        border-radius: 17px;
    }


    .pfg-card__number {
        top: 22px;
        right: 21px;

        min-width: 42px;
        height: 42px;
    }


    .pfg-card__label {
        font-size: 12px;
    }


    .pfg-card h3 {
        padding-right: 0;

        font-size: 24px;
        line-height: 1.22;
    }


    .pfg-card__text {
        margin-top: 14px;

        font-size: 16px;
        line-height: 1.68;
    }


    .pfg-card__benefit {
        margin-top: 22px;

        font-size: 14px;
    }

}


/* =========================================================
   ELEMENTOR
========================================================= */

.elementor-editor-active
.pfg-goals__aside,

.elementor-editor-preview
.pfg-goals__aside {
    position: relative !important;

    top: auto !important;

    opacity: 1 !important;

    transform: none !important;
}


.elementor-editor-active
.pfg-card,

.elementor-editor-preview
.pfg-card {
    position: relative !important;

    top: auto !important;

    opacity: 1 !important;

    transform: none !important;

    margin-bottom: 18px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pfg-goals *,
    .pfg-goals.pfg-ready * {
        transition: none !important;
        animation: none !important;
    }


    .pfg-goals.pfg-ready
    .pfg-goals__aside,

    .pfg-goals.pfg-ready
    .pfg-card {
        opacity: 1 !important;

        transform: none !important;
    }

}


/* =========================================================
   PROGRESS DOTS – ELEMENTOR / THEME BUTTON RESET
========================================================= */

.pfg-goals .pfg-goals__dot,
.pfg-goals button.pfg-goals__dot {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: block !important;

    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;

    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 50% !important;

    background: #CED8D1 !important;

    box-shadow: none !important;

    line-height: 0 !important;

    font-size: 0 !important;

    color: transparent !important;

    cursor: pointer !important;

    flex: 0 0 9px !important;

    transform: none;

    transition:
        width .25s ease,
        min-width .25s ease,
        max-width .25s ease,
        background-color .25s ease,
        border-radius .25s ease,
        transform .25s ease !important;
}


.pfg-goals .pfg-goals__dot:hover,
.pfg-goals .pfg-goals__dot:focus,
.pfg-goals .pfg-goals__dot:focus-visible {
    border: 0 !important;
    outline: 0 !important;

    background: #BFCBC3 !important;

    box-shadow: none !important;

    transform: scale(1.15);
}


.pfg-goals .pfg-goals__dot.is-active,
.pfg-goals button.pfg-goals__dot.is-active {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;

    height: 9px !important;

    flex-basis: 30px !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: #008B95 !important;

    box-shadow: none !important;
}


.pfg-goals .pfg-goals__dot.is-active:hover,
.pfg-goals .pfg-goals__dot.is-active:focus,
.pfg-goals .pfg-goals__dot.is-active:focus-visible {
    background: #008B95 !important;

    border: 0 !important;
    outline: 0 !important;

    box-shadow: none !important;
}


/*
 * Elementor Editor ebenfalls sauber halten
 */

.elementor-editor-active .pfg-goals__dot,
.elementor-editor-preview .pfg-goals__dot {
    border: 0 !important;
    outline: 0 !important;

    box-shadow: none !important;
}

