/* ==========================================
   INFO TOOLTIPS
   ========================================== */

/* Info Icon für Pakete */
.info-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: help;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2), 0 0 0 0 rgba(168, 85, 247, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2), 0 0 0 0 rgba(168, 85, 247, 0.4);
    }

    50% {
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3), 0 0 0 4px rgba(168, 85, 247, 0.2);
    }
}

.info-icon svg {
    color: #a855f7;
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
    border-color: #a855f7;
    transform: scale(1.15);
    /* Rotation removed here */
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(168, 85, 247, 0.2);
    animation: none;
}

.info-icon:hover svg {
    color: white;
    transform: scale(1.1) rotate(15deg);
    /* Rotation added here */
}

.info-icon:active {
    transform: scale(0.95);
}

/* Info Icon inline (für Addons) */
.info-icon-inline {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: help;
    margin-left: 8px;
    padding: 0;
    vertical-align: -4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
}

.info-icon-inline svg {
    color: #a855f7;
    transition: all 0.3s ease;
}

.info-icon-inline:hover {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
    border-color: #a855f7;
    transform: scale(1.2);
    /* Rotation removed here */
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.info-icon-inline:hover svg {
    color: white;
    transform: scale(1.1) rotate(15deg);
    /* Rotation added here */
}

.info-icon-inline:active {
    transform: scale(0.9);
}

/* Tooltip */
.info-icon[data-tooltip]::after,
.info-icon-inline[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1F2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: normal;
    text-align: left;
}

/* Tooltip Arrow */
.info-icon[data-tooltip]::before,
.info-icon-inline[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1F2937;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10001;
}

/* Show Tooltip on Hover */
.info-icon:hover::after,
.info-icon:hover::before,
.info-icon-inline:hover::after,
.info-icon-inline:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip für Inline-Icons */
.info-icon-inline[data-tooltip]::after {
    bottom: calc(100% + 8px);
    left: 50%;
}

.info-icon-inline[data-tooltip]::before {
    bottom: calc(100% + 0px);
}

/* Mobile Anpassung - Modal statt Tooltip */
@media (max-width: 768px) {

    /* Deaktiviere Standard-Tooltips auf Mobile */
    .info-icon[data-tooltip]::after,
    .info-icon-inline[data-tooltip]::after,
    .info-icon[data-tooltip]::before,
    .info-icon-inline[data-tooltip]::before {
        display: none !important;
    }

    /* Tooltips werden als Modal angezeigt - siehe JavaScript */
    .info-icon,
    .info-icon-inline {
        cursor: pointer;
    }

    .info-icon {
        width: 32px;
        height: 32px;
    }

    .info-icon svg {
        width: 18px;
        height: 18px;
    }

    .info-icon-inline {
        width: 20px;
        height: 20px;
    }

    .info-icon-inline svg {
        width: 14px;
        height: 14px;
    }
}

/* Tooltip Modal für Mobile */
.tooltip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.tooltip-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tooltip-modal-content {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 24px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tooltip-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    line-height: 1;
}

.tooltip-modal-close:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
    color: white;
    transform: rotate(90deg);
}

.tooltip-modal-close:active {
    transform: scale(0.9) rotate(90deg);
}

.tooltip-modal-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    padding-right: 24px;
}

/* Verhindere dass Tooltips außerhalb des Viewports sind */
.info-icon-inline[data-tooltip]::after {
    left: auto;
    right: 0;
    transform: none;
}

.info-icon-inline[data-tooltip]::before {
    left: auto;
    right: 20px;
    transform: none;
}

/* Package Card Positioning */
.package-option-card {
    position: relative;
}