/* ==========================================================
   MGM MÖBIUS – STARTSEITE
   ========================================================== */


/* ----------------------------------------------------------
   GRUNDLAGEN
   ---------------------------------------------------------- */

.home-page {
    --home-blue: #0868b5;
    --home-blue-dark: #082743;
    --home-blue-light: #eaf4fb;

    --home-text: #152536;
    --home-text-light: #64717e;

    --home-bg: #ffffff;
    --home-bg-light: #f5f7f9;

    --home-border: #dfe5ea;

    --home-radius: 8px;
    --home-shadow: 0 10px 30px rgba(0, 25, 50, 0.08);

    color: var(--home-text);
    background: var(--home-bg);
}


.home-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


.home-page img {
    display: block;
    max-width: 100%;
}






/* ==========================================================
   BUTTONS
   ========================================================== */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    border: 2px solid transparent;
    border-radius: 5px;

    font-weight: 600;
    text-decoration: none;

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


.home-btn:hover {
    transform: translateY(-2px);
}


.home-btn--primary {
    background: var(--home-blue);
    color: #fff;
}


.home-btn--primary:hover {
    background: #075b9e;
    color: #fff;
}


.home-btn--secondary {
    border-color: var(--home-blue);
    background: transparent;
    color: var(--home-blue);
}


.home-btn--secondary:hover {
    background: var(--home-blue);
    color: #fff;
}


.home-btn--white {
    background: #fff;
    color: var(--home-blue-dark);
}


.home-btn--white:hover {
    background: #eef5fa;
    color: var(--home-blue-dark);
}



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

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

.home-hero {
    position: relative;
    min-height: 570px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #071f38;
}


/* Bild liegt über der kompletten rechten Hälfte */

.home-hero__background {
    position: absolute;

    top: 0;
    right: 0;

    width: 62%;
    height: 100%;
}


.home-hero__background img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 0;
}


/*
   Das ist der entscheidende Teil:
   dunkelblau -> transparent
*/

.home-hero__overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        #071f38 0%,
        #071f38 37%,
        rgba(7, 31, 56, 0.96) 44%,
        rgba(7, 31, 56, 0.72) 54%,
        rgba(7, 31, 56, 0.25) 68%,
        rgba(7, 31, 56, 0) 82%
    );
}


/* Inhalt darüber */

.home-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;

    padding-inline: clamp(25px, 5vw, 80px);
}


.home-hero__content {
    width: 53%;
    max-width: 650px;
}


.home-hero .home-eyebrow {
    margin-bottom: 16px;

    color: #69baf0;
}


.home-hero h1 {
    margin: 0 0 24px;

    color: #ffffff;

    font-size: clamp(2.7rem, 4.1vw, 4.2rem);
    line-height: 1.05;

    letter-spacing: -0.035em;

    overflow-wrap: break-word;
}


.home-hero p {
    max-width: 570px;

    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1.08rem;
    line-height: 1.7;
}


.home-hero__buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;
}


.home-btn--hero-outline {
    border-color: rgba(255, 255, 255, 0.8);

    color: #ffffff;
    background: transparent;
}


.home-btn--hero-outline:hover {
    border-color: #ffffff;

    color: #071f38;
    background: #ffffff;
}



/* ==========================================================
   TRUST BAR
   ========================================================== */

.home-trust {
    position: relative;
    z-index: 5;

    background: var(--home-blue-dark);
}


.home-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


.home-trust__item {
    display: flex;
    align-items: center;

    min-height: 100px;
    padding: 20px 25px;

    border-right: 1px solid rgba(255, 255, 255, 0.12);

    color: #fff;
}


.home-trust__item:last-child {
    border-right: 0;
}


.home-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-right: 14px;

    color: #54b6f3;

    font-size: 1.4rem;
}


.home-trust__item strong,
.home-trust__item span {
    display: block;
}


.home-trust__item strong {
    margin-bottom: 3px;

    font-size: 0.95rem;
}


.home-trust__item div > span {
    color: rgba(255, 255, 255, 0.67);

    font-size: 0.78rem;
}



/* ==========================================================
   SECTION HEADING
   ========================================================== */

.home-section-heading {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}


.home-section-heading h2 {
    margin: 0 0 15px;

    color: var(--home-blue-dark);

    font-size: clamp(2rem, 3vw, 2.7rem);
}


.home-section-heading p {
    margin: 0;

    color: var(--home-text-light);

    line-height: 1.7;
}



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

.home-services {
    padding: 90px 0;

    background: var(--home-bg-light);
}


