/* =========================================
  Section
========================================= */

.services-de-section {
    border-top: 8px solid #c89b3c;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 10px auto;
    padding-bottom: 30px;
    font-family: Arial, Helvetica, sans-serif;
    overflow: visible;
    background: #000000;
        
}

/* Vollbreiter Hintergrund */
.arabic-work-section::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 100vw;

    transform: translateX(-50%);

    background: #000000;

    z-index: 0;
}


/* =========================================
   Header Banner
========================================= */

.services-de-header {
    position: relative;
    min-height: 210px;
    margin-bottom: 0;
    padding: 35px 55px;
    border-radius: 22px;
    overflow: hidden;

    

      display: flex !important;
    justify-content: flex-start !important;

    direction: ltr !important;
}


/* زخرفة خلفية */
.services-de-header::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse at 20% 15%,
            rgba(255, 225, 145, 0.5),
            transparent 35%
        ),
        linear-gradient(
            165deg,
            transparent 35%,
            rgba(255, 255, 255, 0.08) 36%,
            transparent 37%
        );

    pointer-events: none;
}


/*  Hero Titel */
.services-de-header-content {
    position: relative;
    z-index: 2;

     text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.services-de-header h2 {
    margin: 5px 0 8px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.3;
    text-align: left !important;
    
}

.services-de-subtitle {
    display: block;
    color: #fff9e8;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.services-de-line {
    display: block;
    width: 115px;
    height: 3px;
    margin-left: 0;
    margin-right: auto;
    background: #e1a72f;
    border-radius: 20px;
}


/*  Wasser Marke */
.services-de-watermark {
    position: absolute;
    z-index: 1;
    left: 5%;
    bottom: -15px;

    color: rgba(255, 255, 255, 0.13);
    font-size: clamp(60px, 10vw, 135px);
    font-weight: 900;
    white-space: nowrap;
    user-select: none;
}


/* =========================================
   Karten-Grid
========================================= */

.services-de-grid {
    position: relative;
    z-index: 3;
    direction: ltr;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;

    margin: -75px 65px 0;
}


/* =========================================================
   DEUTSCHE VERSION – FLIP-KARTEN
   ========================================================= */

.services-de-card {
    perspective: 1200px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    padding: 0 !important;
    min-width: 0;
}


/* =========================================================
   CARD INNER
========================================================= */

.services-de-card-inner {
    position: relative;
    width: 100%;
    height: 390px;

    transform-style: preserve-3d;
    transition: transform 0.65s ease;
}


/* Flip */

.services-de-card:hover .services-de-card-inner {
    transform: rotateY(180deg);
}


/* =========================================================
   FRONT + BACK
========================================================= */

.services-de-card-front,
.services-de-card-back {
    position: absolute !important;

    inset: 0;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border-radius: 22px;

    overflow: hidden;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   VORDERSEITE
========================================================= */

.services-de-card-front {
    background: #ffffff;

    transform: rotateY(0deg);

    display: flex;
    flex-direction: column;
}


/* =========================================================
   BILD
========================================================= */

.services-de-card-front .services-de-image {
    width: 100%;
    height: 205px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 0;

    background: #e8ece9;
}

.services-de-card-front .services-de-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.services-de-card:hover .services-de-image img {
    transform: scale(1.04);
}


/* =========================================================
   NUMMER VORNE
========================================================= */

.services-de-card-front .services-de-number {
    position: absolute;

    top: 14px;
    left: 14px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c89b3c;
    color: #ffffff;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 700;

    z-index: 5;
}


/* =========================================================
   TITEL VORNE
========================================================= */

.services-de-card-front h3 {
    margin: 0;
    padding: 18px 22px 0;

    color: #103e2d;

    font-size: 22px;
    font-weight: 800;

    line-height: 1.35;

    text-align: center;
}

/* =========================================================
   RÜCKSEITE
========================================================= */

.services-de-card-back {
    background: #103e2d;
    color: #ffffff;

    padding: 30px 28px;

    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;

    text-align: left;

    border: 1px solid rgba(200, 155, 60, 0.65);
}


/* =========================================================
   NUMMER RÜCKSEITE
========================================================= */

.services-de-card-back .services-number {
    position: absolute;

    top: 14px;
    right: 14px;

    left: auto;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    background: #5a111b;
    color: #ffffff;

    border-radius: 50%;

    font-size: 17px;
    font-weight: 800;

    z-index: 5;
}


/* =========================================================
   KLEINE ÜBERSCHRIFT
========================================================= */

.services-de-card-back > span {
    display: block;

    margin: 10px 0 14px;

    color: #e0bb68;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


/* =========================================================
   TITEL RÜCKSEITE
========================================================= */

.services-de-card-back h3 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 23px;
    font-weight: 800;

    line-height: 1.35;

    text-align: left;
}


/* =========================================================
   BESCHREIBUNG RÜCKSEITE
========================================================= */

.services-de-card-back p {
    margin: 0;

    min-height: auto;

    color: rgba(255, 255, 255, 0.88);

    font-size: 15px;
    font-weight: 400;

    line-height: 1.75;

    text-align: left;
}


/* =========================================================
   MEHR INFORMATIONEN
========================================================= */

.services-de-card-back a {
    display: inline-flex;

    align-items: center;

    margin-top: auto;

    padding-top: 20px;

    color: #e0bb68;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.services-de-card-back a:hover {
    color: #ffffff;
    transform: translateX(4px);
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 700px) {

    .services-de-card-inner {
        height: 420px;
    }

    .services-de-card-front .services-de-image {
        height: 210px;
    }

    .services-de-card-front h3 {
        padding: 20px 18px;

        font-size: 21px;
    }

    .services-de-card-back {
        padding: 28px 22px;
    }

    .services-de-card-back h3 {
        font-size: 21px;
    }

    .services-de-card-back p {
        font-size: 14px;
        line-height: 1.7;
    }

    .services-de-card-front .services-de-number,
    .services-de-card-back .services-number {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .services-de-card-front .services-de-number {
        top: 10px;
        left: 10px;
    }

    .services-de-card-back .services-number {
        top: 10px;
        right: 10px;
    }

}



/* =========================================
   Pfeile
========================================= */

.services-de-arrow {
    position: absolute;
    z-index: 5;

    top: 255px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 10px;

    background: #c99225;
    color: #ffffff;

    font-size: 32px;
    line-height: 1;
    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.services-de-arrow:hover {
    background: #103e2d;
    transform: scale(1.08);
}

.services-de-arrow-right {
    right: 0;
}

.services-de-arrow-left {
    left: 0;
}


/* =========================================
   Tablet
========================================= */

@media screen and (max-width: 1100px) {

    .services-de-section {
        width: calc(100% - 40px);
    }

    .services-de-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-right: 35px;
        margin-left: 35px;
        gap: 22px;
    }

    .services-de-image {
        height: 200px;
    }

    .services-de-arrow {
        top: 285px;
    }

}


/* =========================================
   Mobile - eine Spalte
========================================= */

@media screen and (max-width: 700px) {

    .services-de-section {
        width: calc(100% - 28px);
        margin: 45px auto;
        padding-bottom: 10px;
    }

    .services-de-header {
        min-height: 190px;
        padding: 28px 22px;
        border-radius: 18px;
        align-items: flex-start;
    }

    .services-de-header-content {
        width: 100%;
        text-align: right;
    }

    .services-de-subtitle {
        font-size: 14px;
        line-height: 1.8;
    }

    .services-de-header h2 {
        font-size: 31px;
        margin-top: 8px;
    }

    .services-de-line {
        width: 85px;
        height: 3px;
    }

    .services-de-watermark {
        left: 2%;
        bottom: 0;
        font-size: 65px;
    }

    /*
       Wichtig:
       Auf dem Handy nur eine Karte pro Zeile
    */
    .services-de-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;

        margin: -45px 18px 0;
    }

    .services-de-card {
        width: 100%;
        border-radius: 18px;
    }

    .services-de-image {
        height: 210px;
    }

    .services-de-meta {
        padding: 15px 18px 0;
        font-size: 11px;
        gap: 6px;
    }

    .services-de-card h3 {
        margin: 12px 18px 7px;
        font-size: 21px;
    }

    .services-de-card p {
        min-height: auto;
        margin: 0 18px;
        font-size: 14px;
        line-height: 1.9;
    }

    .services-de-more {
        margin: 18px;
        font-size: 14px;
    }

    /*
       Pfeile auf kleinen Bildschirmen ausblenden,
       da die Karten untereinander stehen
    */
    .services-de-arrow {
    display: flex;
    top: 250px;
    width: 34px;
    height: 34px;
    font-size: 27px;
}

.services-de-arrow-right {
    right: -5px;
}

.services-de-arrow-left {
    left: -5px;
}

}


/* =========================================
   Sehr kleine Handys
========================================= */

@media screen and (max-width: 400px) {

    .services-de-section {
        width: calc(100% - 20px);
    }

    .services-de-header {
        min-height: 175px;
        padding: 24px 18px;
    }

    .services-de-header h2 {
        font-size: 27px;
    }

    .services-de-subtitle {
        font-size: 13px;
    }

    .services-de-grid {
        margin-right: 12px;
        margin-left: 12px;
        gap: 18px;
    }

    .services-de-image {
        height: 185px;
    }

    .services-de-card h3 {
        font-size: 20px;
    }

}



/* =========================================
   مجالات عملنا - Nur Bild und Titel
========================================= */

.services-de-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    padding-bottom: 18px;
    box-shadow: 0 8px 25px rgba(22, 48, 38, 0.08);
    border: 1px solid rgba(20, 55, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-de-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(22, 48, 38, 0.14);
}


/* Bild mit abgerundeten unteren Ecken */
.services-de-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 0 0 22px 22px;
    background: #e8ece9;
}

.services-de-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-de-card:hover .services-de-image img {
    transform: scale(1.06);
}


/* Nur der Titel unter dem Bild */
.services-de-card h3 {
    margin: 17px 15px 0;
    color: #103e2d;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}





/* =========================================
   Mobile
========================================= */

@media screen and (max-width: 700px) {

    .services-de-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-right: 18px;
        margin-left: 18px;
    }

    .services-de-card {
        border-radius: 18px;
        padding-bottom: 15px;
    }

    .services-de-image {
        height: 210px;
        border-radius: 0 0 18px 18px;
    }

    .services-de-card h3 {
        margin-top: 14px;
        font-size: 21px;
    }

}


/* =========================================
   مجالات عملنا - Slider
========================================= */

/* Desktop: Karten nebeneinander */
.services-de-grid {
    display: flex;
    gap: 28px;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

/* Jede Karte */
.services-de-grid .services-de-card {
    flex: 0 0 calc((100% - 84px) / 4);
    scroll-snap-align: start;
}


/* Tablet: zwei Karten */
@media screen and (max-width: 1100px) {

    .services-de-grid {
        gap: 22px;
    }

    .services-de-grid .services-de-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }

}


/* Mobile: eine Karte */
@media screen and (max-width: 700px) {

    .services-de-grid {
        display: flex;
        gap: 18px;

        overflow-x: auto;
        overflow-y: hidden;

        margin-right: 18px;
        margin-left: 18px;

        padding-bottom: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .services-de-grid::-webkit-scrollbar {
        display: none;
    }

    .services-de-grid .services-de-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

}


/* =========================================================
   DEUTSCHE VERSION – Flip-Karten
   ========================================================= */

.services-de-card {
    perspective: 1000px;
}

.services-de-card-inner {
     position: relative;
    width: 100%;
    min-height: 390px;
    height: 390px;

    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}


.services-de-card-front {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: rotateY(0deg);
}
.services-de-card:hover .services-de-card-inner {
    transform: rotateY(180deg);
}


.services-de-card-back p {
    min-height: auto;
}
.services-de-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;
    min-height: 0;

    box-sizing: border-box;

    padding: 35px 28px;

    background: #103e2d;
    color: #ffffff;

    border-radius: 22px;

    text-align: left;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: rotateY(180deg);
}
.services-de-card-back .services-de-more {
    display: flex;
}

@media screen and (max-width: 700px) {
    .services-de-card-inner {
        min-height: 420px;
    }
}

/* =========================================================
   NUMMER AUF DER VORDERSEITE
   ========================================================= */

.services-de-card-front {
    position: relative;
}

.services-de-number {
    position: absolute;
    top: 12px;
    left: 12px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #103e2d !important;
    color: #ffffff;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 700;

    z-index: 5;
}
.services-de-card-back {
    position: relative;
}


/* =========================================================
   RÜCKSEITE
   ========================================================= */



/* Kleine Überschrift */
.services-de-card-back > span {
    display: block;

    margin-bottom: 15px;

    color: #e0bb68;

    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Titel auf Rückseite */
.services-de-card-back h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 800;

    line-height: 1.4;

    text-align: left;
}


/* Beschreibung */
.services-de-card-back p {
    margin: 0 0 25px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 15px;
    line-height: 1.8;

    text-align: left;
}


/* Mehr Informationen */
.services-de-more {
    display: inline-flex;

    align-items: center;
    gap: 10px;

    margin: 0;

    color: #e0bb68;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.services-de-more:hover {
    color: #ffffff;
    gap: 15px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 700px) {

    .services-de-card-back {
        padding: 30px 22px;
    }

    .services-de-card-back h3 {
        font-size: 21px;
    }

    .services-de-card-back p {
        font-size: 14px;
        line-height: 1.7;
    }

    .services-de-number {
        width: 34px;
        height: 34px;

        top: 10px;
        left: 10px;

        font-size: 14px;
    }
}
.services-de-card-front .services-de-image {
    width: 100%;
    height: 280px;
    flex-shrink: 0;

    overflow: hidden;
    border-radius: 60%;

    background: #e8ece9;
}
.services-de-card-front {
    transform: rotateY(0deg);
}

.services-de-card-back {
    transform: rotateY(180deg);
}


@media (min-width: 1400px) {

    .arabic-work-image {
        width: 100%;
        aspect-ratio: 1.5 / 1;
        border-radius: 60%;
        overflow: hidden;
    }

    .arabic-work-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

}
