/* Titel über einem Grid (optional via Shortcode-Attribut title="...") */
.kga-personen-title {
    text-decoration: underline;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    margin: 24px 0 16px;
    color: #2f4f25;
}

/* GRID */
.person-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.person-card {
    background: #f4f1e6;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 260px;
    flex: 1 1 260px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.person-card img {
    display: block;
    margin: 0 auto 12px;
    border-radius: 50%;
    max-width: 120px;
    height: auto;
}
.person-card h3 {
    margin-bottom: 4px;
    font-size: 18px;
    color: #3e5e2e;
}
.person-card .role {
    font-weight: 500;
    color: #748c5d;
    margin-bottom: 8px;
}
.person-card .desc {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Farbbalken/Border Top je Rolle */
.role--vorsitzender-1 { background-color: #edf6ed; border-top: 4px solid #ffd700; }
.role--vorsitzender-2 { background-color: #edf6ed; border-top: 4px solid #ffed00; }
.role--schriftfuehrer { background-color: #edf6ed; border-top: 4px solid #3c89b8; }
.role--schatzmeister  { background-color: #edf6ed; border-top: 4px solid #b86e00; }
.role--webmaster      { background-color: #edf6ed; border-top: 4px solid #7c4b99; }
.role--vereinsheim    { background-color: #edf6ed; border-top: 4px solid #3e5e2e; }
.role--technisches    { background-color: #edf6ed; border-top: 4px solid #2d5c53; }
.role--berater        { background-color: #edf6ed; border-top: 4px solid #551212; }
.role--ausschuss      { background-color: #edf6ed; border-top: 4px solid #da1717; }
.role--default        { background-color: #f4f4f4; border-top: 4px solid #ccc; }

/* Button */
.open-modal {
    display: inline-block;
    background-color: #3e5e2e;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.open-modal:hover,
.open-modal:focus {
    background-color: #2c431f;
    transform: translateY(-1px);
    outline: none;
}
.open-modal:active { transform: translateY(0); background-color: #263c1a; }

/* MODAL Overlay */
.person-modal {
    display: none; /* überschrieben durch [hidden] */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999 !important;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.person-modal:not([hidden]) { display: flex; }

/* MODAL Inhalt */
.person-modal .modal-inner {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
}
.modal-close:hover { color: #000; }
.person-modal h3 { margin-top: 0; color: #3e5e2e; }
.person-modal p { margin-bottom: 1em; line-height: 1.6; }
.modal-image-wrapper { text-align: center; margin-bottom: 1rem; }
.modal-image-wrapper img {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Body-Lock bei offenem Modal */
body.modal-open { overflow: hidden; }

.kga-avatar {
    display:block;
    margin:0 auto 12px;
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:50%;
}