/* ===== Ansprechpartner (Tabs) ===== */
.rlv-aptabs { margin: 1.5rem 0; }
.rlv-contacts__title {
    margin: 0 0 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid #ccc;
}

/* Reiter (Tabs) – grau / dunkelgrün wie im Layout */
.rlv-aptabs__nav {
    display: flex; flex-wrap: wrap; gap: .75rem;
    list-style: none; margin: 0 0 1.5rem; padding: 0; border: 0;
}
.rlv-aptabs__navitem { margin: 0; }
.rlv-aptabs__tab {
    border: 0; cursor: pointer; font: inherit; font-weight: 600;
    padding: .7rem 1.5rem; color: #fff; background: #757575; /* Kontrast ≥ 4,5:1 (vorher #9b9b9b) */
    transition: background .15s ease;
}
.rlv-aptabs__tab:hover { background: #5f5f5f; }
.rlv-aptabs__tab.active { background: #1e5a37; }
.rlv-aptabs__tab:focus-visible { outline: 2px solid #93c8a0; outline-offset: 2px; }

.tab-pane[hidden] { display: none; }
.rlv-contacts__section-title {
    margin: 0 0 1.25rem; padding-bottom: .5rem; padding-top:2rem; border-bottom: 1px solid #ccc;
}

/* ===== gemeinsame Ansprechpartner-Styles ===== */
.rlv-contact__name { margin: 0 0 .25rem; font-size: 1.15rem; color: #000; }
.rlv-contact__position { margin: 0 0 .5rem; color: #444; }
.rlv-contact__meta { list-style: none; margin: 0; padding: 0; }
.rlv-contact__meta li { margin: 0 0 .15rem; }
.rlv-contact__label { display: inline-block; min-width: 1.4rem; color: #666; }
.rlv-contact__meta a { color: inherit; }
/* Bild füllt den Rahmen ohne Verzerrung (Seitenverhältnis bleibt, Überstand wird beschnitten; Gesichter eher oben) */
.rlv-contact__photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 25%; }
.rlv-contact__photo-placeholder {
    display: block; width: 100%; height: 100%;
    background: #ededee center/45% no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c4c4c4'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.7-9 6v2h18v-2c0-3.3-4-6-9-6z'/%3E%3C/svg%3E");
}

/* Variante RLV classic: Foto links, Liste */
.rlv-contacts--standard .rlv-contacts__list { display: flex; flex-direction: column; }
.rlv-contacts--standard .rlv-contact {
    display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid #e2e2e2;
}
.rlv-contacts--standard .rlv-contact:first-child { padding-top: 0; }
.rlv-contacts--standard .rlv-contact__photo { flex: 0 0 120px; width: 120px; height: 200px; overflow: hidden; }

/* Variante RLV: Karten-Raster, 3 pro Reihe (Desktop) / 1 (Mobil) */
.rlv-contacts--og .rlv-contacts__list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 640px) {
    .rlv-contacts--og .rlv-contacts__list { grid-template-columns: 1fr; }
}
.rlv-contacts--og .rlv-contact {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #e2e2e2; border-top: 4px solid #00A139; overflow: hidden;
}
.rlv-contacts--og .rlv-contact__photo { width: 100%; aspect-ratio: 1 / 1.3; background: #ededee; overflow: hidden; }
.rlv-contacts--og .rlv-contact__body { padding: 1rem 1.1rem 1.2rem; }
.rlv-contacts--og .rlv-contact__position { color: #007a2c; font-weight: 600; }
.rlv-contacts--og .rlv-contact__email a {
    display: inline-block; margin-top: .35rem; color: #000; text-decoration: none;
    border-bottom: 6px solid #C7E6CF; transition: border-color .2s ease;
}
.rlv-contacts--og .rlv-contact__email a:hover { border-bottom-color: #93c8a0; }

@media (max-width: 480px) {
    .rlv-contacts--standard .rlv-contact { flex-direction: column; }
    .rlv-contacts--standard .rlv-contact__photo { flex-basis: auto; }
}
