
/* ==========================================================
   ZSH PAD – FRONTEND
   Version 1.8.3

   Team, Mitarbeiterprofile und Publikationsübersicht

   Hauptfarbe: #312783
   Hellgrau:   #d1cfcf
   Schrift:    Roboto
========================================================== */


/* ==========================================================
   GRUNDDESIGN
========================================================== */

.zshp-team {
    --zshp-violet: #312783;
    --zshp-pale: #f5f3fc;
    --zshp-grey: #d1cfcf;

    color: #24242a;
    font-family: Roboto, Arial, sans-serif;
}

.zshp-team * {
    box-sizing: border-box;
}


/* ==========================================================
   TEAM-ÜBERSICHT
========================================================== */

.zshp-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 24px 0 32px;
}


/* ==========================================================
   MITARBEITERKARTEN
========================================================== */

.zshp-team-card {
    min-width: 0;
    border: 1px solid var(--zshp-grey);
    border-left: 5px solid var(--zshp-violet);
    background: #ffffff;

    box-shadow: 0 3px 12px rgba(28, 19, 65, 0.045);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

    overflow: hidden;
}

.zshp-team-card:hover,
.zshp-team-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--zshp-violet);
    box-shadow: 0 10px 25px rgba(49, 39, 131, 0.13);
}

.zshp-team-card-link {
    display: flex;
    flex-direction: column;
    height: 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;
}


/* ==========================================================
   MITARBEITERFOTOS
========================================================== */

.zshp-team-image {
    display: block;
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    object-position: center 22%;
    background: #f1eff5;
}


/* ==========================================================
   PLATZHALTER OHNE FOTO
========================================================== */

.zshp-team-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 4 / 3;

    background: #f3f1f8;
    color: var(--zshp-violet);

    font-size: 3rem;
    font-weight: 700;
}


/* ==========================================================
   KARTENINHALT
========================================================== */

.zshp-team-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 20px 22px 22px;
}

.zshp-team-name {
    margin: 0 0 5px;

    color: var(--zshp-violet);

    font-size: 1.23rem;
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.zshp-team-function {
    margin: 0 0 14px;

    color: #575360;

    font-size: 0.95rem;
    line-height: 1.5;
}


/* ==========================================================
   FUNKTIONSLABELS
========================================================== */

.zshp-team-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0 0 15px;
}

.zshp-team-label {
    display: inline-block;

    padding: 4px 9px;
    border-radius: 3px;

    background: var(--zshp-violet);
    color: #ffffff;

    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 700;
}

.zshp-team-label-br {
    background: #b36b19;
}

.zshp-team-label-vm {
    background: #27804a;
}


/* ==========================================================
   PROFIL-LINK
========================================================== */

.zshp-team-more {
    display: block;

    margin-top: auto;
    padding-top: 8px;

    color: var(--zshp-violet);

    font-size: 0.91rem;
    font-weight: 600;
}


/* ==========================================================
   MITARBEITER-DETAILANSICHT
========================================================== */

.zshp-team-detail {
    border: 1px solid var(--zshp-grey);
    border-left: 5px solid var(--zshp-violet);

    background: #ffffff;

    padding: clamp(20px, 4vw, 40px);
    margin: 20px 0;
}


/* ==========================================================
   ZURÜCK ZUM TEAM
========================================================== */

.zshp-team-back {
    display: inline-block;

    color: var(--zshp-violet) !important;
    font-weight: 600;

    margin: 0 0 25px;

    text-decoration: none !important;
}


/* ==========================================================
   DETAILANSICHT: FOTO UND INFORMATIONEN
========================================================== */

.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;
}


/* ==========================================================
   ÜBERSCHRIFTEN
========================================================== */

.zshp-team-detail h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.2;

    color: var(--zshp-violet);

    margin: 0 0 12px;
}

.zshp-team-detail h3 {
    color: var(--zshp-violet);

    font-size: 1.2rem;

    margin: 0 0 14px;
}

