/* LSM - VfL Erfolge */

.lsm-vfl-erfolge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--vfl-erfolge-gap, 28px);
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lsm-vfl-erfolge--align-left   { justify-content: flex-start; }
.lsm-vfl-erfolge--align-center { justify-content: center; }
.lsm-vfl-erfolge--align-right  { justify-content: flex-end; }

.lsm-vfl-erfolge__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--vfl-erfolge-size, 40px);
    height: var(--vfl-erfolge-size, 40px);
    margin: 0 !important;
    padding: 0 !important;
    cursor: default;
    outline: none;
}

.lsm-vfl-erfolge__item img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: contain;
    transition: transform .2s ease;
}

.lsm-vfl-erfolge__item:hover img,
.lsm-vfl-erfolge__item:focus-visible img {
    transform: scale(1.1);
}

/* Tooltip – hängt am <body>, damit overflow:hidden im Header nicht abschneidet */
.lsm-vfl-erfolge-tooltip {
    position: fixed;
    z-index: 100000;
    background: #fff;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    padding: 6px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    white-space: nowrap;
    max-width: calc(100vw - 16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.lsm-vfl-erfolge-tooltip.is-top { transform: translateY(-4px); }

.lsm-vfl-erfolge-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .lsm-vfl-erfolge-tooltip {
        white-space: normal;
        max-width: 240px;
        text-align: center;
    }
}
