/* =====================================================
   TEAM HEADER
   ===================================================== */

.teamheader {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
	padding:20px;
}


/* =====================================================
   EINZELNES TEAMMITGLIED
   ===================================================== */

.teamheader__member {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 260px;
}


/* =====================================================
   AVATAR
   ===================================================== */

.teamheader__avatar-link {
    position: relative;
    display: block;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
}

.teamheader__avatar {
    width: 70px;
    height: 70px;
    display: block;
    object-fit: cover;

    border-radius: 50%;

    transition:
        filter 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* Offline = Avatar grau */

.teamheader__member.is-offline .teamheader__avatar {
    filter: grayscale(100%);
    opacity: 0.55;
}


/* Online */

.teamheader__member.is-online .teamheader__avatar {
    filter: grayscale(0%);
    opacity: 1;
}


/* Kleiner Hover */

.teamheader__avatar-link:hover .teamheader__avatar {
    transform: scale(1.04);
}


/* =====================================================
   ONLINE STATUS
   ===================================================== */

.teamheader__status-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #777;
    border: 2px solid #07131f;

    box-sizing: content-box;
}


/* Online-Punkt */

.teamheader__member.is-online .teamheader__status-dot {
    background: #79b77a;
}


/* Offline-Punkt */

.teamheader__member.is-offline .teamheader__status-dot {
    background: #777;
}


/* =====================================================
   ABWESEND
   ===================================================== */

.teamheader__away {
    position: absolute;
    top: -4px;
    right: -5px;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #c5a76a;
    color: #07131f;

    font-size: 11px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
}


/* =====================================================
   INFORMATIONEN
   ===================================================== */

.teamheader__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* Benutzername */

.teamheader__name {
    display: inline-block;

    margin-bottom: 2px;

    color: #e8e8e8;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

/* =====================================================
   AUFGABE
   ===================================================== */

.teamheader__task {
    margin-bottom: 4px;

    color: var(--accent2);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}


/* =====================================================
   ZULETZT ONLINE
   ===================================================== */

.teamheader__lastactive {
    margin-bottom: 5px;

    color: #818995;

    font-size: 11px;
}


/* Aktuell online etwas hervorheben */

.teamheader__member.is-online .teamheader__lastactive {
    color: #79b77a;
}


/* =====================================================
   PRIVATE NACHRICHT
   ===================================================== */

.teamheader__pm {
    display: inline-flex;
    align-items: center;

    color: #9da5af;

    font-size: 11px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.teamheader__pm::before {
    content: "✉";

    margin-right: 5px;

    color: var(--accent2);
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

    .teamheader {
        flex-direction: column;
        gap: 15px;
    }

    .teamheader__member {
        width: 100%;
        min-width: 0;
    }

}