.rafis-services,
.rafis-services * {
    box-sizing: border-box;
}

.rafis-services {
    --rf-red:#F58220;
    --rf-red-dark:#D96B09;
    --rf-brown:#6A584C;
    --rf-ink:#242220;
    --rf-muted:#68615D;
    --rf-soft:#F8F5F3;
    --rf-soft-strong:#F4EFEC;
    --rf-soft-red:#FFF4EA;
    --rf-border:#E5DDD8;

    width:100%;
    padding:100px 28px;
    background:#fff;
    color:var(--rf-ink);
    font-family:"Inter",Arial,sans-serif;
    overflow:hidden;
}

.rafis-services .rfs-inner {
    width:100%;
    max-width:1390px;
    margin:0 auto;
}


/* INTRO */

.rafis-services .rfs-intro {
    display:grid;
    grid-template-columns:.86fr 1.14fr;
    gap:85px;
    align-items:end;
    margin-bottom:52px;
}

.rafis-services .rfs-eyebrow {
    margin-bottom:18px;
    color:var(--rf-red);
    font-size:12px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:1.1px;
    text-transform:uppercase;
}

.rafis-services h2 {
    max-width:600px;
    margin:0;
    color:var(--rf-ink);
    font-size:clamp(35px,3.4vw,48px);
    font-weight:620;
    line-height:1.14;
    letter-spacing:-1.45px;
}

.rafis-services h2 span {
    color:var(--rf-red);
    font-weight:500;
}

.rafis-services .rfs-intro-text {
    max-width:655px;
    color:var(--rf-muted);
    font-size:16px;
    font-weight:400;
    line-height:1.85;
}

.rafis-services .rfs-intro-text p {
    margin:0;
}

.rafis-services .rfs-intro-text strong {
    color:var(--rf-ink);
    font-weight:600;
}


/* GRID */

.rafis-services .rfs-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}


/* CARDS */