.zshp-team-detail .zshp-team-function {
    font-size: 1.05rem;
}


/* ==========================================================
   KONTAKTDATEN
========================================================== */

.zshp-team-contacts {
    display: grid;
    gap: 7px;

    margin: 18px 0;

    overflow-wrap: anywhere;
}

.zshp-team a:not(.zshp-team-card-link):not(.zshp-team-back) {
    color: var(--zshp-violet);
    text-underline-offset: 3px;
}


/* ==========================================================
   ABSCHNITTE IN DER DETAILANSICHT
========================================================== */

.zshp-team-section {
    border-top: 1px solid #e5e3e8;

    margin-top: 28px;
    padding-top: 24px;
}


/* ==========================================================
   BESCHREIBUNG
========================================================== */

.zshp-team-description {
    line-height: 1.7;
    overflow-wrap: anywhere;
}


/* ==========================================================
   PROJEKTE UND PUBLIKATIONEN IM MITARBEITERPROFIL
========================================================== */

.zshp-team-linked-list {
    list-style: none;

    padding: 0 !important;
    margin: 0 !important;
}

.zshp-team-linked-list li {
    list-style: none;

    border-left: 3px solid var(--zshp-violet);
    background: #faf9fe;

    padding: 12px 16px;
    margin: 0 0 10px;
}

.zshp-team-linked-title {
    display: block;

    font-weight: 650;
    overflow-wrap: anywhere;
}

.zshp-team-linked-meta {
    display: block;

    color: #5e5a66;
    font-size: 0.88rem;

    margin-top: 4px;
}


/* ==========================================================
   FÖRDERER-LOGOS IN DER DETAILANSICHT
========================================================== */

.zshp-team-project-logos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;

    margin: 12px 0 0;
}

.zshp-team-project-logos img {
    width: auto;
    max-width: 120px;
    height: 48px;

    object-fit: contain;
}


/* ==========================================================
   NEU: LINK ZUR PUBLIKATIONSÜBERSICHT
========================================================== */

.zshp-team-publications-link {
    margin: 22px 0 0;
}

.zshp-team-publications-link a {
    display: inline-block;

    background: var(--zshp-violet);
    color: #ffffff !important;

    padding: 11px 18px;

    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.zshp-team-publications-link a:hover {
    background: #211a63;
    transform: translateY(-2px);
}

.zshp-team-publications-link a:focus-visible {
    outline: 3px solid var(--zshp-violet);
    outline-offset: 3px;
}


/* ==========================================================
   NEU: PUBLIKATIONSÜBERSICHT
========================================================== */

.zshp-publications {
    width: 100%;
    margin: 20px 0 35px;
}


/* ==========================================================
   PUBLIKATIONSSUCHE
========================================================== */

.zshp-publications-search {
    background: #ffffff;
    border: 1px solid var(--zshp-grey);
    border-left: 5px solid var(--zshp-violet);

    padding: 22px 24px;
    margin-bottom: 20px;
}

.zshp-publications-search label {
    display: block;
    margin-bottom: 12px;

    font-size: 1rem;
    color: var(--zshp-violet);
}

.zshp-publications-search-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.zshp-publications-search-controls input[type="search"] {
    flex: 1;
    min-width: 0;

    padding: 12px 14px;

    border: 1px solid #bcbac5;
    border-radius: 0;

    background: #ffffff;
    color: #24242a;

    font-family: inherit;
    font-size: 0.96rem;
    line-height: 1.4;
}

.zshp-publications-search-controls input[type="search"]:focus {
    outline: 2px solid var(--zshp-violet);
    outline-offset: 1px;
    border-color: var(--zshp-violet);
}

.zshp-publications-search-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 24px;

    border: 1px solid var(--zshp-violet);
    border-radius: 0;

    background: var(--zshp-violet);
    color: #ffffff;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}

.zshp-publications-search-controls button:hover {
    background: #211a63;
    border-color: #211a63;
}

.zshp-publications-search-controls button:focus-visible {
    outline: 3px solid var(--zshp-violet);
    outline-offset: 3px;
}


/* ==========================================================
   AKTIVER MITARBEITERFILTER
========================================================== */

.zshp-publications-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    padding: 15px 20px;
    margin-bottom: 20px;

    background: var(--zshp-pale);
    border-left: 4px solid var(--zshp-violet);
}

