/* Grid und Item Styles (wie gehabt) */
.dts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9em;
}
.dts-item {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    font-family: sans-serif;
    font-size: 0.97em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px #0001;
    padding: 0.5em 0.7em;
    min-height: 110px;
}
.dts-item img {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 6px #0001;
    margin-right: 0.6em;
    cursor: pointer;
    background: #fafafa;
    transition: box-shadow 0.2s;
}
.dts-item img:hover { box-shadow: 0 2px 12px #0002; }
.dts-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dts-name,
.dts-vorname {
    font-size: 1.05em;
    margin-bottom: 2px;
    font-weight: 700;
}
.dts-funktion,
.dts-seit {
    font-size: 0.97em;
    color: #222;
}

/* Modal Styles – jetzt mit garantiert höchstem z-index */
#dts-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999999999 !important;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
#dts-modal.active {
    display: flex;
}
#dts-modal-close {
    position: absolute;
    top: 2vw;
    right: 3vw;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 99999999999 !important;
    user-select: none;
}
#dts-modal-img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px #000b;
}

/* Backend Thumb */
.dts-admin-thumb {
    width: 25px;
    height: 31px;
    object-fit: cover;
    border-radius: 3px;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    border: 1px solid #ddd;
    background: #fafafa;
    margin: 0 2px;
}
.dts-thumb-hover {
    position: relative;
    display: inline-block;
}
.dts-admin-thumb-popup {
    display: none;
    position: absolute;
    top: -10px;
    left: 32px;
    z-index: 1000;
    border: 1px solid #bbb;
    background: #fff;
    padding: 2px;
    border-radius: 6px;
    box-shadow: 0 4px 12px #0003;
    min-width: 80px;
}
.dts-admin-thumb-popup img {
    height: 150px;
    width: auto;
    display: block;
    border-radius: 5px;
}
.dts-thumb-hover:hover .dts-admin-thumb-popup {
    display: block;
}
