/* Tooltip Basis-Styles */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 0 8px;
    text-decoration: none;
    width: 16px;
    height: 16px;
    border: none;
}

.tooltip-trigger.info {
    background: white;
}

.tooltip-trigger.warning {
    background: #ffc107;
    color: #212529;
}

.tooltip-trigger.success {
    background: #28a745;
}

.tooltip-trigger img {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* SVG Icon Styles */

.tooltip-trigger img {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

/* Tooltip Container */
.tooltip {
    position: absolute;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Tooltip Content */
.tooltip-content {
    background: white;
    color: black;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 300px;
    min-width: 150px;
    word-wrap: break-word;
    position: relative;
}

/* Close Button */
.tooltip-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.tooltip-close:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.tooltip-close svg {
    width: 12px;
    height: 12px;
    fill: #666;
    pointer-events: none;
}

/* Tooltip Pfeil */
.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
}

/* Pfeil Positionen */
.tooltip.top .tooltip-arrow {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.tooltip.bottom .tooltip-arrow {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.tooltip.left .tooltip-arrow {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

.tooltip.right .tooltip-arrow {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

/* HTML Content Styles */
.tooltip-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.tooltip-content p {
    margin: 0 0 8px 0;
}

.tooltip-content p:last-child {
    margin-bottom: 0;
}

.tooltip-content a {
    text-decoration: none;
}

.tooltip-content a:hover {
    text-decoration: underline;
}

.tooltip-content .badge {
    display: inline-block;

    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

.tooltip-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tooltip-content li {
    margin: 4px 0;
}
@media (max-width: 768px) {
    .tooltip-content {
        max-width: 250px;
        font-size: 13px;
        padding: 12px 36px 12px 16px;
    }
     .tooltip-close {
        width: 20px;
        height: 20px;
        top: 6px;
        right: 6px;
    }

    .tooltip-close svg {
        width: 14px;
        height: 14px;
    }

    .tooltip-trigger {
        width: 28px;
        height: 28px;
    }

    .tooltip-trigger svg {
        width: 16px;
        height: 16px;
    }
}
