.info-tooltip {
    position: relative;
    cursor: pointer;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
}

.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 360px;
    width: max-content;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 4px;
    white-space: normal;
    word-break: break-word;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 1000;
}

/* Pfeil */
.info-tooltip::before {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Desktop: Hover */
@media (hover: hover) {
    .info-tooltip:hover::after,
    .info-tooltip:hover::before {
        opacity: 1;
    }
}

/* Mobile & Keyboard: Click / Focus */
.info-tooltip:focus::after,
.info-tooltip:focus::before {
    opacity: 1;
}

.info-tooltip.align-left::after {
    left: 0;
    transform: translateX(0);
}

.info-tooltip.align-right::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}


/* Optional: Icon leicht kleiner */
.heading-with-info .info-tooltip i {
    font-size: 0.85em;
}