.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.home-service-card {
    overflow: hidden;

    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);

    background: #fff;

    box-shadow: 0 4px 15px rgba(0, 25, 50, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.home-service-card:hover {
    transform: translateY(-5px);

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


.home-service-card__image {
    height: 180px;

    overflow: hidden;
}


.home-service-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}


.home-service-card:hover .home-service-card__image img {
    transform: scale(1.035);
}


.home-service-card__content {
    padding: 28px;
}


.home-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin-bottom: 18px;

    border-radius: 5px;

    background: var(--home-blue-light);
    color: var(--home-blue);

    font-size: 1.25rem;
}


.home-service-card h3 {
    margin: 0 0 10px;

    color: var(--home-blue-dark);

    font-size: 1.35rem;
}


.home-service-card p {
    margin: 0 0 18px;

    color: var(--home-text-light);

    line-height: 1.6;
}


.home-service-card ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


.home-service-card li {
    position: relative;

    margin: 8px 0;
    padding-left: 20px;

    color: var(--home-text);

    font-size: 0.92rem;
}


.home-service-card li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--home-blue);
    font-weight: 700;
}


.home-services__button {
    margin-top: 42px;

    text-align: center;
}



/* ==========================================================
   ABOUT
   ========================================================== */

.home-about {
    padding: 100px 0;

    background: #fff;
}


.home-about__inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 80px;
}


.home-about__image {
    position: relative;
}


.home-about__image img {
    width: 100%;
    height: 440px;

    object-fit: cover;

    border-radius: var(--home-radius);
}


.home-about__experience {
    position: absolute;
    right: -25px;
    bottom: -25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 145px;
    height: 125px;

    padding: 20px;

    background: var(--home-blue);
    color: #fff;

    border-radius: 5px;

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


.home-about__experience strong {
    font-size: 2rem;
}


.home-about__experience span {
    font-size: 0.8rem;
}


.home-about__content h2 {
    max-width: 650px;

    margin: 0 0 25px;

    color: var(--home-blue-dark);

    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
}


.home-about__content p {
    margin: 0 0 18px;

    color: var(--home-text-light);

    line-height: 1.75;
}


.home-text-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 10px;

    color: var(--home-blue);

    font-weight: 700;
    text-decoration: none;
}


.home-text-link span {
    transition: transform 0.2s ease;
}


.home-text-link:hover span {
    transform: translateX(5px);
}



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

.home-cta {
    padding: 65px 0;

    background: var(--home-blue-dark);
    color: #fff;
}


.home-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.home-eyebrow--light {
    color: #62b9ef;
}


.home-cta h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: clamp(1.8rem, 3vw, 2.5rem);
}


.home-cta p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.6;
}


.home-cta__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 15px;

    flex-shrink: 0;
}


.home-cta__phone {
    color: #fff;

    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}



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

@media (max-width: 1000px) {

    .home-hero__inner {
        gap: 40px;
    }


    .home-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .home-trust__item:nth-child(2) {
        border-right: 0;
    }


    .home-services__grid {
        gap: 18px;
    }


    .home-about__inner {
        gap: 50px;
    }

}



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

/* ==========================================================
   MOBILE – STARTSEITE
   ========================================================== */

