/* Personen-Detail (Modal + Detailseite, gleiches Erscheinungsbild) */

/* Header-Icons im Modal auf Primärfarbe */
.piidata-person-modal .modal-header .close {
    color: inherit;
    text-shadow: none;
    opacity: .8;
}

.piidata-person-modal .modal-header .close:hover,
.piidata-person-modal .modal-header .close:focus {
    color: inherit;
    opacity: 1;
}

/* Profil-Kopf */
.person-profile__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.person-profile__avatar {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.person-profile__avatar--neutral {
    background: #e9ecef;
    color: #6c757d;
}

.person-profile__initials {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1;
}

.person-profile__name {
    margin: .75rem 0 .25rem;
}

.person-profile__club {
    font-weight: 600;
}

.person-profile__subline {
    color: #6c757d;
}

/* Kacheln Jahrgang / Nationalität / Schnitt */
.person-profile__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
}

.person-profile__stat {
    flex: 1 1 0;
    min-width: 110px;
    max-width: 200px;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: #f4f5f7;
    text-align: center;
}

.person-profile__stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.person-profile__stat-label {
    display: block;
    margin-top: .15rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}

/* Antworten: Blöcke mit leichtem Farbwechsel pro Frage */
.person-story {
    padding: .75rem 1rem;
    border-radius: 8px;
}

.person-story:nth-child(odd) {
    background: #f4f5f7;
}

.person-story__title {
    margin: 0 0 .25rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}

.person-story__text {
    margin: 0;
    word-break: break-word;
}

@media (min-width: 576px) {
    .person-profile__head {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
    }

    .person-profile__head-text {
        margin-left: 1.25rem;
        padding-bottom: .25rem;
    }

    .person-profile__name {
        margin-top: 0;
    }

    .person-profile__stats {
        justify-content: flex-start;
    }
}
