/* =========================================
   IUNIXX – JOIN SECTION
   Call to Action / Kostenlos starten
========================================= */

/* =========================================
   1. SECTION
========================================= */

.join-section {
    --join-blue-light: #55C5FF;
    --join-blue: #1499FE;
    --join-blue-dark: #0755BD;
    --join-green: #99FE14;
    --join-navy: #071725;

    position: relative;
    width: 100%;
    padding: 70px 0 110px;

    background: #FFFFFF;
}

.join-section *,
.join-section *::before,
.join-section *::after {
    box-sizing: border-box;
}

.join-container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-inline: auto;
}

/* =========================================
   2. BLAUE CTA-KARTE
========================================= */

.join-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    width: 100%;
    min-height: 340px;
    padding: 65px 70px;

    background: linear-gradient(
        110deg,
        #55C5FF 0%,
        #1499FE 48%,
        #0755BD 100%
    );

    border-radius: 28px;
    color: #FFFFFF;

    box-shadow:
        0 20px 55px rgba(20, 153, 254, 0.18);
}

/* Dezenter Lichtakzent */

.join-card::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: -180px;
    right: -100px;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.14) 0%,
        transparent 70%
    );

    pointer-events: none;
}

/* =========================================
   3. TEXTBEREICH
========================================= */

.join-content {
    position: relative;
    z-index: 1;

    flex: 1 1 650px;
    min-width: 0;
    max-width: 720px;
}

.join-eyebrow {
    display: block;
    margin-bottom: 20px;

    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: var(
        --letter-spacing-label,
        0.12em
    );
    text-transform: uppercase;
}

.join-title {
    margin: 0;

    color: #FFFFFF;
    font-size: clamp(2.2rem, 3.7vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: var(
        --letter-spacing-heading,
        0.005em
    );
}

.join-description {
    max-width: 570px;
    margin: 25px 0 0;

    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.75;
}

/* =========================================
   4. BUTTON-BEREICH
========================================= */

.join-action {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

/* =========================================
   5. GRÜNER CTA-BUTTON
========================================= */

.join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    min-height: 62px;
    padding: 18px 30px;

    background: var(--join-green);
    border: 2px solid var(--join-green);
    border-radius: 14px;

    color: var(--join-navy);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: var(
        --letter-spacing-button,
        0.025em
    );
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(7, 23, 37, 0.10);

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

.join-button:visited {
    color: var(--join-navy);
}

.join-button:hover {
    background: #B2FF4D;
    border-color: #B2FF4D;
    color: var(--join-navy);

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(7, 23, 37, 0.17);
}

.join-button:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

/* =========================================
   6. BUTTON-PFEIL
========================================= */

.join-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    transition: transform 0.3s ease;
}

.join-button-arrow svg {
    display: block;
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.join-button:hover .join-button-arrow {
    transform: translateX(5px);
}

/* =========================================
   7. OPTIONALER HINWEIS
========================================= */

.join-note {
    margin: 16px 0 0;

    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

/* =========================================
   8. TABLET
========================================= */

@media (max-width: 1024px) {

    .join-section {
        padding: 60px 0 90px;
    }

    .join-card {
        gap: 35px;
        padding: 55px 45px;
    }

    .join-title {
        font-size: clamp(2rem, 3.8vw, 3rem);
    }

    .join-button {
        padding: 17px 23px;
        gap: 12px;
    }
}

/* =========================================
   9. MOBILE
========================================= */

@media (max-width: 768px) {

    .join-section {
        padding: 50px 0 80px;
    }

    .join-container {
        width: calc(100% - 36px);
    }

    .join-card {
        flex-direction: column;
        align-items: stretch;
        gap: 35px;

        min-height: auto;
        padding: 42px 30px;

        border-radius: 24px;

        background: linear-gradient(
            145deg,
            #55C5FF 0%,
            #1499FE 45%,
            #0755BD 100%
        );
    }

    .join-content {
        flex: 0 1 auto;
        max-width: none;
    }

    .join-eyebrow {
        margin-bottom: 18px;
        font-size: 0.75rem;
    }

    .join-title {
        font-size: clamp(2rem, 7.5vw, 2.8rem);
        line-height: 1.15;
    }

    .join-description {
        margin-top: 22px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .join-action {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .join-button {
        width: 100%;
        min-height: 60px;
        padding: 17px 20px;
    }

    .join-note {
        margin-top: 14px;
    }
}

/* =========================================
   10. KLEINE SMARTPHONES
========================================= */

@media (max-width: 420px) {

    .join-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .join-title {
        font-size: clamp(1.9rem, 8vw, 2.3rem);
    }

    .join-description {
        font-size: 0.96rem;
    }

    .join-button {
        font-size: 0.95rem;
    }
}

/* =========================================
   11. REDUZIERTE BEWEGUNG
========================================= */

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

    .join-button,
    .join-button-arrow {
        transition: none;
    }

    .join-button:hover {
        transform: none;
    }

    .join-button:hover .join-button-arrow {
        transform: none;
    }
}
