.page-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    border: 0;
    border-radius: 50%;
    background: #71452b;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

.page-help-tooltip {
    position: relative;
    cursor: help;
}

.page-help-tooltip::after {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 0.5rem);
    left: 50%;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.5rem 0.75rem;
    transform: translateX(-50%);
    border-radius: 0.25rem;
    background: #333;
    color: #fff;
    content: attr(data-tooltip);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
}

.page-help-tooltip:hover::after,
.page-help-tooltip:focus-visible::after {
    opacity: 1;
}

/* Rechtsbündige Variante für Tooltips am rechten Tabellenrand. */
.page-help-tooltip--end::after {
    right: 0;
    left: auto;
    transform: none;
}

.page-help-icon:hover {
    background: #5a3622;
    color: #fff;
    text-decoration: none;
}

.page-help-icon:focus-visible {
    outline: 2px solid #1d5e8a;
    outline-offset: 2px;
}
