/* ZSH PAD – TEAM-FRONTEND | Übersicht im ZSH-Slider-Stil */
.zshp-team {
    --zshp-violet: #312783;
    --zshp-violet-dark: #211a63;
    --zshp-grey: #d1cfcf;
    --zshp-orange: #fca320;
    --zshp-pale: #f5f3fc;
    width: 100%;
    color: #24242a;
    font-family: Roboto, Arial, sans-serif;
}
.zshp-team *, .zshp-team *::before, .zshp-team *::after { box-sizing: border-box; }
/* TEAMÜBERSICHT */
.zshp-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}
.zshp-team-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #dedce5;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transform: none;
    transition: border-color .2s ease;
}
.zshp-team-card:hover, .zshp-team-card:focus-within { border-color: var(--zshp-violet); }
.zshp-team-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: inherit !important;
    text-decoration: none !important;
}
.zshp-team-card-link:focus-visible, .zshp-team-back:focus-visible {
    outline: 3px solid var(--zshp-violet);
    outline-offset: 3px;
}
.zshp-team-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 22%;
    background: #f1eff5;
}
.zshp-team-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f1f8;
    color: var(--zshp-violet);
    font-size: 3rem;
    font-weight: 700;
}
.zshp-team-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 15px 16px 18px;
    gap: 6px;
}
.zshp-team-card-body::before {
    content: '';
    display: block;
    flex: 0 0 auto;
    width: 36px;
    height: 4px;
    margin-bottom: 7px;
    background: var(--zshp-violet);
}
.zshp-team-name {
    margin: 0;
    color: var(--zshp-violet);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.zshp-team-function {
    margin: 0;
    color: #575360;
    font-size: 13px;
    line-height: 1.5;
}
.zshp-team-labels { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 0; }
.zshp-team-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 2px;
    background: var(--zshp-violet);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}
.zshp-team-label-br { background: #b36b19; }
.zshp-team-label-vm { background: #27804a; }
/* MITARBEITER-DETAILANSICHT */
.zshp-team-detail {
    margin: 20px 0;
    padding: clamp(20px, 4vw, 40px);
    background: #fff;
    border: 1px solid var(--zshp-grey);
    border-left: 5px solid var(--zshp-violet);
}
.zshp-team-back {
    display: inline-block;
    margin: 0 0 25px;
    color: var(--zshp-violet) !important;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none !important;
}
.zshp-team-back:hover { text-decoration: underline !important; }
.zshp-team-detail-top {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 4vw, 40px);
}
.zshp-team-detail-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    background: #f3f1f8;
}
.zshp-team-detail-placeholder { aspect-ratio: 4 / 5; }
.zshp-team-detail-information { min-width: 0; }
.zshp-team-detail h2 {
    margin: 0 0 12px;
    color: var(--zshp-violet);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.zshp-team-detail h3 {
    margin: 0 0 14px;
    color: var(--zshp-violet);
    font-size: 1.2rem;
    font-weight: 700;
}
.zshp-team-detail .zshp-team-function { margin: 0 0 14px; font-size: 1.05rem; }
.zshp-team-detail .zshp-team-labels { margin: 0 0 15px; gap: 6px; }
.zshp-team-detail .zshp-team-label { padding: 4px 9px; font-size: .74rem; }
.zshp-team-contacts {
    display: grid;
    gap: 9px;
    margin: 18px 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.zshp-team-contacts strong { color: #24242a; }
.zshp-team a:not(.zshp-team-card-link):not(.zshp-team-back) {
    color: var(--zshp-violet);
    text-underline-offset: 3px;
}
.zshp-team-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e3e8;
}
.zshp-team-description {
    width: 100%;
    color: #34313b;
    font-size: .95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.zshp-team-description-row {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 13px 15px;
    border-bottom: 1px solid #e8e6ed;
}
.zshp-team-description-row:nth-child(odd) { background: #f8f7fb; }
.zshp-team-description-row:last-child { border-bottom: 0; }
.zshp-team-description-period {
    display: block;
    color: var(--zshp-violet);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.6;
}
.zshp-team-description-text {
    display: block;
    min-width: 0;
    color: #34313b;
    font-size: .95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.zshp-team-linked-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.zshp-team-linked-list li {
    list-style: none !important;
    padding: 14px 16px;
    margin: 0 0 10px;
    background: #faf9fe;
    border-left: 3px solid var(--zshp-violet);
    line-height: 1.6;
}
.zshp-team-linked-title {
    display: block;
    color: #312783;
    font-weight: 650;
    overflow-wrap: anywhere;
}
a.zshp-team-linked-title { text-decoration: none !important; }
a.zshp-team-linked-title:hover { text-decoration: underline !important; }
.zshp-team-linked-meta {
    display: block;
    margin-top: 5px;
    color: #5e5a66;
    font-size: .88rem;
    line-height: 1.6;
}
.zshp-team-linked-list li > a:not(.zshp-team-linked-title) {
    display: inline-block;
    margin-top: 9px;
    font-size: .88rem;
    font-weight: 600;
}
.zshp-team-project-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 0;
}
.zshp-team-project-logos img {
    display: block;
    width: auto;
    max-width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}
.zshp-team-publications-link { margin: 22px 0 0; }
.zshp-team-publications-link a {
    display: inline-block;
    padding: 11px 18px;
    background: var(--zshp-violet);
    color: #fff !important;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}
.zshp-team-publications-link a:hover {
    background: var(--zshp-violet-dark);
    transform: translateY(-2px);
}
.zshp-team-publications-link a:focus-visible {
    outline: 3px solid var(--zshp-violet);
    outline-offset: 3px;
}
.zshp-team-empty {
    margin: 20px 0;
    padding: 20px;
    background: #f8f7fb;
    border-left: 4px solid var(--zshp-violet);
    color: #65616c;
}
/* RESPONSIVE */
@media (max-width: 1050px) {
    .zshp-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .zshp-team-detail-top {
        grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
        gap: 24px;
    }
}
@media (max-width: 620px) {
    .zshp-team-grid { grid-template-columns: 1fr; gap: 14px; }
    .zshp-team-card-body { padding: 17px 18px 19px; }
    .zshp-team-detail { padding: 20px 17px; }
    .zshp-team-detail-top { grid-template-columns: 1fr; }
    .zshp-team-detail-photo, .zshp-team-detail-placeholder { max-width: 300px; }
    .zshp-team-description-row { grid-template-columns: 1fr; gap: 4px; padding: 13px 12px; }
    .zshp-team-description-period { font-size: .9rem; }
    .zshp-team-linked-list li { padding: 12px 14px; }
    .zshp-team-project-logos img { max-width: 100px; max-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .zshp-team-card, .zshp-team-publications-link a { transition: none; }
    .zshp-team-publications-link a:hover { transform: none; }
}
