.btn-like-wrapper {
    position: relative;
    display: block;
    margin: 0 auto;
    width: fit-content; /* passt die Breite an Button an */
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: auto;
    background-color: #4e7f00;
    color: #fff;
    text-align: left;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    position: absolute;
    z-index: 1000;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.3;
    pointer-events: none;
    display: inline-block;
}

.short-tooltip .tooltip-text {
    white-space: nowrap;
    word-break: keep-all;
}

.long-tooltip .tooltip-text {
    white-space: normal;
    max-width: 300px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #4e7f00 transparent transparent transparent;
}

.btn-like-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.text-center:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
