
.bresys-member-card {
    --bmc-card-bg: #fff;
    --bmc-card-radius: 16px;
    --bmc-card-shadow: 0 10px 18px rgba(0,0,0,.22);
    --bmc-image-width: 38%;
    --bmc-image-height: 360px;
    --bmc-curve-extra: 132px;
    --bmc-gap: 112px;
    --bmc-ring-red: #d30f1f;
    --bmc-ring-green: #83b83f;
    --bmc-ring-orange: #f5b34a;
    --bmc-ring-width: 2px;
    --bmc-ring-offset-1: 36px;
    --bmc-ring-offset-2: 72px;
    --bmc-ring-green-x: 14px;
    --bmc-ring-green-y: -10px;
    --bmc-ring-orange-x: -4px;
    --bmc-ring-orange-y: 14px;
    --bmc-bg-position: center center;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--bmc-card-bg);
    border-radius: var(--bmc-card-radius);
    box-shadow: var(--bmc-card-shadow);
    min-height: var(--bmc-image-height);
}

.bresys-member-card__media-wrap {
    position: relative;
    flex: 0 0 var(--bmc-image-width);
    min-height: var(--bmc-image-height);
    overflow: visible;
    z-index: 1;
}

.bresys-member-card__media {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(100% + var(--bmc-curve-extra));
    overflow: hidden;
    border-top-left-radius: var(--bmc-card-radius);
    border-bottom-left-radius: var(--bmc-card-radius);
    background-size: cover;
    background-position: var(--bmc-bg-position);
    background-repeat: no-repeat;
    /* Die Bildfläche ist eine echte Ellipse: links vollflächig, rechts der runde Shape. */
    clip-path: ellipse(100% 122% at 0% 50%);
    z-index: 2;
}

.bresys-member-card__rings {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(100% + var(--bmc-curve-extra));
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}

.bresys-member-card__ring {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 244%;
    border: var(--bmc-ring-width) solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

/* Der rote Ring liegt exakt auf der Bildmasken-Kante. */
.bresys-member-card__ring--red {
    border-color: var(--bmc-ring-red);
    z-index: 6;
}

.bresys-member-card__ring--green {
    top: calc(50% + var(--bmc-ring-green-y));
    left: calc(var(--bmc-ring-offset-1) + var(--bmc-ring-green-x));
    border-color: var(--bmc-ring-green);
    z-index: 5;
}

.bresys-member-card__ring--orange {
    top: calc(50% + var(--bmc-ring-orange-y));
    left: calc(var(--bmc-ring-offset-2) + var(--bmc-ring-orange-x));
    border-color: var(--bmc-ring-orange);
    z-index: 4;
}

.bresys-member-card__content {
    flex: 1 1 auto;
    padding: 58px 72px 58px var(--bmc-gap);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    position: relative;
    z-index: 8;
}

.bresys-member-card__name {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}

.bresys-member-card__function {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    color: #d30f1f;
}

.bresys-member-card__text {
    font-size: 20px;
    line-height: 1.45;
    color: #111;
}

.bresys-member-card__text > *:first-child { margin-top: 0; }
.bresys-member-card__text > *:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .bresys-member-card {
        --bmc-image-width: 100%;
        --bmc-image-height: 270px;
        --bmc-curve-extra: 58px;
        --bmc-gap: 0px;
        --bmc-ring-offset-1: 20px;
        --bmc-ring-offset-2: 40px;
        --bmc-ring-green-x: -12px;
        --bmc-ring-green-y: 10px;
        --bmc-ring-orange-x: 14px;
        --bmc-ring-orange-y: 2px;
        --bmc-gap: 28px;
        flex-direction: column;
        min-height: 0;
    }

    .bresys-member-card__media-wrap {
        flex: 0 0 auto;
        width: 100%;
        min-height: var(--bmc-image-height);
        height: var(--bmc-image-height);
        overflow: visible;
    }

    .bresys-member-card__media {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: calc(100% + var(--bmc-curve-extra));
        border-top-left-radius: var(--bmc-card-radius);
        border-top-right-radius: var(--bmc-card-radius);
        border-bottom-left-radius: 0;
        clip-path: ellipse(105% 100% at 50% 0%);
    }

    .bresys-member-card__rings {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: calc(100% + var(--bmc-curve-extra));
    }

    .bresys-member-card__ring {
        top: 0;
        left: 50%;
        width: 210%;
        height: 200%;
        transform: translate(-50%, -50%);
    }

    .bresys-member-card__ring--green {
        top: calc(var(--bmc-ring-offset-1) + var(--bmc-ring-green-y));
        left: calc(50% + var(--bmc-ring-green-x));
    }

    .bresys-member-card__ring--orange {
        top: calc(var(--bmc-ring-offset-2) + var(--bmc-ring-orange-y));
        left: calc(50% + var(--bmc-ring-orange-x));
    }

    .bresys-member-card__content {
        padding: calc(24px + var(--bmc-ring-offset-2) + var(--bmc-gap)) 22px 30px;
        text-align: left;
    }

    .bresys-member-card__name {
        font-size: clamp(24px, 7vw, 34px);
    }

    .bresys-member-card__function {
        font-size: clamp(16px, 4.5vw, 20px);
        margin-bottom: 16px;
    }

    .bresys-member-card__text {
        font-size: clamp(16px, 4.2vw, 19px);
        line-height: 1.42;
    }
}

@media (max-width: 480px) {
    .bresys-member-card {
        --bmc-image-height: 230px;
        --bmc-curve-extra: 46px;
        --bmc-ring-offset-1: 16px;
        --bmc-ring-offset-2: 32px;
        --bmc-ring-green-x: -9px;
        --bmc-ring-green-y: 8px;
        --bmc-ring-orange-x: 10px;
        --bmc-ring-orange-y: 2px;
    }

    .bresys-member-card__content {
        padding: calc(20px + var(--bmc-ring-offset-2) + var(--bmc-gap)) 18px 24px;
    }
}