.zshp-publications-filter p {
    margin: 0;
    color: #24242a;
}

.zshp-publications-filter strong {
    color: var(--zshp-violet);
}

.zshp-publications-filter a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}


/* ==========================================================
   ANZAHL DER PUBLIKATIONEN
========================================================== */

.zshp-publications-count {
    margin: 18px 0 14px;

    color: #64616c;

    font-size: 0.92rem;
    font-weight: 500;
}


/* ==========================================================
   PUBLIKATIONSLISTE
========================================================== */

.zshp-publications .zshp-team-linked-list {
    display: grid;
    gap: 13px;
}

.zshp-publication-item {
    padding: 21px 24px !important;
    margin: 0 !important;

    border: 1px solid #e2e0e7;
    border-left: 5px solid var(--zshp-violet) !important;

    background: #ffffff !important;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.zshp-publication-item:hover {
    border-color: var(--zshp-violet);
    background: #fcfbff !important;
}

.zshp-publication-item .zshp-team-linked-title {
    color: var(--zshp-violet);

    font-size: 1.08rem;
    font-weight: 700;

    line-height: 1.5;
}

.zshp-publication-item .zshp-team-linked-meta {
    margin-top: 7px;
}


/* ==========================================================
   AUTOREN UND HERAUSGEBER
========================================================== */

.zshp-publication-authors {
    margin-top: 12px;

    color: #43404d;

    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* ==========================================================
   PUBLIKATIONSBESCHREIBUNG
========================================================== */

.zshp-publication-description {
    margin-top: 14px;

    color: #42404a;

    font-size: 0.94rem;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.zshp-publication-description p {
    margin: 0 0 10px;
}

.zshp-publication-description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   PDF-LINK IN DER PUBLIKATIONSÜBERSICHT

   PDF-Links bleiben hier verfügbar.
   Im Mitarbeiterprofil führen die Links dagegen
   zur gefilterten Publikationsübersicht.
========================================================== */

.zshp-publication-pdf {
    margin: 16px 0 0;
}

.zshp-publication-pdf a {
    display: inline-block;

    color: var(--zshp-violet);
    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.zshp-publication-pdf a:hover {
    color: #211a63;
}


/* ==========================================================
   LEERE ERGEBNISLISTEN
========================================================== */

.zshp-team-empty {
    color: #65616c;
}

.zshp-publications .zshp-team-empty {
    padding: 20px;
    background: #f8f7fb;
    border-left: 4px solid var(--zshp-violet);
}


/* ==========================================================
   TABLETS
========================================================== */

@media (max-width: 900px) {

    .zshp-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   SMARTPHONES
========================================================== */

@media (max-width: 620px) {

    .zshp-team-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .zshp-team-detail-top {
        grid-template-columns: 1fr;
    }

    .zshp-team-detail-photo,
    .zshp-team-detail-placeholder {
        max-width: 300px;
    }

    .zshp-publications-search {
        padding: 18px;
    }

    .zshp-publications-search-controls {
        flex-direction: column;
    }

    .zshp-publications-search-controls button {
        width: 100%;
    }

    .zshp-publications-filter {
        align-items: flex-start;
        flex-direction: column;
    }

    .zshp-publication-item {
        padding: 16px 18px !important;
    }

}


/* ==========================================================
   REDUZIERTE ANIMATIONEN
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .zshp-team-card,
    .zshp-team-publications-link a,
    .zshp-publication-item,
    .zshp-publications-search-controls button {
        transition: none;
    }

    .zshp-team-card:hover,
    .zshp-team-publications-link a:hover {
        transform: none;
    }

}