@media (max-width: 760px) {

    /* =========================================
       GLOBALER MOBILE CONTAINER
       ========================================= */

    .home-container {
        width: 100%;
        max-width: none;
        margin-inline: auto;
        padding-inline: 20px;
        box-sizing: border-box;
    }


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

    .home-hero {
        position: relative;
        min-height: 650px;

        display: flex;
        align-items: flex-end;

        padding: 0;
        overflow: hidden;

        background: var(--home-blue-dark);
    }


    .home-hero__background {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;
    }


    .home-hero__background img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: 58% center;
    }


    .home-hero__overlay {
        position: absolute;
        inset: 0;
        z-index: 1;

        background: linear-gradient(
            180deg,
            rgba(7, 31, 56, 0.05) 0%,
            rgba(7, 31, 56, 0.20) 25%,
            rgba(7, 31, 56, 0.78) 52%,
            rgba(7, 31, 56, 0.98) 78%,
            #071f38 100%
        );
    }


    .home-hero__inner {
        position: relative;
        z-index: 2;

        width: 100%;

        /* wichtig:
           Padding kommt bereits von .home-container */
        padding-top: 300px;
        padding-bottom: 35px;
    }


    .home-hero__content {
        width: 100%;
        max-width: 520px;

        margin-inline: auto;
    }


    .home-hero .home-eyebrow {
        margin-bottom: 10px;

        font-size: 0.7rem;
    }


    .home-hero h1 {
        width: 100%;

        margin: 0 0 18px;

        font-size: clamp(2rem, 8.5vw, 2.65rem);
        line-height: 1.08;
        letter-spacing: -0.03em;

        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }


    .home-hero p {
        width: 100%;
        max-width: 480px;

        margin: 0 0 25px;

        font-size: 0.95rem;
        line-height: 1.55;
    }


    /* Buttons */

    .home-hero__buttons {
        display: flex;
        flex-direction: column;

        width: 100%;
        gap: 10px;
    }


    .home-hero__buttons .home-btn {
        width: 100%;

        min-height: 50px;
        padding: 12px 18px;

        box-sizing: border-box;

        text-align: center;
    }



    /* ======================================================
       TRUST BAR
       ====================================================== */

    .home-trust {
        background: var(--home-blue-dark);
    }


    .home-trust__grid {
        display: grid;

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

        width: 100%;
    }


    .home-trust__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        min-height: 125px;

        padding: 18px 10px;

        text-align: center;

        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }


    .home-trust__item:nth-child(even) {
        border-right: 0;
    }


    .home-trust__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }


    .home-trust__icon {
        width: auto;
        height: auto;

        margin: 0 0 8px;

        color: #59b8f4;

        font-size: 1.25rem;
    }


    .home-trust__item strong {
        margin-bottom: 4px;

        font-size: 0.86rem;
    }


    .home-trust__item div > span {
        font-size: 0.7rem;
        line-height: 1.35;
    }



    /* ======================================================
       SECTION HEADING
       ====================================================== */

    .home-section-heading {
        max-width: 100%;

        margin-bottom: 30px;

        text-align: center;
    }


    .home-section-heading .home-eyebrow {
        margin-bottom: 8px;

        font-size: 0.7rem;
    }


    .home-section-heading h2 {
        margin-bottom: 10px;

        font-size: 1.85rem;
        line-height: 1.15;
    }


    .home-section-heading p {
        font-size: 0.92rem;
        line-height: 1.55;
    }



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

    .home-services {
        padding: 60px 0;

        background: var(--home-bg-light);
    }


    .home-services__grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;
    }


    /*
       Desktop = Karte untereinander
       Mobile = Bild links, Inhalt rechts
    */

    .home-service-card {
        display: grid;

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

        min-height: 135px;

        overflow: hidden;

        border-radius: 8px;

        transform: none;
    }


    .home-service-card:hover {
        transform: none;
    }


    .home-service-card__image {
        width: 100%;
        height: 100%;

        min-height: 135px;
    }


    .home-service-card__image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    .home-service-card__content {
        padding: 15px 16px;
    }


    .home-service-card__icon {
        width: 30px;
        height: 30px;

        margin-bottom: 7px;

        font-size: 0.9rem;
    }


    .home-service-card h3 {
        margin-bottom: 5px;

        font-size: 1.05rem;
        line-height: 1.2;
    }


    .home-service-card p {
        margin: 0;

        font-size: 0.78rem;
        line-height: 1.4;
    }


    /*
       Die ausführlichen Stichpunkte brauchen wir
       auf dem Handy nicht in jeder Karte.
    */

    .home-service-card ul {
        display: none;
    }


    .home-services__button {
        margin-top: 28px;

        text-align: center;
    }


    .home-services__button .home-btn {
        width: auto;

        min-width: 230px;
    }



    /* ======================================================
       ÜBER MICH
       ====================================================== */

    .home-about {
        padding: 60px 0 80px;
    }


    .home-about__inner {
        display: grid;

        grid-template-columns: 1fr;

        gap: 55px;
    }


    .home-about__image {
        width: 100%;
    }


    .home-about__image img {
        width: 100%;
        height: 340px;

        object-fit: cover;

        border-radius: 8px;
    }


    .home-about__experience {
        right: 15px;
        bottom: -28px;

        width: 125px;
        height: 105px;

        padding: 15px;
    }


    .home-about__experience strong {
        font-size: 1.7rem;
    }


    .home-about__experience span {
        font-size: 0.72rem;
    }


    .home-about__content h2 {
        margin-bottom: 18px;

        font-size: 1.9rem;
        line-height: 1.15;
    }


    .home-about__content p {
        margin-bottom: 14px;

        font-size: 0.94rem;
        line-height: 1.65;
    }



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

    .home-cta {
        padding: 55px 0;
    }


    .home-cta__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 30px;
    }


    .home-cta h2 {
        margin-bottom: 12px;

        font-size: 2rem;
        line-height: 1.1;
    }


    .home-cta p {
        font-size: 0.94rem;
    }


    .home-cta__contact {
        width: 100%;

        display: flex;
        align-items: stretch;

        gap: 14px;
    }


    .home-cta__phone {
        display: block;

        text-align: center;

        font-size: 1.15rem;
    }


    .home-cta__contact .home-btn {
        width: 100%;
    }

}