.rafis-services .rfs-card {
    position:relative;
    display:flex;
    flex-direction:column;

    min-height:370px;

    padding:34px 32px 31px;

    border:1px solid var(--rf-border);
    border-radius:12px;

    background:var(--rf-soft);

    overflow:hidden;

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

.rafis-services .rfs-card:hover {
    transform:translateY(-5px);
    border-color:#D7CBC5;
    background:#fff;
    box-shadow:0 16px 35px rgba(70,55,48,.08);
}

.rafis-services .rfs-card-main {
    background:var(--rf-soft-strong);
}


/* ICON */

.rafis-services .rfs-icon {
    display:flex;
    align-items:center;
    justify-content:center;

    width:52px;
    height:52px;

    margin-bottom:29px;

    border-radius:10px;

    background:var(--rf-soft-red);
    color:var(--rf-red);

    font-size:20px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.rafis-services .rfs-icon svg {
    width:1em;
    height:1em;
    fill:currentColor;
}

.rafis-services .rfs-card:hover .rfs-icon {
    background:var(--rf-red);
    color:#fff;
    transform:scale(1.04);
}


/* TEXT */

.rafis-services .rfs-card-label {
    display:block;
    margin-bottom:10px;
    color:var(--rf-red);
    font-size:10px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:1px;
    text-transform:uppercase;
}

.rafis-services .rfs-card h3 {
    margin:0 0 16px;
    color:var(--rf-ink);
    font-size:22px;
    font-weight:620;
    line-height:1.3;
    letter-spacing:-.4px;
}

.rafis-services .rfs-card p {
    margin:0;
    color:var(--rf-muted);
    font-size:14px;
    font-weight:400;
    line-height:1.75;
}


/* CARD BOTTOM */

.rafis-services .rfs-card-bottom {
    display:flex;
    align-items:center;
    gap:9px;

    margin-top:auto;
    padding-top:28px;

    color:var(--rf-ink);

    font-size:12px;
    font-weight:600;
}

.rafis-services .rfs-card-bottom i,
.rafis-services .rfs-card-bottom svg {
    color:var(--rf-red);
    fill:currentColor;
    font-size:12px;
}


/* BOTTOM CTA */

.rafis-services .rfs-bottom {
    display:grid;
    grid-template-columns:1fr auto;

    gap:40px;

    align-items:center;

    margin-top:22px;
    padding:25px 28px;

    border:1px solid var(--rf-border);
    border-radius:11px;

    background:#fff;
}

.rafis-services .rfs-bottom-copy {
    display:flex;
    align-items:flex-start;
    gap:16px;
}

.rafis-services .rfs-bottom-icon {
    display:flex;
    align-items:center;
    justify-content:center;

    flex:0 0 auto;

    width:42px;
    height:42px;

    border-radius:9px;

    background:var(--rf-soft-red);
    color:var(--rf-red);

    font-size:16px;
}

.rafis-services .rfs-bottom-icon svg {
    width:1em;
    height:1em;
    fill:currentColor;
}

.rafis-services .rfs-bottom-copy strong {
    display:block;
    margin-bottom:4px;
    color:var(--rf-ink);
    font-size:14px;
    font-weight:650;
}

.rafis-services .rfs-bottom-copy p {
    margin:0;
    color:var(--rf-muted);
    font-size:12px;
    line-height:1.65;
}


/* CTA */

.rafis-services .rfs-cta {
    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:10px;

    min-height:49px;

    padding:13px 19px;

    border:1px solid var(--rf-red);
    border-radius:8px;

    background:var(--rf-red);

    color:#fff !important;

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

    text-decoration:none !important;

    transition:
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.rafis-services .rfs-cta:hover {
    background:var(--rf-red-dark);
    border-color:var(--rf-red-dark);
    color:#fff !important;

    /* Kein Button-Lift */
    transform:none !important;

    box-shadow:
        0 8px 20px
        rgba(166,26,39,.17);
}


/* DETAIL */

.rafis-services .rfs-card::after {
    content:"";

    position:absolute;

    left:32px;
    right:32px;
    bottom:0;

    height:2px;

    background:var(--rf-brown);

    opacity:0;

    transform:scaleX(.4);
    transform-origin:left center;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.rafis-services .rfs-card:hover::after {
    opacity:.65;
    transform:scaleX(1);
}


/* ANIMATION */

.rafis-services [data-rfs-animate] {
    opacity:0;
    transform:translateY(24px);

    transition:
        opacity .7s cubic-bezier(.22,.61,.36,1),
        transform .7s cubic-bezier(.22,.61,.36,1);

    transition-delay:
        var(--rfs-delay,0ms);
}

.rafis-services [data-rfs-animate="left"] {
    transform:translateX(-25px);
}

.rafis-services [data-rfs-animate="right"] {
    transform:translateX(25px);
}

.rafis-services.is-visible [data-rfs-animate] {
    opacity:1;
    transform:translate3d(0,0,0);
}


/* TABLET */

@media (max-width:1050px) {

    .rafis-services {
        padding:80px 25px;
    }

    .rafis-services .rfs-intro {
        grid-template-columns:1fr;
        gap:25px;
        margin-bottom:40px;
    }

    .rafis-services .rfs-intro-text {
        max-width:720px;
    }

    .rafis-services .rfs-grid {
        grid-template-columns:1fr 1fr;
    }

    .rafis-services .rfs-card:last-child {
        grid-column:1 / -1;
    }

}


/* MOBILE */

@media (max-width:767px) {

    .rafis-services {
        padding:65px 20px;
    }

    .rafis-services .rfs-intro {
        gap:21px;
        margin-bottom:31px;
    }

    .rafis-services .rfs-eyebrow {
        margin-bottom:14px;
        font-size:10px;
        letter-spacing:.8px;
    }

    .rafis-services h2 {
        font-size:clamp(32px,8vw,40px);
        line-height:1.16;
        letter-spacing:-1px;
    }

    .rafis-services .rfs-intro-text {
        font-size:14px;
        line-height:1.78;
    }

    .rafis-services .rfs-grid {
        grid-template-columns:1fr;
        gap:12px;
    }

    .rafis-services .rfs-card,
    .rafis-services .rfs-card:last-child {
        grid-column:auto;
        min-height:0;
        padding:25px 23px;
    }

    .rafis-services .rfs-card::after {
        left:23px;
        right:23px;
    }

    .rafis-services .rfs-icon {
        width:47px;
        height:47px;

        margin-bottom:22px;

        font-size:18px;
    }

    .rafis-services .rfs-card h3 {
        margin-bottom:12px;
        font-size:20px;
    }

    .rafis-services .rfs-card p {
        font-size:13px;
        line-height:1.72;
    }

    .rafis-services .rfs-card-bottom {
        margin-top:22px;
        padding-top:0;
    }

    .rafis-services .rfs-bottom {
        grid-template-columns:1fr;

        gap:18px;

        margin-top:13px;
        padding:20px;
    }

    .rafis-services .rfs-cta {
        width:100%;
        min-height:52px;
    }

}


/* REDUCED MOTION */

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

    .rafis-services [data-rfs-animate] {
        opacity:1 !important;
        transform:none !important;
        transition:none !important;
    }

    .rafis-services .rfs-card,
    .rafis-services .rfs-icon,
    .rafis-services .rfs-cta {
        transition:none !important;
    }

}


/* ==========================================================
   RAFIS SERVICES – EDITOR + ICON FIX
   ========================================================== */


/* ----------------------------------------------------------
   CHECK-ICONS UNTEN:
   globale Elementor/SVG-Regeln dürfen sie nicht aufblasen
   ---------------------------------------------------------- */

.rafis-services .rfs-card-bottom > i,
.rafis-services .rfs-card-bottom > svg,
.rafis-services .rfs-card-bottom .e-font-icon-svg {
    display: block !important;

    width: 13px !important;
    height: 13px !important;

    min-width: 13px !important;
    min-height: 13px !important;

    max-width: 13px !important;
    max-height: 13px !important;

    flex:
        0 0 13px !important;

    margin: 0 !important;

    color:
        var(--rf-red) !important;

    fill:
        currentColor !important;

    font-size:
        13px !important;

    line-height:
        1 !important;
}


/* Haupticons ebenfalls absichern */

.rafis-services .rfs-icon > svg,
.rafis-services .rfs-icon .e-font-icon-svg {
    width: 20px !important;
    height: 20px !important;

    max-width: 20px !important;
    max-height: 20px !important;

    fill:
        currentColor !important;
}


/* Standorticon */

.rafis-services .rfs-bottom-icon > svg,
.rafis-services .rfs-bottom-icon .e-font-icon-svg {
    width: 16px !important;
    height: 16px !important;

    max-width: 16px !important;
    max-height: 16px !important;

    fill:
        currentColor !important;
}



/* ----------------------------------------------------------
   ANIMATION ROBUSTER AUFBAU

   Standardmäßig ist ALLES sichtbar.
   Erst wenn JS wirklich läuft, darf ausgeblendet werden.
   ---------------------------------------------------------- */

.rafis-services [data-rfs-animate] {
    opacity:
        1;

    transform:
        none;
}


/* Nur echte Frontend-Animation */

.rafis-services.rfs-animation-ready:not(.is-visible)
[data-rfs-animate] {
    opacity:
        0;

    transform:
        translateY(24px);
}


.rafis-services.rfs-animation-ready:not(.is-visible)
[data-rfs-animate="left"] {
    transform:
        translateX(-25px);
}


.rafis-services.rfs-animation-ready:not(.is-visible)
[data-rfs-animate="right"] {
    transform:
        translateX(25px);
}


.rafis-services.rfs-animation-ready.is-visible
[data-rfs-animate] {
    opacity:
        1;

    transform:
        translate3d(0,0,0);
}



/* ----------------------------------------------------------
   ELEMENTOR EDITOR
   Im Editor niemals Inhalte ausblenden.
   ---------------------------------------------------------- */

body.elementor-editor-active
.rafis-services [data-rfs-animate],

body.elementor-editor-preview
.rafis-services [data-rfs-animate],

.elementor-editor-active
.rafis-services [data-rfs-animate],

.elementor-edit-area-active
.rafis-services [data-rfs-animate] {
    opacity:
        1 !important;

    transform:
        none !important;

    visibility:
        visible !important;
}



/* ----------------------------------------------------------
   ORANGE CI
   ---------------------------------------------------------- */

.rafis-services {
    --rf-red:
        #F58220;

    --rf-red-dark:
        #D96B09;

    --rf-soft-red:
        #FFF4EA;
}



/* Kein Button-Lift */

.rafis-services .rfs-cta:hover,
.rafis-services .rfs-cta:focus {
    transform:
        none !important;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width:767px) {

    .rafis-services
    .rfs-card-bottom > svg,

    .rafis-services
    .rfs-card-bottom
    .e-font-icon-svg {
        width:
            13px !important;

        height:
            13px !important;

        max-width:
            13px !important;

        max-height:
            13px !important;
    }

}
