.widget-team-cards {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.widget-team-cards__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.75rem;
}

.widget-team-cards__grid {
    display: grid;
    gap: 1.5rem;
}

.widget-team-cards__grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.widget-team-cards__grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.widget-team-cards__grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.team-card {
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: var(--wl-radius, 0.75rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wl-shadow, 0 10px 24px rgba(0, 0, 0, 0.12));
}

.team-card__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.team-card__photo--placeholder {
    background: rgba(128, 128, 128, 0.15);
}

.team-card__body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.team-card__name {
    margin: 0;
    font-size: 1.1rem;
}

.team-card__role {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    font-weight: 700;
}

.team-card__text {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.85;
}

/* Mehrere Taetigkeiten/Kompetenzen (eine pro Zeile im Textfeld, siehe
   render.php) als echte Liste mit Aufzaehlungszeichen statt nur durch
   Zeilenumbrueche getrennt. */
.team-card__list {
    margin: 0.3rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.85;
    text-align: left;
}

.team-card__list li + li {
    margin-top: 0.15rem;
}

.team-card__button {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.9rem;
}

.team-card__button:hover {
    filter: brightness(1.1);
}

button.team-card__button {
    font: inherit;
    border: none;
    cursor: pointer;
}

/* Digitale Visitenkarte (vCard), siehe js/script.js. */
.wl-vcard-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.wl-vcard-modal.is-visible {
    display: flex;
}

.wl-vcard-modal__card {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem 1.75rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.wl-vcard-modal__close {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.wl-vcard-modal__close:hover {
    opacity: 1;
}

.wl-vcard-modal__logo {
    max-width: 130px;
    max-height: 48px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.wl-vcard-modal__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    display: block;
    border: 3px solid var(--color-primary, #6c5ce7);
}

.wl-vcard-modal__name {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
}

.wl-vcard-modal__title {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    opacity: 0.65;
}

.wl-vcard-modal__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.wl-vcard-modal__contact-item {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 0.6rem;
}

.wl-vcard-modal__save {
    display: block;
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: var(--color-primary, #6c5ce7);
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.wl-vcard-modal__qr-toggle {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: rgba(128, 128, 128, 0.12);
    color: inherit;
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.wl-vcard-modal__qr {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(128, 128, 128, 0.06);
    border-radius: 0.75rem;
}

.wl-vcard-modal__qr p {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    opacity: 0.65;
}

.wl-vcard-modal__qr img {
    display: block;
    margin: 0 auto;
    border-radius: 0.5rem;
}
