.pin-button {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dbe4ee;
    border-radius: 13px;

    background: #f8fafc;
    color: #7e8da1;

    cursor: pointer;

    transition: all .15s ease;
}

.pin-symbol {
    font-size: 25px;
    line-height: 1;
    transform: rotate(-25deg);
}

.pin-button:hover {
    background: #eef5ff;
    border-color: #bad3f3;
    color: #1769e0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(23, 105, 224, .12);
}

.pin-button.pinned {
    background: #1769e0;
    border-color: #1769e0;
    color: white;
    box-shadow: 0 6px 17px rgba(23, 105, 224, .22);
}

.pin-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);

    padding: 7px 10px;
    border-radius: 8px;

    background: #172338;
    color: white;

    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);

    pointer-events: none;
    z-index: 5000;

    transition: .12s ease;
}

.pin-tooltip::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 100%;

    border: 5px solid transparent;
    border-top-color: #172338;
}

.pin-button:hover .pin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Tooltip seitlich anzeigen, damit er oben nicht abgeschnitten wird */
.pin-tooltip {
    top: 50%;
    bottom: auto;
    right: calc(100% + 10px);

    transform: translateY(-50%) translateX(4px);
}

.pin-tooltip::after {
    top: 50%;
    right: -10px;

    transform: translateY(-50%);

    border: 5px solid transparent;
    border-left-color: #172338;
}

.pin-button:hover .pin-tooltip {
    transform: translateY(-50%) translateX(0);
}

