/* =========================================
   VORSTAND GRID
========================================= */

.vorstand-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.vorstand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

/* =========================================
   CARD BASE
========================================= */

/* =========================================
   CARD BASE — more presence
========================================= */

.vorstand-card {
    width: 230px;
    flex-shrink: 0;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);

    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}


/* diagonal shine sweep on hover */
.vorstand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.5) 40%,
        transparent 60%
    );
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

.vorstand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--role-color);
    box-shadow: 0 0 12px var(--role-color);
    z-index: 2;
}

.vorstand-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.16),
        0 0 0 1px var(--role-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.vorstand-card:hover::after {
    transform: translateX(120%);
}

/* =========================================
   ROLE COLORS
   vorsitzender:     blue    #2d93d6
   stellvertreter:   purple  #9b6fd4
   finanzwart:       green   #3db87a
   office:           orange  #f0934a
   socials:          pink    #e84d8a
   rds:              teal    #2dbfb8
   regionalvertreter:gold   #d4a93d
   asesverbindet:    red     #e84d4d
========================================= */

.vorstand-card.role-vorsitzender {
    background: rgba(45, 147, 214, 0.12);
    border-color: rgba(45, 147, 214, 0.35);
}
.vorstand-card.role-vorsitzender .vorstand-role {
    color: #1a6fa8;
    background: rgba(45, 147, 214, 0.15);
}

.vorstand-card.role-stellvertreter {
    background: rgba(155, 111, 212, 0.12);
    border-color: rgba(155, 111, 212, 0.35);
}
.vorstand-card.role-stellvertreter .vorstand-role {
    color: #6b3fa8;
    background: rgba(155, 111, 212, 0.15);
}

.vorstand-card.role-finanzwart {
    background: rgba(61, 184, 122, 0.12);
    border-color: rgba(61, 184, 122, 0.35);
}
.vorstand-card.role-finanzwart .vorstand-role {
    color: #27845a;
    background: rgba(61, 184, 122, 0.15);
}

.vorstand-card.role-office {
    background: rgba(240, 147, 74, 0.12);
    border-color: rgba(240, 147, 74, 0.35);
}
.vorstand-card.role-office .vorstand-role {
    color: #b8601a;
    background: rgba(240, 147, 74, 0.15);
}

.vorstand-card.role-socials {
    background: rgba(232, 77, 138, 0.12);
    border-color: rgba(232, 77, 138, 0.35);
}
.vorstand-card.role-socials .vorstand-role {
    color: #a8245a;
    background: rgba(232, 77, 138, 0.15);
}

.vorstand-card.role-rds {
    background: rgba(45, 191, 184, 0.12);
    border-color: rgba(45, 191, 184, 0.35);
}
.vorstand-card.role-rds .vorstand-role {
    color: #1a8a85;
    background: rgba(45, 191, 184, 0.15);
}

.vorstand-card.role-regionalvertreter {
    background: rgba(212, 169, 61, 0.12);
    border-color: rgba(212, 169, 61, 0.35);
}
.vorstand-card.role-regionalvertreter .vorstand-role {
    color: #8a6a1a;
    background: rgba(212, 169, 61, 0.15);
}

.vorstand-card.role-asesverbindet {
    background: rgba(232, 77, 77, 0.12);
    border-color: rgba(232, 77, 77, 0.35);
}
.vorstand-card.role-asesverbindet .vorstand-role {
    color: #a82424;
    background: rgba(232, 77, 77, 0.15);
}

/* =========================================
   PORTRAIT
========================================= */

.vorstand-portrait {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.vorstand-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vorstand-card:hover .vorstand-portrait img {
    transform: scale(1.08);
}

.vorstand-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.2);
}

/* =========================================
   INFO
========================================= */

.vorstand-info {
    padding: 0.75rem 0.9rem 1rem;
}

.vorstand-role {
    display: inline-block;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2rem;
    padding: 0.18rem 0.6rem;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.vorstand-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.vorstand-meta {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.vorstand-bio {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    margin: 0.3rem 0 0;
}

/* =========================================
   ROW DIVIDER
========================================= */

.vorstand-row + .vorstand-row {
    padding-top: 2rem;
    position: relative;
}

.vorstand-row + .vorstand-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1.5px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(45, 147, 214, 0.5),
        transparent
    );
    box-shadow: 0 0 8px rgba(45, 147, 214, 0.3);
}


/* =========================================
   JOIN BANNER
========================================= */

.join-banner {
    max-width: 620px;
    margin: 1rem auto 6rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(45, 147, 214, 0.15) 0%,
        rgba(255, 255, 255, 0.95) 40%,
        rgba(77, 183, 235, 0.1) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 2rem;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 20px 60px rgba(45, 147, 214, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(45, 147, 214, 0.1);
    position: relative;
    overflow: hidden;
}

.join-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 147, 214, 0.06) 0%,
        transparent 50%,
        #ff7c0175 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

.join-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 1),
        transparent
    );
    pointer-events: none;
}

.join-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1a6fa8, #4db7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem;
}

.join-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
    margin: 0 0 1.75rem;
}

.join-btn {
    display: inline-block;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    background: linear-gradient(#ff7c01, #2d93d6);
    border-radius: 3rem;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    box-shadow:
        0 6px 20px rgba(45, 147, 214, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease;
}

.join-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 28px rgba(45, 147, 214, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .vorstand-card {
        width: 145px;
    }

    .vorstand-grid {
        gap: 0.9rem;
        padding: 0 1rem;
    }

    .vorstand-row {
        gap: 0.9rem;
    }

    .vorstand-role {
        font-size: 0.52rem;
        padding: 0.15rem 0.4rem;
        letter-spacing: 0.04em;
        white-space: normal;
        word-break: break-word;
    }

    .vorstand-name {
        font-size: 0.85rem;
    }

    .vorstand-meta {
        font-size: 0.72rem;
    }

    .vorstand-bio {
        font-size: 0.72rem;
    }

    .join-banner {
        margin: 1rem 1rem 4rem;
        padding: 2rem 1.5rem;
    }

    .join-btn {
        width: 100%;
        text-align: center;
    }

}